Re: [Cbor] 🔔 WGLC on draft-ietf-cbor-7049bis-09

Francesca Palombini <francesca.palombini@ericsson.com> Wed, 18 December 2019 15:53 UTC

Return-Path: <francesca.palombini@ericsson.com>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E3D97120813; Wed, 18 Dec 2019 07:53:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.002
X-Spam-Level:
X-Spam-Status: No, score=-2.002 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-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 Z4UhrEB9xiX3; Wed, 18 Dec 2019 07:53:57 -0800 (PST)
Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150055.outbound.protection.outlook.com [40.107.15.55]) (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 B2AAE12025D; Wed, 18 Dec 2019 07:53:56 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S8bzA7Tmogoxkvpn8IF7DZtNM3WHQsSRrt7RbcveaEHY9ZuYwypN0nJIXpOOTaHw8H586zQ9PBxVWW6v0x/jEI4kOWjUFXYFRf3q86vYCtQ1b8LETJo+jFa9JEK6JpHfWZ+Q3gzuMERe77EXUTlGBGoCFlXnHzl7P33aEC5+g1nrbBm2Xfi7zZ/gUAN6tnghPF6ZraANJsHVHMZumDjodZqM6MABYYkd1JKy2cd7dyLmMmZFWXKOk2eJEWgjg3iDAPlBbgo1SIEwxbShVIsc/tBU7tatH5bN2HaqnRfr38jU5MnBfk389KOb813AwDIGD0DMuNSOFL9SwI3BEGQlIw==
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=zbkDu08bO8yiBCaRF3C0LbDYbxMB599UXg0FCZ2pYCM=; b=FAnRTWiHa2Hcg1cb0/3nDQ88X82qiWxTR1G9Sj7t6HU+bKF/Jsq0E3Sxctfb2o0VgZSIXKjKyIkzMlECatYD8itgX8BRlakE24V+XnWvTIWen/UlKS8JkOZVC16rW377IrTZK2R+Sk/+3OxrZITZicD9WxtjA8pd2BF7kJ7dyE4p01x/Ep2rVd7JNEWy1a9/L9MJRV3Y8JUYjhskCzSnj97z8cRUVIZyiSieUX+oJJBf+wzYwZ6OkAtCZQu6+j6Xq0g7fbCuNzbzOKMIKZ3cgHu22KNCiW5xcnsX5mE4HvLtYoVE9gU2YukzyOdaMhHJ6R2oAKWigzytVfAhpYOgSQ==
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=zbkDu08bO8yiBCaRF3C0LbDYbxMB599UXg0FCZ2pYCM=; b=mFwBM10LhuSE7QrUsHKLupaHNHgTTEIR4FtHqphiLs2uzQpta6Pp16IIjfskFIbhqxoSgP5ek2cyZQWt7eLV0eu9oBuUdDD51Xj6hgzQeOOqt00ZRnhrQ4rmrg3B2pKxMyKXfwAidv/twgRtknlVBIkhwkaYg/MOyFg5eoyePs0=
Received: from AM6PR07MB4053.eurprd07.prod.outlook.com (52.134.117.139) by AM6PR07MB4472.eurprd07.prod.outlook.com (20.176.242.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2559.13; Wed, 18 Dec 2019 15:53:54 +0000
Received: from AM6PR07MB4053.eurprd07.prod.outlook.com ([fe80::8514:c0f:390b:277]) by AM6PR07MB4053.eurprd07.prod.outlook.com ([fe80::8514:c0f:390b:277%6]) with mapi id 15.20.2559.012; Wed, 18 Dec 2019 15:53:54 +0000
From: Francesca Palombini <francesca.palombini@ericsson.com>
To: "cbor@ietf.org" <cbor@ietf.org>, "draft-ietf-cbor-7049bis@ietf.org" <draft-ietf-cbor-7049bis@ietf.org>
CC: "cbor-chairs@ietf.org" <cbor-chairs@ietf.org>
Thread-Topic: 🔔 WGLC on draft-ietf-cbor-7049bis-09
Thread-Index: AQHVmtgHlP3xTHM9I0+UjjjMBCp1aqfAUb8A
Date: Wed, 18 Dec 2019 15:53:53 +0000
Message-ID: <A808010A-AD61-4FEA-A79F-9AB669E38B6A@ericsson.com>
References: <293AFF31-D0EF-45D6-9B9D-E8136481C404@ericsson.com>
In-Reply-To: <293AFF31-D0EF-45D6-9B9D-E8136481C404@ericsson.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=francesca.palombini@ericsson.com;
x-originating-ip: [95.192.140.18]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 287e3a83-5173-4f88-50cd-08d783d27be1
x-ms-traffictypediagnostic: AM6PR07MB4472:
x-microsoft-antispam-prvs: <AM6PR07MB4472548D7EE1DD9215A9799C98530@AM6PR07MB4472.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 0255DF69B9
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(346002)(39860400002)(136003)(376002)(396003)(199004)(189003)(76116006)(5660300002)(91956017)(71200400001)(6506007)(186003)(478600001)(26005)(2616005)(33656002)(6486002)(36756003)(81156014)(9326002)(8936002)(81166006)(66446008)(44832011)(86362001)(66476007)(450100002)(4326008)(110136005)(6512007)(2906002)(66946007)(66556008)(316002)(64756008); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR07MB4472; H:AM6PR07MB4053.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: dDZC3rf4nSXaz24IdNxTTqOjqu2+97+6DVhKqIqkeKmFCWx2LtG/lsWV+GSYJVahDp1Bcx1JqfmLH8RO6QqDifSS/XygXQUHv/s1WQyyl7IFBhyAT7/y72UIfbBYGkkRLyRsIz9FusKZJZe//6S1Kyl3W7YUNN2xBYWC8DqiVOHew8uWTsOyy3hIcN6xJhkm48MWg+b+3cG34QLMIrPfHn1U1S1PdqP2ANjrZ5i1mQw7Ts6UVWMj8o6IIuYqCnWOBZkxrcsYvdfdQxjz1pio2knHNrLZzEeAw6qhO5WMjS3RyCk7w+TCwn5inlCp1OlRnLiICfzvC1KKIB3MdVaMRvKbVhD8jviSVRKFLi50aBIKr4y71eTHQsxk4iZWo6y7STYQWuV1Wmyu3fUktaeaiGaXP7htl3XK8xcIWuWPa/zNVV1kLz2EhiYL/Sm1MDRQ
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_A808010AAD614FEAA79F9AB669E38B6Aericssoncom_"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 287e3a83-5173-4f88-50cd-08d783d27be1
X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Dec 2019 15:53:54.0329 (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: bsJ6uTG37xwwcEHYw9WAceleJjMiItnOOhIonDwHSJ2njgdtHKt3LBUWmtB188MR3Bc9Z9SBkib3bZmYg6da9m5PMPrTMI99czTHS4vjbaDPHvN9IukfuGeIbH5lJvfd
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR07MB4472
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/mpFzlrAQgy0jg1sCRphzeIuQR7o>
Subject: Re: [Cbor] 🔔 WGLC on draft-ietf-cbor-7049bis-09
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Dec 2019 15:54:00 -0000

Hi,

With a small delay, I just finished reviewing the CBOR specification v-09, reading top to bottom. In general, I am happy with the document, and only have minor/editorial suggestions, plus some questions on formulation.

Carsten and Paul, feel free to let me know if anything was addressed by recent updates.

Thanks,
Francesca

--
Questions:

* Section 3.4.7

While reading this again, I realized that CBOR sequences cannot be tagged, as by definition they are not one data item. I think being able to tag CBOR sequence with the self-describing tag in the scenario described in this section would be good.

* Section 4.2.2

Second to last sub-bullet: "If a protocol includes a field that can express integers..."

I noted an inconcistency here with the text on preferred encoding preferring using maj types 0 and 1 (see text in section 3.4.4. "The preferred encoding of an integer...")

* Section 9.5

Considering the Apps Area Working Group does not exist anymore, should the contact here being updated?



Minor/Editorials

* Contributing

It might be good to put in a note for the RFC Editor to remove this section.

* Section 1.1, Point 2, sub-bullet 1

For readability, I would put an example of "very small amount of code" number directly in the text, in the parenthesis when mentioning class 1 constrained nodes.

* Section 1.1, Point 4, sub-bullet 1

"and by implementation complexity maintining a lower bound" does not read correctly to me. Am I missing something?

* Section 1.1, Point 5, sub-bullet 1

I would suggest to add "for example for devices of class 1" as an example of what "reasonably frugal in CPU" means.

* Section 1.2

The term "representation format" is only used in this section twice, everywhere else "encoded data item" is used. I would go ahead and remove this formulation, and only use encoded data item. This would also make the part on decoder and encoder more symmetric (right now Decoder talks about "encoded data item" and Encoder talks about "represetnation format").

* Section 1.2, "Valid: "

This paragraph talks about "semantic restrictions that apply to CBOR data items"; it would be good to add a hint on where these are defined in the specification.

* Section 2

"A simple value, identified by a number between 0 and 255, but distinct from that number"

I had to read this sentence several times to understand that the part "but distinct from that number" is meant to note to the reader that the value of the item is not the number it's identified by. I would formulate as written here, rather than as it is now. ("Note that the value of the item is not the number it's identified by")

* Section 3.1, Major type 4

The text states that arrays can also be called sequences. With the publication of CBOR Sequences, can we remove this statement, as sequences are (although related) different things?

* Section 3.1, Major type 5

Using underscoring to highlight a term (in this case "pairs") should be explained in terminology.

* Section 3.1, Major type 6

To be consistent with other major types, it might be good to shortly mention ranges for tags here.

* Section 3.2

While the motivation for arrays and maps is obvious, I would have appreciated some more text on motivation (or an example of use case) where indefinite-length strings are useful.

* Section 3.2.3

I don't understand the link between the previous sentence and this one:

"   Note that this implies that the bytes of a single UTF-8 character
   cannot be spread between chunks: a new chunk can only be started at a
   character boundary."

Nor am I sure of the meaning of the term "spread" here.

* Section 3.3

Re-appearance of the term "sequence", which I would still avoid.

* Table 4

I would have explicitely stated what data items where allowed for each tag number, rather than writing multiple.

* Section 3.4.4

The term "preferred encoding" appears here for the first time without any reference or introduction.

* Section 3.4.5

"while the mantissa also can be" -> "while the mantissa can also be"

* Section 3.4.5

Expand NaN on first appearance here (instead of 5.6.1)

* Section 4.2.2

"may want to exclude them from interchange, interchanging"

I would reformulate this.

* Section 4.2.3

Capitalize section title

* Section 4.2.3

First paragraph: please add a reference to 4.2.1 when talking about core deterministic encoding requirements.

* Section 5.4

"A generic encoder also may want" -> "A generic encoder may also want"

* Section 5.6

"Duplicate keys are also prohibited by CBOR decoders that
   enforce validity (Section 5.4)."

I have a slight problem with the term "prohibited by" decoders... Decoders do not prohibit, at most they do not accept.

* Section 5.6

"except to specify that some, orders are disallowed" -> remove comma

* Section 7.1, last sub-bullet

Please reference section 7.2.

* Section 8.1

I like examples. I would have liked an example for the second paragraph of this section.

* Appendix G

"this may not be actually be an error" -> "this may not actually be an error"