Re: [netconf] Current activities on RESTCONF/NETCONF to support paging

Qin Wu <bill.wu@huawei.com> Mon, 18 March 2019 12:57 UTC

Return-Path: <bill.wu@huawei.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 03F9C127983 for <netconf@ietfa.amsl.com>; Mon, 18 Mar 2019 05:57:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level:
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xwkErAUFgI5q for <netconf@ietfa.amsl.com>; Mon, 18 Mar 2019 05:57:47 -0700 (PDT)
Received: from huawei.com (lhrrgout.huawei.com [185.176.76.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9716312797C for <netconf@ietf.org>; Mon, 18 Mar 2019 05:57:47 -0700 (PDT)
Received: from lhreml702-cah.china.huawei.com (unknown [172.18.7.107]) by Forcepoint Email with ESMTP id D84DD6EABD01D3C6C66C; Mon, 18 Mar 2019 12:57:45 +0000 (GMT)
Received: from NKGEML413-HUB.china.huawei.com (10.98.56.74) by lhreml702-cah.china.huawei.com (10.201.108.43) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 18 Mar 2019 12:57:45 +0000
Received: from NKGEML513-MBX.china.huawei.com ([169.254.1.81]) by NKGEML413-HUB.china.huawei.com ([10.98.56.74]) with mapi id 14.03.0415.000; Mon, 18 Mar 2019 20:57:40 +0800
From: Qin Wu <bill.wu@huawei.com>
To: tom petch <ietfc@btconnect.com>, "Wisotzky, Sven (Nokia - DE/Stuttgart)" <sven.wisotzky@nokia.com>, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
CC: "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: [netconf] Current activities on RESTCONF/NETCONF to support paging
Thread-Index: AdTdiVphQgOJn0z1RGyB3QijnnVcOw==
Date: Mon, 18 Mar 2019 12:57:39 +0000
Message-ID: <B8F9A780D330094D99AF023C5877DABA9B2F1198@nkgeml513-mbx.china.huawei.com>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.134.31.203]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/QENxpWnXlWOI27ROZkqWEIW6eoQ>
Subject: Re: [netconf] Current activities on RESTCONF/NETCONF to support paging
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 18 Mar 2019 12:57:50 -0000

-----邮件原件-----
发件人: netconf [mailto:netconf-bounces@ietf.org] 代表 tom petch
发送时间: 2019年3月15日 1:07
收件人: Wisotzky, Sven (Nokia - DE/Stuttgart) <sven.wisotzky@nokia.com>; Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
抄送: netconf@ietf.org
主题: Re: [netconf] Current activities on RESTCONF/NETCONF to support paging

----- Original Message -----
From: "Wisotzky, Sven (Nokia - DE/Stuttgart)" <sven.wisotzky@nokia.com>
Sent: Thursday, March 14, 2019 12:14 PM

> Depends on whatever we call here a crash. The challenging part of
NETCONF/RESTCONF is, that the client would not know how big the get/get-config reply would become. Having a JS-based WebUI client running a RESTCONF query, you easily end up in situations, where you basically need to terminate the javascript because it runs out of memory. And I've even seen situations, where the browser itself did not respond anymore (swapping to disk, ...).

One afternoon, I set an SNMP get-next going on RMON and it was still going the next day; I then tried over a weekend and it was still going the next week.  Data was being added to the table faster than my high speed LAN could retrieve it.  Neither system crashed although response times for other applications elongated.

I am reminded of e-mail where a POP client may access a very large list of e-mails on a server.  The first response is a count of how many there are currently; the client can then request the summary data for each before deciding which to download in full.  This was designed before the cloud was thought of and it is a system that still works well.

[Qin]:Have a little bit brainstorm, in HTTP Streaming, we may create manifest file for the location of additional streams or next chunk. The encoder or automated scripts upload the files to NETCONF/RESTCONF server, the client need to download such manifest file.

Tom Petch







>
> By introducing a protection mechanisms like max-count, the client can
control to a certain extent how much data will be received. And by using paging for post loading in the background, the client could still decide if it is possible to load another page or not. So when running out-of-memory or when start swapping, the client could avoid loading any further pages. Generally I am thinking this is a very reasonable aka controlled  approach.
>
> With NETCONF today, for sure one could terminate the NETCONF sessions
if too much data is received and might try using a XML stream reader to process what has been received so far. But would claim that this is not a good approach at all and should be avoided.
>
> /wiso
>
>
>
>
> On 14.03.19, 11:49, "Juergen Schoenwaelder"
<j.schoenwaelder@jacobs-university.de> wrote:
>
>     On Thu, Mar 14, 2019 at 10:07:33AM +0000, Wisotzky, Sven (Nokia -
DE/Stuttgart) wrote:
>     >
>     > However, as per my initial post below, just defining a limit
(aka max-count) is a very efficient initial step to improve loading time and avoid crashes.
>
>     Sorry, but if code crashes, then someone has to fix the code.
Adding
>     query parameters is not the right answer for this.
>
>     /js
>
>     --
>     Juergen Schoenwaelder           Jacobs University Bremen gGmbH
>     Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen |
Germany
>     Fax:   +49 421 200 3103
<https://www.jacobs-university.de/>
>
>
> _______________________________________________
> netconf mailing list
> netconf@ietf.org
> https://www.ietf.org/mailman/listinfo/netconf
>

_______________________________________________
netconf mailing list
netconf@ietf.org
https://www.ietf.org/mailman/listinfo/netconf