Re: [Netconf] netconf-binary-encoding comments

Mahesh Jethanandani <mjethanandani@gmail.com> Tue, 10 July 2018 00:05 UTC

Return-Path: <mjethanandani@gmail.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 4A212131138 for <netconf@ietfa.amsl.com>; Mon, 9 Jul 2018 17:05:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.01
X-Spam-Level:
X-Spam-Status: No, score=-0.01 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=1.989, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 nPuMQJGofSl8 for <netconf@ietfa.amsl.com>; Mon, 9 Jul 2018 17:05:47 -0700 (PDT)
Received: from mail-pl0-x236.google.com (mail-pl0-x236.google.com [IPv6:2607:f8b0:400e:c01::236]) (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 E737A130EB2 for <netconf@ietf.org>; Mon, 9 Jul 2018 17:05:46 -0700 (PDT)
Received: by mail-pl0-x236.google.com with SMTP id b1-v6so6761280pls.5 for <netconf@ietf.org>; Mon, 09 Jul 2018 17:05:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=QrlNAJjvzdiN270g6RQxT/pEOx4blHaFIP8jmKsuH1g=; b=QUe4Eh3H9egtnJFhYTozVN7XyZOSHskm4cPrUPGHVrCtCvSZ4wqvLmYoc4BXfIytVf ubQsuckMWBQj1XDoS37HUuFxfUxjsmGPpeMKVC7k8Or6F06per9XltEx/liHG7B8qugt HKWVRM9avZTnZsLBgCLy0Qo04TCFoI6WN51rAuV9VIioBXux9UeuNNim3MKp9ni51C7e ALkUqYl+KXcHFvjWBCmQ1cb47d01vbUeyAdynbfm+jzZa2SHAkUQVm9DCNgvgeik8x14 nl8J5m+lHeFR7xsvuWV+qu45YI4ZQmqWUea6Tm+fPMIVcY9fM/kWG9hgn8T4N/I6IZGa jM6Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=QrlNAJjvzdiN270g6RQxT/pEOx4blHaFIP8jmKsuH1g=; b=FyAk+rRrWcaKpxFpRPR/BSMsFTE5D9dLJH4BgAzBpEf+CI2PABbOE63KYpvc1x5Ek5 R6SXKcYfhgWIUQiJFSTXyCbyaLGea+Cd1yg9jX7oNDKPfi+ULea6FIeN3TilDW0E3HDV 5ijpG5+BwxzAuukSs2OLkpujtOc5vbCwhsoFAJwvorRm7tT2k6QGO8zIQESiWYzJPcDj aK5bV6hPTvymR9NIHR/CBwXB0Ze1bH4gWiwwztQbr1xTy7U0bwlwN2jqPoYUAIJ9eWY2 TT1MoTWuO0uZ7zaaLNu3uMyCP11uZKlrjC55i5JsGkoUGCpPXbhkoj2DC3vCdEMUOUTt zNow==
X-Gm-Message-State: APt69E0xIAK1v5+tCvXaF9Ow3fHFE16r+Vc+HdesTQKQCw1drRLmZRMT 30RPBrkvb2UUVDzGUmHJV0s=
X-Google-Smtp-Source: AAOMgpcCxG7S941dXsusxzudPAYPRdZH2vLNb4w936oDbL8io4yxQxPlbkVF6TdRYDlr722B22H4RA==
X-Received: by 2002:a17:902:7581:: with SMTP id j1-v6mr11892962pll.218.1531181146510; Mon, 09 Jul 2018 17:05:46 -0700 (PDT)
Received: from ?IPv6:2601:647:4700:1280:b836:21af:f5df:8992? ([2601:647:4700:1280:b836:21af:f5df:8992]) by smtp.gmail.com with ESMTPSA id t76-v6sm46277128pfe.109.2018.07.09.17.05.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jul 2018 17:05:45 -0700 (PDT)
From: Mahesh Jethanandani <mjethanandani@gmail.com>
Message-Id: <FAF2C7CA-AA25-48F8-ADC1-E58B0A15F9B5@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_9CBDBC9C-AA66-49D4-9A5A-A1A5B407CA5F"
Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\))
Date: Mon, 09 Jul 2018 17:05:44 -0700
In-Reply-To: <aea00c41-0e68-1fad-df5f-ba2df19c7b31@ericsson.com>
Cc: Kent Watsen <kwatsen@juniper.net>, Andy Bierman <andy@yumaworks.com>, "netconf@ietf.org" <netconf@ietf.org>
To: Balazs Lengyel <balazs.lengyel@ericsson.com>
References: <14395e68-eb71-7766-d4d2-4de0ea67681f@ericsson.com> <CABCOCHRJM5vTgTXcNircjcn6DCqK5fzW3E2rjMM6sb3A3Edz_g@mail.gmail.com> <AB085A45-5498-45A1-8AED-19C86D9298CF@juniper.net> <aea00c41-0e68-1fad-df5f-ba2df19c7b31@ericsson.com>
X-Mailer: Apple Mail (2.3445.8.2)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/-QgASqj98t-RG5TPhpMbe_Ak9aA>
Subject: Re: [Netconf] netconf-binary-encoding comments
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.27
Precedence: list
List-Id: Network Configuration WG mailing 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: Tue, 10 Jul 2018 00:05:54 -0000


> On Jul 9, 2018, at 4:28 AM, Balazs Lengyel <balazs.lengyel@ericsson.com> wrote:
> 
> Efficiency is mostly interesting for yang-push data and not so much for <edit-config>  <edit-data> <get-config> <get-data>.
> 
I would generally agree that it is not as interesting for <edit-config> or <get-config>. But we have seen instances of <get-data> where the data set being returned can be rather large, e.g. BGP route entries, where encoding of the data would have helped.

