Re: [core] draft-bierman-core-yid-00 open questions

Andy Bierman <andy@yumaworks.com> Wed, 24 August 2016 20:48 UTC

Return-Path: <andy@yumaworks.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 00A2012D75C for <core@ietfa.amsl.com>; Wed, 24 Aug 2016 13:48:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 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] 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 CHxFt1S_MGR7 for <core@ietfa.amsl.com>; Wed, 24 Aug 2016 13:48:18 -0700 (PDT)
Received: from mail-ua0-x233.google.com (mail-ua0-x233.google.com [IPv6:2607:f8b0:400c:c08::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 E8C4612D75A for <core@ietf.org>; Wed, 24 Aug 2016 13:48:17 -0700 (PDT)
Received: by mail-ua0-x233.google.com with SMTP id 74so50292177uau.0 for <core@ietf.org>; Wed, 24 Aug 2016 13:48:17 -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=MRA6PUsEZq6DlYZlfDPDT9eKg3NsJLIHN2NKsiJY44g=; b=tg2WpqER0eYDI+X4vhLGQsY96KXtGNlLnFn1TmgwYP+GyB+2+gXU5+7TuSUDCdfhxK o7/X8KKn5W7UHdaP+PJXjioFLZ3Rr3Mzc7uIj+iroyS3cRsDu0bfTp6Jy/4Q6xAyqiBj N9oky0gNTOErpCQ7fyctPsLzVQQajH87PO2JR6pYZF/Pfv4GwdFDdTGb19wakD5qnUs8 Obd007YjGFCdzAZ637VoRmwI3PtH2CacR/EzNEhrZl3CMMbGjDsIWYKa5Ku/Ojcz0tUQ bgYqh3l3GEWqqvl4KtJ1vYywlRhKlqVj2oynLdWuwn9fgMc9/CswL26l2s5p6apNG+2l ytEA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MRA6PUsEZq6DlYZlfDPDT9eKg3NsJLIHN2NKsiJY44g=; b=dzijnMXjJ9sPs9zLM1urW6rq3SUZNNZN8D7eG8D2Ouf8zzwGJsft4G1osFgQ2KMcNO 7+0rLeFWLr+LUFME2YhzfJfX43a4clWjKy5075QfHoT6S7dcrZNi9u9/aFygY1EVwcpW YSRekTbB5Tp5EnxEKcZqb5pu1aLh+mprI5kfIVRrhycDF/08KHFJgtQ6QaxRbnzjucmz eB6wqpRZNqTi0tEqJ11V05WzTMqYxcXDYjH0izLqL9CD/Gzqs0qpfyyUeo8L/c/b+OWm cNH1J17+fnp4fJKszYMzcP+XJZEFqyFZcG2k1FtUWHkR9wa5lfx2ld8gdOXh5wvNPSSR 3olg==
X-Gm-Message-State: AEkoouumg5v/dz7yswjzAzk5Utwotd3fmYQVB2h+cEkVUISNgxBOrDM3dpaZgReRtGECs+5VLaw++ea9XTJsrQ==
X-Received: by 10.159.40.167 with SMTP id d36mr2881033uad.55.1472071696938; Wed, 24 Aug 2016 13:48:16 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.103.4.134 with HTTP; Wed, 24 Aug 2016 13:48:16 -0700 (PDT)
In-Reply-To: <BN6PR06MB23088AB49805EAA74057FCB8FEEA0@BN6PR06MB2308.namprd06.prod.outlook.com>
References: <BN6PR06MB23088AB49805EAA74057FCB8FEEA0@BN6PR06MB2308.namprd06.prod.outlook.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Wed, 24 Aug 2016 13:48:16 -0700
Message-ID: <CABCOCHTUdywbbCSxxkFObtrXFScwifBXJLZ2arxy=Ux1UYRhNQ@mail.gmail.com>
To: Michel Veillette <Michel.Veillette@trilliantinc.com>
Content-Type: multipart/alternative; boundary="94eb2c123794948c0c053ad76669"
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/tr99djFWRpP9HH9y1LQVP4RO-zI>
Cc: "core@ietf.org WG" <core@ietf.org>
Subject: Re: [core] draft-bierman-core-yid-00 open questions
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Aug 2016 20:48:20 -0000

On Wed, Aug 24, 2016 at 9:53 AM, Michel Veillette <
Michel.Veillette@trilliantinc.com> wrote:

> Hi Andy
>
> Following if my answers to the questions listed in
> draft-bierman-core-yid-00
>
> 1) When to assign a module-id
>
> Developers should be in control of when this activity is performed based
> on the estimated amount of work required to reassign IDs (from temporary
> assigned IDs within the experimental range to the final IDs) and the
> impacts on the encoding efficiency of assigning a non stable list of YANG
> items which generate non sequential IDs. If the developer already own a
> range of YID/SID, the activity can be perform at any time.
>
> It is important to note that the registration of the resulting .sid
> file(s) is done independently of the registration of the SID range. When
> registering a SID range, the module or list of modules targeted is not
> provided. This give the full freedom to developers to assign IDs when
> needed.
>
>
I think the registration process issues are the same whether a module-id or
a range is allocated.


2) How to support private numbering
>
> A range called "Experimental" spanning both the 16 and 32 bits unsigned
> integer have been assigned to this purpose.
> https://tools.ietf.org/html/draft-somaraju-core-sid-01#section-7.1



Yes, it seems trivial to assign a range for temporary numbers.



>
>
> 3) How to combine registries
>
> Not needed, all registrars, SDO shall receive a specific range from IANA.
>


OK, so there is a tiered registration process?
And there will not be a land-grab for all the numbers?
Not clear to me how IANA approves allocation requests.



> 4) Should more YANG statements be numbered
>
> Yes
> rpc, action, notification, module, submodule, feature
>
>
Numbering submodule and feature?
These are conceptual statements within the schema language and
do not affect anything on the wire.



> 5a) How to support anyxml
>
> anyxml represents a single data node with an arbitrary content.
> This data node have a single ID assigned to it the same way as any other
> data node, nothing special is required.
>
>

    anyxml foo;


    { "foo" : {
         "bar": 42;
         "baz" "fred",
         "a-list" : [
            ....
         ]
       }
     }


So what numbers do you give to bar,, baz, a-list, etc.?
They are all numbered the same as foo?
That will be decoded with all nodes named foo, all anyxml.
The name, type, value info contained in anyxml and anydata
instances have no schema.  These nodes cannot be numbered.
This is a YANG-to-CBOR issue, not a SID issue.

But in real YANG these child nodes sometimes represent real objects
from some other module.  In this case the server may know the "hidden SID".

http://www.netconfcentral.org/modules/yuma-ncx/2013-09-23#root.554





> 5b) How to support anydata
>
> The anydata define an instance of an unspecified schema node (leaf,
> leaf-list, container, list).
> All possible schema node supported by an anydata need to be register to
> one of the .sid files.
> It is the responsibility of the developer(s) to add these SIDs to one or
> multiple .sid files manually if not already present.
> A section need to be added to the draft to clearly describe this approach.
>
> Regards,
> Michel Veillette
>
>

Andy