Re: [core] Last Call: <draft-ietf-core-senml-more-units-02.txt> (Additional Units for SenML) to Proposed Standard

Ari Keränen <ari.keranen@ericsson.com> Tue, 22 October 2019 22:37 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 565F4120124; Tue, 22 Oct 2019 15:37:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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
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 BD799dtpDClU; Tue, 22 Oct 2019 15:37:22 -0700 (PDT)
Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130041.outbound.protection.outlook.com [40.107.13.41]) (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 F28EA120122; Tue, 22 Oct 2019 15:37:21 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nmUyIsBfxcLY8KqxInZ0pX3M15B1ZKklBDUkFMF9STWCN135HS0zg32daBele9/RqYuNq7YSR8MiySlyIB+dTAdZqjtYkO9EKBwPBI+Tbo+4VakRa9Fuapvnb8miOwkUmFZLs/gEN95LzWN3kUvT/HfLw8vWwb+H0ssW+KB4Gbmsbtpi+UYMz6pn6j280HIuYCdSn+ojPUXcrccC5mVO2yz7L4vUyu0dzcIGGBTAhMqt+CjY5Ps/6tjp0+wUYTEDBluQF0gzF9DoDZcy5ruJTYtS0p9MsCH+LoedmePSlfsqZART87tgC66afnTMzzPTprYtM8zW+TPM+mclucoKkw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BTfQN5/SCBg70ZcaGV3NEW8jOLaagbZVuok8npvUZ+Q=; b=oFBMTf1cZMRqEOFVIa4bHe4wkdOPByIwQc4GlG+9GwahA7t0TlWNfkrOM8vxpMd1fKNpwAywrqFNlixTX0dVlziT932z3Kqc+os78YrEwH+wCuUQlOv39Q8UBqylG16XrHUlYwng7NG2e3X6mo6Omvy2qyM5g1TAflHqsbQRuDfPhH2A+sSKLb+A2ODAN3AnF19c4Kag0f8SB7YzKP8nQN1n1h3aPs29kaoBJtZ5nqqzKDMymdy9VW7d7eyI8BpYpuhh1S/Vj1akA00Y2Kz2BzGXbIP772A/xgi8yOYFRtCkDyeXYmuxwvbd7ZPeP8+1Dyd+v2f7gFkJg+r9Nt/pDQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BTfQN5/SCBg70ZcaGV3NEW8jOLaagbZVuok8npvUZ+Q=; b=CjrZmyAu4mPR2K0OXDJp3qMRsyVn57IxuoJalPdOsOKwrXaVXgTii3OVuF/vQuBtukV0oL+PUAQ1MrTDSpzbXiZE6Jv4T4nWhA8+5lfLfQAzwMMUn3M22OlN33wzDO7Gof+5bQ9bEZV+8A5u+fu5GXktoTJvyqtZnYHEjKZrd18=
Received: from HE1PR07MB4236.eurprd07.prod.outlook.com (20.176.166.145) by HE1PR07MB3260.eurprd07.prod.outlook.com (10.170.247.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2387.18; Tue, 22 Oct 2019 22:37:19 +0000
Received: from HE1PR07MB4236.eurprd07.prod.outlook.com ([fe80::3840:ef4a:a3da:a6a6]) by HE1PR07MB4236.eurprd07.prod.outlook.com ([fe80::3840:ef4a:a3da:a6a6%6]) with mapi id 15.20.2387.016; Tue, 22 Oct 2019 22:37:19 +0000
From: Ari Keränen <ari.keranen@ericsson.com>
To: Cullen Jennings <fluffy@iii.ca>
CC: IETF Crazy <ietf@ietf.org>, "core-chairs@ietf.org" <core-chairs@ietf.org>, "draft-ietf-core-senml-more-units@ietf.org" <draft-ietf-core-senml-more-units@ietf.org>, core <core@ietf.org>
Thread-Topic: [core] Last Call: <draft-ietf-core-senml-more-units-02.txt> (Additional Units for SenML) to Proposed Standard
Thread-Index: AQHVhElvBc7gWk7Dm0GWEjW1rMWvnqdmutYAgACA54A=
Date: Tue, 22 Oct 2019 22:37:19 +0000
Message-ID: <10E8F425-E509-4849-AE06-D00313BFB2C4@ericsson.com>
References: <C17F33E0-E060-4104-B9DD-6F48CCC9EF27@iii.ca>
Accept-Language: en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.1d.0.190908
authentication-results: spf=none (sender IP is ) smtp.mailfrom=ari.keranen@ericsson.com;
x-originating-ip: [2001:14bb:150:480b:c8bc:3788:ec3:a7f5]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: f80eabdd-6ea2-44ed-7d4d-08d7574065d1
x-ms-traffictypediagnostic: HE1PR07MB3260:
x-ms-exchange-purlcount: 3
x-microsoft-antispam-prvs: <HE1PR07MB3260D201AC494CBF624699DC85680@HE1PR07MB3260.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:7691;
x-forefront-prvs: 01986AE76B
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(136003)(346002)(39860400002)(366004)(376002)(189003)(199004)(966005)(14454004)(478600001)(446003)(33656002)(81156014)(6916009)(25786009)(81166006)(8936002)(8676002)(86362001)(66946007)(66476007)(66446008)(66556008)(85182001)(486006)(76116006)(64756008)(186003)(85202003)(5660300002)(14444005)(256004)(46003)(2616005)(53546011)(6506007)(102836004)(476003)(76176011)(71190400001)(6246003)(99286004)(71200400001)(305945005)(6116002)(7736002)(4326008)(6486002)(36756003)(6512007)(6436002)(229853002)(58126008)(6306002)(4001150100001)(316002)(54906003)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR07MB3260; H:HE1PR07MB4236.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: wdXbEQNcuZ+UHCGw6zJ4aF5zIbGBHcUrkZ/yDGItrkrXNwvgKarPH6VnGMNltzIMn6Sr7r/px3li/DdYSfbXL7bPXR5Xgkdwn/IDa3VvE804Y6y0FWpYmvEa7l8b2Aw7MBqUFTsk7dMi/C/9fDdBTQh214OH0GXy/fDuUWOABIkO6LtJTmjUcWIfCui59r6pZhAwOSbw/5o36Ll5dOSp4Uem8EJv42nukzFzYqBdmDP5VUzt9edUEzWqHbPnWUBIk9kW7WJPmP/bStOa4NiU+8d5nMa/E+FqH/Oa5o/VzxKXeivRyexv+UkP0CcjadySXPYeUpO8FylF5V2yvqBVnmJTQN1/YoQFGmE74i1tcuhLuVJh1/ORga6Ww/7euollC2BAtOBB8ZLcwI4GzingKt0x8MO5v+1nvTn2kKby2VREnbbbGdnrYFmH77QFeqTSauT5CBBEwf6QaJaw6qMIGExhuK3u6yrl+vyjnTlrkeM=
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-ID: <DAD52FA4D67D9145BA4FBEECF60C2FAF@eurprd07.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: f80eabdd-6ea2-44ed-7d4d-08d7574065d1
X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Oct 2019 22:37:19.2326 (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-CrossTenant-userprincipalname: 6j6QZc2OVqtdgS3AE0LPWuzHTVSPL9sEa2iJN83FLNl/MtY1RaEIZemYBXopL9Cs8uk5s0lHs5tG9FQPnhHiH5utzVN82IhQ2CDQtNSlhak=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB3260
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/k-tZY8f7D8B1l7DdBJBgcpioBoU>
Subject: Re: [core] Last Call: <draft-ietf-core-senml-more-units-02.txt> (Additional Units for SenML) to Proposed Standard
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: Tue, 22 Oct 2019 22:37:26 -0000

Hi Cullen,

Carsten already replied to some of these issues later in the thread, but let me add some more viewpoints.

> On 22. Oct 2019, at 17.06, Cullen Jennings <fluffy@iii.ca> wrote:
> I am strongly opposed to the secondary registry - it will significantly harm interoperability. This could be resolved by not adding the items in the secondary repository or by adding them to the main repository. 
> 
> Having a registry of stuff that may or may not work simply means that we will have less interoperability because what you can not decide what is valid SenML or not.  Sure some of the device vendors making things that produce SenML have thought this was a good idea in the past but I’d like to hear from a bunch of the people that have to process the SenML data that is produced and see if they think it is a good idea. 

Both registries would work and their use would result in valid SenML. In a sense the second registry is almost the same as "adding them to the main repository", but having the second registry enables us to give better guidance which units to use/prefer and also provide the translation to the "main registry units".
 
> The working group discussed this for a long time and was against the items that are being added to the secondary repository. 
> If there is a large group of people that agree the consensus has changed, then this should simply be put in the main registry. Many people believe that since SenML is not meant to be human readable, having a canonical form of just meters with a floating point number is better than having both km, mm, and god only knows what else. 

Yes, the canonical form of "just meters" is still the recommended way in general, but that approach did not work as well as we hoped for all use cases. For example when your sensor value is always in integers of mm/h, it's more convenient and efficient to send integer values than multiples of 2.777e-7. Also in many use cases there is a well-established scaled unit that is used in the industry and forcing to use a different one didn't turn out to be very productive (we can still recommend, though, and that's one of the reasons why we are proposing an additional registry). Finally, legacy models that use non-scaled units but would like to use SenML as the wire format and units registry would be expensive to update to use only non-scaled units.
 
> I note the secondary repository add mm but not cm. How is this insanity going to work out? How will analytics code trying to process this data know what it can use or not use. If we are going down this path, this is the wrong way to do it. The right way is to define a set of all SI prefixes and say they can be used with any unit. 

Any implementation should not try to use anything that is not in the IANA registry. We did also consider to enable all SI prefixes, but concluded that it is still useful to have the smallest reasonable set of units to facilitate interoperability. If there's a real use case that uses a unit with SI prefix that is missing, it can be simply registered. Also not all units in the additional registry would work with just different SI prefix (e.g., min or dBm).


Cheers,
Ari

> 
>> On Oct 16, 2019, at 11:42 AM, The IESG <iesg-secretary@ietf.org> wrote:
>> 
>> 
>> The IESG has received a request from the Constrained RESTful Environments WG
>> (core) to consider the following document: - 'Additional Units for SenML'
>> <draft-ietf-core-senml-more-units-02.txt> as Proposed Standard
>> 
>> The IESG plans to make a decision in the next few weeks, and solicits final
>> comments on this action. Please send substantive comments to the
>> ietf@ietf.org mailing lists by 2019-10-30. Exceptionally, comments may be
>> sent to iesg@ietf.org instead. In either case, please retain the beginning of
>> the Subject line to allow automated sorting.
>> 
>> Abstract
>> 
>> 
>>  The Sensor Measurement Lists (SenML) media type supports the
>>  indication of units for a quantity represented.  This short document
>>  registers a number of additional unit names in the IANA registry for
>>  Units in SenML.  It also defines a registry for secondary units that
>>  cannot be in SenML's main registry as they are derived by linear
>>  transformation from units already in that registry; RFC 8428 is
>>  updated to also accept these units.
>> 
>> 
>> 
>> 
>> The file can be obtained via
>> https://datatracker.ietf.org/doc/draft-ietf-core-senml-more-units/
>> 
>> IESG discussion can be tracked via
>> https://datatracker.ietf.org/doc/draft-ietf-core-senml-more-units/ballot/
>> 
>> 
>> No IPR declarations have been submitted directly on this I-D.
>> 
>> 
>> 
>> 
>> _______________________________________________
>> core mailing list
>> core@ietf.org
>> https://www.ietf.org/mailman/listinfo/core
> 
> _______________________________________________
> core mailing list
> core@ietf.org
> https://www.ietf.org/mailman/listinfo/core