Re: [core-parameters] Heads up for senml-versions

Carsten Bormann <cabo@tzi.org> Wed, 07 April 2021 08:37 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: core-parameters@ietfa.amsl.com
Delivered-To: core-parameters@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 17DC63A1140 for <core-parameters@ietfa.amsl.com>; Wed, 7 Apr 2021 01:37:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.919
X-Spam-Level:
X-Spam-Status: No, score=-1.919 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, 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 qCFB3J41q8aN for <core-parameters@ietfa.amsl.com>; Wed, 7 Apr 2021 01:37:09 -0700 (PDT)
Received: from gabriel-vm-2.zfn.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 038573A1146 for <core-parameters@ietf.org>; Wed, 7 Apr 2021 01:37:08 -0700 (PDT)
Received: from [192.168.217.118] (p548dc178.dip0.t-ipconnect.de [84.141.193.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4FFd6n58GkzylF; Wed, 7 Apr 2021 10:37:05 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <AM8P190MB09798799F0D5CDBEE05A76B6FD769@AM8P190MB0979.EURP190.PROD.OUTLOOK.COM>
Date: Wed, 07 Apr 2021 10:36:58 +0200
Cc: Jaime Jiménez <jaime@iki.fi>, "core-parameters@ietf.org" <core-parameters@ietf.org>
X-Mao-Original-Outgoing-Id: 639477418.046751-7b97d505b139cba1ea43065f4d9f6c15
Content-Transfer-Encoding: quoted-printable
Message-Id: <1F39DA79-D2AC-48B4-8C86-BE3F8233F4AF@tzi.org>
References: <344256de-9aff-4677-ac6f-b214a9e954e1@www.fastmail.com> <AM8P190MB09798799F0D5CDBEE05A76B6FD769@AM8P190MB0979.EURP190.PROD.OUTLOOK.COM>
To: Esko Dijk <esko.dijk@iotconsultancy.nl>
X-Mailer: Apple Mail (2.3608.120.23.2.4)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core-parameters/MdIKnB5QHjsyaOPDIT8HZSXSoFI>
Subject: Re: [core-parameters] Heads up for senml-versions
X-BeenThere: core-parameters@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Expert review of CoAP parameters." <core-parameters.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core-parameters>, <mailto:core-parameters-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core-parameters/>
List-Post: <mailto:core-parameters@ietf.org>
List-Help: <mailto:core-parameters-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core-parameters>, <mailto:core-parameters-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Apr 2021 08:37:12 -0000

Hi Esko,

> As an outsider to SenML I think the reason for doing this particular encoding in the version number is not yet well explained in the draft.  Somewhere it should state e.g. "re-purposing the version number is preferred to adding an additional feature-bitmask field in a version-11 format, because shorter to encode in average use cases”.

Re being short as a rationale: See first paragraph of 2.1 (OK, it’s called “efficient” there).

There is an infinite number of other approaches that solve this problem.
The specific one you mention really didn’t come to mind as it is inferior both to the one we chose and the introduction of a separate must-understand feature bit mask (no need to update the version number then).
I’m not sure we should discuss all these potential alternative approaches.

> The registry looks okay from what I can tell!
> For the sake of caution it could be useful to already reserve one feature code (e.g. the last one?) to indicate a far-future-version that doesn't encode a particular set of features but leaves open the door towards a completely different format (not using the feature codes) some day. 

Well, we do have must-understand fields, so we can switch some features over to them whenever we like (possibly earlier than exhaustion of the version number bits).  (See parenthesis in penultimate paragraph of 2.1., which I think also at least partially covers the previous point.)

Grüße, Carsten