Re: [core] CoMI Cool draft splits
Rodney Cummings <rodney.cummings@ni.com> Tue, 17 November 2015 21:32 UTC
Return-Path: <rodney.cummings@ni.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 D1F281A893E for <core@ietfa.amsl.com>; Tue, 17 Nov 2015 13:32:50 -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, RCVD_IN_DNSWL_NONE=-0.0001, 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 MviCN6Nm-xhX for <core@ietfa.amsl.com>; Tue, 17 Nov 2015 13:32:47 -0800 (PST)
Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0101.outbound.protection.outlook.com [207.46.100.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B72FE1ABD38 for <core@ietf.org>; Tue, 17 Nov 2015 13:32:47 -0800 (PST)
Received: from BN1PR04MB424.namprd04.prod.outlook.com (10.141.58.153) by BN1PR04MB424.namprd04.prod.outlook.com (10.141.58.153) with Microsoft SMTP Server (TLS) id 15.1.325.17; Tue, 17 Nov 2015 21:32:45 +0000
Received: from BN1PR04MB424.namprd04.prod.outlook.com ([169.254.6.133]) by BN1PR04MB424.namprd04.prod.outlook.com ([169.254.6.133]) with mapi id 15.01.0325.003; Tue, 17 Nov 2015 21:32:45 +0000
From: Rodney Cummings <rodney.cummings@ni.com>
To: Michel Veillette <Michel.Veillette@trilliantinc.com>, peter van der Stok <stokcons@xs4all.nl>, Core <core@ietf.org>
Thread-Topic: [core] CoMI Cool draft splits
Thread-Index: AQHRIRwteQFUWYBvd0yDLSdmSQn7rZ6gWGHwgAA/jYCAABjhAA==
Date: Tue, 17 Nov 2015 21:32:45 +0000
Message-ID: <BN1PR04MB4245E2336CCBB2650EB791C921D0@BN1PR04MB424.namprd04.prod.outlook.com>
References: <0559fa310f26530d1c1e89c1ed64b7aa@xs4all.nl> <BN1PR04MB424BAAB4D9E771D891BD06F921D0@BN1PR04MB424.namprd04.prod.outlook.com> <BLUPR06MB176305CAB596DF2D3962325EFE1D0@BLUPR06MB1763.namprd06.prod.outlook.com>
In-Reply-To: <BLUPR06MB176305CAB596DF2D3962325EFE1D0@BLUPR06MB1763.namprd06.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=rodney.cummings@ni.com;
x-originating-ip: [130.164.62.33]
x-microsoft-exchange-diagnostics: 1; BN1PR04MB424; 5:f8nF85PeO3yvRGCGKmr3Em63xDT05tbl8qFjxjk+7qXGygMp5S3JbHqcCtKXt+YyCZRP6prOvXJMl8y32e+fwSGdfn/wfyJvLZO8OuDqh75f2H4AUmvmFo83UQj6//P7tK53xuD9UJIMJBTpbnJEew==; 24:pP0m8pMKj2UZkbnBuRJLo/+92HJDoUK60SWau71ILOwgDx+LQsHtgsZhdEoJEn+zus7EHWzyXm6Z5J8T0tmyod77OGTT/o+bcW49+mXbioc=; 20:/05PrlLjhS4m8tnDNNe7lOiasaZ4seyV6HhqRtGOfZoa1u0bCE77D9Jmq8bw6Z/viNRGp5IUSp6dQrn2Ly/82g==
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1PR04MB424;
x-microsoft-antispam-prvs: <BN1PR04MB4244ECA1D5F954FFEC89593921D0@BN1PR04MB424.namprd04.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(256376046250027)(144836121648609)(262738631018165)(216554174695431);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(8121501046)(5005006)(10201501046)(3002001); SRVR:BN1PR04MB424; BCL:0; PCL:0; RULEID:; SRVR:BN1PR04MB424;
x-forefront-prvs: 07630F72AD
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(377454003)(53754006)(199003)(189002)(377424004)(38414003)(54094003)(13464003)(106356001)(87936001)(19580405001)(19580395003)(99286002)(86362001)(106116001)(5001960100002)(189998001)(33656002)(105586002)(97736004)(5001770100001)(81156007)(74316001)(76576001)(10400500002)(586003)(122556002)(92566002)(5004730100002)(5008740100001)(15974865002)(5003600100002)(11100500001)(40100003)(15975445007)(5007970100001)(76176999)(54356999)(2900100001)(2950100001)(50986999)(66066001)(101416001)(5002640100001)(102836002)(7059030); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR04MB424; H:BN1PR04MB424.namprd04.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en;
received-spf: None (protection.outlook.com: ni.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:23
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: ni.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Nov 2015 21:32:45.3817 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 87ba1f9a-44cd-43a6-b008-6fdb45a5204e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR04MB424
Archived-At: <http://mailarchive.ietf.org/arch/msg/core/yyPTX77IH0LWR2GeE85C-GXYUog>
Subject: Re: [core] CoMI Cool draft splits
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: Tue, 17 Nov 2015 21:32:51 -0000
Thanks Michel, To back up a bit, I think I may be misunderstanding a fundamental assumption in the design of both CoMI and CoOL. Please forgive my ignorance. Of my three points, I think the fundamental point is #3, and #1 and #2 are just symptoms. To elaborate on #3 with an example, let's say I have a module "foo", with two revisions: - 2011-01-09: original - 2015-08-07: enhanced Both CoMI and CoOL seem to be designed under the assumption that the original revision is a proper subset of the enhanced revision (i.e. objects were added, but none removed). For CoMI, this is why the client must read the ietf-yang-hash module to obtain re-hash mapping. The server presumably promises to leave the hashes of the original unchanged in the enhanced. Therefore, only the server knows the re-hash values, which must be queried by the client. For CoOL, the algorithm for the client to find an automatic DNID is clear. Nevertheless, the manual DNID (YANG "id" extension) is provided so that the module author can manually ensure that DNIDs of the original remain the same in the enhanced. As I think through this for the client side, I don't think it is valid for my client to assume that the enhanced is a proper subset of the original (item #3). I realize that a proper subset is common in practice, but it is not guaranteed. From my reading of RFC6020bis, the enhanced module can completely remove all objects from original. Therefore, on the client side, it would be easier for me to assume the "automatic" implementation in the server. In the context of Cool, "automatic" means the automatic DNID algorithm. I would prefer to avoid the "manual" mechanism entirely (my item #1). Rather than create CoOL-specific YANG modules, just force the client to process the normal YANG module assuming that all DNID are automatic. In the context for CoMI, specify an "automatic" algorithm for resolving hash collisions, similar to CoOL's automatic DNID. This enables a client and server to use the same re-hash, and it avoids the need to query the ietf-yang-hash module. Overall, it seems like the most challenging aspects of CoMI and CoOL are the "manual" extensions to help with backward compatibility (item #3). To a naive reader such as myself, these "manual" extensions make the draft far more complex, and it would be simpler to use the "automatic" technique in both client and server. Rodney -----Original Message----- From: Michel Veillette [mailto:Michel.Veillette@trilliantinc.com] Sent: Tuesday, November 17, 2015 1:21 PM To: Rodney Cummings <rodney.cummings@ni.com>; peter van der Stok <stokcons@xs4all.nl>; Core <core@ietf.org> Cc: Somaraju Abhinav <abhinav.somaraju@tridonic.com>; Turner, Randy <Randy.Turner@landisgyr.com>; Alexander Pelov <alexander.pelov@telecom-bretagne.eu> Subject: RE: [core] CoMI Cool draft splits Hi Rodney Would you please elaborate your item#2 "A client cannot assume that the YANG objects of a module are distinct from a hashing perspective." I'm not sure I fully understand the implications of this statement. The CoOL draft propose to prefix all objects (data nodes, rpc and notifications) defined by a module & associated sub-modules with a common identifier. What is the impacts of item 2 on this approach? Regards, Michel Veillette System Architecture Director Trilliant Inc. Tel: 450-375-0556 ext. 237 michel.veillette@trilliantinc.com www.trilliantinc.com -----Original Message----- From: core [mailto:core-bounces@ietf.org] On Behalf Of Rodney Cummings Sent: November-17-15 10:52 AM To: peter van der Stok <stokcons@xs4all.nl>; Core <core@ietf.org> Subject: Re: [core] CoMI Cool draft splits Thanks Peter, At this time, proceeding with 4 drafts sounds good to me. Nevertheless, as we get closer to progressing these in a WG, I think we should transition to 2 drafts: a) YANG to CBOR mapping ( i) ) b) Select either hash ( ii) ) or registry ( iii) ), and merge that with the function set ( iv) ) for a single draft As for the motivation and use cases, I wonder if it might be helpful to state our assumptions for the client side. I would claim that: 1. A client cannot assume that the YANG modules implemented by the server have been enhanced specifically for CoMI/CoOL. 2. A client cannot assume that the YANG objects of a module are distinct from a hashing perspective. 3. A client cannot assume that a new revision of a module is backward compatible to an older revision of that module (i.e. old is proper subset). If these assumptions are correct, then the client must perform some processing of the server's YANG modules prior to using CoMI/CoOL, and that may help to decide between hash/registry. If these assumptions are incorrect, it might be useful to discuss it in the draft, to provide some background rationale. Rodney -----Original Message----- From: core [mailto:core-bounces@ietf.org] On Behalf Of peter van der Stok Sent: Tuesday, November 17, 2015 3:41 AM To: Core <core@ietf.org> Subject: [core] CoMI Cool draft splits Hi all, During the Yokohama meeting I proposed to split the CoMI/CoOl drafts into three parts as suggested by Juergen Schoenwalder in a separate earlier communication. This e_mail sets out in more detail why the proposed split is a good one. The proposed three parts are: 1) The Function Set (sections 2, 3, 4 in CoMI; sections 2, 3, 7 in CoOL) 2) The YANG to CBOR mapping (section 6 in CoMI; section 5 in CoOL) 3) The YANG name compression (section 5 in CoMI; section 6 in CoOL) The split has two advantages: - the parts 2 and 3 can be used in other contexts, e.g. RESTCONF - It separates out the issues which need to be solved to merge CoOL and CoMI. I come to the generation of 4 drafts: i) The YANG to CBOR mapping. ii) Hashing of YANG names iii) Managed identifier assignment to YANG names iv) The Function set specification Ad i) I don't expect a long list of issues for the merging. However, it may be advisable to submit the draft to the netmod WG, where much of the YANG expertise exists and the draft can be aligned with the YANG to JSON draft. Ad ii and iii) These approaches are very different and merit independent drafts. The CoRE WG can decide to adopt 1, 2, or none of the two drafts. It is also possible that drafts get submitted to other WGs. Ad iv) In my view the alignment of the two existing approaches, CoMI and CoOL, may take some time. I will be happy if in Buenos Aires we have a list with issues, accompanying motivation, and use cases. Is this a valid approach? Comments are solicited. Peter -- Peter van der Stok vanderstok consultancy mailto: consultancy@vanderstok.org _______________________________________________ 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] CoMI Cool draft splits peter van der Stok
- Re: [core] CoMI Cool draft splits Rodney Cummings
- Re: [core] CoMI Cool draft splits Andy Bierman
- Re: [core] CoMI Cool draft splits Michel Veillette
- Re: [core] CoMI Cool draft splits Michel Veillette
- Re: [core] CoMI Cool draft splits Rodney Cummings
- Re: [core] CoMI Cool draft splits Andy Bierman
- Re: [core] CoMI Cool draft splits Michel Veillette
- Re: [core] CoMI Cool draft splits peter van der Stok
- Re: [core] CoMI Cool draft splits peter van der Stok
- Re: [core] CoMI Cool draft splits Somaraju Abhinav
- Re: [core] CoMI Cool draft splits peter van der Stok
- Re: [core] CoMI Cool draft splits Somaraju Abhinav
- Re: [core] CoMI Cool draft splits peter van der Stok
- Re: [core] CoMI Cool draft splits Somaraju Abhinav
- Re: [core] CoMI Cool draft splits Andy Bierman
- Re: [core] CoMI Cool draft splits Michel Veillette
- Re: [core] CoMI Cool draft splits Rodney Cummings
- Re: [core] CoMI Cool draft splits Somaraju Abhinav
- Re: [core] CoMI Cool draft splits Andy Bierman
- Re: [core] CoMI Cool draft splits Carsten Bormann
- Re: [core] CoMI Cool draft splits Andy Bierman
- Re: [core] CoMI Cool draft splits Carsten Bormann
- Re: [core] CoMI Cool draft splits Somaraju Abhinav
- Re: [core] CoMI Cool draft splits Rodney Cummings
- Re: [core] CoMI Cool draft splits Andy Bierman
- Re: [core] CoMI Cool draft splits Rodney Cummings