Re: [Netconf] activate-configured-subecription - WGLC subscribed-notifications-16

"Eric Voit (evoit)" <evoit@cisco.com> Thu, 13 September 2018 20:46 UTC

Return-Path: <evoit@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 BE0C6130E63 for <netconf@ietfa.amsl.com>; Thu, 13 Sep 2018 13:46:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.51
X-Spam-Level:
X-Spam-Status: No, score=-14.51 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, T_DKIMWL_WL_HIGH=-0.01, URIBL_BLOCKED=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 dmPnK_aCYgYb for <netconf@ietfa.amsl.com>; Thu, 13 Sep 2018 13:46:15 -0700 (PDT)
Received: from rcdn-iport-7.cisco.com (rcdn-iport-7.cisco.com [173.37.86.78]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 70905130E7C for <netconf@ietf.org>; Thu, 13 Sep 2018 13:46:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=4215; q=dns/txt; s=iport; t=1536871575; x=1538081175; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=sWC7GLrQdkRgnrAYUdY2UEt0dW1PiylXz7v772wl0Ec=; b=HNFq6oZA7mO/1PNz+9Wq+1z6BGYTz08/frw566qlModVw4keMhhkdHXZ m12415spZSn4qOmQ0Vr9xKdBF+QMO3qOH2Xxf7dQJVHC/mBN6eLosa0Bw PiNv9obpVTC1LSkQSnVsgTPC2bAYktbTLj+NCX/FGaElQrkc3t2BaGZ+7 4=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0BGAQBTy5pb/51dJa1cGgEBAQEBAgEBAQEIAQEBAYMsKmV/KAqaMXiXQAsYC4QDRgKDWCFMAQIBAQIBAQJtHAyFOAEBAQECAQEBODQJBwsCAQgOBxARECcLJQIEARIIgk5MgXkID6c6igYFimgXgUE/gRKCFEk1gxsBAYFLhW4CiAuFQ45YCQKQBh+BQY1CiFOLOQIRFIElNCGBVXAVO4Jsgk2ISIU+b40DgR4BAQ
X-IronPort-AV: E=Sophos;i="5.53,370,1531785600"; d="scan'208";a="448818802"
Received: from rcdn-core-6.cisco.com ([173.37.93.157]) by rcdn-iport-7.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Sep 2018 20:46:08 +0000
Received: from XCH-RTP-014.cisco.com (xch-rtp-014.cisco.com [64.101.220.154]) by rcdn-core-6.cisco.com (8.15.2/8.15.2) with ESMTPS id w8DKk8g1028733 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 13 Sep 2018 20:46:08 GMT
Received: from xch-rtp-013.cisco.com (64.101.220.153) by XCH-RTP-014.cisco.com (64.101.220.154) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 13 Sep 2018 16:46:07 -0400
Received: from xch-rtp-013.cisco.com ([64.101.220.153]) by XCH-RTP-013.cisco.com ([64.101.220.153]) with mapi id 15.00.1395.000; Thu, 13 Sep 2018 16:46:07 -0400
From: "Eric Voit (evoit)" <evoit@cisco.com>
To: Martin Bjorklund <mbj@tail-f.com>, "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: [Netconf] activate-configured-subecription - WGLC subscribed-notifications-16
Thread-Index: AQHUSpBZpYtwPWXE1k2ur9Y/QhScQaTs+hAA
Date: Thu, 13 Sep 2018 20:46:07 +0000
Message-ID: <fb98c4a4885c43978ebd804b3eaafec3@XCH-RTP-013.cisco.com>
References: <20180912.140109.1250692833398495223.mbj@tail-f.com>
In-Reply-To: <20180912.140109.1250692833398495223.mbj@tail-f.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.118.56.234]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Outbound-SMTP-Client: 64.101.220.154, xch-rtp-014.cisco.com
X-Outbound-Node: rcdn-core-6.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/xcAIdDA7oAX8KsUTSHtruOFGxcU>
Subject: Re: [Netconf] activate-configured-subecription - WGLC subscribed-notifications-16
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
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, 13 Sep 2018 20:46:18 -0000

Hi Martin,

> From: Martin Bjorklund, September 12, 2018 8:01 AM
> 
> Hi,
> 
> I forgot one thing in my review, that has been discussed (slightly
> off-topic) in the thread "netconf call home connection type".
> 
> The SN draft (implicitly) assumes that for dynamic subscriptions, after a
> successful "establish-subscription" operation, notification messages can start
> to flow to the client.
> 
> The exact mechanism for this is transport-protocol-dependent.
> 
> For NETCONF, the netconf-notif draft will need to update RFC 6241, since 6241
> refers to 5277 which says that a <notification> message can only be sent after a
> successful "create-subscription".  netconf-notif updates this to allow
> <notification> messages to also be sent after a succsessful "establish-
> subscription".

Thanks.  I have included this as a note to the RFC Editor within NETCONF-Notif.

> For RESTCONF, the restconf-notif draft defines a new mechanism for how
> notifications are delivered; instead of locating the SSE resource url from the
> "streams" in "ietf-restconf-monitoring", this draft now augments a location leaf
> to the output of "establish-subscription".
> (It probably doesn't have to update 8040, but *maybe* the mechanism in
> 8040 ought to be deprecated)
> 
> 
> For configured subscriptions however, the SN draft doesn't specify how the
> flow of notifications should start.  One view is that this is transport-protocol-
> specific.

Yes, protocol specific is what has been assumed for the current draft set.  

> However, I think that for all RPC-based transport-protocols (currently
> NETCONF and RESTCONF) it makes sense to have a common way to get the
> notifications to be sent. 

Perhaps something will be needed for NETCONF.  But for configured RESTCONF subscriptions, RESTCONF-Notif has been assuming that RESTCONF not be used.  Instead raw HTTP2 with the Publisher being the HTTP client and the receiver the HTTP server seems cleaner.  And the HTTP server need not respond with an 'ok' to a "subscription-started" unless it is ready to accept event records.  So I think there are open questions on the best way to do HTTP configured transport.

> Hence I suggest that this draft adds a new rpc
> operation "activate-configured-subscription" (better name anyone?). This rpc
> would be invoked by the client after a call home to start the flow of configured
> subscriptions.  If there are no such subscriptions or the session is not a call
> home session and error would be returned.
>
> We might define non-RPC-based transport protocols for configured
> subscriptions in the future.  Such a protocol can obviously not use this rpc, but
> OTOH it can't use establish-subscription either.  I think this is ok.

Perhaps this could be useful.  But it would be great wherever possible if we can avoid receiver RPCs as a mandatory element of the establishment flow with a configured publisher.  So I believe we should investigate further on this for NETCONF configured in the coming months.   If it does turn out useful, I would like to see more than NETCONF potentially make use of the RPC before generalizing to the SN level.
 
> With such an RPC, netconf-notif would udate 6241 to say that <notification>
> messages can be sent after a succsessful "establish-subscription" or "activate-
> configured-subscription" rpc.
> 
> And with such an RPC, restconf-notif can support configured subscriptions over
> proper RESTCONF; it would augment a "location" leaf to the output of activate-
> configured-subscription, which would contain the URL to the event flow, so
> that it works just like dynamic subscriptions.
>
> If we don't add this RPC to the SN draft, each protocol draft will have to define
> its own version of this operation.

Defining something local to a protocol might be ok until we get some clarity on the generality of this issue.

Eric

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