[core] SenML FETCH/PATCH without globally unique names

Ari Keränen <ari.keranen@ericsson.com> Wed, 06 March 2019 15:03 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 499FC127287 for <core@ietfa.amsl.com>; Wed, 6 Mar 2019 07:03:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.296
X-Spam-Level:
X-Spam-Status: No, score=-2.296 tagged_above=-999 required=5 tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FROM_EXCESS_BASE64=0.105, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.com header.b=G1lfCDct; dkim=pass (1024-bit key) header.d=ericsson.com header.b=F6czs+Ax
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 BZ5en_XWs9sB for <core@ietfa.amsl.com>; Wed, 6 Mar 2019 07:03:15 -0800 (PST)
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 1E0261277E0 for <core@ietf.org>; Wed, 6 Mar 2019 07:03:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/relaxed; q=dns/txt; i=@ericsson.com; t=1551884592; x=1554476592; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fM2Ct7stfHAiBXzzS9kn01UcmJmE8JnMNkIEzlA8JDA=; b=G1lfCDct/RJxETbsIb6KUGlr+7D0F+EoOuI7ZdHtnhUTYAuzP3nd9YEbJflQzWD3 XupxIerXPtBRnpFCVB76uvfKDhVb+1QWbZCnVYelcB3U7u56k5MinZ7n9VLbgQ8r nHGvZ6o+bt1ZNxi0/M3oVDGZLSGLqNc1bCT8E6g0gRc=;
X-AuditID: c1b4fb3a-167ff7000000672c-33-5c7fe12fdacb
Received: from ESESSMB505.ericsson.se (Unknown_Domain [153.88.183.123]) by sessmg22.ericsson.net (Symantec Mail Security) with SMTP id 9E.B3.26412.F21EF7C5; Wed, 6 Mar 2019 16:03:12 +0100 (CET)
Received: from ESESBMB502.ericsson.se (153.88.183.169) by ESESSMB505.ericsson.se (153.88.183.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Wed, 6 Mar 2019 16:03:11 +0100
Received: from EUR01-DB5-obe.outbound.protection.outlook.com (153.88.183.157) by ESESBMB502.ericsson.se (153.88.183.169) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3 via Frontend Transport; Wed, 6 Mar 2019 16:03:11 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fM2Ct7stfHAiBXzzS9kn01UcmJmE8JnMNkIEzlA8JDA=; b=F6czs+AxaZ6dtVqfjj4tGyaLiJY2PFMY7yuyKet+H1V31pkJLoO9bJhiKClYmhX2tf4S/3rU/ium7Fk7P8KS5+XGFGeoCvwMROcAgIjdUtvC9LceMW614VNWP6zlvptmkzasS7uQZNJjUfkuWFJDU7eL7uWicAyp3grLL+XP4x8=
Received: from HE1PR07MB4236.eurprd07.prod.outlook.com (20.176.166.145) by HE1PR07MB3307.eurprd07.prod.outlook.com (10.170.246.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.15; Wed, 6 Mar 2019 15:03:06 +0000
Received: from HE1PR07MB4236.eurprd07.prod.outlook.com ([fe80::d9da:b6e5:313:a24a]) by HE1PR07MB4236.eurprd07.prod.outlook.com ([fe80::d9da:b6e5:313:a24a%6]) with mapi id 15.20.1686.016; Wed, 6 Mar 2019 15:03:06 +0000
From: Ari Keränen <ari.keranen@ericsson.com>
To: core WG <core@ietf.org>
Thread-Topic: SenML FETCH/PATCH without globally unique names
Thread-Index: AQHU1C20LmdMIEtTqU2ewKGY5oAvwQ==
Date: Wed, 06 Mar 2019 15:03:06 +0000
Message-ID: <bd978d78-bc3a-b1a4-af9f-7ea336d23d38@ericsson.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
x-originating-ip: [89.166.49.243]
x-clientproxiedby: HE1PR0301CA0015.eurprd03.prod.outlook.com (2603:10a6:3:76::25) To HE1PR07MB4236.eurprd07.prod.outlook.com (2603:10a6:7:9f::17)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=ari.keranen@ericsson.com;
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 0ae9eb7a-f988-40ab-2c82-08d6a244d6aa
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:HE1PR07M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S7YFAdZ9l8mE5GUoFnpkAh/sK/bb7j16/Mo+NfE0E0TaVLb8Omdpm6ySKF3nq0qft56a1EZbLEwSD0jOxuNjlJsljWxUm0J7n826pV8kbc84nyPWzAP8bWw/RCtBuzDfxCEwASCRiZ9kGqcvtdESq/KYmXEx5ajdnqsueOjW3lpTVfpl0BrGZo7JKHvrqvIGSwUv+OvDzY74XH+6hIciLBaDzIXvJ/o6aIKl8CPu3LJ+6Tt1oeP3nZAQAJA4QeC+B7M25Fm2F8Y/YFZ/rcDSZYLNsbbOb/l6+Ev/tLdOo8FkQfaTWw==
x-microsoft-antispam-prvs: <HE1PR07MB3307ABB0BAF75AC2F12E6A5585730@HE1PR07MB3307.eurprd07.prod.outlook.com>
x-forefront-prvs: 0968D37274
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(346002)(39860400002)(376002)(136003)(366004)(199004)(189003)(71200400001)(58126008)(71190400001)(25786009)(6306002)(966005)(6512007)(476003)(6436002)(2616005)(53936002)(5660300002)(31696002)(478600001)(486006)(256004)(14454004)(99286004)(316002)(85182001)(64126003)(305945005)(97736004)(8676002)(8936002)(26005)(2906002)(81156014)(65806001)(6916009)(65956001)(68736007)(186003)(7736002)(86362001)(52116002)(102836004)(36756003)(81166006)(6506007)(386003)(106356001)(105586002)(3846002)(6116002)(66066001)(6486002)(31686004)(85202003)(65826007); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR07MB3307; H:HE1PR07MB4236.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: M2v1QEiVg3YpgKdvGuqUOMEjgfgo6SZ19tgyinUFAIaCw4MXJU6kORMd186Xhl8gJB2ofztupsY6h3WUMndNpTUB1s+mTAHWw5e9iJIPKuFGn4FSpAqw6WplHBv8VejgYd7bZK/D3VwIaKgSywW9GgVOtMTQ3lT2y+NPEoaMh1NsBN7n5xmc/kasJClJOuPsyTvjZSk9CCjlvqWtR/yedyRsdhwR3u6Gkj+gefz/GBmZXZCn3TNYijCKPV8ap3QEyUaE/l0NwvLlvt2SMP1a5TkzZNb3GuVZi+wGFkTFVMmg5A1VG24X3QWS1wHZd6fkJ7BuJ+KwzdOll7UOjLVV0mY9t996+X2yy6NmntcUUdQ6ueL17nfZn6yN3ZKgT3p5RXcnxtSrogxaKZcfcyAt6nFl7QVnE1aUOQXxOzIJzcg=
Content-Type: text/plain; charset="utf-8"
Content-ID: <0824208E741B2643B65EBB7FE162CEAF@eurprd07.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 0ae9eb7a-f988-40ab-2c82-08d6a244d6aa
X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Mar 2019 15:03:06.5238 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB3307
X-OriginatorOrg: ericsson.com
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpnleLIzCtJLcpLzFFi42KZGbG9WtfgYX2MwfvDjBb73q5ndmD0WLLk J1MAYxSXTUpqTmZZapG+XQJXxrTvP5gKzglVNNx2a2CcINTFyMkhIWAiMfHeJvYuRi4OIYEj jBL7965kgnC+Mkp833CPEcJZzCRxp2E+K0gLi8AEZonp6+ogElOYJPqmfoaqus8o8XjPdWaQ KjYBW4knrfvAOkQEpCV2bloEZgsLWEi0PN/ICBG3lXj49DMThK0ncfzEFRaIDSoSTTsbwebw CthLPP94AKyeUUBM4vupNWD1zALiEreezGeCeEJAYsme88wQtqjEy8f/wHaJCqRJrOl9AFWj KHH23UOw3yQEpjJKvLs0lxliaLTEq1Mn2SGKdCTOXn/CCGHLSlya3w1l+0r8XLiBDaL5JqPE ntmbWSESWhLbHlxng7ClJE5cPMoKUXRUUGLy55tQU7MlPt2fA7SaA8iWkVjbZAlR84hV4tXl 3+wTGPVnIfloFlAZs4CmxPpdUGEPiQ+zb7BD2IoSU7ofgtm8AoISJ2c+YVnAyLqKUbQ4tbg4 N93ISC+1KDO5uDg/Ty8vtWQTIzB5HNzy22oH48HnjocYBTgYlXh4+3fXxwixJpYVV+YeYpTg YFYS4XVfAxTiTUmsrEotyo8vKs1JLT7EKM3BoiTO+0dIMEZIID2xJDU7NbUgtQgmy8TBKdXA OJ+1PDxo8b6UlRdjm2bLf+Lnjpv4KPe6tN9qHvUfn0rfFyie3rjEoo151za/z20KKg1zW9Y4 zr/NY+zJWBNa2XWbc5r67Zd/zaI3ezPE7130tdjphp2CVaWY4R69qkSZ+2HvXqyQX9mlWrrm Rd2DmTzb7TKYr0TnHlcLCou3yGLWE+dO8lJUYinOSDTUYi4qTgQAaitFhRoDAAA=
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/h6rbU3HZFejRF5xFbD3prVCt5bA>
Subject: [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 15:03:17 -0000

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