Re: [Gen-art] [Last-Call] Genart last call review of draft-ietf-core-senml-data-ct-04

Christer Holmberg <christer.holmberg@ericsson.com> Thu, 16 September 2021 09:50 UTC

Return-Path: <christer.holmberg@ericsson.com>
X-Original-To: gen-art@ietfa.amsl.com
Delivered-To: gen-art@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D0D633A2276; Thu, 16 Sep 2021 02:50:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.553
X-Spam-Level:
X-Spam-Status: No, score=-2.553 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.452, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, 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 OAeL0ye6V7DO; Thu, 16 Sep 2021 02:50:02 -0700 (PDT)
Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00069.outbound.protection.outlook.com [40.107.0.69]) (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 E337C3A2272; Thu, 16 Sep 2021 02:50:00 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ARpkJYN4cqnSgtkfFKL+j6IgmNhzLHfbXQeAQlM2q/10xMHujYnQh5Fiur7gy/aOnySlixowptkGYEVnnhD82+dvDR3bS1BFqktR2VZumpe7gGbI2l0Y+iMUBVW+BkY6LqykvldS1ZGeFIZgweWRwmWo+YjrLDd51FJM+uTuNr2nHsjzqKVgpASgsUubVqeXfmQ/B+NaKXGFuowRo0wDeX2qExt1Ywsy59oRuK04fFOl8RDgQty7JFdxAmTtGUX+K7QhWt5dw+qyIhXZLuQmMbptdee8DdR1CSHjviVfN4XBbE2A+RxX3zQARmrL9GOFhxRlSEdNy58vqISh4eV8fQ==
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; bh=TAT16GPlYOO+7w+q5IMDJrA6vz5eRWbh6XG/tVU985w=; b=hrV68JvmLYjS+CzOaa5U2xqDDAK8uZ8x/ecl75im/Fdt7mSgV0lmazaJXqFy5Xh0AvwWSjDnAMPz+rHZDfo1e0TeRpaJwXMo7/7JNdccwxkhF3SATsi4ur32glcrnG2DhivuRM10kBCDoKI9ifR5kYiqn+paX5eayyLETFLmu+yAZox/N6Oe6Py3eVHyxqxq0canErrimrbQXurhYpa2Rj/H7HhmTByn1IxknGE5wHDR9wK55gz/AITYSQ6TIxlobH3EExCrCVyaW5V8fMZgn/B9P5DvJCbcR0BdruBD6taWxLFI3yJn5L2uBojDF5j8dUfQjOpktrSd3Kz7Z8xuQQ==
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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TAT16GPlYOO+7w+q5IMDJrA6vz5eRWbh6XG/tVU985w=; b=iiHoGs1e6TyOOEs6ox+phGxrH+k81IQFDI+D7umz97cz2lhIQd8UwhkcdvpenSDSx1Sdxw9l2PNZIJYd7yoXoi9sfAL0Yl62MQ9soWBiE3l5AwmQ67uce9qbisLQrTrVg+RKR3CWEooFBT8+6thg3yLeBx+ArtUjz2xcHQGyJYQ=
Received: from HE1PR07MB4441.eurprd07.prod.outlook.com (2603:10a6:7:9f::27) by HE1PR0701MB2267.eurprd07.prod.outlook.com (2603:10a6:3:2a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.9; Thu, 16 Sep 2021 09:49:54 +0000
Received: from HE1PR07MB4441.eurprd07.prod.outlook.com ([fe80::49b7:5cc:5aeb:fb2a]) by HE1PR07MB4441.eurprd07.prod.outlook.com ([fe80::49b7:5cc:5aeb:fb2a%4]) with mapi id 15.20.4523.014; Thu, 16 Sep 2021 09:49:55 +0000
From: Christer Holmberg <christer.holmberg@ericsson.com>
To: Carsten Bormann <cabo@tzi.org>
CC: "gen-art@ietf.org" <gen-art@ietf.org>, "last-call@ietf.org" <last-call@ietf.org>, "draft-ietf-core-senml-data-ct.all@ietf.org" <draft-ietf-core-senml-data-ct.all@ietf.org>, "core@ietf.org" <core@ietf.org>
Thread-Topic: [Last-Call] Genart last call review of draft-ietf-core-senml-data-ct-04
Thread-Index: AQHXqiSnF9F3eGD7I0OSQbkNtCY/T6umZn3Q
Date: Thu, 16 Sep 2021 09:49:54 +0000
Message-ID: <HE1PR07MB44411F1BB4D8761D516629ED93DC9@HE1PR07MB4441.eurprd07.prod.outlook.com>
References: <163092350360.5169.1299765677300317336@ietfa.amsl.com> <EDBEFC34-AD8F-4E8A-B289-B5A6A3E9C30D@tzi.org>
In-Reply-To: <EDBEFC34-AD8F-4E8A-B289-B5A6A3E9C30D@tzi.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: tzi.org; dkim=none (message not signed) header.d=none;tzi.org; dmarc=none action=none header.from=ericsson.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: dde6b9db-a616-4ece-dd3a-08d978f75654
x-ms-traffictypediagnostic: HE1PR0701MB2267:
x-microsoft-antispam-prvs: <HE1PR0701MB226763C7CC28521D1522556793DC9@HE1PR0701MB2267.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: NTHmD8bo4SUji70Eq7L5j84paoIJaUeqFIB7tFp2ifwS60783hWP205uxWtoHEYqzKCGSFAZkR8KnKLFOKUbiu5MMxlJ5XRZv0jzrSr9isNPPV5gEnhPYOEB+eGx+gSMkjN1RtnEPEbi1lC4OHfbgcyCpNx4fGpQI0sIYuAoIgSHY1YKtyC2pSCqeMXGpM8bBF9XOI3E2roKH64Du2MtkfKEzCkYER8xZfjqi7zY+mkssw0+Bakg3VtMP4NqU/SMIX0svyNMFgKW2g5Sr8HpTJYVMOfqbGaM5BiffJq7MrdwJTjuMgAoVKy3kEjPxRF6WKXwP711n/87dyXLygE4fMTVMDxodBX2iJCWkYsnUQJrQMN72kK1oYB3kv/4Inl8KJeyDIuzO2axRepWe42n2nz/NybJ5fxK07baBcWJLA0v70sWuOXSHuAGZcYCwR7a7gG6Hft+/LcYEMHSd9qr1XwjFp1sSjsgUjbCQ1xlDc/Wok1U1FvKFXJrqzHFW5cW2PZ+jFdnftJUJvThXHDoIdCKJLbtu+GFjdimn5/1TI/pxQkK0qeYO/LWmBjibbdVwRrs3/j2q1oZshcLRMsILZPwmNvEj+SxItBK87icRkbLHcSbAVL1xBRZ4O6AyOFf1qOjfO8zk+97HGkP94oGyNfVaDFCuxMqbKcLqk1bohfF5uDE76Yaw5gFxuwPolbFIC1QWha0Oi4I06rvIUHKAw==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR07MB4441.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(346002)(39860400002)(366004)(136003)(376002)(66946007)(38070700005)(478600001)(33656002)(66476007)(66446008)(71200400001)(26005)(76116006)(5660300002)(122000001)(38100700002)(64756008)(2906002)(52536014)(9686003)(55016002)(7696005)(8936002)(6916009)(44832011)(6506007)(54906003)(83380400001)(316002)(66574015)(86362001)(186003)(4326008)(8676002)(66556008); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: 00452akrj2dN8LLs8UIWzxd5H6Z8jHK0h2Ssli227FQQjxi/9nHXleR9RWXU2b0uFih4iVcuyv4ZlLlAntAVLMWRrpnFN2zIBCthrkLWLE7a93aBY5uzDE8kySSkipRUNjrce4rCOOMCuGGh9Cffn+OvYDSAiaC/TIKSRSRNyt5fEMTIJnLgjWNcp4nUXScX4mF+pQ93NNRsjap3rJOOnAsL61VBDRD6/RSiy6Ju6LL2H4rEpgQ8YjlekhfNANB5djKJabn3nagbFUjQzmL5iCoNOOOb3g+HZvx6UTv0g9QDfzf/g/MJgCx6rd7KVawPYDmXhzVlpgBUi04N0HepZz2DJMz9NQRY8oXI3viJCHz90C3+SazDB2M7oQ6Dzdjx/LytUk5FptyBE5RgsHsEibcmkN8fVflILzsBbEGa4XD/Qb1ZZUf8boPB32giKTbuQ7NhRGxK0MdvYdkPQ7RIUFKNDF7EU6i+VPISaWUdVRhTyytsRlaG6L7lqvXRc6WhM8u6T471ENjxSt4yl6C/UEW3buKwS2G8+cOf/4K0AiCSK6aUxeua3kSSSFUMRn/0SO/JONNnl1XUGEWO1N4K0EQaZEoKNyMpLlVFki7OCdmJaPwncMcAUYVcL51Ex99IiMXJW2Q5ykIszEQkn5/WG9rw0EW3aW0BnyZm5/eK0wpNNpXnCqmKnU69w8TaV7MUNNEnNWFyqQpiZ8bZ7MBAs2dpKDb98pcWC+QbL6yPmVy01MjZDHC3gXdASeR3meTSDmWCCNxvZIyRq+57emKg9Q5z7zdZSg5YIfrDuhz6Pr9XFbPRfV6rJI+AZO/n+kHPpIqGNZdXdHISMOdFxCJ8ncmTKwFXPJdxHx3/g69FVI+/JYl1wXP7fCfropALmCDW+7SyyGg1kECAbIMEfhifO3ZeGfWrTPWjI/rhaSm5nI+Phbn3BMuprFFUVUqYFAwfXxFzlt72awEFmZZ1av5xmai2QPwYHhdZf1EvJZg88Gh4EVDWtBK94V72xFW155zNYY1ksoyhS4rUaRafhmuCS8d7iexeUPoB+ROq7PsJYkrIo7RElOMC84b9pyusjdjCIK3A8KTIw3KnCBtGIPT2iPkExNhtRxHWf/onfwdA7KiJV5XKm/ejhprAQF5JGH/0IVTKu5vaqWFWvyQW0UTMiZpWNBGKKXw4QamyRE29JjJ5jkKIK6HxetDDSEsN1x6q6A8d8KE9uWpSajAwfZaDXVqSxShy4gNCv4DToSu1td0ZdzNlomj3KCRVseURN+oQ+mABZ9Am2pmnLmvwQCTBBn+fo6Wc8bjN9nGXAX9I0MijAmtaRhZdh7YClQtdJEKE
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: HE1PR07MB4441.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: dde6b9db-a616-4ece-dd3a-08d978f75654
X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Sep 2021 09:49:54.8794 (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: XkuF0pPIueCdTyqibT5h45vwm+WlGk10ih2NW74BNVEAw1AvXVziGNR1+SxszUP88XSJEgMbvdpDeHw2q/LZGEOA4k3MXHwyDzXEm0xSJvE=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0701MB2267
Archived-At: <https://mailarchive.ietf.org/arch/msg/gen-art/mo-YRyd3R-kdPhNlbwkMAcHgbLA>
Subject: Re: [Gen-art] [Last-Call] Genart last call review of draft-ietf-core-senml-data-ct-04
X-BeenThere: gen-art@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "GEN-ART: General Area Review Team" <gen-art.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/gen-art>, <mailto:gen-art-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/gen-art/>
List-Post: <mailto:gen-art@ietf.org>
List-Help: <mailto:gen-art-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/gen-art>, <mailto:gen-art-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 16 Sep 2021 09:50:07 -0000

Hi,

I have removed the issues where I am ok, with no further comments, with the reply you gave :)

>One interesting side note I have from reading the review is:
>The CoRE WG, which produced this specification, is probably best known for maintaining the CoAP protocol, but it also has some other specifications, in particular with respect to data formats.
>
>One example is the RFC 6690 link-format, which is well tied-in to the CoAP discovery mechanisms (RFC 7252 /.well-known/core, CoRE resource discovery).
>
>SenML is the other major data format, with CoRAL coming up — both of these formats are really independent of CoAP, but of course have been designed to fit well with CoAP-based environments.

Sure, and there is nothing wrong with designing with some specific usage in mind.

But, I don't think the reader should have to know CoAP in order to understand SenML.

---

>>With that additional context, let’s dive in:
>>
>> Summary: I have reviewed the document. I have one technical comment, 
>> but the rest is mostly editorial. Related to that, I do think the 
>> document could use some editorial clean-up, e.g., when it comes to 
>> consistent terminology. I think it is also good not to assume that the 
>> reader knows CoAP, and to make sure the appropriate references/explanations are present when CoAP is referred to.
>> 
>> Major issues: N/A
>> 
>> Minor issues:
>> 
>> Q1 (TECHNICAL):
>> 
>> What happens if the receiver does not support the "ct" value? Is it a 
>> server-error? If so, what response code is used? I think that should 
>> be specified.
>
> SenML is a data format; the specific protocol using which SenML data are passed around and how recipients of SenML would react in such a protocol to data they
> cannot process is not specified in SenML.  However, with respect to the extension point of adding new field names, Section 4.4 of RFC 8428 says:
>
>  The SenML format can be extended with further custom fields.  […]   
>  Implementations MUST ignore fields they don't recognize
>  unless that field has a label name that ends with the "_" character,
>  in which case an error MUST be generated.
>
> So, as far as this can go while staying protocol-agnostic, the answer to this question is already fully specified in the base SenML document.

So, that means that the sender of "ct", as without "ct", has no knowledge (unless obtained using some out of band mechanism) whether the receiver will be able to interpret the associated value correctly or not. Perhaps that would be good to point out.

---

>> Nits/editorial comments:
>> 
>> Q2 (EDITORIAL):
>> 
>> The text should use consistent terminology. See below for a few examples:
>> 
>> The Abstract says:
>> 
>>  "The Sensor Measurement Lists (SenML) media type supports multiple  
>> types of values, from numbers to text strings and arbitrary binary  
>> data values.  In order to simplify processing of the data values,  
>> this document proposes to specify a new SenML field for indicating  
>> the Content-Format of the data."
>> 
>> First the text talks about types of values, and then suddenly the 
>> Content-Format of the data.
>
> Indeed, the abstract is a rather unfortunate contraction of the text in the introduction, which states explicitly that this document is about just one type of data, the “vd” field, i.e. binary data (see Section 4.2 of RFC 8428).
>
> So we fixed the abstract:
>
> OLD:
> In order to simplify processing of the data values, this document proposes to specify a new SenML field for indicating the Content-Format of the data.
> NEW:
> In order to facilitate processing of binary data values, this document specifies a pair of new SenML fields for indicating the Content-Format of those binary data values, i.e., their Internet media type including parameters as well as any Content-Coding applied.
>
>> Content-Format is the name of the new field - that is not what you are 
>> indicating. You are using the new field to indicate something.
>
>The name of the new field is “ct” (or “bct” for the corresponding base field).  
>It is used to indicate the Content-Format, a precise definition of which for the purposes of this document follows in Section 2.

I don't think it is used to indicate the Content-Format. It might be used to indicate the "content format", though. No capital letters, and no dash :)

The same applies for Content-Coding. I think "content coding" would be more correct.

---

>> Q3 (EDITORIAL):
>> 
>> The text says:
>> 
>> "The CoAP Content-Format (Section 12.3 of [RFC7252]) provides just 
>> this information"
>> 
>> I think it would be good with a little introduction on how CoAP is 
>> related to all this.
>
>The abstract of RFC 8428 says:
>
>…  A simple sensor, such as a
>  temperature sensor, could use one of these media types in protocols
>  such as HTTP or the Constrained Application Protocol (CoAP) to
>  transport the measurements of the sensor or to be configured.
>
>(talking about the SenML media types.)
>
> 
>> Also "provides just this information" probably needs some re-wording.
>
>  To facilitate automatic interpretation it is useful to be able to
>  indicate an Internet media type and content-coding right in the SenML
>  Record.  The CoAP Content-Format (Section 12.3 of [RFC7252]) provides
>  just this information; …
>
> OK, we expanded this a bit into:
>
> OLD:
> Content-Format ({{Section 12.3 of -coap}}) provides just this information; enclosing a Content-Format number (in this case number 60 as defined for content-type 
> application/cbor in {{-cbor}}) in the Record is illustrated in {{ex-2}}. All registered CoAP Content-Formats are listed
> NEW:
> Content-Format ({{Section 12.3 of -coap}}) provides this information in the form of a single unsigned integer; enclosing a Content-Format number (in this case number 60 as
> defined for content-type application/cbor in {{-cbor}}) in the Record is illustrated in {{ex-2}}. All registered CoAP Content-Formatn numbers are listed

Looks better.

Would it be useful to point out that CoAP Content-Format applies to the whole payload, while "ct" only applies to the "vb" element?

---

>> Q4 (EDITORIAL):
>> 
>> Section 6 contains the ABNF for the new fields.
>> 
>> Is there a reason you don't define them in the same way as the basic 
>> field is defined in RFC 8428 (there is no ABNF)?
>
> Yes.  The field values for the fields in RFC 8428 have a rather simple structure (see Table 1 in Section 4.3); there was no need to provide ABNF.  
>A Content-Format-Spec can get complicated; there is no single standard that can be used to reference the ABNF for it from.
>So we define it here.

Would it be useful to point that out?

---

Regards,

Christer