[core] Name support in draft-ietf-core-yang-cbor?

Michel Veillette <Michel.Veillette@trilliantinc.com> Wed, 24 August 2016 18:32 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 7455012D115 for <core@ietfa.amsl.com>; Wed, 24 Aug 2016 11:32:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.922
X-Spam-Level:
X-Spam-Status: No, score=-1.922 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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 7zKHvwb-kbiP for <core@ietfa.amsl.com>; Wed, 24 Aug 2016 11:31:58 -0700 (PDT)
Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0129.outbound.protection.outlook.com [104.47.41.129]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 73CBB12D63C for <core@ietf.org>; Wed, 24 Aug 2016 11:31:58 -0700 (PDT)
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=Rzx/CYtpf45k+koNisi9pAhYuxgaOpFVQeWHaONHvB4=; b=eyG54Htq3Y1KJxYahKR9Zod8xpBML6jf+x6f3dMen67TQuQYbX0o5bsMKfF47V3c1L2LoROJsjT9XVX508aOM47fYDYB13AjuZs2fAsIFXL+SenW7vkKbY3Bg53NygrZiHn7FpOelFYW1UxXNEBjPrWV7k1swsC1Kq1afG4WgFE=
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_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.557.21; Wed, 24 Aug 2016 18:31:55 +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.0557.030; Wed, 24 Aug 2016 18:31:55 +0000
From: Michel Veillette <Michel.Veillette@trilliantinc.com>
To: Alexander Pelov <a@ackl.io>
Thread-Topic: Name support in draft-ietf-core-yang-cbor?
Thread-Index: AdH+NcF4cAdohzWGTz2GPBcE0Hu/nw==
Date: Wed, 24 Aug 2016 18:31:55 +0000
Message-ID: <BN6PR06MB2308289F07367874DFC4AF60FEEA0@BN6PR06MB2308.namprd06.prod.outlook.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-ms-office365-filtering-correlation-id: 16142d4b-850b-46c3-622f-08d3cc4ced3a
x-microsoft-exchange-diagnostics: 1; BN6PR06MB2308; 6:ZwqIAKk+ytsvPTTpPivUMcXNX3/scwhxWrPtbYygkAZRWfY7vE8pw+hHhqldYIkE8+mzLib7xCnJ0H724KIKjZh0KdgUzxKIZb7d3LTdCMeVLXoiT+PXN+9adWlJ48IedcBoskkCpbsNB+1E0in+ZvF9VzuFPE9eg5QzcHBQ6G9bbMrYp+df1rwC8CWIyrEuJSAGrI4toaLxLLdQiTBoiCEw8jKH3DTuhANewwp3KMPkgQh6eJAQfL7fxW8CYxu8J6qaV8drAYTqBY95V/jnDUbLD9Gh/TICdzKEahCcGTc=; 5:aENeLsAsytPre4d7DKTfJTlte6BVcr/r41JyvnrJuivC6LXotthLffvbnMldZPU+0bXvc30VVCaQ6iWDn0uL4FjVLvyW6XKkQtzAvHKuke4aWK7Gy8hHGugzF8xy4Vt7SASpA4Nqm9+b9QUM8T0eyA==; 24:PUFSek1g2vjLWJPxHTrXwBC+aK+Sbxmg97JWO74Ch6dPdRsYMW8BMbA1H+rVqUI/MgcACig84Z3vs+5JhuNAFlTVawDo+MBxhdc97HCEVmo=; 7:aX8no8VVZQFnEzMUQv6SQkcDhnGDyHGdH8YSGre9iy+jCsYsuYdnGj1W5zN5Y+Mz53++5ke3dWtLNoCdFcSlzO86RCvGZ/tz8q/yzopk2qCISe/VTULgJiehLihKhDZDkdFtUXU0T7vXDwEvDSmc6n7fGPi/wEptl5ZSpD7Eplo6lmtoc26jVu4bCzcz4tcPwTcRZvhS79sHms5Fw/dTbXQ7NZ1WiLJii3XTEbWXjWvRxNHYTErl7XxE01ZcgoSf
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN6PR06MB2308;
x-microsoft-antispam-prvs: <BN6PR06MB23086F57D03EB20C41837403FEEA0@BN6PR06MB2308.namprd06.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(158342451672863)(120809045254105);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:BN6PR06MB2308; BCL:0; PCL:0; RULEID:; SRVR:BN6PR06MB2308;
x-forefront-prvs: 0044C17179
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(189002)(377454003)(13464003)(199003)(9686002)(101416001)(7696003)(3280700002)(92566002)(8936002)(50986999)(54356999)(110136002)(105586002)(4326007)(586003)(305945005)(81156014)(8676002)(2906002)(74316002)(3846002)(77096005)(189998001)(99286002)(76576001)(81166006)(15975445007)(97736004)(7736002)(7846002)(5660300001)(102836003)(6116002)(230783001)(2900100001)(3660700001)(10400500002)(68736007)(66066001)(33656002)(122556002)(106356001)(19580395003)(229853001)(86362001)(19580405001)(11100500001)(5002640100001)(87936001)(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: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: trilliantinc.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Aug 2016 18:31:55.7407 (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/X5BESfmL0zznJSucdF9BJcnOgUU>
Cc: "core@ietf.org WG" <core@ietf.org>
Subject: [core] Name support in draft-ietf-core-yang-cbor?
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: Wed, 24 Aug 2016 18:32:00 -0000

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."

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. 

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