Re: [core] draft-ietf-core-sid-00, SID allocation

Andy Bierman <andy@yumaworks.com> Mon, 14 November 2016 17:12 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 044FF129891 for <core@ietfa.amsl.com>; Mon, 14 Nov 2016 09:12:06 -0800 (PST)
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 p5jwTt6E-arP for <core@ietfa.amsl.com>; Mon, 14 Nov 2016 09:12:04 -0800 (PST)
Received: from mail-ua0-x234.google.com (mail-ua0-x234.google.com [IPv6:2607:f8b0:400c:c08::234]) (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 04C33129546 for <core@ietf.org>; Mon, 14 Nov 2016 09:12:04 -0800 (PST)
Received: by mail-ua0-x234.google.com with SMTP id 51so67607584uai.1 for <core@ietf.org>; Mon, 14 Nov 2016 09:12:03 -0800 (PST)
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=P62R/9T8zOUjqd7uy5WKFGqoAzhEt10fPx3VTS5481g=; b=zSpNGsSJ7voBTqsnqijaG8FXbekynWaFOw5KO6CtCZcyfuUQOPqc5IcVVekrIBKcX+ eswcVsUV1PLATS1WjGUPP1ZUqufwFgEr6HVPAmb+Oc6lsTfaLPDEBziy5IDgNCA0aIlA Va5/Eabi/w1E9p+eC1/MjHD2Z9+EfGD6Hr8US6oVA6qLtY39Lugv+FDi7dHvzAf3UjRX atH85EfFeIyWFwnmI00rt8D7rMhQ9FR+jwjYGEZ3nLsUzXItuT7+z6/iTs2ei97eE04l yQN8uB4uj6zMhdoAHQdFYk7PDbc+IrCXS7w6jlwfNKQvjuNtVF8XJRAwYIIhArrhTtxS K8Jw==
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=P62R/9T8zOUjqd7uy5WKFGqoAzhEt10fPx3VTS5481g=; b=Y6r+O+7ebGASFg9FvavTxWlEdtRKb8r8mLBS76OSVPB3EXn5saQx8uLbD+W877S8zC uxukTLrl1tytIOR/ZSjEAbTjlP3TDrnc8RP/ozB5ktkn9OwuSvi6muUmcjVKUCMphFDl ztRoYr7H6SOsMzqxN6NXJ8sBQ3b1eXKl2wHzdxQDuarPrwlkumgNpIKHYdI22o4p47XP hOqL3PEPUjHuyPLZauQb/fluDI517TJDjTXCkFnxcJ6rpWT2rMEfFWED1AjX48GHgUwZ a6w03F0MuX0S3X1fbio43tlpzENqSTrVEYklr76PSs1v4BxRicGM7WlKko81YH5uv1/w Snlw==
X-Gm-Message-State: ABUngveWNlY4tZ30qa17eHxygDPyhj+mYiafoCUKz36wnILMgGEXvtqAXi7rdqduxDd6gprBWbwafJgjp5u0Sg==
X-Received: by 10.159.39.7 with SMTP id a7mr8872274uaa.95.1479143523054; Mon, 14 Nov 2016 09:12:03 -0800 (PST)
MIME-Version: 1.0
Received: by 10.103.64.129 with HTTP; Mon, 14 Nov 2016 09:12:02 -0800 (PST)
In-Reply-To: <BN6PR06MB230804ACCD67ABD30F9D966FFEBC0@BN6PR06MB2308.namprd06.prod.outlook.com>
References: <c39b5765e0554a4832f59395fb481a34@xs4all.nl> <BN6PR06MB230804ACCD67ABD30F9D966FFEBC0@BN6PR06MB2308.namprd06.prod.outlook.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Mon, 14 Nov 2016 09:12:02 -0800
Message-ID: <CABCOCHTDr=hNRhZ4KeZzsv0VsRTpSgCzXVFdWsc5BXQ0FVx+yA@mail.gmail.com>
To: Michel Veillette <Michel.Veillette@trilliantinc.com>
Content-Type: multipart/alternative; boundary="94eb2c1244f6438ae2054145f04f"
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/IOfAA2YYMqk6yfH2-kEvEDYuj2M>
Cc: Core <core@ietf.org>
Subject: Re: [core] draft-ietf-core-sid-00, SID allocation
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: Mon, 14 Nov 2016 17:12:06 -0000

On Mon, Nov 14, 2016 at 8:27 AM, Michel Veillette <
Michel.Veillette@trilliantinc.com> wrote:

> Hi Peter.
>
> The allocation by range have been introduced to simplify the life of SDOs,
> not to make their life more difficult.
> With your proposal, the SDO must interact with IANA for each module
> created.
> With the allocation by ranges, the allocated range can be large enough to
> allow the SDO to be autonomous for multiple years of development, for dozen
> of modules.
>
>
The interpretation of the number is completely independent of the
allocation of the number.  One could allocate a block of module IDs
just as easily as a block of object IDs.

The disconnect here is the number of available IDs vs. the number of
IDs needed.  You seem to think this is a precious resource.  I do not.


Andy


> Updating the different drafts to identify YANG items using (module ID,
> module item ID) is possible, but not with some impacts on message size and
> complexity.
>
> Regards,
> Michel
>
> -----Original Message-----
> From: core [mailto:core-bounces@ietf.org] On Behalf Of peter van der Stok
> Sent: Sunday, November 13, 2016 7:13 PM
> To: Core <core@ietf.org>
> Subject: [core] draft-ietf-core-sid-00, SID allocation
>
> Dear YANG-SID authors,
>
> I want to propose a change to the allocation of SIDs.
> Currently, the SIDs are divided in ranges and prospective users can
> register a range with IANA.
> When the range is already assigned, they need to select a new not
> allocated range.
> I think that this will discourage many future SDOs who may want to use
> YANG + COMI. Many of these SDOs like to figure out the best number
> structure for their uses, and will be very disappointed when they cannot
> acquire the range. Actually, I believe, they will abandon the use of YANG +
> COMI.
>
> My proposal is to assign numbers to modules, and let IANA handle the
> module number registration as proposed for the SIDs. The assignment of SIDs
> to YANG identifiers, as proposed in the draft remains, the same.
> The difference is the complete freedom to choose the SIDs in any given
> module. The advantage is that all modules can pick their values from the
> small number range.
>
> The change is in the discovery and the structure of the resource path.
> In COMI I want to define another resource type called YANG module with
> name core.c.module. The discovery will return the path:
> /prefix/module-number-in-binary64. For example, with an empty prefix and
> for module 32, discovery will return /g. To retrieve a specific YANG
> instance with numeric identifier sid in module 32, the statement GET coap/
> example.com/g/sid will do. With two characters, modules with numbers <
> 4096 are covered; probably 3 characters will cover all modules.  Given that
> the SIDs are small, the total URI size will not increase due to this
> modification.
>
> When the full datastore is accessed, the path /c is currently used. We can
> reserve c, meaning module number 28 is already assigned. Another method is
> returning a long path name, such as /whole_store. The size of the related
> URI is not important in this case. However, the proposed module allocation
> necessitates a small modification to the CBOR representation of the
> contents of the full datastore. This is attained by representing the full
> datastore as a CBOR map containing (key, value) pairs, where key is the
> module number and value is the content of the module as specified in
> yang-cbor document.
>
> For the PATCH and the FETCH methods, this representation will also work,
> given the content-formats that are currently looked at.
>
> I hope you like my proposal. The advantage is a simpler IANA
> administration, SID allocation freedom within a module, and shorter SIDs.
> The disadvantage is a slight complexity increase in the CBOR representation
> of the full datastore.
>
> Hope this helps,
>
> Peter
>
>
> --
> Peter van der Stok
> vanderstok consultancy
> mailto: consultancy@vanderstok.org
> www: www.vanderstok.org
> tel NL: +31(0)492474673     F: +33(0)966015248
>
> _______________________________________________
> core mailing list
> core@ietf.org
> https://www.ietf.org/mailman/listinfo/core
>
> _______________________________________________
> core mailing list
> core@ietf.org
> https://www.ietf.org/mailman/listinfo/core
>