Re: [Netconf] subscription-id management across applications

Andy Bierman <andy@yumaworks.com> Mon, 09 July 2018 17:26 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 04C1113104A for <netconf@ietfa.amsl.com>; Mon, 9 Jul 2018 10:26:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] 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 ci7pCCjZUHaY for <netconf@ietfa.amsl.com>; Mon, 9 Jul 2018 10:26:26 -0700 (PDT)
Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) (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 20A69131038 for <netconf@ietf.org>; Mon, 9 Jul 2018 10:26:26 -0700 (PDT)
Received: by mail-lj1-x233.google.com with SMTP id p10-v6so9264325ljg.2 for <netconf@ietf.org>; Mon, 09 Jul 2018 10:26:26 -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=hwScsQmXnRu8Q6tuOmEE/euIVxpR/7mXRVHx7RHbfT8=; b=0SJl9DH8J+I1ODk4L2TOIoa1xEQoWHrB4sJ15tTggA2hXa92Z9oqXGwZ63sr5vcFey uOflUBsGk/mnQMNzagrI7zUhIQ4OCqjY0NKEwBqcLYl5/nwqHsm5+u1PvJq7Lm75XkY0 sAFQ0FCAk07NetE8PHEmJlVNAP1NfGmsOVspxPH46+pInntovh9R0/Hj8pZzr370w+No hAU1kXDM5t076FYmaA77Oc6nSYkue9Q8ly8sruu63fHKZ2M4/+cz6y/heFkDXYMA5B9y KUJZKbTHxbldPqhCy5PIs3OzXYj5MMsm4RfzSj5FsE6GD2Xs8JxAo7ebD1jMb9UllbMZ k5sQ==
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=hwScsQmXnRu8Q6tuOmEE/euIVxpR/7mXRVHx7RHbfT8=; b=lDiPrjnVjsL+XUaBNzjSIupuB0AfOvYA2HBZnPppqsg8SrFKnig1mq7e2E4lLh0I0U zRKLY1CRdvz6drJ9qhAIiDwVMpLtIZI2mCelLduYNzcY4TbwCF7+14dc+w6Rz5100Qf3 tA8/spJH7Me7L5ZP5VHrrYXGO+aV69sdhugIVGHsQNDkKYyF58a+tNYMIgPNCgPsvnf/ jrjTFmd2r6QsLJsAMWbMCGd2HNKy0MO2si4nSq9Nd9UpAh+D2gPnmydFDOLYSc59BapB 9Zk5zK82oInvkcBwCP7jxlCR6wlz8J6mst95s4SWfCNkr9TlX1ybOUKirg4Rvj6yJZf1 wL8w==
X-Gm-Message-State: AOUpUlF0Ebfs0X0DD4CNVXSMrJqz1O0GlJBpoUS4uqaLqs9rebfRN3it ayA/Yg0prnON0QLyGKfTWZRwc07M7a1ZXeT/F+TgJQ==
X-Google-Smtp-Source: AAOMgpfP6KPVJT95E4RFlrfpGzJhTjj3NirEZ9Vfs1dI3iCg2QJcho9Yduh7mFR5NFdoHLfOf8tpAcEj3U+D0/XCTfg=
X-Received: by 2002:a2e:3611:: with SMTP id d17-v6mr4825930lja.31.1531157184196; Mon, 09 Jul 2018 10:26:24 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a19:aa46:0:0:0:0:0 with HTTP; Mon, 9 Jul 2018 10:26:23 -0700 (PDT)
In-Reply-To: <19b8635d-5a2d-f032-1341-8b6493c50c18@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>
From: Andy Bierman <andy@yumaworks.com>
Date: Mon, 09 Jul 2018 10:26:23 -0700
Message-ID: <CABCOCHSrhWVVrjExGLF7YW9pxEJLMc65APNkbdwDsEMs9xGOAg@mail.gmail.com>
To: Robert Wilton <rwilton@cisco.com>
Cc: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, Netconf <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000000f48190570945051"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/N79t_acpdQHlkJCpRahG6eOfoU0>
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: Mon, 09 Jul 2018 17:26:30 -0000

On Mon, Jul 9, 2018 at 9:49 AM, Robert Wilton <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> 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.



>
> 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 listNetconf@ietf.orghttps://www.ietf.org/mailman/listinfo/netconf
>
>
>