Re: [netconf] Current activities on RESTCONF/NETCONF to support paging
Andy Bierman <andy@yumaworks.com> Sun, 17 March 2019 20:39 UTC
Return-Path: <andy@yumaworks.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 6614C12AF7B for <netconf@ietfa.amsl.com>; Sun, 17 Mar 2019 13:39:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.com
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 t5Vi5w_Ein05 for <netconf@ietfa.amsl.com>; Sun, 17 Mar 2019 13:39:40 -0700 (PDT)
Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B57471279AD for <netconf@ietf.org>; Sun, 17 Mar 2019 13:39:39 -0700 (PDT)
Received: by mail-lj1-x233.google.com with SMTP id x9so8164665ljc.7 for <netconf@ietf.org>; Sun, 17 Mar 2019 13:39:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mjXs+ZkovtRssfG0bh/a6wnEcdtWNYKGoAogDyDOZnY=; b=YeofuCgSVofAFKLwz7FiYfe7MVgISpyoKGOQQxATWIusP0SEDw/MLsPjh/FR2Mu2Jk /G2iRCAABnP0wh6tjnhFGhu+OQYBos0frftsov1id8gp365bodg7HpOZxNhTYiXSm6qW Q3Noyd1Ikr1HZDDh4otSkBf/szkxI8CQpxFfaZU2v4XSCUBW7alLynXXdh/TdbNfL6MV 1Urtv1Vh83dTWQt5hfooCgMevveuTb6xkD6AQgFk0vchTgtnAW93ohQAyq2/i1SdVqUR ZgPlchmR8gqSAOC1oeoKMoco5PquQJ74ziv9pIJZV5DzcDWo3ejszOQH8H3Ddtyfv9km vRHQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mjXs+ZkovtRssfG0bh/a6wnEcdtWNYKGoAogDyDOZnY=; b=jRakzY4kPrnYox4Vdwp3rIGDxcv5PeNmFoiyOka1kMC8ba2KbS3nyLoOm2rDpHseq0 m7IbeasuaqDq7U4cj2rcC5EVLELDkYX0++5wIj+5AE5amqcaCapd2SQXA7GSAmQCccs9 DwvYmGfyA6T/PAxk6wLZfRopmnZQxcKvuZs5lDmF59JTBkKLSdsvJd4+GKZKc7rJ1jMz c78tyBt4vp00hWor1+0lbrCH1b6C2Bc4cRFeIsVvRXuwmPDtjKrXeONNklMQgcgY0ux7 Ie+wGfmfkpGj+AxbWxS3AMUqpg405VBZpm9fo7Q46u0UertIKyToGjU10HAb+K/Ss66J DB0Q==
X-Gm-Message-State: APjAAAXy07rQfcejTwAO7pyCtR2Q28qOroqhMcItE6CUDPSSzMddlCk2 a5JIHOokasYLqyOwxQlaEI6aY6nvDvqnlaLgFM7gfg==
X-Google-Smtp-Source: APXvYqz6/3ZpKoA0RVBlfS87MJHJopD4cbVgXoWQ+VHPG8n6W6YMM+YPTgsVzDFJ+W9WaePXbOyoGIXX/HIgCWs581U=
X-Received: by 2002:a2e:9594:: with SMTP id w20mr8524927ljh.173.1552855177795; Sun, 17 Mar 2019 13:39:37 -0700 (PDT)
MIME-Version: 1.0
References: <C88A38CA-44B5-42A0-9DFA-A67AE5456951@nokia.com> <20190314093552.3pwa7ptrre4t2stk@anna.jacobs.jacobs-university.de> <c74ec9cdca13442b93ee575e11b25610@XCH-RCD-007.cisco.com>
In-Reply-To: <c74ec9cdca13442b93ee575e11b25610@XCH-RCD-007.cisco.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Sun, 17 Mar 2019 13:39:26 -0700
Message-ID: <CABCOCHREf9MwU6vX2Ze5WOYCVbofmc4X+HR7zqchXMqv7Mo7ZA@mail.gmail.com>
To: "Rob Wilton (rwilton)" <rwilton@cisco.com>
Cc: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, "Wisotzky, Sven (Nokia - DE/Stuttgart)" <sven.wisotzky@nokia.com>, "netconf@ietf.org" <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000042c162058450459b"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/wtXzdusHae2w6VTqxp9AVJEVL0w>
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: Sun, 17 Mar 2019 20:39:44 -0000
On Thu, Mar 14, 2019 at 3:24 AM Rob Wilton (rwilton) <rwilton@cisco.com> wrote: > I agree that this would be a useful problem to solve. > > I also agree with Juergen that there will likely be consistency issues > depending on implementation, particularly if the data is coming from > <operational>. But I suspect that this issue already exists for many > non-trivial implementations (e.g. where the operational data is distributed > to daemons, linecards, or remote slave devices). > > Requiring that a consistent view of the conventional configuration > datastores can be provided (without locking) might be a reasonable > compromise. > > This thread has already mentioned some of the reasons the RESTCONF Collections draft got shelved. 1) this is not a RESTCONF-specific problem, so a RESTCONF-specific solution will not solve the problem 2) there is no agreement on how much state a server should maintain during the "get-bulk walk". 3) some features like sorting require all data to be retrieved within the server and sorted, instead of streaming the data 4) position-based "get-next" is error-prone in dynamic operational state; it requires expensive locking in configuration I agree a standard solution would be beneficial to client developers, if all 4 issues could be solved Thanks, > Rob > > Andy > > -----Original Message----- > From: netconf <netconf-bounces@ietf.org> On Behalf Of Juergen > Schoenwaelder > Sent: 14 March 2019 09:36 > To: Wisotzky, Sven (Nokia - DE/Stuttgart) <sven.wisotzky@nokia.com> > Cc: netconf@ietf.org > Subject: Re: [netconf] Current activities on RESTCONF/NETCONF to support > paging > > One of the issues to consider is that depending on the datastore accessed, > the data can change more or less rapidly and it is unclear whether you want > servers to maintain potentially big amounts of state between requests. If > you retrieve data in chunks, the question is whether you can simply put the > data back together or the client side or whether this may lead to data that > never really existed in that form on the server. With RESTCONF, etags may > help to check whether the resource queried remains consistent (but then the > server still has to be able to decide etag changes). > > But backing up for this discussion of details, I agree that this is a > problem worth solving by standardizing a common solution. > > /js > > On Thu, Mar 14, 2019 at 09:23:53AM +0000, Wisotzky, Sven (Nokia - > DE/Stuttgart) wrote: > > All, > > > > There was some discussion in earlier days (back in 2012/2014) to > > support paging for extra-long lists. The main use-case is clearly to > > improve support for interactive user-frontends, as loading entire > > lists with potentially more than 100.000’s objects easily can become a > > nightmare: loading time, memory consumption, crashes, … > > > > For the sake of implementation, one would simply provide an attribute > called “max-count”, “max-entries”, “max-elements” or “limit” – which > basically defines the upper limit of list entries to be returned. Asking > for limit=10 – even if the list contains a 100k the result would simply > show 10. From an user-interface point of view, this might be enough – as > users would see how the list entries look like to narrow down the search by > adding additional search/filter criteria. So to protect the client system > and improvements on loading time/memory consumptions – this might be just > enough. > > > > More advanced implementations might allow the NETCONF client to specify > the “offset” which is basically the index of the first list entry to be > returned. In such case, the client could continue to load further pages on > customer demand (like dynamically while scrolling down the list or pressing > on the next button). Even if people are not curious that much about memory > consumption, even it should be possible to continue loading the remaining > list in the background – while showing the first X items faster on the > user-interfaces. > > > > To make such paging solution even more complete, following use-cases are > to be reviewed from a RESTCONF/NETCONF API point of view: > > /1/ How to figure out the number of list entries matching the given > criteria for a given list, without the need to poll the entire list? This > could be helpful to operators straight away, but also allows easier > implementation for things like progress bars. > > /2/ Define a sorting criteria for search results /3/ Improve filtering > > capabilities for subtree filters (e.g. contains operator) > > > > I did not found any active DRAFT or RFC for this. That said, we can see > various vendors implementing proprietary solutions for this in their > RESTCONF stacks. > > Would really like to see an IETF defined approach for this, to avoid > multi-vendor clients need to deal various vendors implementations. > > > > /wiso > > > _______________________________________________ > > netconf mailing list > > netconf@ietf.org > > https://www.ietf.org/mailman/listinfo/netconf > > > -- > 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 >
- [netconf] Current activities on RESTCONF/NETCONF … Wisotzky, Sven (Nokia - DE/Stuttgart)
- Re: [netconf] Current activities on RESTCONF/NETC… Juergen Schoenwaelder
- Re: [netconf] Current activities on RESTCONF/NETC… Carsten Bormann
- Re: [netconf] Current activities on RESTCONF/NETC… Mikael Abrahamsson
- Re: [netconf] Current activities on RESTCONF/NETC… Wisotzky, Sven (Nokia - DE/Stuttgart)
- Re: [netconf] Current activities on RESTCONF/NETC… Rob Wilton (rwilton)
- Re: [netconf] Current activities on RESTCONF/NETC… Wisotzky, Sven (Nokia - DE/Stuttgart)
- Re: [netconf] Current activities on RESTCONF/NETC… Juergen Schoenwaelder
- Re: [netconf] Current activities on RESTCONF/NETC… Wisotzky, Sven (Nokia - DE/Stuttgart)
- Re: [netconf] Current activities on RESTCONF/NETC… tom petch
- Re: [netconf] Current activities on RESTCONF/NETC… Douglas Hubler
- Re: [netconf] Current activities on RESTCONF/NETC… wangzitao
- Re: [netconf] Current activities on RESTCONF/NETC… Wisotzky, Sven (Nokia - DE/Stuttgart)
- Re: [netconf] Current activities on RESTCONF/NETC… Robert Varga
- Re: [netconf] Current activities on RESTCONF/NETC… Wisotzky, Sven (Nokia - DE/Stuttgart)
- Re: [netconf] Current activities on RESTCONF/NETC… Andy Bierman
- Re: [netconf] Current activities on RESTCONF/NETC… Qin Wu
- Re: [netconf] Current activities on RESTCONF/NETC… Qin Wu
- Re: [netconf] Current activities on RESTCONF/NETC… Kent Watsen