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

Michel Veillette <Michel.Veillette@trilliantinc.com> Mon, 14 November 2016 20:47 UTC

Return-Path: <Michel.Veillette@trilliantinc.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 398EF129618 for <core@ietfa.amsl.com>; Mon, 14 Nov 2016 12:47:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.921
X-Spam-Level:
X-Spam-Status: No, score=-1.921 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=trilliant.onmicrosoft.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 8VaYIbAFnzZD for <core@ietfa.amsl.com>; Mon, 14 Nov 2016 12:47:14 -0800 (PST)
Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0103.outbound.protection.outlook.com [104.47.34.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 49073129606 for <core@ietf.org>; Mon, 14 Nov 2016 12:47:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Trilliant.onmicrosoft.com; s=selector1-trilliantinc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=IJ5Ev47b+g7nEJ8VJ45DjgVdxU7EZ9u4r1E9MTvG73w=; b=ZDQ32NpEtdpD6GWZqNI12HuNLqkriWRx37eWHPpcKmuvFCoN/Cl9aduHDuqRjZIScL42RsKz9NDBm6IEErIXVySa3W7NcsmJWmDy59yCfLifTw8qv1wl8pywrbQGT24HkgJ9qsTPx/Aq0svG4zhVa9zfnpADEhn6DpcIifkZySw=
Received: from BN6PR06MB2308.namprd06.prod.outlook.com (10.173.19.139) by BN6PR06MB2308.namprd06.prod.outlook.com (10.173.19.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.721.10; Mon, 14 Nov 2016 20:47:09 +0000
Received: from BN6PR06MB2308.namprd06.prod.outlook.com ([10.173.19.139]) by BN6PR06MB2308.namprd06.prod.outlook.com ([10.173.19.139]) with mapi id 15.01.0721.010; Mon, 14 Nov 2016 20:47:09 +0000
From: Michel Veillette <Michel.Veillette@trilliantinc.com>
To: Andy Bierman <andy@yumaworks.com>, Alexander Pelov <a@ackl.io>
Thread-Topic: [core] draft-ietf-core-sid-00, SID allocation
Thread-Index: AQHSPgvqKuwFK38feES63NsOWHStz6DXrZsAgAAHuwCAAAPMgIAA+fdA
Date: Mon, 14 Nov 2016 20:47:09 +0000
Message-ID: <BN6PR06MB2308A16ECB9F361854D15631FEBC0@BN6PR06MB2308.namprd06.prod.outlook.com>
References: <c39b5765e0554a4832f59395fb481a34@xs4all.nl> <CABCOCHQKSi452RYKUhMu8ncR+WxGmMMLDGp7oJi9R9RmEnN6VQ@mail.gmail.com> <06C875DF-54BE-49AD-AAAA-FD7C9E80361A@ackl.io> <CABCOCHR7v-OrHYJL+67aQ2Ndwew6p7H_4tt0_fvg5Xo3yok9xg@mail.gmail.com>
In-Reply-To: <CABCOCHR7v-OrHYJL+67aQ2Ndwew6p7H_4tt0_fvg5Xo3yok9xg@mail.gmail.com>
Accept-Language: fr-CA, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michel.Veillette@trilliantinc.com;
x-originating-ip: [207.96.192.122]
x-microsoft-exchange-diagnostics: 1; BN6PR06MB2308; 7:g9tS1AAYJSxXQ65xX/Cg3f/AfX/4Alx2WHljiKAZpYSoQ4L0+OKBAIJyRTuzsktfSBnNXNgkxfVqF8Gou3fz0Zaz2MMDCl1+XNqVQ9yq+7crzRS2RPSp3NJCXuhnwaSuofRsFS6+DMGxdiw+2G6ZGCqWpQ//yXltK5TNeek7yuTJ77KIqVHpbl1y5QbibKQO2w13VS5RbYp1qCb5sTu3c8oCXwNYN65pax4ZkG4z03r9y7m4NsIpf3OFCH94GcKmDmkRY+U6PN+TjNOJsy0fnIybZG7Ir8OSMWNpU35u4C1Q13RoN0nLuhOsNrQfJKHoTkdLKp3lglHTbP5uD7qlJZSVsWjwf1s3E1OAVrtr8Ds=
x-ms-office365-filtering-correlation-id: 5c81c17e-b40b-4e54-f20c-08d40ccf676a
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:BN6PR06MB2308;
x-microsoft-antispam-prvs: <BN6PR06MB2308787CA52D0FDDD53CB6DCFEBC0@BN6PR06MB2308.namprd06.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(21748063052155);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6060326)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6061324); SRVR:BN6PR06MB2308; BCL:0; PCL:0; RULEID:; SRVR:BN6PR06MB2308;
x-forefront-prvs: 0126A32F74
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(7916002)(189002)(24454002)(129404003)(199003)(51444003)(377454003)(7736002)(2900100001)(7906003)(7696004)(7846002)(229853002)(93886004)(105586002)(66066001)(3660700001)(99286002)(92566002)(2906002)(4326007)(81166006)(5660300001)(122556002)(68736007)(86362001)(81156014)(106356001)(106116001)(8936002)(19273905006)(74316002)(6116002)(2950100002)(3846002)(76576001)(790700001)(87936001)(77096005)(102836003)(3280700002)(76176999)(9686002)(33656002)(101416001)(561944003)(8676002)(19609705001)(54356999)(551934003)(5001770100001)(97736004)(230783001)(50986999)(15395725005)(189998001)(781001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN6PR06MB2308; H:BN6PR06MB2308.namprd06.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en;
received-spf: None (protection.outlook.com: trilliantinc.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_BN6PR06MB2308A16ECB9F361854D15631FEBC0BN6PR06MB2308namp_"
MIME-Version: 1.0
X-OriginatorOrg: trilliantinc.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Nov 2016 20:47:09.7266 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4f6fbd13-0dfb-4150-85c3-d43260c04309
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR06MB2308
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/fP5nWvtFCbTei44W7JWmAVBRHPQ>
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 20:47:17 -0000

Hi Andy

=== About the size of the SID range allocated to each YANG module

The 20 bits range proposed is not incompatible with 'draft-ietf-core-sid'.
Each entity allocating SIDs (e.g. SDOs, End users) is free to define the size of the SID range allocated to each YANG module.

Do you propose to mandate a fixed range size (e.g. 20 bits / 1048576 IDs) ?

'draft-bierman-core-yid' (https://tools.ietf.org/html/draft-bierman-core-yid-00#section-2.1)
supports this concept of flexible range size (field 'local-bits'),
what will be the advantage to revert to a fixed rage size?

== About the capability to add an extra SID range to a YANG module

The solution can't impose a hard limit on the number of YANG items within a YANG module.
The ability of adding an extra SID range removes this hard limit and remove any range anxiety.

Regards,
Michel


From: core [mailto:core-bounces@ietf.org] On Behalf Of Andy Bierman
Sent: Sunday, November 13, 2016 8:59 PM
To: Alexander Pelov <a@ackl.io>
Cc: Core <core@ietf.org>
Subject: Re: [core] draft-ietf-core-sid-00, SID allocation



On Sun, Nov 13, 2016 at 5:45 PM, Alexander Pelov <a@ackl.io<mailto:a@ackl.io>> wrote:
Dear Peter, Andy,

Excellent points, thanks for bringing this up!

A major difference between SIDs and MIBs is that we cannot allocate prefixes in SIDs (as is the case with MIB-OID). The system works perfectly well - it is just NOT feasible for IANA to allocate ranges to individual modules on a global scale. It’s also not feasible for developers/companies to ask IANA for individual allocations per module (and anything else boils down to what we’re currently doing).


You want to manually manage ranges.  Why?

Why not allocate module-ids with a fixed range of objects within a module?

e.g.,32 bits for modules,  20 bits for objects --> module ID 1 has objects 0x100000 to 0x1fffff.

What evidence do you have that we need more than 4 billion modules,
each with up to 1 million objects?

There is no operational experience with SIDs but there is plenty with managed objects
in general.

Andy



The SID draft functions under a Two-tier registration system. IANA -> SDOs/Registrars -> Modules. IANA allocates chunks of IDs to other SDOs/registrars. A module is then registered by these third parties and the particular SIDs get assigned to the individual modules.

Note, that IANA can also register SIDs for individual modules, e.g. for all YANG modules published by the IETF. I would suppose the same policy could apply to other SDOs.

Hope that this clarifies the question.

Best,
Alexander



Le 14 nov. 2016 à 10:17, Andy Bierman <andy@yumaworks.com<mailto:andy@yumaworks.com>> a écrit :

Hi,


One question to ask:  How many modules do we expect to have?
How many objects do we expect to have?  In 30 years of writing MIB modules
we have never even come close to a million objects. (Maybe 100,000?)

A million modules, each with a million objects, would still be less than 40 bits.
So why to we need complex range assignments and non-contiguous numbering
within a module?  Presumably to preserve numbers and not waste them.
But since the SID encoding is based on deltas, and the full SID is only used
once per transaction, this does not seem to be a real concern.


Andy


On Sun, Nov 13, 2016 at 4:12 PM, peter van der Stok <stokcons@xs4all.nl<mailto:stokcons@xs4all.nl>> wrote:
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<http://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<mailto:consultancy@vanderstok.org>
www: www.vanderstok.org<http://www.vanderstok.org/>
tel NL: +31(0)492474673     F: +33(0)966015248

_______________________________________________
core mailing list
core@ietf.org<mailto:core@ietf.org>
https://www.ietf.org/mailman/listinfo/core

_______________________________________________
core mailing list
core@ietf.org<mailto:core@ietf.org>
https://www.ietf.org/mailman/listinfo/core