Re: [Netconf] subscription-id management across applications

"Eric Voit (evoit)" <evoit@cisco.com> Tue, 10 July 2018 00:39 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 CFDFA12F1AB for <netconf@ietfa.amsl.com>; Mon, 9 Jul 2018 17:39:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.509
X-Spam-Level:
X-Spam-Status: No, score=-14.509 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, 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 Nq4z_yAmkzSi for <netconf@ietfa.amsl.com>; Mon, 9 Jul 2018 17:39:35 -0700 (PDT)
Received: from alln-iport-7.cisco.com (alln-iport-7.cisco.com [173.37.142.94]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F0682130EB0 for <netconf@ietf.org>; Mon, 9 Jul 2018 17:39:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=21596; q=dns/txt; s=iport; t=1531183174; x=1532392774; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=W2y2CKajGcuG4ggKf1cHar8T4xx/+uqW/hCTk3ARuPw=; b=eW+EnKA2SuGmjIazDXhrdoEz/8jNLtM69QRoOM8ajsJzsH7sarQF53pk +unNKH3LTNALzCyDv9wS84SiNgTEO+lVmAYOZWlQ5F78MK6a/LEwzv3fK dxGnfnVFCPXand+b5tWQDk2tseeOiuTyE31oUWI0JUhJtf05NssviyfUC E=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0DmAAB7/0Nb/4UNJK1ZAxkBAQEBAQEBAQEBAQEHAQEBAQGCU0wqYn8oCoNwiASMNYIHkCSFDoF6CxgBCoMScUYCF4IuITQYAQIBAQIBAQJtHAyFNgEBAQEDAQEhCkELDgICAQgQBQMNGgMCAgIZDAsUEQIEDgUIgk1MgRtkD6kvghyITIE1BQWIaYFWP4QegVSBRAEBgUokCQoVEYI6glUCkWqHZQkChgaJFIFKhA6IDYo4hzECERMBgSQdOIFScBU7gmmGADOEYYU+b41jgRoBAQ
X-IronPort-AV: E=Sophos;i="5.51,332,1526342400"; d="scan'208,217";a="140186874"
Received: from alln-core-11.cisco.com ([173.36.13.133]) by alln-iport-7.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jul 2018 00:39:33 +0000
Received: from XCH-RTP-009.cisco.com (xch-rtp-009.cisco.com [64.101.220.149]) by alln-core-11.cisco.com (8.14.5/8.14.5) with ESMTP id w6A0dWLN001542 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 10 Jul 2018 00:39:33 GMT
Received: from xch-rtp-013.cisco.com (64.101.220.153) by XCH-RTP-009.cisco.com (64.101.220.149) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Mon, 9 Jul 2018 20:39:32 -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.1320.000; Mon, 9 Jul 2018 20:39:32 -0400
From: "Eric Voit (evoit)" <evoit@cisco.com>
To: Andy Bierman <andy@yumaworks.com>, "Robert Wilton -X (rwilton - ENSOFT LIMITED at Cisco)" <rwilton@cisco.com>
CC: Netconf <netconf@ietf.org>
Thread-Topic: [Netconf] subscription-id management across applications
Thread-Index: AQHUF5/APYUdQOKGUE6aKli9l6yD26SHWHQAgAAAtoCAAAQ6gIAAClSAgAAxsRA=
Date: Tue, 10 Jul 2018 00:39:31 +0000
Message-ID: <7843fdaf4b504cb8a61ecd60c34843f5@XCH-RTP-013.cisco.com>
References: <CABCOCHTuSSKeoUwMBDRwtrQCfXD29xqM+n7xNtaNFMbZrE6Cjg@mail.gmail.com> <20180709163144.x3ltgh7spzbz26km@anna.jacobs.jacobs-university.de> <CABCOCHStZfsAPWN0sgTP_zcvSbhHU4832C_BvRjTYCFO_3aObg@mail.gmail.com> <19b8635d-5a2d-f032-1341-8b6493c50c18@cisco.com> <CABCOCHSrhWVVrjExGLF7YW9pxEJLMc65APNkbdwDsEMs9xGOAg@mail.gmail.com>
In-Reply-To: <CABCOCHSrhWVVrjExGLF7YW9pxEJLMc65APNkbdwDsEMs9xGOAg@mail.gmail.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.32.173.61]
Content-Type: multipart/alternative; boundary="_000_7843fdaf4b504cb8a61ecd60c34843f5XCHRTP013ciscocom_"
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/93vCBBVuc2EYhpIb6qkbWcjAvKQ>
Subject: Re: [Netconf] subscription-id management across applications
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:39:37 -0000


From: Andy Bierman,  July 9, 2018 1:26 PM

On Mon, Jul 9, 2018 at 9:49 AM, Robert Wilton <rwilton@cisco.com<mailto:rwilton@cisco.com>> wrote:

On 09/07/2018 17:34, Andy Bierman wrote:


On Mon, Jul 9, 2018 at 9:31 AM, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de<mailto:j..schoenwaelder@jacobs-university.de>> wrote:
On Mon, Jul 09, 2018 at 09:12:57AM -0700, Andy Bierman wrote:
> Hi,
>
> The configured subscriptions use a uint32 subscription-id.
> There is text in 5.2 about splitting the range for dynamic and configured
> subscriptions:
>
>    To support deployments including both configured and dynamic
>    subscriptions, it is recommended to split subscription identifiers
>    into static and dynamic halves.  That way it eliminates the
>    possibility of collisions if the configured subscriptions attempt to
>    set a subscription-id which might have already been dynamically
>    allocated.  A best practice is to use lower half the "identifier"
>    object's integer space when that "identifier" is assigned by an
>    external entity (such as with a configured subscription).  This
>    leaves the upper half of subscription identifiers available to be
>    dynamically assigned by the publisher.

Why would a server accept a dynamic subscription that clashes with
a configured subscription?

I don't think it would.
The issue is how applications share the range allocated for configured subscriptions.
... which is the reason why I was arguing for string based ids for configured subscriptions.

Humans seemingly find it easier to give unique names to things instead of unique numbers.  And if they want to use the string representation of numbers as unique names, well that also works.


+1

Given the incredibly long node names used in this YANG module, it's not as if any
attempt to reduce the payload size is being made, so it seems especially odd
that subscription-id size should be a factor.  The string representation of the
randomly generated 31 bit number is likely to be as long as a not-random string
selected by the application.

<Eric>  There are certainly good arguments for different approaches here.   To see a summary of the extensive WG analysis from last year here, check out:
https://github.com/netconf-wg/rfc5277bis/issues/6
Note: I don’t see in the thread request above to re-open this issue.  If that is not the case, please chime in.

Also on Andy’s point about long node names:
(a) From the beginning it has been assumed that in places where payload size is an issue, an efficient (non-text) encoding would be used.
(b) Almost all the event payload will be due to the contents of the encapsulated notifications.

Eric


Perhaps someone need to standardize the equivalent of DNS for subscription ids ;-)

Thanks,
Rob


Andy



/js

Andy

--
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<mailto:Netconf@ietf.org>

https://www.ietf.org/mailman/listinfo/netconf<https://www..ietf.org/mailman/listinfo/netconf>