Re: [core] πŸ”” WG adoption of draft-veillette-core-yang-cbor-mapping-00

Somaraju Abhinav <abhinav.somaraju@tridonic.com> Thu, 21 April 2016 05:46 UTC

Return-Path: <abhinav.somaraju@tridonic.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 1348912E8F3 for <core@ietfa.amsl.com>; Wed, 20 Apr 2016 22:46:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=zgrp.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 mi61-Kpieaob for <core@ietfa.amsl.com>; Wed, 20 Apr 2016 22:46:05 -0700 (PDT)
Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1on0765.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe00::765]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 51E3212E8DB for <core@ietf.org>; Wed, 20 Apr 2016 22:46:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zgrp.onmicrosoft.com; s=selector1-tridonic-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=RxPgc2i0neIFK90fLCOl50kTq4MgZOPmSm9yp58axrE=; b=oXHDYdbguuT0qO0ysF7hgHousaWoVau9WiJ3IlNq0QJsHh81pfFCaCqavBet11pPnivXi333NK1YR/YINPj9NOdd0+HM6u2coDS/lCk2GnKSrI7Y19XGzJci16BJ/Rs+WNOc6r33WOvsfnw3GhhuRe6qaVwJTjF1a/DKnD4MPUo=
Received: from VI1PR06MB1839.eurprd06.prod.outlook.com (10.165.237.157) by VI1PR06MB1840.eurprd06.prod.outlook.com (10.165.237.158) with Microsoft SMTP Server (TLS) id 15.1.466.19; Thu, 21 Apr 2016 05:45:46 +0000
Received: from VI1PR06MB1839.eurprd06.prod.outlook.com ([10.165.237.157]) by VI1PR06MB1839.eurprd06.prod.outlook.com ([10.165.237.157]) with mapi id 15.01.0466.023; Thu, 21 Apr 2016 05:45:46 +0000
From: Somaraju Abhinav <abhinav.somaraju@tridonic.com>
To: "paduffy@cisco.com" <paduffy@cisco.com>, "core@ietf.org WG" <core@ietf.org>
Thread-Topic: [core] πŸ”” WG adoption of draft-veillette-core-yang-cbor-mapping-00
Thread-Index: AQHRkyOt4F+Ix0rEaEedjfMR6kWbt5+TEn0AgAAED2OAAAoGAIAA0RKU
Date: Thu, 21 Apr 2016 05:45:46 +0000
Message-ID: <VI1PR06MB18395917B148B4900842F399FC6E0@VI1PR06MB1839.eurprd06.prod.outlook.com>
References: <570A4583.2030100@tzi.org> <CABCOCHQ5Xw3zkLFysEZKEeW+dO-jtv_BzdiDGguU8PP-CdJEAQ@mail.gmail.com> <VI1PR06MB18398FE5960297BE101C2339FC6D0@VI1PR06MB1839.eurprd06.prod.outlook.com>, <5717B11E.10806@cisco.com>
In-Reply-To: <5717B11E.10806@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: cisco.com; dkim=none (message not signed) header.d=none;cisco.com; dmarc=none action=none header.from=tridonic.com;
x-originating-ip: [178.165.131.110]
x-ms-office365-filtering-correlation-id: 595ddf68-35ae-419e-2176-08d369a82f93
x-microsoft-exchange-diagnostics: 1; VI1PR06MB1840; 5:RFR7X5WGHzftTKa76XhjEzhhLIA/CSuwAJHKK2MzvhgUVhTjK16mfPMfFiSIj84UZ2AP81pYmjzThykQiQXH0bOtGDIx8hzzkFfYs83k5Nrj2tDnFsY7H7liqsEzNeER0hLk4dFZ7k3I+mmUrwtOorYoZuyiLvtqvQGZGHnu/1wECDGv2t7vkyDR78DY6bvO; 24:k+pt3Yr1VOh25lk/G7TEzq0ZuMZSG6J1f2ghtxgRMe1JnY0tnyTn8h9qe50b1IBM8LrUoYy/qrQjMJpbpMhqky0ckFW9LZ/3Doh4YTcYysA=; 7:xS81ojPdt6oS1x6RRW2W3S7EIa/0D7yd7BwMzyNGXJGdmsridpl+U7C60e3REAfhnx1nUZ0XJ/GT+9hm+78c4l5gLXxfsYpVJzgnuhPwpM26D4JFDEtmDzaou2UCCLhy6Vn/z3fruYQ99j39fpdv+vP/84Ag8hFlt5RTiKkD/iS7u2+Lm8faLb4icJ92CZWWa5H8wvF5YzrzHjCTbNpdvYAmynbKdsyLgvzPveD37CE=
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR06MB1840;
x-microsoft-antispam-prvs: <VI1PR06MB1840283231E0D364F974BBE0FC6E0@VI1PR06MB1840.eurprd06.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(95692535739014);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(9101521026)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:VI1PR06MB1840; BCL:0; PCL:0; RULEID:; SRVR:VI1PR06MB1840;
x-forefront-prvs: 091949432C
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(24454002)(377454003)(189998001)(5001770100001)(1096002)(10400500002)(3900700001)(9686002)(3660700001)(3280700002)(107886002)(1220700001)(33656002)(5008740100001)(92566002)(102836003)(81166005)(3846002)(6116002)(16236675004)(2906002)(19625215002)(76576001)(66066001)(5004730100002)(50986999)(76176999)(54356999)(230783001)(2900100001)(15975445007)(77096005)(2950100001)(19617315012)(5890100001)(2501003)(19580405001)(19580395003)(87936001)(74316001)(86362001)(586003)(5003600100002)(93886004)(5002640100001)(19627405001)(122556002)(11100500001)(229383001)(106116001); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR06MB1840; H:VI1PR06MB1839.eurprd06.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en;
spamdiagnosticoutput: 1:23
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_VI1PR06MB18395917B148B4900842F399FC6E0VI1PR06MB1839eurp_"
MIME-Version: 1.0
X-OriginatorOrg: tridonic.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Apr 2016 05:45:46.0778 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 8b206608-a593-4ace-a4b6-ef1fc83c9169
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR06MB1840
Archived-At: <http://mailarchive.ietf.org/arch/msg/core/EUlQTJWcaooJS_c1Oe8bw7DDoPw>
Subject: Re: [core] πŸ”” WG adoption of draft-veillette-core-yang-cbor-mapping-00
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: Thu, 21 Apr 2016 05:46:08 -0000

