Re: [Netconf] two-week review of drafts related to notifications and subscriptions

Robert Wilton <rwilton@cisco.com> Thu, 19 October 2017 15:06 UTC

Return-Path: <rwilton@cisco.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 9EAC0134932 for <netconf@ietfa.amsl.com>; Thu, 19 Oct 2017 08:06:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.501
X-Spam-Level:
X-Spam-Status: No, score=-14.501 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.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 2Cbyc3XY758T for <netconf@ietfa.amsl.com>; Thu, 19 Oct 2017 08:06:37 -0700 (PDT)
Received: from aer-iport-1.cisco.com (aer-iport-1.cisco.com [173.38.203.51]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B447F12421A for <netconf@ietf.org>; Thu, 19 Oct 2017 08:06:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=8250; q=dns/txt; s=iport; t=1508425596; x=1509635196; h=subject:to:references:from:message-id:date:mime-version: in-reply-to:content-transfer-encoding; bh=H4cr0BYuhtWchf0iKwewBRN6yseZECqSFvttK455x/E=; b=eoOXOzt6rEenDJUvUYQT+C8pPTMSP2QD/OEtYb8C/3ntEztGUJWw9VWX mfJKICibA263jVOJDoqsCvz1J2acfewzs6hSSmhVVPblc6EFjpI2AQ/EO S+9qffZI1l4avp3lgNjWOoZh+C1F3FdW4wrp4wqZlqYg6h2c0dfnZvx4b s=;
X-IronPort-AV: E=Sophos;i="5.43,402,1503360000"; d="scan'208";a="698112171"
Received: from aer-iport-nat.cisco.com (HELO aer-core-2.cisco.com) ([173.38.203.22]) by aer-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Oct 2017 15:06:35 +0000
Received: from [10.63.23.135] (dhcp-ensft1-uk-vla370-10-63-23-135.cisco.com [10.63.23.135]) by aer-core-2.cisco.com (8.14.5/8.14.5) with ESMTP id v9JF6YF7032407; Thu, 19 Oct 2017 15:06:34 GMT
To: Alexander Clemm <alexander.clemm@huawei.com>, "Eric Voit (evoit)" <evoit@cisco.com>, Kent Watsen <kwatsen@juniper.net>, "netconf@ietf.org" <netconf@ietf.org>
References: <0D0B1C51-DF88-4CC5-8019-B25E2B0C1DB0@juniper.net> <facd150c-e675-e12f-6d35-4648a882a7da@cisco.com> <95f989bd69df42328a153d7a0401bca9@XCH-RTP-013.cisco.com> <644DA50AFA8C314EA9BDDAC83BD38A2E0EAB72E2@sjceml521-mbx.china.huawei.com>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <1afe97e4-00b5-a3eb-811e-f96af56474d5@cisco.com>
Date: Thu, 19 Oct 2017 16:06:34 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
MIME-Version: 1.0
In-Reply-To: <644DA50AFA8C314EA9BDDAC83BD38A2E0EAB72E2@sjceml521-mbx.china.huawei.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/V9ZazeJTiqtFujJXZrOgS3zCR4E>
Subject: Re: [Netconf] two-week review of drafts related to notifications and subscriptions
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.22
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: Thu, 19 Oct 2017 15:06:44 -0000

Hi Alex,

On 18/10/2017 21:35, Alexander Clemm wrote:
> Hi Rob,
>
> Thanks for your response!  Two quick comments to add on to Eric's:
>
> Regarding ordering of the work: IMHO, we shouldn't serialize this work but try to advance subscribed-notifications, yang-push, and netconf-notifications at the same time.  This work was already started three years ago with yang-push, from where the work was broken out and modularized into the current pieces (with some new pieces added, of course), and I think it is really time to bring it to a closure .
OK, serializing the work might be expressing this the wrong way.

If there any possibility that the notification format might impact the 
subscriber or YANG push configuration?  E.g. the encoding of the 
subscription identifier could affect what the associated configuration 
model looks like.

If so, then it feels like spending a couple months with the WG trying to 
nail down the notification format would be a good idea. Then the 
subscription and YANG push drafts could formally depend on the new 
notification format.

>    
>
> Regarding notifications and notification bundles, I think it is a worthwhile optimization to address individual notifications (vs notification bundles containing just one notification), given that the bundle comes with some overhead.  But of course you are correct in that the single notification can be considered a special case and be addressed just by a notification bundle, and ultimately it would be up to servers to decide what to do (if they have only a single notification to send).
I still don't entirely get this :-).

The device is generating an unbounded stream of notifications.  Most of 
the key information related to the notification (such as a timestamp, 
subscription id, msg contents) should be in the notification structure 
itself.  Ideally, you normally want the device to send the notification 
as soon as it can (but other traffic/latency may slow this down).

If the notifications are being sent to a client on something like a 
buffered TCP connection, then I would think that you would just write 
the encoded notification structures directly to the TCP steam.  I.e. 
presumably without any extra message header fields (back to wanting to 
keep the messages small).

Conversely, if the notifications are being sent over something more like 
UDP then I would assume that you may want to pack multiple notifications 
into a single packet, and add extra fields to detect lost notifications.

Thanks,
Rob


>
> Thanks
> --- Alex
>
>> -----Original Message-----
>> From: Netconf [mailto:netconf-bounces@ietf.org] On Behalf Of Eric Voit
>> (evoit)
>> Sent: Wednesday, October 18, 2017 12:13 PM
>> To: Robert Wilton -X (rwilton - ENSOFT LIMITED at Cisco)
>> <rwilton@cisco.com>; Kent Watsen <kwatsen@juniper.net>;
>> netconf@ietf.org
>> Subject: Re: [Netconf] two-week review of drafts related to notifications and
>> subscriptions
>>
>> Hi Robert,
>>
>> Thanks for the review.  Some thoughts in-line...
>>
>>> From: Robert Wilton, October 18, 2017 1:15 PM
>>>
>>> Hi,
>>>
>>> I've not had a chance to review all of these drafts yet, but I did look at both:
>>> draft-voit-netconf-subscription-and-notif-overview-00 and
>>> draft-ietf-netconf- notification-messages.
>>>
>>> My high level comments are below:
>>>
>>> It is unclear to me whether the plan is to publish
>>> subscription-and-notif- overview or not?  Having an overview document
>>> that binds the technologies together could be quite useful (in fact
>>> some of the background, and definitions could move to an overview
>>> draft, but I think that this intro draft could do with further work before
>> going to WG LC.
>>
>> I have not been thinking of progressing this overview document into a WG
>> draft.  The main reason is that several highly placed members of the IETF
>> have expressed that they don't want to see a proliferation of generalized
>> architecture context documents.  With Kent's assistance, I have been trying
>> to straddle this line.
>>
>>> The other question I had was relating to the ordering of this work. I
>>> understand the strong desire the get this work completed, but I do
>>> wonder whether the drafts would all be able to sit together more
>>> coherently if the work on draft-ietf-netconf-notification-messages was
>>> completed first, then the other drafts could presumably more cleanly
>>> depend on the new notification message format.
>> There is still a lot of longer-term work which needs to be done on
>> notification-messages.  Once the format stabilizes, we will be going through
>> each header object to determine its proper articulation.  Objects like
>> signature are about to get contributions on this doc.  Items like attestation of
>> the contents of the messages (as well as alignment with attestation of
>> information returned from a GET) could also take some time.
>>
>> And there are short term drivers which suggest we should close on some
>> form of yang-push over NETCONF at least.  For example, at the last IETF,
>> there was already some inter-vendor work at the Hackathon looking at
>> interoperability.  Also there exist several open source implementations of a
>> Subscriber client.  My hope is we just close now on that context, and let the
>> rest await the availability of notification-messages.
>>
>>> Regarding the notification message format itself: I wasn't quite sure
>>> if there needs to be a split between a bundled and unbundled message,
>>> in that it seems that having a single message format might be easier, e.g.
>>> by always using the bundled message format.
>>>
>>> But then I was also questioning that if the messages are being streamed
>> (e.g.
>>> over TCP) then possibly you don't want to include all of the header
>>> information, in that it is presumably desirable to keep the streamed
>>> messages as compact as possible.  I think that there is probably a bit
>>> of the bigger picture that I'm still missing.
>> Yes, going to one message can be done.  But as you point out It adds
>> overhead especially to smaller high frequency messages.  The other
>> complexity with bundled messages is the publisher needs to determine
>> exactly what should be placed in each bundle.  This might not seem to be an
>> issue, but what if some elements of the bundle need to be signed, and
>> others do not.   What should be the behavior?
>>
>> In the end, if the IoT guys don't have an issue with efficiency (where this
>> seems to matter most), we could collapse to one.  (it is discussions like this
>> which need to stew for a while before we can close on notification-
>> messages.)
>>
>> Eric
>>
>>> Thanks,
>>> Rob
>>>
>>>
>>> On 04/10/2017 22:24, Kent Watsen wrote:
>>>> We’d like to direct the WG attention to the set of drafts related to
>>> notifications and subscriptions, with the goal of getting a pulse on
>>> if the WG thinks they are ready to progress now.
>>>> To enable you get an overview and to see how the documents relate to
>>>> each
>>> other, this draft is a good place to start:
>>> https://tools.ietf.org/html/draft-voit-
>>> netconf-subscription-and-notif-overview-00.
>>>> The drafts related to this review are:
>>>>      -  draft-ietf-netconf-subscribed-notifications
>>>>      -  draft-ietf-netconf-yang-push
>>>>      -  draft-ietf-netconf-netconf-event-notifications
>>>>      -  draft-ietf-netconf-restconf-notif
>>>>      -  draft-ietf-netconf-notification-messages
>>>>
>>>> While this is not an official WGLC, we will issue one if the
>>>> response is
>>> positive. Please provide comments within two weeks.
>>>> Thanks,
>>>> Mahesh and Kent
>>>>
>>>>
>>>> _______________________________________________
>>>> 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 mailing list
>> Netconf@ietf.org
>> https://www.ietf.org/mailman/listinfo/netconf