Re: [Netconf] netconf-binary-encoding comments

Andy Bierman <andy@yumaworks.com> Fri, 06 July 2018 16:35 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 BEB0B130F12 for <netconf@ietfa.amsl.com>; Fri, 6 Jul 2018 09:35:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.08
X-Spam-Level:
X-Spam-Status: No, score=0.08 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=1.989, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01, 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 5ThRQWcz4nHF for <netconf@ietfa.amsl.com>; Fri, 6 Jul 2018 09:35:16 -0700 (PDT)
Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) (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 6ABF0130FFA for <netconf@ietf.org>; Fri, 6 Jul 2018 09:35:14 -0700 (PDT)
Received: by mail-lj1-x232.google.com with SMTP id y17-v6so4793295ljy.8 for <netconf@ietf.org>; Fri, 06 Jul 2018 09:35:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=GXMdAuMtbjwZDpAmBbQHPRvjx6re7tzUP0B/3FyVcTg=; b=Re50WA3MBGO8ceMr8sXZuLvTFLWrZ8QAGwno8iMz4wj6CWDcyc+AR4hPnKgrBYC4UX dE+m54p8fYYvWAQcOXJblsMjwfByK7oRaIVG6QsJEc/dsVHXYGfzf2/yTwb+UG46o74h TXmAVqHsW02cdhMjjYaSUgyqwAYGn1f2RygVZIk1VX2mIbKtG2MJi6CW1kocBv/yU/c1 QgeQjfR3Nc4DuBseWT8Q4S+TIZRcvpwJrA2yHK56XPLdyyXV14eyr5/GrYrQ5y2I50aw DA2RNXe2Upym2HtUT75mHh03o2GEU5qaCf/yi3JpsokS+tR8jO6ivFzYVG54tsraiYQP UFSA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=GXMdAuMtbjwZDpAmBbQHPRvjx6re7tzUP0B/3FyVcTg=; b=j0bpi67nIjwIg4PEsXVJa/q5Emkx0VnOShiK4le9JbmUGqEKt/FJyZejpj0jWYqJ+X sUDE5OwpnWuUx6ecynDWdmvdL7NIOgkJnmVeMZwsjvkiaNeMaeE4Xi8kQZdG2E62M27y VfOb4mb6ScGZvgC4gjR8F4ZlsEi79tsyEs7JjPRwPFtttRG8YyJEHpq/8LvH5oSJuOzw xdx98RuAH+qRO5GYq/lTFaLOYFq2dqx0GJM2SnJxDKP/B/3/tGuC0HBevNpDZ5CvRM3P pJqli4JYFno4HkOp322HT2zUEcYbPi0qfCG+NlPcrInjmqlbhdFeHZHOIHFAILbZ9LMI AMWg==
X-Gm-Message-State: APt69E28Orsw5h5oZiARLY+zud7uHFBYJGO8XdJTQfoFAdJuXblqEmZ5 CiwS+bAV5RSCqU1KS4dnirlS+oHSFm8sPLsqJY+uAg==
X-Google-Smtp-Source: AAOMgpeORg+oqc+LaaO137uUD0u8fKzSmBtx5tWlysPMLsMGxJeOfgFjRUnzbbMi57DWJlq1bb8PbOxjNdZr3SNY4DU=
X-Received: by 2002:a2e:3613:: with SMTP id d19-v6mr6780905lja.31.1530894912550; Fri, 06 Jul 2018 09:35:12 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a19:aa46:0:0:0:0:0 with HTTP; Fri, 6 Jul 2018 09:35:11 -0700 (PDT)
In-Reply-To: <AB085A45-5498-45A1-8AED-19C86D9298CF@juniper.net>
References: <14395e68-eb71-7766-d4d2-4de0ea67681f@ericsson.com> <CABCOCHRJM5vTgTXcNircjcn6DCqK5fzW3E2rjMM6sb3A3Edz_g@mail.gmail.com> <AB085A45-5498-45A1-8AED-19C86D9298CF@juniper.net>
From: Andy Bierman <andy@yumaworks.com>
Date: Fri, 06 Jul 2018 09:35:11 -0700
Message-ID: <CABCOCHTB6AVV9omDFHvWH-vQu-9W_W-go22a3+05qY_A3dJUwQ@mail.gmail.com>
To: Kent Watsen <kwatsen@juniper.net>
Cc: Balazs Lengyel <balazs.lengyel@ericsson.com>, "netconf@ietf.org" <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000739ee00570573f6d"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/m2NlDBW5WRKSni-kD69htMhLU9I>
Subject: Re: [Netconf] netconf-binary-encoding comments
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.26
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: Fri, 06 Jul 2018 16:35:20 -0000

On Thu, Jul 5, 2018 at 10:06 AM, Kent Watsen <kwatsen@juniper.net> 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?
>
>
>

RESTCONF/HTTP has the ability to change message encoding on every message,
but I have never seen it used this way.  Client developers pick XML or JSON
as the
preferred media type (in the Accept header) and do not change it.
So the idea that a client will use XML when it expects short replies,
and use binary when it expects long replies does not make sense.
It is possible a notif-only solution is all that is needed for NETCONF.


Kent
>


Andy



>
>
>
>
>
>
> On 7/5/18, 12:07 PM, "Netconf on behalf of Andy Bierman" <
> netconf-bounces@ietf.org on behalf of 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> 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
> <Balazs.Lengyel@ericsson.com>
>
> _______________________________________________
> Netconf mailing list
> 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=>
>
>
>