[core] SenML: mandatory to understand extensions

Ari Keränen <ari.keranen@ericsson.com> Thu, 30 March 2017 21:15 UTC

Return-Path: <ari.keranen@ericsson.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 8EE10129483; Thu, 30 Mar 2017 14:15:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.221
X-Spam-Level:
X-Spam-Status: No, score=-4.221 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 PzL3VSf7qfr7; Thu, 30 Mar 2017 14:15:08 -0700 (PDT)
Received: from sessmg22.ericsson.net (sessmg22.ericsson.net [193.180.251.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5EA911295EA; Thu, 30 Mar 2017 14:14:36 -0700 (PDT)
X-AuditID: c1b4fb3a-4d72198000003958-9c-58dd753a8d1b
Received: from ESESSHC007.ericsson.se (Unknown_Domain [153.88.183.39]) by (Symantec Mail Security) with SMTP id C2.BD.14680.A357DD85; Thu, 30 Mar 2017 23:14:34 +0200 (CEST)
Received: from ESESSMB109.ericsson.se ([169.254.9.242]) by ESESSHC007.ericsson.se ([153.88.183.39]) with mapi id 14.03.0339.000; Thu, 30 Mar 2017 23:14:32 +0200
From: Ari Keränen <ari.keranen@ericsson.com>
To: Christian Groves <cngroves.std@gmail.com>, core <core@ietf.org>
CC: "draft-ietf-core-senml@ietf.org" <draft-ietf-core-senml@ietf.org>
Thread-Topic: SenML: mandatory to understand extensions
Thread-Index: AQHSqZqfzmx6clkGJkmb76JGWY9hIA==
Date: Thu, 30 Mar 2017 21:14:32 +0000
Message-ID: <9B32F09A-B523-4111-8906-A33FC9C0233B@ericsson.com>
References: <148912314641.5730.14064447847116030290.idtracker@ietfa.amsl.com> <853bbfad-debb-f40c-344c-cff8bd9a89cd@gmail.com>
In-Reply-To: <853bbfad-debb-f40c-344c-cff8bd9a89cd@gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [153.88.183.149]
Content-Type: text/plain; charset="iso-8859-1"
Content-ID: <473698CD58AEC54288EAFD8BC75AFCB3@ericsson.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBIsWRmVeSWpSXmKPExsUyM2K7uq5V6d0Ig2ut0hbXmoMs9r1dz2zx 890SZgdmj52z7rJ7LFnykymAKYrLJiU1J7MstUjfLoErY+KaA8wFp2UqVk6wbWC8K9bFyMkh IWAi0XpwL1sXIxeHkMB6RolzZ7cxQjhLGCX6Xp5nAqliE7CXmLzmIyOILSLgLDHj5gZ2EJtZ wFXi99qbYHFhASOJIx8PskLUmEusbNsL1MsBZOtJ7DsTCxJmEVCV+LbzMFgJL9DIzeeOsUPs amCUuNt4BWwOp4CtxIqpr1lAbEYBMYnvp9YwQewSl7j1ZD4TxNUCEkv2nGeGsEUlXj7+xwph K0msPbydBaJeT+LG1ClsELa1RPuK2VBxbYllC18zQxwhKHFy5hOWCYxis5CsmIWkfRaS9llI 2mchaV/AyLqKUbQ4tbg4N93ISC+1KDO5uDg/Ty8vtWQTIzC+Dm75bbWD8eBzx0OMAhyMSjy8 C9zvRgixJpYVV+YeYpTgYFYS4e2wBgrxpiRWVqUW5ccXleakFh9ilOZgURLnddh3IUJIID2x JDU7NbUgtQgmy8TBKdXAqMt1bpnFyT1iN5YvXHr1ne42lnDF5Z/EVlhL1pRJpIZdmyiQmbrK Oa6uqbCymN8hLnfX00Xc8d7ebzr9G85ebig6MpFpYQjfPrVoR6+7Hl8+sVuvqDZ4tf9BuFyz D3+6sE5qjb2BemblibzADfKeWxfv/njSobqbTTRFLOvcpdktmSemhp9TYinOSDTUYi4qTgQA DK4/f6sCAAA=
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/0ikyeZ7nFFptWRPF53Mj7GQOfKg>
Subject: [core] SenML: mandatory to understand extensions
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.22
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, 30 Mar 2017 21:15:10 -0000

Hi all,

I've been discussing this issue with mandatory to understand extensions (new attributes) for SenML at the IETF meeting with bunch of people, and seems that the preference would be to not use media-type parameters for this, but indicate in the SenML Pack, in attribute names, if there are extensions that can't be ignored (i.e., second option discussed in the draft [1]).

Apparently the media type parameters are in generally currently ignored so they would not actually provide this capability reliably. Also, media type extension would only help in cases where the media types are available, but not in cases where a SenML is distributed in a file or dumped to database (without the media-type information).

Therefore, we'd suggest to pick a character that is safe for attribute names (e.g., "z") and use that in the beginning of the name, or after "b" for base attributes, to indicate an attribute is mandatory to understand. Alternatively we could pick special character like "+" or "_" but some concerns were raised that e.g., some database systems may not like using these in keys.

We're planning to discuss this tomorrow at the CoRE session, but please comment already here on the list if you have any concerns / questions on this.


Thanks,
Ari

[1] https://tools.ietf.org/html/draft-groves-core-senml-options-00#section-3.2

> On 09 Mar 2017, at 23:55, Christian Groves <cngroves.std@gmail.com> wrote:
> 
> Hello all,
> 
> FYI I've submitted a draft to discuss the problem of the behaviour of endpoints if they encounter an unknown SenML attribute such as BTO. This was raised at the Seoul meeting.
> 
> Regards, Christian
> 
> 
> 
> -------- Forwarded Message --------
> Subject: 	New Version Notification for draft-groves-core-senml-options-00.txt
> Date: 	Thu, 9 Mar 2017 21:19:06 -0800
> From: 	internet-drafts@ietf.org
> To: 	Weiwei Yang <tommy@huawei.com>, Christian Groves <Christian.Groves@mail01.huawei.com>, Christian Groves <christian.groves@mail01.huawei.com>
> 
> 
> 
> A new version of I-D, draft-groves-core-senml-options-00.txt
> has been successfully submitted by Christian Groves and posted to the
> IETF repository.
> 
> Name:		draft-groves-core-senml-options
> Revision:	00
> Title:		SenML Options
> Document date:	2017-03-10
> Group:		Individual Submission
> Pages:		13
> URL:            https://www.ietf.org/internet-drafts/draft-groves-core-senml-options-00.txt
> Status:         https://datatracker.ietf.org/doc/draft-groves-core-senml-options/
> Htmlized:       https://tools.ietf.org/html/draft-groves-core-senml-options-00
> 
> 
> Abstract:
>   SenML [I-D.ietf-core-senml] defines an initial set of base and
>   regular attributes which are tied to a particular version of SenML.
>   SenML also allows the definition of additional attributes by
>   extending the syntax with a new label.  Allowing the extension of
>   attributes brings the problem of how do endpoints negotiate whether
>   the new attribute can be used or not?  This document discusses the
>   issue and proposes some potential solutions to this issue.
> 
>                                                                                  
> 
> Please note that it may take a couple of minutes from the time of submission
> until the htmlized version and diff are available at tools.ietf.org.
> 
> The IETF Secretariat
> 
> .
> 
> _______________________________________________
> core mailing list
> core@ietf.org
> https://www.ietf.org/mailman/listinfo/core