Re: [core] SenML FETCH/PATCH without globally unique names

Jim Schaad <ietf@augustcellars.com> Wed, 06 March 2019 16:01 UTC

Return-Path: <ietf@augustcellars.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 2A1321277CE for <core@ietfa.amsl.com>; Wed, 6 Mar 2019 08:01:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=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 r-vjgo_GFSfo for <core@ietfa.amsl.com>; Wed, 6 Mar 2019 08:01:23 -0800 (PST)
Received: from mail2.augustcellars.com (augustcellars.com [50.45.239.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 021211275E9 for <core@ietf.org>; Wed, 6 Mar 2019 08:01:23 -0800 (PST)
Received: from Jude (73.180.8.170) by mail2.augustcellars.com (192.168.0.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 6 Mar 2019 08:01:16 -0800
From: Jim Schaad <ietf@augustcellars.com>
To: 'Ari Keränen' <ari.keranen@ericsson.com>, 'core WG' <core@ietf.org>
References: <bd978d78-bc3a-b1a4-af9f-7ea336d23d38@ericsson.com>
In-Reply-To: <bd978d78-bc3a-b1a4-af9f-7ea336d23d38@ericsson.com>
Date: Wed, 06 Mar 2019 08:01:14 -0800
Message-ID: <01d801d4d435$d4de9860$7e9bc920$@augustcellars.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQI+VIUwQmAWLhGzjgtA6d94D3QJ9aUrwnMg
Content-Language: en-us
X-Originating-IP: [73.180.8.170]
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/uJiGKa8ZbSacmT3rhzGYz6_weq0>
Subject: Re: [core] SenML FETCH/PATCH without globally unique names
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.29
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: Wed, 06 Mar 2019 16:01:26 -0000

As long as it is defined as optional, I don't see a problem.  I would worry
about possible issues if it was forbidden.

Jim


> -----Original Message-----
> From: core <core-bounces@ietf.org> On Behalf Of Ari Keränen
> Sent: Wednesday, March 6, 2019 7:03 AM
> To: core WG <core@ietf.org>
> Subject: [core] SenML FETCH/PATCH without globally unique names
> 
> CoRE WG,
> 
> One issue on SenML FETCH/PATCH that came up during the joint IETF / OMA
> meeting was that it would be useful to be able to use PATCH payload names
> without the "globally unique prefix".
> 
> SenML RFC has a requirement that all SenML names are globally unique [1].
> This enables the SenML Packs to be easily moved between systems without
> knowing the context they were originally retrieved at.
> 
> However, when SenML (i)PATCH is applied, the context is always known by
> the receiver since the receiver is hosting the resources that are being
> patched.
> 
> For example with LwM2M composite write using iPATCH, the content of the
> Patch Pack in JSON format could be as follows:
> 
> [{"bn":"/3303/0/", "n":"5700","v":22.4}, {"n":"5601","v":12.2},
> {"n":"5602","v":34.2}, {"bn":"/3303/1/", "n":"5700","v":18.2},
> {"n":"5601","v":9.2}, {"n":"5602","v":27.2}]
> 
> (Here you have a LwM2M client with two instances of a IPSO temperature
> sensor, Object ID 3303, supporting following resources 5700: Sensor Value,
> 5601: Min Measure Value, 5602: Max Measured Value).
> 
> If we keep the same requirement as SenML Pack names, both "bn" field
> values would have to be prefixed with the LwM2M endpoint ID, e.g.,
> "urn:dev:mac:0024befffe804ff1". This would consume a fair amount of bytes
> on wire.
> 
> Our suggestion is that we relax the requirement for the names in Patch
Packs
> so that the names are, for example, "evaluated in the context of the
target
> resource". That is, all base names could be automatically prefixed by the
> unique endpoint name and target resource path.
> 
> Comments welcome! This will be discussed in the CoRE interim in one hour.
> 
> 
> Cheers,
> Ari
> 
> [1] https://tools.ietf.org/html/rfc8428#section-4.2
> _______________________________________________
> core mailing list
> core@ietf.org
> https://www.ietf.org/mailman/listinfo/core