Re: [core] CBOR Encoding of Data Modeled with YANG

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Mon, 07 December 2015 19:42 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
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 9057B1A6FF0 for <core@ietfa.amsl.com>; Mon, 7 Dec 2015 11:42:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.86
X-Spam-Level:
X-Spam-Status: No, score=-3.86 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01] 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 1tALsjQ7InW4 for <core@ietfa.amsl.com>; Mon, 7 Dec 2015 11:42:38 -0800 (PST)
Received: from atlas3.jacobs-university.de (atlas3.jacobs-university.de [212.201.44.18]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D53D91A6FEF for <core@ietf.org>; Mon, 7 Dec 2015 11:42:37 -0800 (PST)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas3.jacobs-university.de (Postfix) with ESMTP id 0C7259E4; Mon, 7 Dec 2015 20:42:36 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas3.jacobs-university.de ([10.70.0.220]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10030) with ESMTP id Pn3ujQQtkbjj; Mon, 7 Dec 2015 20:42:34 +0100 (CET)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hermes.jacobs-university.de", Issuer "Jacobs University CA - G01" (verified OK)) by atlas3.jacobs-university.de (Postfix) with ESMTPS; Mon, 7 Dec 2015 20:42:34 +0100 (CET)
Received: from localhost (demetrius2.jacobs-university.de [212.201.44.47]) by hermes.jacobs-university.de (Postfix) with ESMTP id BF26B20058; Mon, 7 Dec 2015 20:42:33 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius2.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id q5TkZwyPGFZP; Mon, 7 Dec 2015 20:42:32 +0100 (CET)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id 94AE320056; Mon, 7 Dec 2015 20:42:31 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501) id 6DEFD3913DD7; Mon, 7 Dec 2015 20:42:30 +0100 (CET)
Date: Mon, 07 Dec 2015 20:42:29 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Michel Veillette <Michel.Veillette@trilliantinc.com>
Message-ID: <20151207194229.GA61491@elstar.local>
Mail-Followup-To: Michel Veillette <Michel.Veillette@trilliantinc.com>, Core <core@ietf.org>
References: <BLUPR06MB176391F16B5E9D6CCC531771FE0E0@BLUPR06MB1763.namprd06.prod.outlook.com> <20151207091044.GA59864@elstar.local> <BLUPR06MB1763ABFE8DE1E0E18F5F06A5FE090@BLUPR06MB1763.namprd06.prod.outlook.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <BLUPR06MB1763ABFE8DE1E0E18F5F06A5FE090@BLUPR06MB1763.namprd06.prod.outlook.com>
User-Agent: Mutt/1.4.2.3i
Archived-At: <http://mailarchive.ietf.org/arch/msg/core/FkqsnDFCcZiNwYGGk67dMdHhML0>
Cc: Core <core@ietf.org>
Subject: Re: [core] CBOR Encoding of Data Modeled with YANG
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
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, 07 Dec 2015 19:42:40 -0000

Hi,

can you configure you mail client to produce traditional quotings?

Concerning your questions, I suggest you use the terminology of RFC
6020bis wherever possible. Concerning the data node ids, I am clueless
how those numeric IDs will be managed since this has been left
out. YANG provides names. Additional numeric assignments do not
scale. Anyway, the way things are named should be part of the document
since otherwise things are incomplete.

/js

On Mon, Dec 07, 2015 at 04:40:52PM +0000, Michel Veillette wrote:
> Hi Juergen and thanks for your comments.
> 
> See [MV] inline.
> 
> Michel Veillette
> System Architecture Director
> Trilliant Inc.
> 
> -----Original Message-----
> From: Juergen Schoenwaelder [mailto:j.schoenwaelder@jacobs-university.de] 
> Sent: December-07-15 4:11 AM
> To: Michel Veillette <Michel.Veillette@trilliantinc.com>
> Cc: Core <core@ietf.org>
> Subject: Re: [core] CBOR Encoding of Data Modeled with YANG
> 
> A few notes:
> 
> - The document talks about a 'node ID' in several places but never
>   defines this concept nor does it explain how these node IDs are
>   created.
> 
> [MV] To give you some context, the current document (https://core-wg.github.io/yang-cbor/) 
> [MV] is an extract of section 4 and 5 of (https://datatracker.ietf.org/doc/draft-veillette-core-cool/)
> [MV] some works are still require to make it a standalone document.
> [MV]
> [MV] About the 'node ID', the terminology used in the current document is in fact 'data node ID'.
> [MV] This is the equivalent to the 'member-name' used in 'draft-ietf-netmod-yang-json-06'.
> [MV] In the context of CoMI and CoOL, data node IDs are always encoded as unsigned integer.
> [MV] If we want to make this mapping also compatible with RESTCONG, we need to support 'member-name' encoded as string.
> [MV]
> [MV] My questions to you are:
> [MV] - Which terminology we should use (tag, data node identifier, ...)?
> [MV] - Should we support both data node ID (encoded as unsigned integer) and object name (encoded as string)?
> 
> - Your ID should normatively depend on YANG 1.1 and cover all the YANG
>   1.1 constructs, that is, include anydata.
> 
> [MV] The current version is based on YANG 1.0 but I agree we now need to extend it to support YANG 1.1.
> 
> - I am not sure I understand the anyxml encoding.
> 
> [MV] The proposed encoding of anyxml allows the encoding of any valid CBOR objects.
> [MV] In the context of YANG 1.1, this definition should be moved to anydata.
> [MV] The anyxml should be defined as a string carrying any valid xml content.
> [MV] Make sense?
> 
> - I guess I am having an issue with yet another ad-hoc namespace
>   notation invention in 3.1.7. YANG type: identityref. Why not use the
>   <module>:<identifier> notation used by the JSON encoding?
> 
> [MV] The intent was to adopt a more compact encoding but the proposed solution don't really archive this goal.
> [MV] Unless we find something more compact, I agree that the JSON encoding should be used.
> 
> - The document confuses YANG types and YANG data node definition
>   statements. I suggest to follow the structure of
>   draft-ietf-netmod-yang-json-06.txt.
> 
> [MV] Make sense, I'll adjust the table of content to be aligned with 'draft-ietf-netmod-yang-json-06'
> 
> /js
> 
> On Wed, Dec 02, 2015 at 08:08:49PM +0000, Michel Veillette wrote:
> > For those interested to the development of the "CBOR Encoding of Data Modeled with YANG" draft. 
> > 
> > The current document is available at:
> > https://core-wg.github.io/yang-cbor/ 
> > 
> > Proposed changes to the Reference, Introduction and Security Considerations sections are available at:
> > https://github.com/core-wg/yang-cbor/pull/2/files
> > 
> > Michel Veillette
> > System Architecture Director
> > Trilliant Inc.
> > Tel: 450-375-0556 ext. 237
> > 
> > _______________________________________________
> > core mailing list
> > core@ietf.org
> > https://www.ietf.org/mailman/listinfo/core
> 
> -- 
> Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>