Hi Paul,

it is good to hear from you - I am familiar with the good work being done within the digital ceiling group at Cisco.


When we started looking for a modelling tool about 6 to 9 months back, RAML+JSON schema was one of the options we looked at and it was an option I was not too unhappy to use. However, YANG turned out to be a better solution for several reasons and I list the three main ones in decreasing order of importance from my point of view.


1) Standardization: I personally do not have a problem with using a standard that is sub-optimal for my problem as long as there is one solution that is being adopted in the field. For constrained device management, there were no real products in the field so we looked at the two options of RAML+JSON schema and YANG. YANG seems to be gaining a lot of momentum with the adoption of NETCONF/RESTCONF for network management. For instance it looks like 6Tish, LPWAN, Anima etc. are panning on using it already. With regards to OCF, I currently see no products in the field and IoTivity is way too bloated for me to build products on small Cortex-M type controllers at the moment. So, I do not yet see enough usage of RAML+JSON in the constrained device world and see YANG becoming a very well used tool in the network management community.


2) Technical: From a technical point of view, YANG provides me the right kind of additional options to specify an interoperable lighting resource model. IMO, the main technical difference between YANG and RAML+schema is that the later fixes the syntax of any client-server interaction but the former can also be used to model semantics. For example, I would like my luminare resource model to provide an API for accessing light intensity but also be able to tell which state the luminaries go to if there was a power cycle and/or if network connectivity is lost to the server. I want these to be specified not by a client writing to specific resources in the luminaire object but as a part of a standard so that all luminairs from different manufacturers behave in the same standard manner. A second example is that I would like to categorize my data into different blocks based on usage by commissioning/maintenance engineers. There are several example where requiring interoperable behaviour of sensors/actuators in the field requires me to not only standardize the syntax but also the semantics of my information model. Also, specifying YANG + conversion rules to JSON, XML, CBOR etc. allows me to carry any media-type using a single information model. I do not want to use JSON in the constrained networks and will be using CBOR. Though, it is possible for me to start with JSON schema and carry CBOR payload, this does not make use of all the optimizations that are possible in JSON. Also, YANG has some additional features, e.g. notifications that are very important in event driven local control that have no counterpart that I know of in RAML.


