Re: [core] Comments on draft-ietf-core-yang-cbor-06

Michel Veillette <Michel.Veillette@trilliant.com> Mon, 09 July 2018 15:39 UTC

Return-Path: <Michel.Veillette@trilliant.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 4E4F813102C; Mon, 9 Jul 2018 08:39:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.911
X-Spam-Level:
X-Spam-Status: No, score=-1.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] 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 9HwZoE-KpSCN; Mon, 9 Jul 2018 08:39:39 -0700 (PDT)
Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0109.outbound.protection.outlook.com [104.47.42.109]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B437B130E48; Mon, 9 Jul 2018 08:39:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Trilliant.onmicrosoft.com; s=selector1-Trilliant-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AxmOF67fLDihEyJ/NgcD8wxgxVxnIWS99B/j3eO20z0=; b=aCkQIBqrcSsiHi4IkxntkXhOL456+c1t5KYJYEnwS9KTSgkTsGxoTlY1Ska/aqhi9lRULFYdCct2WPAshox40Qoc9bfmtH45M10+psBbur98v6FNPZX3S+tMKneTKgUPGW6G9utltG6L27KTZNo2wKKw9my4XphJB50ehfd4pI8=
Received: from DM5PR06MB2777.namprd06.prod.outlook.com (10.175.107.139) by DM5PR06MB3179.namprd06.prod.outlook.com (10.174.240.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.21; Mon, 9 Jul 2018 15:39:36 +0000
Received: from DM5PR06MB2777.namprd06.prod.outlook.com ([fe80::b822:6d77:2b7f:e300]) by DM5PR06MB2777.namprd06.prod.outlook.com ([fe80::b822:6d77:2b7f:e300%5]) with mapi id 15.20.0930.022; Mon, 9 Jul 2018 15:39:35 +0000
From: Michel Veillette <Michel.Veillette@trilliant.com>
To: Carsten Bormann <cabo@tzi.org>
CC: Robert Wilton <rwilton@cisco.com>, "draft-ietf-core-yang-cbor@ietf.org" <draft-ietf-core-yang-cbor@ietf.org>, "core@ietf.org" <core@ietf.org>
Thread-Topic: [core] Comments on draft-ietf-core-yang-cbor-06
Thread-Index: AQHUF5WX0PmR6lU92EO3Kbe/Vd91WaSG/U6QgAAE/wCAAABMQA==
Date: Mon, 09 Jul 2018 15:39:35 +0000
Message-ID: <DM5PR06MB27772BC8B389ED32841725A19A440@DM5PR06MB2777.namprd06.prod.outlook.com>
References: <6ff65b2e-ab4f-5d92-8fff-68c08584682e@cisco.com> <DM5PR06MB2777C2ABB330D1054D2E1D8D9A440@DM5PR06MB2777.namprd06.prod.outlook.com> <E765AC20-41BE-4235-B858-6904C9BA63EF@tzi.org>
In-Reply-To: <E765AC20-41BE-4235-B858-6904C9BA63EF@tzi.org>
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@trilliant.com;
x-originating-ip: [207.96.192.122]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; DM5PR06MB3179; 7:DPr0L50+QwdvhSlCroxuVHyd9aGoEmuYXaKiepJK05U3ZpymLk/ck8RcJ10Bc/PFEJrNZWEjrbYOFm7yQ92uyFbROUQvn2gi/H/VjVbfgZ2WWY8hJWw3zHKKdnpBBCaydpUHAa1k61yicYZzOGKOyE0Qe12p8kwsHpj6SvXN1vhVVpPgJ7rFs1pxk1550x6/tzJIL0wLEdIl/uH091+0guNMckL19tqaUX4UPSsO22AxuESHoeevdrXO7qfGN3Yk
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: 78c8830e-f8cb-4cd2-9b5b-08d5e5b22cb4
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:DM5PR06MB3179;
x-ms-traffictypediagnostic: DM5PR06MB3179:
x-microsoft-antispam-prvs: <DM5PR06MB3179255F114C80726CF7CE8B9A440@DM5PR06MB3179.namprd06.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(95692535739014);
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:DM5PR06MB3179; BCL:0; PCL:0; RULEID:; SRVR:DM5PR06MB3179;
x-forefront-prvs: 07283408BE
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(376002)(136003)(39840400004)(396003)(346002)(366004)(51444003)(189003)(199004)(13464003)(5660300001)(74316002)(229853002)(966005)(305945005)(7736002)(2906002)(81156014)(81166006)(8676002)(53936002)(8936002)(33656002)(6116002)(3846002)(14454004)(6916009)(6246003)(25786009)(68736007)(54906003)(6306002)(76176011)(9686003)(55016002)(99286004)(5250100002)(316002)(97736004)(4326008)(2900100001)(106356001)(105586002)(102836004)(186003)(478600001)(26005)(6506007)(53546011)(14444005)(72206003)(66066001)(86362001)(6436002)(476003)(486006)(11346002)(7696005)(256004)(446003); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR06MB3179; H:DM5PR06MB2777.namprd06.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: trilliant.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: iNVUsaPtj/gHxG6qysrRXQ5QMJMy9zLBNrbnddh5d5a29brpnCRWmv2828MQWeDfJ97fCuBxYw1oAsoHgJMW+qS9dysh1soRHE+28YtNfhyrQkQMpbsWHtJmpJTFmZ1esbvWci/NlmYLE9oBnBODNv5FpS3/RIC81zJUUkGfSTGZQsEZpv1iTPdbqnl2kPTjLgLv+YOKrH236JFWNs49k0+klpSopok5hCt3Y6pJj4y0CH+CMHg4Mf6kZn3XA/GMrm5KpAWka2qe/1d9I3H4E8mV1iMIvFSHQ6I180tAXlphUlcl0CSy0thu0L/JqTV9wfdjML6ZY5T2SP6FVbBomdzF8MfKQWVGjWZpeZ2EyDE=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: Trilliant.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 78c8830e-f8cb-4cd2-9b5b-08d5e5b22cb4
X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jul 2018 15:39:35.8203 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4f6fbd13-0dfb-4150-85c3-d43260c04309
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR06MB3179
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/rl3liXuQyq1VqG7XQjVhQNaVT50>
Subject: Re: [core] Comments on draft-ietf-core-yang-cbor-06
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.27
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, 09 Jul 2018 15:39:50 -0000

Hi Carsten

CoMI for example, uses delta for the first root data node based on the requested SID.
In the following example, the +2 is relative to SID 1721 which is part of the requested URI (i.e. a5).
This requested SID need to be maintained in the client state in order to process the response.

https://tools.ietf.org/html/draft-ietf-core-comi-03#section-5.2.3.1

   REQ: GET example.com/c/a5

   RES: 2.05 Content (Content-Format: application/yang-value+cbor)
   {
     +2 : "2014-10-26T12:16:51Z",   / current-datetime SID 1723 /
     +1 : "2014-10-21T03:00:00Z"    / boot-datetime SID 1722 /
   }

Regards,
Michel

-----Original Message-----
From: Carsten Bormann [mailto:cabo@tzi.org] 
Sent: Monday, July 9, 2018 11:23 AM
To: Michel Veillette <Michel.Veillette@trilliant.com>
Cc: Robert Wilton <rwilton@cisco.com>; draft-ietf-core-yang-cbor@ietf.org; core@ietf.org
Subject: Re: [core] Comments on draft-ietf-core-yang-cbor-06

It is much less confusing to always talk of deltas in the structure.

Just say that the context SID value (the one that the delta is computed from) is 0 at the root of a tree.

Grüße, Carsten


> On Jul 9, 2018, at 17:18, Michel Veillette <Michel.Veillette@trilliant.com> wrote:
> 
> Hi Robert
>  
> Andy also asked for a clarification about the encoding of the root data node identifier (absolute vs. delta).
> Section 4.4.1. have a sentence addressing this topic.
>    It is important to note that the protocol or method
>    using this mapping may carry a parent SID or may have the knowledge
>    of this parent SID based on its context.  In these cases, delta
>    encoding can be performed based on this parent SID which minimizes
>    the size of the encoded data.
>  
> A similar sentence need to be added to section 4.2.1.
> We also need to clarify that the protocol or method using this encoding must mandate which approach is implemented, the data serialized don’t carry this information.
>  
> Regards,
> Michel
>  
> From: Robert Wilton [mailto:rwilton@cisco.com] 
> Sent: Monday, July 9, 2018 11:00 AM
> To: draft-ietf-core-yang-cbor@ietf.org; core@ietf.org
> Subject: Comments on draft-ietf-core-yang-cbor-06
>  
> Hi,
> 
> I've read this draft, and think that it is well written.
> 
> There is one area of the draft that is somewhat unclear to me when using SID encodings:  Is the root node(s) of a request or a response always an absolute SID value, or could it still be a delta?
> 
> In particular:
> 
> Sec 2.1 indicates that the translation to/from SID deltas is stateless, which implies to me that the root node(s) of a request/response would always be an absolute SID value.
> 
> Sec 4.2.1 gives an example using a absolute SID for the top node.  It then has this text: "
> 
>    On the other hand, if the serializer is aware of the parent SID, 1716
>    in the case 'system-state' container, root data nodes are encoded
>    using deltas.
> "
> I think that it is quite plausible that the serializer may know the SIDs for all nodes in the data tree, which the text implies it could then use a relative SID for the top node.  Particularly, if the top level node was explicit from the request.
> 
> Hence, I think that this draft could probably benefit in being more explicit on exactly when a top level node uses an absolute SID, and in what scenarios it may end up using a a relative SID.  If this distinction is down to the protocol being used, then perhaps that could be stated?
> 
> One other nit:
> 
> Section 4.4.1 says "delta encoding can be performed", but I think that this should probably be "delta encoding MUST be performed".
> 
> Thanks,
> Rob
>  
> 
>  
> 
> _______________________________________________
> core mailing list
> core@ietf.org
> https://www.ietf.org/mailman/listinfo/core