Re: [core] [SenML] Multiple values in a measurement

Christian Amsüss <christian@amsuess.com> Thu, 08 November 2018 18:37 UTC

Return-Path: <christian@amsuess.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 0420512426A for <core@ietfa.amsl.com>; Thu, 8 Nov 2018 10:37:22 -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] 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 nDQmRK-nUg9k for <core@ietfa.amsl.com>; Thu, 8 Nov 2018 10:37:19 -0800 (PST)
Received: from prometheus.amsuess.com (alt.prometheus.amsuess.com [IPv6:2a01:4f8:190:3064::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7D4C313106B for <core@ietf.org>; Thu, 8 Nov 2018 10:37:19 -0800 (PST)
Received: from poseidon-mailhub.amsuess.com (unknown [IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bd]) by prometheus.amsuess.com (Postfix) with ESMTPS id 71AB941F4B; Thu, 8 Nov 2018 19:37:17 +0100 (CET)
Received: from poseidon-mailbox.amsuess.com (hermes.amsuess.com [10.13.13.254]) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id A27746B; Thu, 8 Nov 2018 19:37:16 +0100 (CET)
Received: from hephaistos.amsuess.com (hephaistos.amsuess.com [IPv6:2a02:b18:c13b:8010::71b]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id 75A802E; Thu, 8 Nov 2018 19:37:16 +0100 (CET)
Received: (nullmailer pid 10078 invoked by uid 1000); Thu, 08 Nov 2018 18:37:16 -0000
Date: Thu, 08 Nov 2018 19:37:16 +0100
From: Christian Amsüss <christian@amsuess.com>
To: Michael Koster <michaeljohnkoster@gmail.com>
Cc: Shantanoo Desai <des@biba.uni-bremen.de>, "fluffy@cisco.com" <fluffy@cisco.com>, "core@ietf.org" <core@ietf.org>
Message-ID: <20181108183715.GB26534@hephaistos.amsuess.com>
References: <3643AE5F1967B74C86F1D72E6EB108926367EB@EXCH1.biba.uni-bremen.de> <9315AE8F-0893-4587-8FF3-8EA43BF48D64@gmail.com> <20181108071803.GA4264@hephaistos.amsuess.com> <993797F0-02BB-46C0-94C2-FD62C311635D@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="i9LlY+UWpKt15+FH"
Content-Disposition: inline
In-Reply-To: <993797F0-02BB-46C0-94C2-FD62C311635D@gmail.com>
User-Agent: Mutt/1.10.1 (2018-07-13)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/fpfATdDZcvND8V74hWV6T2Fjbww>
Subject: Re: [core] [SenML] Multiple values in a measurement
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: Thu, 08 Nov 2018 18:37:22 -0000

Hi Michael,

On Thu, Nov 08, 2018 at 10:17:41AM -0800, Michael Koster wrote:
> I don't believe RFC8428 places any normative constraints on the scope
> of the identifiers that result from bn+n, either in section 4.5.1
> names or 4.6 resolved records. 

Quote:

| Name:  Name of the sensor or parameter.  When appended to the Base
|      Name field, this must result in a globally unique identifier for
|      the resource.

I'm not particularly fond of of that, but remember very clear reasoning
from the authors that having unique IDs in there is a stronger
requirement than playing nice with URI references.

> Specifically, I don't imagine there being a senML validator that would
> check for the uniqueness of bn+n resolved names. I don't even know how
> right offhand.

I figure "We funnel data from all our devices into our Enterprise
server whose database behaves like a concatenation of all SenML files"
was one application. That'd get confused quite fast if different devices
all reported their first accelerometer as "3313/0/".

> What do the authors say?

I'd be very happy to be told I'm wrong on this (it would allow more
elegant core-interfaces), and look forward to a response from them.

Christian

-- 
To use raw power is to make yourself infinitely vulnerable to greater powers.
  -- Bene Gesserit axiom