3) Tooling: In this respect RAML+JSON is better, but not much better. The main issue is that there are tools available to go from RAML+JSON to web server applications. However, to translate the Interface+schema to c/c++ on small embedded device, there don't seem to be too many options ATM.


To summarize, I think it is essential that the industry aligns around one modelling language and I would not have too much of a problem if this was RAML+JSON. However, I do not see that happening right now and YANG+CBOR seems to be more suited to the constrained network/constrained devices application with more momentum because it is being used in the network management applications.


Regards,

Abhinav

________________________________
From: Paul Duffy <paduffy@cisco.com>
Sent: Wednesday, April 20, 2016 6:41 PM
To: Somaraju Abhinav
Subject: Re: [core] πŸ”” WG adoption of draft-veillette-core-yang-cbor-mapping-00

Greetings Somaraju

BTW I am a member of the Cisco Digital Ceiling team (amongst other matters).

What are your issues with JSON Schema versus YANG?

OCF has adopted RAML for RESTful interface definitions.  Cisco is supportive of RAML and RAML + JSON Schema.  We think this is good approach.  Reasons: YANG tools ecosystem / support for YANG is generally poor, and JSON generally has huge traction and great tooling support.

YANG to CBOR seems a large impedance mismatch.

?

Cheers


On 4/20/2016 12:08 PM, Somaraju Abhinav wrote:

Hi,

I (as an author) am in favour of adoption.


We plan to use Yang to model resources in lighting and building automation applications and will use the Yang-Cbor mapping draft to specify how the payload will be formatted in CBOR instead of using JSON/XML schema definitions.


Abhinav


________________________________
From: core <core-bounces@ietf.org><mailto:core-bounces@ietf.org> on behalf of Andy Bierman <andy@yumaworks.com><mailto:andy@yumaworks.com>
Sent: Wednesday, April 20, 2016 5:50 PM
To: Carsten Bormann
Cc: core@ietf.org<mailto:core@ietf.org> WG
Subject: Re: [core] πŸ”” WG adoption of draft-veillette-core-yang-cbor-mapping-00

Hi,

I am in favor of adoption.
We plan to implement this draft for use with CoMI
and possibly RESTCONF.


Andy


On Sun, Apr 10, 2016 at 5:22 AM, Carsten Bormann <cabo@tzi.org<mailto:cabo@tzi.org>> wrote:
In Buenos Aires, we discussed the adoption of
draft-veillette-core-yang-cbor-mapping-00 but not enough people had read
the document to go for an in-room consensus call.

This is a two-week call for adoption of
draft-veillette-core-yang-cbor-mapping-00 as a WG document of CoRE.
Specifically, if you (1) support or (2) have an objection to this
decision, please speak up on the mailing list by 2016-04-24.

Note that this work is explicitly covered by our charter, so discussions
of which WG should work on this are off-topic.

As always, adoption of a document as a WG document is not a vote on
whether we already have reached last-call state; the intention is to
work on the WG document after adoption for a while to get it ready for
last call.  If you want to combine your support/objection with technical
comments, this is certainly welcome so we can accelerate that process.

Grüße, Carsten

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

________________________________________________________ The contents of this e-mail and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this e-mail is received in error, please immediately notify the sender and delete the e-mail and attached documents. Please note that neither the sender nor the sender's company accept any responsibility for viruses and it is your responsibility to scan or otherwise check this e-mail and any attachments.


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


________________________________________________________ The contents of this e-mail and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this e-mail is received in error, please immediately notify the sender and delete the e-mail and attached documents. Please note that neither the sender nor the sender's company accept any responsibility for viruses and it is your responsibility to scan or otherwise check this e-mail and any attachments.