Re: [core] Name support in draft-ietf-core-yang-cbor?
peter van der Stok <stokcons@xs4all.nl> Thu, 25 August 2016 09:54 UTC
Return-Path: <stokcons@xs4all.nl>
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 BD03312D1BD for <core@ietfa.amsl.com>; Thu, 25 Aug 2016 02:54:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.621
X-Spam-Level:
X-Spam-Status: No, score=-2.621 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] 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 hKuEPJlkvbA7 for <core@ietfa.amsl.com>; Thu, 25 Aug 2016 02:54:35 -0700 (PDT)
Received: from lb2-smtp-cloud2.xs4all.net (lb2-smtp-cloud2.xs4all.net [194.109.24.25]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 82A5F12D541 for <core@ietf.org>; Thu, 25 Aug 2016 02:54:35 -0700 (PDT)
Received: from webmail.xs4all.nl ([194.109.20.203]) by smtp-cloud2.xs4all.net with ESMTP id bMuY1t00b4NtgTm01MuYkt; Thu, 25 Aug 2016 11:54:32 +0200
Received: from 2001:983:a264:1:f48f:89c1:a738:b506 by webmail.xs4all.nl with HTTP (HTTP/1.1 POST); Thu, 25 Aug 2016 11:54:32 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Date: Thu, 25 Aug 2016 11:54:32 +0200
From: peter van der Stok <stokcons@xs4all.nl>
To: Michel Veillette <Michel.Veillette@trilliantinc.com>
Organization: vanderstok consultancy
Mail-Reply-To: consultancy@vanderstok.org
In-Reply-To: <BN6PR06MB2308289F07367874DFC4AF60FEEA0@BN6PR06MB2308.namprd06.prod.outlook.com>
References: <BN6PR06MB2308289F07367874DFC4AF60FEEA0@BN6PR06MB2308.namprd06.prod.outlook.com>
Message-ID: <cae87ec8497173cbf71df08564ef2540@xs4all.nl>
X-Sender: stokcons@xs4all.nl (TaLJi+EFVMPz1mxuJS1R7sO41YQoZSbe)
User-Agent: XS4ALL Webmail
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/ADFOKcThTOAp-cc0Cw8RmiVzEe0>
Cc: "core@ietf.org WG" <core@ietf.org>
Subject: Re: [core] Name support in draft-ietf-core-yang-cbor?
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
Reply-To: consultancy@vanderstok.org
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: Thu, 25 Aug 2016 09:54:44 -0000
Hi Alex, and Michel see below Michel Veillette schreef op 2016-08-24 20:31: > Hi Alexander > > About "There are two types of identifiers supported by > draft-ietf-core-yang-cbor - textual (for full compatibility with > RESTConf/NETCONF names) and delta-encoded integers (a.k.a. SIDs). The > former could be used when network constraints are not so stringent, > while the latter is the preferred way of using this encoding in > constrained networks." > > Don't we have an action item from the last IETF to remove name? > The minutes are not clear about this topic. > https://www.ietf.org/proceedings/96/minutes/minutes-96-core > The last sentence is from Andy " We do not need multiple ways to do > the same thing, especially on constrained devices. Nobody provides > short module names, so they can be very large." <pvds> YANG to CBOR mapping may also be used by RESTCONF/http and I like to maintain the textual representation. </pvds> > > Regards, > Michel > > -----Original Message----- > From: Alexander Pelov [mailto:a@ackl.io] > Sent: Wednesday, August 24, 2016 3:57 AM > To: consultancy@vanderstok.org > Cc: Michel Veillette <Michel.Veillette@trilliantinc.com>; > core@ietf.org WG <core@ietf.org> > Subject: Re: [core] 🔔 Working Group Adoption call for > draft-somaraju-core-sid > > Dear Peter, > >> Le 24 août 2016 à 08:39, peter van der Stok <stokcons@xs4all.nl> a >> écrit : >> >> Some comments based on the arguments below: >> >>> This draft is a prerequisite for the following works: >>> - CBOR encoding of YANG data model >>> (https://datatracker.ietf.org/doc/draft-ietf-core-yang-cbor/) >> I have argued already for some time that the text about SIDs does not >> belong in the yang to cbor draft. >> It reduces its independence from the CoMI work. >> Given that CBOR is not to be changed, Putting the SID text in a >> content format draft seems more appropriate. > > There are two types of identifiers supported by > draft-ietf-core-yang-cbor - textual (for full compatibility with > RESTConf/NETCONF names) and delta-encoded integers (a.k.a. SIDs). The > former could be used when network constraints are not so stringent, > while the latter is the preferred way of using this encoding in > constrained networks. > > We should keep it simple. Having several content formats to express > the same thing - especially when this is not necessary - is adding > complexity for no reason. <pvds> I agree to keep things simple. Specifying that there are two representations: numeric and textual, keeps the yang to cbor draft simple. IMO the yang to cbor draft is useful beyond CoMI/CoOL applications. Providing one content format for CoMI/CoOL, using yang-to-cbor, that specifies i.a. delta encoding keeps things simple and inter-operable for CoMI/CoOL. May be two content formats to cover the merge-patch case if needed. Other (future) applications can use the CBOR content format and the YANG to CBOR encoding independent of what we invent for CoMI/CoOL. </pvds> > > The SID draft allows for having ranges of SIDs be managed by > independent registries and have different rules of assignment. No need > to use different Content Formats necessary to solve overlapping of the > integer values. Moreover, as of the time of this writing, we have 3 > different Content-Formats for the CoOL/CoMI draft. Adding an > alternative Content-Format for the interpretation of the integers > would multiply this by 2, e.g. 6 content formats, where half are doing > the same thing. > > If you have a server with mixed modules (e.g. ones using SID and ones > using a different interpretation of the IDs), the Content-Format will > force you to chose ONE or ANOTHER. There is no possibility in one > request to read or write values from different modules. This > effectively removes all interoperability between the two, making one > of the two redundant. > > Best, > Alexander > > > >>> The alternate assignment algorithm of IDs based on murmur3 and >>> improved description texts proposed by Andy in >>> (https://datatracker.ietf.org/doc/draft-bierman-core-yid/) don't >>> fundamentally change the registration process defined by the SID >>> draft. >> >> I should like to wait till this agreement is visible on this mailing >> list. >> >> Peter >> >> _______________________________________________ >> 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
- [core] Name support in draft-ietf-core-yang-cbor? Michel Veillette
- Re: [core] Name support in draft-ietf-core-yang-c… peter van der Stok