But the question is, do we want to be selective in what we encode? Would it not be easier/simpler for all transaction to be in a single form of encoding?
> However we are more interested in dynamic-subscriptions then in configured subscriptions. 
> Eegards Balazs
> 
> 
> On 7/5/2018 7:06 PM, Kent Watsen wrote:
>>  
>> > When I brought up this issue 5 years ago there was zero interest in improving
>> > the efficiency of NETCONF. Maybe YANG Push will change that POV.
>>  
>> I agree that there is little appetite to improve the efficiency of configuration-oriented
>> workflows.   Monitoring, for which notifications supports in a big way, have a strong
>> push for efficiency.  I think the primary question is if this efficiency must be realizable
>> for NC/RC based subscriptions, or if the efficiency can come from the use of more
>> suitable transports (e.g., gRPC), that can be defined by future "notif" drafts?
>>  
>> If we were only interested in such efficiency for configured subscriptions, then I think
>> a "notif" draft to define the transport would be relatively easy.   If such efficiency is
>> also needed for dynamic subscriptions, then it seems like something along the lines
>> of what binary-encoding draft proposes might be needed.
>>  
>> Is there a need for efficiency for any other workflow?   What about for RPCs that are
>> executed often (e.g., polling) or return very large responses?   Does we care about
>> making these use cases more efficient too, or are we primarily only interested in
>> just making notifications efficient?
>>  
>> Kent
>>  
>>  
>>  
>> On 7/5/18, 12:07 PM, "Netconf on behalf of Andy Bierman" <netconf-bounces@ietf.org <mailto:netconf-bounces@ietf.org> on behalf ofandy@yumaworks.com <mailto:andy@yumaworks.com>> wrote:
>>  
>> Hi, 
>>  
>> I think the first-order issue is for the WG to decide if there is a problem to be
>> solved by this WG, and if so, what is the problem scope.
>>  
>> Details like the SID assignments for rpc, rpc-reply, etc do not really impact that decision.
>>  
>> When I brought up this issue 5 years ago there was zero interest in improving the
>> efficiency of NETCONF. Maybe YANG Push will change that POV.
>>  
>> https://tools.ietf.org/html/draft-bierman-netconf-efficiency-extensions-00 <https://urldefense.proofpoint.com/v2/url?u=https-3A__tools.ietf.org_html_draft-2Dbierman-2Dnetconf-2Defficiency-2Dextensions-2D00&d=DwMFaQ&c=HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=9zkP0xnJUvZGJ9EPoOH7Yhqn2gsBYaGTvjISlaJdcZo&m=oAFOh8ZwuiodqCiPKKq5-n9X4-VYRoFJXIfDMi8vvJs&s=rPGpbkoE7L63ymXNzHmAKazwljYuJVs3pa2Pf1arT-A&e=>
>>  
>> I think this draft should focus on the protocol mechanisms and not define
>> any media types. Definitions of GPB and other formats are not trivial and need
>> their own RFCs.
>>  
>>  
>> Andy
>>  
>>  
>> On Thu, Jul 5, 2018 at 8:07 AM, Balazs Lengyel <balazs.lengyel@ericsson.com <mailto:balazs.lengyel@ericsson.com>> wrote:
>> Hello,
>> Is this applicable for Restconf? Would a Restconf binary encoding be interesting?
>> 
>> Chapter 2)
>> 
>> - A more detailed explanation of which parts are encoded would be good. What is the top XML element that will be encoded? <rpc>, <RPC-reply>, <RPC-error>, <notification> ? Just referencing a figure in another draft is not enough.
>> 
>> - SHOULD, SHALL or SHALL NOT a client server declare support for the XML encoding? Is that always implicit? State it.
>> 
>> 4.2) Shouldn't we also have a JSON encoding here?
>> 
>> I would think that all encodings need some official reference, defining how they are used with YANG: RFC, web link
>> 
>> Is the Thrift and gpb encoding trivial or is it described somewhere or do we need an RFC about it? Please state whichever is the case.
>> 
>> regards Balazs
>> 
>> 
>> 
>> 
>> 
>> -- 
>> Balazs Lengyel                       Ericsson Hungary Ltd.
>> Senior Specialist
>> Mobile: +36-70-330-7909              email: Balazs..Lengyel@ericsson.com <mailto:Balazs.Lengyel@ericsson.com>
>> 
>> _______________________________________________
>> Netconf mailing list
>> Netconf@ietf.org <mailto:Netconf@ietf.org>
>> https://www.ietf.org/mailman/listinfo/netconf <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ietf.org_mailman_listinfo_netconf&d=DwMFaQ&c=HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=9zkP0xnJUvZGJ9EPoOH7Yhqn2gsBYaGTvjISlaJdcZo&m=oAFOh8ZwuiodqCiPKKq5-n9X4-VYRoFJXIfDMi8vvJs&s=g9t4wEhl67_O_ZmVRrFI1qv3g4UdY2tUiwYOV3Xny0o&e=>
>>  
> 
> -- 
> Balazs Lengyel                       Ericsson Hungary Ltd.
> Senior Specialist
> Mobile: +36-70-330-7909              email: Balazs.Lengyel@ericsson.com <mailto:Balazs.Lengyel@ericsson.com> 
> _______________________________________________
> Netconf mailing list
> Netconf@ietf.org <mailto:Netconf@ietf.org>
> https://www.ietf.org/mailman/listinfo/netconf <https://www.ietf.org/mailman/listinfo/netconf>

Mahesh Jethanandani
mjethanandani@gmail.com