Re: [core] CBOR Encoding of Data Modeled with YANG
Michel Veillette <Michel.Veillette@trilliantinc.com> Mon, 07 December 2015 20:31 UTC
Return-Path: <Michel.Veillette@trilliantinc.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B88B81A8734 for <core@ietfa.amsl.com>; Mon, 7 Dec 2015 12:31:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level:
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
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 jpU6l3QckDAh for <core@ietfa.amsl.com>; Mon, 7 Dec 2015 12:31:25 -0800 (PST)
Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0734.outbound.protection.outlook.com [IPv6:2a01:111:f400:fc10::734]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C93EE1A6FAE for <core@ietf.org>; Mon, 7 Dec 2015 12:31:24 -0800 (PST)
Received: from BLUPR06MB1763.namprd06.prod.outlook.com (10.162.224.149) by BLUPR06MB1762.namprd06.prod.outlook.com (10.162.224.148) with Microsoft SMTP Server (TLS) id 15.1.337.19; Mon, 7 Dec 2015 20:31:03 +0000
Received: from BLUPR06MB1763.namprd06.prod.outlook.com ([10.162.224.149]) by BLUPR06MB1763.namprd06.prod.outlook.com ([10.162.224.149]) with mapi id 15.01.0337.015; Mon, 7 Dec 2015 20:31:03 +0000
From: Michel Veillette <Michel.Veillette@trilliantinc.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Thread-Topic: [core] CBOR Encoding of Data Modeled with YANG
Thread-Index: AdEtPHYWp5+Kr9OtQ0Oj//Irn0p12QDkrIIAAAzxqKAACR5VgAAAPE1Q
Date: Mon, 07 Dec 2015 20:31:03 +0000
Message-ID: <BLUPR06MB1763B7F9EBF812C06DB04252FE090@BLUPR06MB1763.namprd06.prod.outlook.com>
References: <BLUPR06MB176391F16B5E9D6CCC531771FE0E0@BLUPR06MB1763.namprd06.prod.outlook.com> <20151207091044.GA59864@elstar.local> <BLUPR06MB1763ABFE8DE1E0E18F5F06A5FE090@BLUPR06MB1763.namprd06.prod.outlook.com> <20151207194229.GA61491@elstar.local>
In-Reply-To: <20151207194229.GA61491@elstar.local>
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; BLUPR06MB1762; 5:O3GTSd3W/6OYkKzxVtk+yc2+UpjrHyhI+03BFRiW16o9xkIJRNpetyRMsDZJzWdkoi6BBSxDo36uX8HAjSgxCFj8J5gT4K8nbmPWnjPBqqCgBPzjcjRGTkxuFOK4EdhnMPng++GU66ZcCYFi4hIW7w==; 24:3CJzPgcXN3qxU431h5whPv4GAld7QYfQ68tYTa1BESAfawm2pBKjz88+nCCILuNRchp7iR8gQMbYYTE80rHgvSvBq7iRU8hljUGTShf0N+o=
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR06MB1762;
x-microsoft-antispam-prvs: <BLUPR06MB17626E8E231A1FBB3F0A1206FE090@BLUPR06MB1762.namprd06.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(256376046250027);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501046); SRVR:BLUPR06MB1762; BCL:0; PCL:0; RULEID:; SRVR:BLUPR06MB1762;
x-forefront-prvs: 078310077C
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(52314003)(24454002)(13464003)(199003)(189002)(377454003)(38414003)(74316001)(33656002)(76176999)(101416001)(54356999)(10400500002)(19580395003)(1096002)(19580405001)(77096005)(122556002)(87936001)(86362001)(1220700001)(3846002)(2950100001)(5008740100001)(2900100001)(586003)(92566002)(40100003)(5004730100002)(50986999)(15975445007)(110136002)(5002640100001)(189998001)(66066001)(81156007)(97736004)(102836003)(105586002)(6116002)(99286002)(106356001)(93886004)(11100500001)(76576001)(5001960100002)(5003600100002); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR06MB1762; H:BLUPR06MB1763.namprd06.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en;
received-spf: None (protection.outlook.com: trilliantinc.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:23
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: trilliantinc.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Dec 2015 20:31:03.0648 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4f6fbd13-0dfb-4150-85c3-d43260c04309
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR06MB1762
Archived-At: <http://mailarchive.ietf.org/arch/msg/core/4GFLC22RIQTJn2hZH8TTx9XGJbU>
Cc: Core <core@ietf.org>
Subject: Re: [core] CBOR Encoding of Data Modeled with YANG
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.15
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, 07 Dec 2015 20:31:29 -0000
Hi Juergen My "smart" quote are now disabled. Thanks to motivate me to turn off this nonsense. About the format/assignment of the numeric data node IDs, the consensus is to keep them out of the YANG to CBOR mapping draft in order to make progress. Peoples agree that names encoded as string represents too much overhead to address the needs of constrained devices and constrained networks as defined by RFC 7228. However, there are lots of discussions about how those names can be associated with small IDs encoded as integers and how small those integers need to be. The CoOL draft proposes structured IDs based on the following concept: Only IDs associated with module names are registered, IDs associated to data node identifiers are automatically generated. e.g. draft-ietf-netmod-yang-json-06 page 5 for the member-name "foomod:top" the ID associated with the name of the module "foomod" is registered, the ID associated with the data node identifier "top" is auto-generated. To simplify scaling of the registered module names, different approaches have been proposed: - Possibility to allocation ranges of IDs (bundle) to developers and SDOs for distributed assignment. - Possibility to define a range of private IDs (IDs locally assigned and used, not globally unique, same concept as IPv4 10.x.x.x) - Possible to define disjoint registries, implemented using a different resource type & default URI path Regards, Michel -----Original Message----- From: Juergen Schoenwaelder [mailto:j.schoenwaelder@jacobs-university.de] Sent: December-07-15 2:42 PM To: Michel Veillette <Michel.Veillette@trilliantinc.com> Cc: Core <core@ietf.org> Subject: Re: [core] CBOR Encoding of Data Modeled with YANG Hi, can you configure you mail client to produce traditional quotings? Concerning your questions, I suggest you use the terminology of RFC 6020bis wherever possible. Concerning the data node ids, I am clueless how those numeric IDs will be managed since this has been left out. YANG provides names. Additional numeric assignments do not scale. Anyway, the way things are named should be part of the document since otherwise things are incomplete. /js On Mon, Dec 07, 2015 at 04:40:52PM +0000, Michel Veillette wrote: > Hi Juergen and thanks for your comments. > > See [MV] inline. > > Michel Veillette > System Architecture Director > Trilliant Inc. > > -----Original Message----- > From: Juergen Schoenwaelder > [mailto:j.schoenwaelder@jacobs-university.de] > Sent: December-07-15 4:11 AM > To: Michel Veillette <Michel.Veillette@trilliantinc.com> > Cc: Core <core@ietf.org> > Subject: Re: [core] CBOR Encoding of Data Modeled with YANG > > A few notes: > > - The document talks about a 'node ID' in several places but never > defines this concept nor does it explain how these node IDs are > created. > > [MV] To give you some context, the current document > (https://core-wg.github.io/yang-cbor/) > [MV] is an extract of section 4 and 5 of > (https://datatracker.ietf.org/doc/draft-veillette-core-cool/) > [MV] some works are still require to make it a standalone document. > [MV] > [MV] About the 'node ID', the terminology used in the current document is in fact 'data node ID'. > [MV] This is the equivalent to the 'member-name' used in 'draft-ietf-netmod-yang-json-06'. > [MV] In the context of CoMI and CoOL, data node IDs are always encoded as unsigned integer. > [MV] If we want to make this mapping also compatible with RESTCONG, we need to support 'member-name' encoded as string. > [MV] > [MV] My questions to you are: > [MV] - Which terminology we should use (tag, data node identifier, ...)? > [MV] - Should we support both data node ID (encoded as unsigned integer) and object name (encoded as string)? > > - Your ID should normatively depend on YANG 1.1 and cover all the YANG > 1.1 constructs, that is, include anydata. > > [MV] The current version is based on YANG 1.0 but I agree we now need to extend it to support YANG 1.1. > > - I am not sure I understand the anyxml encoding. > > [MV] The proposed encoding of anyxml allows the encoding of any valid CBOR objects. > [MV] In the context of YANG 1.1, this definition should be moved to anydata. > [MV] The anyxml should be defined as a string carrying any valid xml content. > [MV] Make sense? > > - I guess I am having an issue with yet another ad-hoc namespace > notation invention in 3.1.7. YANG type: identityref. Why not use the > <module>:<identifier> notation used by the JSON encoding? > > [MV] The intent was to adopt a more compact encoding but the proposed solution don't really archive this goal. > [MV] Unless we find something more compact, I agree that the JSON encoding should be used. > > - The document confuses YANG types and YANG data node definition > statements. I suggest to follow the structure of > draft-ietf-netmod-yang-json-06.txt. > > [MV] Make sense, I'll adjust the table of content to be aligned with 'draft-ietf-netmod-yang-json-06' > > /js > > On Wed, Dec 02, 2015 at 08:08:49PM +0000, Michel Veillette wrote: > > For those interested to the development of the "CBOR Encoding of Data Modeled with YANG" draft. > > > > The current document is available at: > > https://core-wg.github.io/yang-cbor/ > > > > Proposed changes to the Reference, Introduction and Security Considerations sections are available at: > > https://github.com/core-wg/yang-cbor/pull/2/files > > > > Michel Veillette > > System Architecture Director > > Trilliant Inc. > > Tel: 450-375-0556 ext. 237 > > > > _______________________________________________ > > core mailing list > > core@ietf.org > > https://www.ietf.org/mailman/listinfo/core > > -- > Juergen Schoenwaelder Jacobs University Bremen gGmbH > Phone: +49 421 200 3587 Campus Ring 1 | 28759 Bremen | Germany > Fax: +49 421 200 3103 <http://www.jacobs-university.de/> -- Juergen Schoenwaelder Jacobs University Bremen gGmbH Phone: +49 421 200 3587 Campus Ring 1 | 28759 Bremen | Germany Fax: +49 421 200 3103 <http://www.jacobs-university.de/>
- [core] CBOR Encoding of Data Modeled with YANG Michel Veillette
- Re: [core] CBOR Encoding of Data Modeled with YANG Juergen Schoenwaelder
- Re: [core] CBOR Encoding of Data Modeled with YANG weigengyu
- Re: [core] CBOR Encoding of Data Modeled with YANG Kepeng Li
- Re: [core] CBOR Encoding of Data Modeled with YANG Michel Veillette
- Re: [core] CBOR Encoding of Data Modeled with YANG Juergen Schoenwaelder
- Re: [core] CBOR Encoding of Data Modeled with YANG Michel Veillette
- Re: [core] CBOR Encoding of Data Modeled with YANG Juergen Schoenwaelder
- Re: [core] CBOR Encoding of Data Modeled with YANG Michel Veillette
- Re: [core] CBOR Encoding of Data Modeled with YANG Juergen Schoenwaelder
- Re: [core] CBOR Encoding of Data Modeled with YANG Alexander Pelov
- Re: [core] CBOR Encoding of Data Modeled with YANG Juergen Schoenwaelder
- Re: [core] CBOR Encoding of Data Modeled with YANG Juergen Schoenwaelder
- Re: [core] CBOR Encoding of Data Modeled with YANG Alexander Pelov
- Re: [core] CBOR Encoding of Data Modeled with YANG Carsten Bormann
- Re: [core] CBOR Encoding of Data Modeled with YANG Juergen Schoenwaelder
- Re: [core] CBOR Encoding of Data Modeled with YANG Alexander Pelov
- Re: [core] CBOR Encoding of Data Modeled with YANG Juergen Schoenwaelder
- Re: [core] CBOR Encoding of Data Modeled with YANG Andy Bierman
- Re: [core] CBOR Encoding of Data Modeled with YANG Alexander Pelov
- Re: [core] CBOR Encoding of Data Modeled with YANG Andy Bierman
- Re: [core] CBOR Encoding of Data Modeled with YANG Alexander Pelov
- Re: [core] CBOR Encoding of Data Modeled with YANG Juergen Schoenwaelder
- Re: [core] CBOR Encoding of Data Modeled with YANG Andy Bierman
- Re: [core] CBOR Encoding of Data Modeled with YANG Ladislav Lhotka
- Re: [core] CBOR Encoding of Data Modeled with YANG Andy Bierman
- Re: [core] CBOR Encoding of Data Modeled with YANG Michel Veillette
- Re: [core] CBOR Encoding of Data Modeled with YANG Carsten Bormann
- Re: [core] CBOR Encoding of Data Modeled with YANG Ladislav Lhotka
- Re: [core] CBOR Encoding of Data Modeled with YANG Andy Bierman
- Re: [core] CBOR Encoding of Data Modeled with YANG Michel Veillette
- Re: [core] CBOR Encoding of Data Modeled with YANG Michel Veillette
- Re: [core] CBOR Encoding of Data Modeled with YANG Michel Veillette
- Re: [core] CBOR Encoding of Data Modeled with YANG Ladislav Lhotka
- Re: [core] CBOR Encoding of Data Modeled with YANG Ladislav Lhotka
- Re: [core] CBOR Encoding of Data Modeled with YANG peter van der Stok
- Re: [core] CBOR Encoding of Data Modeled with YANG Juergen Schoenwaelder
- Re: [core] CBOR Encoding of Data Modeled with YANG peter van der Stok
- Re: [core] CBOR Encoding of Data Modeled with YANG Andy Bierman
- Re: [core] CBOR Encoding of Data Modeled with YANG Michel Veillette
- Re: [core] CBOR Encoding of Data Modeled with YANG Andy Bierman
- Re: [core] CBOR Encoding of Data Modeled with YANG Michel Veillette
- Re: [core] CBOR Encoding of Data Modeled with YANG Juergen Schoenwaelder
- Re: [core] CBOR Encoding of Data Modeled with YANG Andy Bierman
- Re: [core] CBOR Encoding of Data Modeled with YANG Michel Veillette
- Re: [core] CBOR Encoding of Data Modeled with YANG Michel Veillette
- Re: [core] CBOR Encoding of Data Modeled with YANG Ladislav Lhotka
- Re: [core] CBOR Encoding of Data Modeled with YANG Carsten Bormann
- Re: [core] CBOR Encoding of Data Modeled with YANG Michel Veillette
- Re: [core] CBOR Encoding of Data Modeled with YANG Ladislav Lhotka
- Re: [core] CBOR Encoding of Data Modeled with YANG Michel Veillette
- Re: [core] CBOR Encoding of Data Modeled with YANG Ladislav Lhotka
- Re: [core] CBOR Encoding of Data Modeled with YANG Michel Veillette
- Re: [core] CBOR Encoding of Data Modeled with YANG Andy Bierman
- Re: [core] CBOR Encoding of Data Modeled with YANG peter van der Stok