Re: [core] Eric Rescorla's No Objection on draft-ietf-core-senml-14: (with COMMENT)

Ari Keränen <ari.keranen@ericsson.com> Mon, 07 May 2018 18: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 6099D127873 for <core@ietfa.amsl.com>; Mon, 7 May 2018 11:03:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.311
X-Spam-Level:
X-Spam-Status: No, score=-4.311 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01] autolearn=unavailable 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 Eto1P6phzi0V for <core@ietfa.amsl.com>; Mon, 7 May 2018 11:03:12 -0700 (PDT)
Received: from sessmg23.ericsson.net (sessmg23.ericsson.net [193.180.251.45]) (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 1A611127909 for <core@ietf.org>; Mon, 7 May 2018 11:03:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/simple; q=dns/txt; i=@ericsson.com; t=1525716190; 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=jIMZ9XwqVPH7b9LU37oQm+ACUoLRNpFEMt0CxgkV71Q=; b=KY253g1J5RO8uYw1ocGm2rHxWZPimm+mYEAOTsqojcEZgjc1Cfc0YgRJzONFba+M WHZ9EvX+0WxFO8Lwsy3+vfzjF7faJKI6SOVj6xskDhAHt6q2DiMl0Z6hoMDwBrlG dQqz6IrAnPC3MJICV80Ao31iup40rp+vMtR4OD5dRIA=;
X-AuditID: c1b4fb2d-ac3ff700000055bf-d9-5af094dedd34
Received: from ESESSHC017.ericsson.se (Unknown_Domain [153.88.183.69]) by sessmg23.ericsson.net (Symantec Mail Security) with SMTP id 7D.3E.21951.ED490FA5; Mon, 7 May 2018 20:03:10 +0200 (CEST)
Received: from ESESSMB503.ericsson.se (153.88.183.164) by ESESSHC017.ericsson.se (153.88.183.69) with Microsoft SMTP Server (TLS) id 14.3.382.0; Mon, 7 May 2018 20:03:09 +0200
Received: from ESESBMB502.ericsson.se (153.88.183.169) by ESESSMB503.ericsson.se (153.88.183.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Mon, 7 May 2018 20:03:09 +0200
Received: from ESESBMB502.ericsson.se ([153.88.183.185]) by ESESBMB502.ericsson.se ([153.88.183.185]) with mapi id 15.01.1466.003; Mon, 7 May 2018 20:03:09 +0200
From: Ari Keränen <ari.keranen@ericsson.com>
To: Eric Rescorla <ekr@rtfm.com>
CC: The IESG <iesg@ietf.org>, "draft-ietf-core-senml@ietf.org" <draft-ietf-core-senml@ietf.org>, Jaime Jiménez <jaime.jimenez@ericsson.com>, "core-chairs@ietf.org" <core-chairs@ietf.org>, core <core@ietf.org>
Thread-Topic: Eric Rescorla's No Objection on draft-ietf-core-senml-14: (with COMMENT)
Thread-Index: AQHT1bz07f24qKA53ECCs/YGzWki+KQkjk0A
Date: Mon, 07 May 2018 18:03:09 +0000
Message-ID: <BB1334E2-0DC0-4C42-A212-7C02636D9D15@ericsson.com>
References: <152390856344.19573.405946028706072168.idtracker@ietfa.amsl.com>
In-Reply-To: <152390856344.19573.405946028706072168.idtracker@ietfa.amsl.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [153.88.183.153]
Content-Type: text/plain; charset="iso-8859-1"
Content-ID: <DBCE936CD2D7B044802CDEB41DD9E9B6@ericsson.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrFIsWRmVeSWpSXmKPExsUyM2K7q+69KR+iDKaslrbYtvECm8W+t+uZ LX6+W8JsseL1OXaLGX8mMjuweixZ8pPJY/LjNuYApigum5TUnMyy1CJ9uwSujI8zjzAW3PCs eNA9kbmBcaNFFyMnh4SAicSJP6eZuxi5OIQEjjBK/Pv4mw3C2cwosWjCQ6jMV0aJhxsWMUI4 Sxkl1vZ+YgLpZxOwl5i85iMjiC0ioCDx688JFpAiZoGXjBLN1yYxgySEBcIl9j7YDtTAAVQU IfHxNhtEvZHE/dOrwWwWARWJWVuPsoDYvEAzj5/ZABYXEvCRWH/8J9guTgFfialds8FsRgEx ie+n1oDZzALiEreezGeC+EdAYsme88wQtqjEy8f/WCFsJYm9x66zQNTrSdyYOoUNwraW2HPr K5StLbFs4WtmiBsEJU7OfMICcYOqxNV/rxgnMErOQrJuFpJRs5CMmoVk1CwkoxYwsq5iFC1O LS7OTTcy1kstykwuLs7P08tLLdnECIzhg1t+6+5gXP3a8RCjAAejEg9vf86HKCHWxLLiytxD jBIczEoivGzKQCHelMTKqtSi/Pii0pzU4kOM0hwsSuK8eqv2RAkJpCeWpGanphakFsFkmTg4 pRoYe1hjrGdufD7Z03vzEnbfpRd46vq12t+HtDT+3Pi+Rk5LM1t8ptuFhMu/7U1+789l/md8 Zoay67r3nkYSNyzq0hYVlP2L69uiuvVkUfT9d0dzatlMJ1jy9cR/5w/UWKNz+3SIU0Qeo0Nb y+ovTHMk7rQt5LN68embzpYryypEFk9vyXqzMUtFiaU4I9FQi7moOBEA9itqFN0CAAA=
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/bjJ4cRv1lGYR4FtHnl1aEw-eVZc>
Subject: Re: [core] Eric Rescorla's No Objection on draft-ietf-core-senml-14: (with COMMENT)
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.22
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: Mon, 07 May 2018 18:03:15 -0000

Thank you for the review Eric!

We have now submitted a new revision of the SenML draft that addresses all the IESG review comments:
https://tools.ietf.org/html/draft-ietf-core-senml-15

For answers to your review comments, please see below.


Thanks,
Ari

> On 16 Apr 2018, at 22.56, Eric Rescorla <ekr@rtfm.com> wrote:
> 
> Eric Rescorla has entered the following ballot position for
> draft-ietf-core-senml-14: No Objection
> 
> When responding, please keep the subject line intact and reply to all
> email addresses included in the To and CC lines. (Feel free to cut this
> introductory paragraph, however.)
> 
> 
> Please refer to https://www.ietf.org/iesg/statement/discuss-criteria.html
> for more information about IESG DISCUSS and COMMENT positions.
> 
> 
> The document, along with other ballot positions, can be found here:
> https://datatracker.ietf.org/doc/draft-ietf-core-senml/
> 
> 
> 
> ----------------------------------------------------------------------
> COMMENT:
> ----------------------------------------------------------------------
> 
> Rich version of this review at:
> https://mozphab-ietf.devsvcdev.mozaws.net/D4594
> 
> 
> COMMENTS
>> 
>> Abstract
>> 
>>    This specification defines media types for representing simple sensor
>>    measurements and device parameters in the Sensor Measurement Lists
>>    (SenML).  Representations are defined in JavaScript Object Notation
> 
> You're kind of burying the lede here. This document defines SenML, it
> doesn't just define media type.

True, and also commented by others. Changed now to:

  This specification defines a format for representing simple sensor
  measurements and device parameters in the Sensor Measurement Lists
  (SenML). 

>>    measurement every second, batch up 60 of them, and then send the
>>    batch to a server.  It would include the relative time each
>>    measurement was made compared to the time the batch was sent in each
>>    SenML Record.  The server might have accurate NTP time and use the
>>    time it received the data, and the relative offset, to replace the
>>    times in the SenML with absolute times before saving the SenML Pack
> 
> You use "Pack" here before you define it in  S 3.

Changed to:

  The server might have accurate NTP time and use the
  time it received the data, and the relative offset, to replace the
  times in the SenML with absolute times before saving the SenML
  information in a document database.

>>    kinds of fields: base and regular.  The base fields can be included
>>    in any SenML Record and they apply to the entries in the Record.
>>    Each base field also applies to all Records after it up to, but not
>>    including, the next Record that has that same base field.  All base
>>    fields are optional.  Regular fields can be included in any SenML
>>    Record and apply only to that Record.
> 
> It looks like it's permissible to intermix Base and Regular fields in
> the same record. Assuming that's so, it would be helpful to say so.

Yes, made this now more explicit:

  kinds of fields: base and regular.  Both the base fields and the
  regular fields can be included in any SenML Record.  The base fields
  apply to the entries in the Record and also to all Records after it
  up to, but not including, the next Record that has that same base
  field.  All base fields are optional.  Regular fields can be included
  in any SenML Record and apply only to that Record.


>>       ("vs" for "String Value") and binary data ("vd" for "Data Value").
>>       Exactly one value field MUST appear unless there is Sum field in
>>       which case it is allowed to have no Value field.
>> 
>>    Sum:  Integrated sum of the values over time.  Optional.  This field
>>       is in the unit specified in the Unit value multiplied by seconds.
> 
> This text is hard to read, but the dimensional analysis seems
> potentially wrong, for at least some measurements. I assume you're
> thinking of something like watts and watt-hours. but if the value is
> for instance bits, then "bit-seconds" is not a meaningful unit, and
> yet you might want to sum these.

True. The name "sum" is actually not fully correct, but there are historical reasons why it's called so. Updated the text to reflect this:

  Sum:  Integrated sum of the values over time.  Optional.  This field
     is in the unit specified in the Unit value multiplied by seconds.
     For historical reason it is named sum instead of integral.

Also clarified more the use of the sum in Section 10.

>>    The SenML format can be extended with further custom fields.  Both
>>    new base and regular fields are allowed.  See Section 12.2 for
>>    details.  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.
> 
> How does this map to CBOR? I see you explain this later, but here
> would be helpful

We discussed this and concluded that the SenML is format agnostic in this matter so there should be no surprise here. 

>>    concatenated name MUST consist only of characters out of the set "A"
>>    to "Z", "a" to "z", "0" to "9", "-", ":", ".", "/", and "_";
>>    furthermore, it MUST start with a character out of the set "A" to
>>    "Z", "a" to "z", or "0" to "9".  This restricted character set was
>>    chosen so that concatenated names can be used directly within various
>>    URI schemes (including segments of an HTTP path with no special
> 
> Assuming I am understanding this correctly, then "/" is a problem
> inside a path component.

Yes, clarified this with:

  URI schemes (including segments of an HTTP path with no special
  encoding; note that a name that contains "/" characters maps into
  multiple URI path segments) 

>>    specified above puts strict limits on the URI schemes and URN
>>    namespaces that can be used.  As a result, implementers need to take
>>    care in choosing the naming scheme for concatenated names, because
>>    such names both need to be unique and need to conform to the
>>    restricted character set.  One approach is to include a bit string
>>    that has guaranteed uniqueness (such as a 1-wire address).  Some of
> 
> citation for 1-wire please.

Added informative reference:

  [AN1796]   Linke, B., "Overview of 1-Wire Technology and Its Use",
             June 2008,
             <http://pdfserv.maximintegrated.com/en/an/AN1796.pdf>.

>>                    | Encoding | Size | Compressed Size |
>>                    +----------+------+-----------------+
>>                    | JSON     |  573 |             206 |
>>                    | XML      |  649 |             235 |
>>                    | CBOR     |  254 |             196 |
>>                    | EXI      |  161 |             184 |
> 
> Compression not working out so well for EXI

Indeed.

>>    To select a single SenML Record, the "rec" scheme followed by a
>>    single number is used.  For the purpose of numbering records, the
>>    first record is at position 1.  A range of records can be selected by
>>    giving the first and the last record number separated by a '-'
>>    character.  Instead of the second number, the '*' character can be
> 
> This is an odd notation as * usually means "all". Why not just omit
> the terminal #?

Yes, we re-used the fragment format from RFC7111 that was using the terminal "*":
https://tools.ietf.org/html/rfc7111#section-2.1

Seems to make sense to be consistent here, but no strong opinions.

>>    New entries can be added to the registration by Expert Review as
>>    defined in [RFC8126].  Experts should exercise their own good
>>    judgment but need to consider that shorter labels should have more
>>    strict review.  New entries should not be made that counteract the
>>    advice at the end of Section 4.4.
> 
> Note that you say earlier that you don't expect to define new CBOR
> integers. That should probably be repeated here.

We had a second look at this and the recommendation two paragraphs earlier seemed to be quite sufficient to cover this. This paragraph was now slightly modified to reference new structure of Section 4 though. 

>>    Sensor data can range from information with almost no security
>>    considerations, such as the current temperature in a given city, to
>>    highly sensitive medical or location data.  This specification
>>    provides no security protection for the data but is meant to be used
>>    inside another container or transport protocol such as S/MIME
>>    [RFC5751] or HTTP with TLS [RFC5246] that can provide integrity,
> 
> This is the wrong citation for HTTP over TLS. That's RFC 2818.

Fixed.

>>    We would like to thank Alexander Pelov, Alexey Melnikov, Andrew
>>    McClure, Andrew McGregor, Bjoern Hoehrmann, Christian Amsuess,
>>    Christian Groves, Daniel Peintner, Jan-Piet Mens, Jim Schaad, Joe
>>    Hildebrand, John Klensin, Karl Palsson, Lennart Duhrsen, Lisa
>>    Dusseault, Lyndsay Campbell, Martin Thomson, Michael Koster, Peter
>>    Saint-Andre, Roni Even, and Stephen Farrell, for their review
> 
> Nit: no comma after Farrell

Fixed.