Re: [core] YANG to CBOR , identification of objects

Alexander Pelov <a@ackl.io> Tue, 12 July 2016 16:00 UTC

Return-Path: <a@ackl.io>
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 D58E412D17B for <core@ietfa.amsl.com>; Tue, 12 Jul 2016 09:00:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
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 nwO2T5-o0NRl for <core@ietfa.amsl.com>; Tue, 12 Jul 2016 09:00:18 -0700 (PDT)
Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [IPv6:2001:4b98:c:538::195]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8B4A512D1BD for <core@ietf.org>; Tue, 12 Jul 2016 09:00:15 -0700 (PDT)
Received: from [IPv6:2001:660:7301:3728:c991:5594:6177:ccd1] (unknown [IPv6:2001:660:7301:3728:c991:5594:6177:ccd1]) (Authenticated sender: alex@ackl.io) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 7F87FA80E5; Tue, 12 Jul 2016 18:00:13 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
From: Alexander Pelov <a@ackl.io>
In-Reply-To: <BLUPR06MB176358F95C56C70A91ECB672FE300@BLUPR06MB1763.namprd06.prod.outlook.com>
Date: Tue, 12 Jul 2016 18:00:06 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <5515F750-2744-4A83-A593-B8C43B72AA54@ackl.io>
References: <1ed9a5d16aca7d13412259e94afc1aa2@xs4all.nl> <BLUPR06MB17639739570760661AEC32C3FE3C0@BLUPR06MB1763.namprd06.prod.outlook.com> <0ab68685ab75d14335cb130faa1f5722@xs4all.nl> <BLUPR06MB176358F95C56C70A91ECB672FE300@BLUPR06MB1763.namprd06.prod.outlook.com>
To: Michel Veillette <Michel.Veillette@trilliantinc.com>
X-Mailer: Apple Mail (2.3124)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/uPSpjKY3PSARUMAq90jRninzEPs>
Cc: Alexander Pelov <alexander.pelov@telecom-bretagne.eu>, Core <core@ietf.org>
Subject: Re: [core] YANG to CBOR , identification of objects
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: Tue, 12 Jul 2016 16:00:20 -0000

Hi Michel, Peter,

I would be indeed very interested in seing this new local numbering scheme. 

I would suggest that we keep the delta encoding as it is right now and decide how to proceed when we have the new numbering scheme. 

Does that sound reasonable? 

Best,
Alexander

PS.
As a preview, can this new numbering scheme be implemented by using the experimental/private SID range?


> Le 12 juil. 2016 à 17:28, Michel Veillette <Michel.Veillette@trilliantinc.com> a écrit :
> 
> Hi Peter
> 
> Transferring the concept of parent deltas from "draft-ietf-core-yang-cbor" to "draft-veillette-core-cool" is technically possible.
> This change require some level of effort so I will prefer to get a consensus from a larger group before moving ahead.
> Carsten, Alexander, Abhi, Randy, Ana, ... do you have a strong opinion about the approach proposed by Peter?
> 
> Regards,
> Michel
> 
> -----Original Message-----
> From: peter van der Stok [mailto:stokcons@xs4all.nl] 
> Sent: Tuesday, July 12, 2016 6:18 AM
> To: Michel Veillette <Michel.Veillette@trilliantinc.com>
> Cc: consultancy@vanderstok.org; Core <core@ietf.org>
> Subject: RE: [core] YANG to CBOR , identification of objects
> 
> Hi Michel,
> 
> Here we have a point where my vision on this document differs from yours.
> 
>> 
>> Section 3: “the specification supports three types of keys.”
>> I would suggest only 2: character strings and numbers.
>> The use of deltas is either application (CoOL) specific or YANG to 
>> CBOR mapping specific.
>> If it is YANG to CBOR specific, I would encourage the use of another 
>> CBOR type that specifies a delta. As specified here its use is 
>> ambiguous; and forces each application to specify explicitly what is 
>> meant.
>> In the case that the delta is CoOL specific, I recommend to remove it 
>> completely from this draft, and explain the use of Deltas in the 
>> appropriate CoOL draft.
>> In the latter case: What remains are two key types: number and 
>> character string.
>> 
>> [MV] The use of delta to encode integer based keys (SIDs) is an 
>> integral part of the YANG to CBOR mapping.
>> [MV] This optimization is part of the encoding and independent of the 
>> application.
>> [MV] The document is updated to keep only 2 type of keys
>> 
> 
> I am preparing a third document that describes a local numbering scheme for YANG identifiers based on discovery.
> The numbers will be quite small and I like to encode them as unsigned integers.
> However, with the present YANG to CBOR document some numbers must be encoded as Deltas, and that is not what I want.
> 
> Therefore I recommend that all hash conversion to CBOR goes to the yang-hash document and the SID conversion to CBOR goes to an appropriate CoOL document.
> and the coming numbering conversion to CBOR also treats it in an appropriate document
> 
> This document can then specify that identifiers can be strings and numbers, where for example numbers are encoded as unsigned integers.
> 
> Greetings,
> 
> Peter
> 
> _______________________________________________
> core mailing list
> core@ietf.org
> https://www.ietf.org/mailman/listinfo/core