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

"weigengyu" <weigengyu@bupt.edu.cn> Mon, 07 December 2015 09:48 UTC

Return-Path: <weigengyu@bupt.edu.cn>
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 6CE8E1B3656 for <core@ietfa.amsl.com>; Mon, 7 Dec 2015 01:48:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.273
X-Spam-Level:
X-Spam-Status: No, score=-0.273 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, STOX_REPLY_TYPE=0.439, 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 x_JI38pm1oaW for <core@ietfa.amsl.com>; Mon, 7 Dec 2015 01:48:14 -0800 (PST)
Received: from mx1.bupt.edu.cn (mx1.bupt.edu.cn [211.68.68.2]) by ietfa.amsl.com (Postfix) with ESMTP id 1CE031B3658 for <core@ietf.org>; Mon, 7 Dec 2015 01:48:12 -0800 (PST)
Received: from mx1.bupt.edu.cn (unknown [127.0.0.1]) by mx1.bupt.edu.cn (AnyMacro(G7)) with SMTP id 2121B19FBEB for <core@ietf.org>; Mon, 7 Dec 2015 17:48:10 +0800 (HKT)
Received: from WeiGengyuPC (unknown [10.103.241.89]) by mx1.bupt.edu.cn (AnyMacro(G7)) with ESMTPA id 9FA4319FB96; Mon, 7 Dec 2015 17:48:09 +0800 (HKT)
Message-ID: <FB3CCF216AE74BE29256F4ED3B21713B@WeiGengyuPC>
From: weigengyu <weigengyu@bupt.edu.cn>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, Michel Veillette <Michel.Veillette@trilliantinc.com>
References: <BLUPR06MB176391F16B5E9D6CCC531771FE0E0@BLUPR06MB1763.namprd06.prod.outlook.com> <20151207091044.GA59864@elstar.local>
In-Reply-To: <20151207091044.GA59864@elstar.local>
Date: Mon, 07 Dec 2015 17:48:14 +0800
Organization: BUPT
MIME-Version: 1.0
Content-Type: text/plain; format="flowed"; charset="utf-8"; reply-type="original"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Mailer: Microsoft Windows Live Mail 16.4.3528.331
X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331
Archived-At: <http://mailarchive.ietf.org/arch/msg/core/5KoW5Uh9up_SOJwppqzfAE2aFnQ>
Cc: 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
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 09:48:17 -0000

Hi Juergen,

There had been a draft about "Node ID“, CoAP Option Extension: NodeId,
draft-li-core-coap-node-id-option-02.
It was expired June 19, 2015.

Regards,

Gengyu WEI
Network Technology Center
School of Computer
Beijing University of Posts and Telecommunications
-----原始邮件----- 
From: Juergen Schoenwaelder
Sent: Monday, December 07, 2015 5:10 PM
To: Michel Veillette
Cc: Core
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.

- Your ID should normatively depend on YANG 1.1 and cover all the YANG
  1.1 constructs, that is, include anydata.

- I am not sure I understand the anyxml encoding.

- 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?

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

/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/>

_______________________________________________
core mailing list
core@ietf.org
https://www.ietf.org/mailman/listinfo/core