Re: [Cbor] đź”” WGLC on draft-ietf-cbor-7049bis-09

Francesca Palombini <francesca.palombini@ericsson.com> Wed, 12 February 2020 09:48 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 465F9120077; Wed, 12 Feb 2020 01:48:03 -0800 (PST)
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 PG8HhlA73rOG; Wed, 12 Feb 2020 01:48:00 -0800 (PST)
Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-ve1eur02on062e.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe06::62e]) (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 6CC9E1200B1; Wed, 12 Feb 2020 01:47:59 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dkiDT/tmunXw5iYA5lWy0RK8rs2McwpjQQNDgLraqCyMzkWUmpL/Vu+JcBOzrsBn2B32yFdv4A9CLR65orSKsNqPdab1t7PfqwGJl/ONcpePnmS6VnX47tyeqtYnpwOQqYW4cUaGrnUIrl0Yr9XoQJPTYGN90SlTWs14vk3oXwemAVKZGbLs2QGFt0qcO02ipv+Ddry74odV5VD2lfzTpqF7UUYXDMVP8QRiw18OXOR8QvvaWDxIXRScSClAYFh9TGlU7hl+B0qWCAvHbVYadL1hnSDFRaOOKBnBDztgw2E/D4Qhg2fQlpkQxG1fnLXp44R86g0mBNip+VCjzzv+uw==
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=LdEg0mj0meOZqfWVV0baRg8BXIwIyxH5+QOU9awQ5Io=; b=QVTkHaCzA2hz1nrzBdNXO6aWSNlsZ+vm6Npk2pzCPSOj/6mN5l2JTL7Gom/Q7pjrfQnVQMX8fo3gqjsfjqMeKyf1zKk2DVITTIZZEPQ7UCC+2AKAzGoRbFhe6aF63yWtaTq33W6BchKMahI62V/Dry8+TLGjuEKZa6V8KjjIYlrIpeceBbA2o+7hFNITADloqPD85jTf0Ls9u3aBvpTW60VYOC9FdhsK3cmu23oWAPO3zz7f7RZvnc+cwfOUFgQUipYFArxKnUVUWxfP9OPAHkI1sC4OIsqJkSgLBdyRsQIzgs5ldxz2rnaevyXs0/bNh8JZpcEcr9NR9BUIJ2AmHA==
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=LdEg0mj0meOZqfWVV0baRg8BXIwIyxH5+QOU9awQ5Io=; b=fIA8E/npppKTfOgGnUBQJvCqN/y6kCUxDK/+6bmktkECVWB5l5Z9fhT9P931FSfB43J3lJ3971vp/OGn3LrmP5Mtc4sReocGaq+bnwoKuk/N3fye89FJUai9boNJ8cfquwBMoLFrEmP01laOHFINgqpqYLDONjBPWRUrsLKhfSQ=
Received: from AM6PR07MB4053.eurprd07.prod.outlook.com (52.134.117.139) by AM6PR07MB4867.eurprd07.prod.outlook.com (20.177.118.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.14; Wed, 12 Feb 2020 09:47:56 +0000
Received: from AM6PR07MB4053.eurprd07.prod.outlook.com ([fe80::7537:e135:422d:c5a7]) by AM6PR07MB4053.eurprd07.prod.outlook.com ([fe80::7537:e135:422d:c5a7%5]) with mapi id 15.20.2729.021; Wed, 12 Feb 2020 09:47:56 +0000
From: Francesca Palombini <francesca.palombini@ericsson.com>
To: Carsten Bormann <cabo@tzi.org>, "cbor@ietf.org" <cbor@ietf.org>
CC: "draft-ietf-cbor-7049bis@ietf.org" <draft-ietf-cbor-7049bis@ietf.org>
Thread-Topic: [Cbor] đź”” WGLC on draft-ietf-cbor-7049bis-09
Thread-Index: AQHVmtgHlP3xTHM9I0+UjjjMBCp1aqfAUb8AgEHfOICAFb0dAA==
Date: Wed, 12 Feb 2020 09:47:56 +0000
Message-ID: <A6A773E2-A3A3-4C84-B807-42352D6D895F@ericsson.com>
References: <293AFF31-D0EF-45D6-9B9D-E8136481C404@ericsson.com> <A808010A-AD61-4FEA-A79F-9AB669E38B6A@ericsson.com> <445FA6E3-5C29-476F-9AEB-716EAE1D8847@tzi.org>
In-Reply-To: <445FA6E3-5C29-476F-9AEB-716EAE1D8847@tzi.org>
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: [192.176.1.84]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 629b19a2-359d-44d2-cbee-08d7afa0a34c
x-ms-traffictypediagnostic: AM6PR07MB4867:
x-microsoft-antispam-prvs: <AM6PR07MB4867399F0B1D499D6A1778BD981B0@AM6PR07MB4867.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 0311124FA9
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(396003)(366004)(376002)(136003)(39860400002)(199004)(189003)(44832011)(86362001)(36756003)(81156014)(76116006)(81166006)(6486002)(4326008)(91956017)(8936002)(2616005)(2906002)(6512007)(71200400001)(6506007)(33656002)(966005)(26005)(186003)(478600001)(5660300002)(30864003)(64756008)(66446008)(66556008)(316002)(66946007)(110136005)(66476007); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR07MB4867; 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: ypVY72ZE93ixytYKjU4HoBHAkIzju+8+DxtrseBXmMl0RswlLx4RQBrBl3O4vunLmmuGpAHxKH0IPOkrQPBq1Ni2QN4RDGnygsVupAVhgnXJip2uxi5AQkYHKXCSpMsJ03ZFvZnQep1zVAtPJkFAehtJ2o2QAZ1yeniD8Ft25FWIdVSmoLUfzXfetuntLjzkyuturv7yANFLHhxeEy1oWH9VWLxF48wsEPWXKkq3mdxT2qqINMcyJEaA/Brbyn+PN9fFEVlivTVxdeBgc0287IhLRSF9llf0BJC/K6LZQNAqDGWNA2NH2v3+FRe+BxvEO4CrFK6t3JscXFoNKdmFBZyBXg9m608sZl9l/N28ZOsfT30SYVAjhejvEmiR2+naCAbjG5fUwc+ZapDyzX+m+zzDWpWXo6+cpWWpE2Y0PrPuZ4b9ETE8UL4PJS5/buaufo9jKxEt8fPA1kskYmOMQ1L7qt93kviLqdPnmEPwBBwHPpAde/CmEUoKRZ8BBClABGrVkBFTk+4HW00Hgy0E0Q==
x-ms-exchange-antispam-messagedata: mWoyIzwYjIPc7Pyx4dmFBvtOLsHYSRBeYdJXv+C/DmFiU8h6DN0G222PBVHFVG7HHAnjvwxg2zThb4TjEY1DNP8xbzjyIczlNp+dPHcSLJB84lFbJLm/GXX60nKDIHv03yTYbOj1smxQu3oUmLqv7Q==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-ID: <39FC36E424347B458C87632ED87C4154@eurprd07.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 629b19a2-359d-44d2-cbee-08d7afa0a34c
X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Feb 2020 09:47:56.4682 (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: mLPi7MrzWoBBCK5c6ko4KOZn1ljLCI+b4e5KkXX50Ly0GN8GKopltVFdtNE3YY/TzdZIJsRpMT0iI4qbkx1x4wRcO8slURzVmkniG+lpcX+nO/FU6WwtxQNHfQHAmRaQ
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR07MB4867
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/Ts0vvYlQSjzgnC_fyrVsdaQWanU>
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, 12 Feb 2020 09:48:03 -0000

Hi Carsten,

Thanks for taking care of these. You can go ahead and merge the PR, it looks good to me.
Detailed answers inline.

Francesca

On 29/01/2020, 15:49, "Carsten Bormann" <cabo@tzi.org> wrote:

    Hi Francesca,
    
    here are my comments on your review.
    
    > * 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.
    
    You can tag any single data item in the CBOR sequence.
    Since CBOR sequences are just concatenated encoded data items, I see no easy way to add some overall information to the sequence itself.
    
FP: Right. Maybe this was more of a high level consideration rather than a request to change anything.

    > * 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...")
    
    That section has recently been edited, and there are some new edits waiting in #165.
    I hope to be able to cover this in #165.  The intention is to recommend using the preferred encoding for integers that fit into mt0/1, i.e., basic integers.  But a protocol could deviate, at the cost of requiring more work in the application and possibly the generic codec (which would need to separately handle the non-preferred case).
     
FP: The revised text works for me (either before or after #165, the text I am looking at is just moved).

    > * Section 9.5
    >  
    > Considering the Apps Area Working Group does not exist anymore, should the contact here being updated?
    
    Yes, I have added this to #161.
    My assumption is that the change controller simply is IESG.
    I note a lot of variation in how this is handled in recent RFCs, e.g., in RFC 8628 there are registrations that have change controller IETF (OAuth extensions); all others there have IESG.

FP: I think IESG + cbor-wg as contact would be OK. Or possibly, art@ietf.org.
    
    > Minor/Editorials
    >  
    > * Contributing
    >  
    > It might be good to put in a note for the RFC Editor to remove this section.
    
    (BTW, the thing is a “note", not a section — at the same level as abstracts.)
    Added in new branch “francesca-editorial”.

FP: Thanks.
     
    > 
    > * 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.
    
    What would be in that example?
    I’d be very hesitant in adding much to this section, which should stay concise.

FP: For example:
OLD: "(for example, in class 1 constrained
          nodes as defined in [RFC7228])"
OLD: "(for example, in class 1 constrained
          nodes with ~ 100 KiB code size as defined in [RFC7228])"
This would give a direct example to the text above, without having to go look for it in the ref. But again, this is very minor, take it or leave it..
    
    >  
    > * 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?
    
    Citing the full text:
    
    4. The serialization must be reasonably compact, but data compactness
       is secondary to code compactness for the encoder and decoder.
    
        * "Reasonable" here is bounded by JSON as an upper bound in size,
          and by implementation complexity maintaining a lower bound.
    
    This is a bound to “reasonable”: we don’t want to increase implementation complexity considerably to improve compactness.  So implementation complexity maintains a lower bound to what is reasonable to achieve for the size.  I have tried rephrasing that in the new branch.

FP: Thanks, that reads better to me.
     
    > * 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.
    
    But it means much more than that, as the next sentence explains.
    Again, I’d prefer to avoid adding much complexity to this section.

FP: Ok.
     
    > * 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").
    
    While this would simplify things, it would also increase the reliance on a term that the reader is still trying to understand at this point (essentially increasing circularity).  “Representation format” should be sufficiently generic for introductory text, which no need for definitions.

FP: Ok, that makes sense.
     
    > * 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.
    
    Right.  That would be a reference to Section 5.3, I’d assume, not to all ~ 81 places that talk about validity?

FP: one reference is probably good enough __
     
    > * 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")
    
    Well, we need to define it, not just adding notes.
    Hmm.

FP: Sure, I still think the current formulation might be confusing, in particular that "distinct" refers to the item's value. But I am not a native speaker, and if it's only me I'm ok with leaving as is (or with the small change in PR).
     
    > * 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?
    
    Good point.
    CBOR sequences are, but arrays are still called sequences in many other places (which might include the applications sitting on top of CBOR).
    Need to think about a better way to say “are also called”.
    Attempt in new branch.

FP: Good attempt, thanks. I think "In other formats" is good enough. Also it's the first time I see "?" used in references in markdown, what is that for?
     
    > * Section 3.1, Major type 5
    >  
    > Using underscoring to highlight a term (in this case "pairs") should be explained in terminology.
    
    Solved by RFCXMLv3 :-)
    (Still needed for the plain text version, as is the equivalent for typeset versions.)

FP: nice __
     
    > * Section 3.1, Major type 6
    >  
    > To be consistent with other major types, it might be good to shortly mention ranges for tags here.
    
    Good point!

FP: Thanks for adding it.
     
    > * 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.
    
    That would be an expansion of calling out “streaming”, right?
    Attempt is in the branch.

FP: To be honest I am not sure what I had in mind, but the text is good __
    
    > * 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.
    
    All component strings need to be valid, i.e., sequences of UTF-8 characters; this means a single character cannot be started in one component string and then go on in the next component string.
    "split up" may be better.

FP: Ah I see. Thanks for clarifying! 
    
    >  
    > * Section 3.3
    >  
    > Re-appearance of the term "sequence", which I would still avoid.
    
    Yes.  We also wanted to avoid “byte string”, because that is always confusing (in particular if the data item encodes a byte string).  Maybe “sequence of bytes”?  Or maybe:
    
    For example, assume an encoded data item consisting of the bytes:
    
FP: Yes, perfect.
    
    >  
    > * Table 4
    >  
    > I would have explicitely stated what data items where allowed for each tag number, rather than writing multiple.
    
    We could do that.  There are two cases: Essentially anything (21–23, 55799), and the numbers allowed by tag 1; for the latter we could write “integer or float”, and “(any)” for the former.

FP: That works, thanks. Even if the information was already in the text, I think this improves readability.
    
    > * Section 3.4.4
    >  
    > The term "preferred encoding" appears here for the first time without any reference or introduction.
    
    (I think this is now 3.4.3.)
    The next now has a pointer to Section 4.1, and we are using “preferred serialization”.

FP: Yes, thanks. I see that's the case in my branch, not in the submitted version yet.
    
    >  
    > * Section 3.4.5
    >  
    > "while the mantissa also can be" -> "while the mantissa can also be"
    
    Yes.
     
    > * Section 3.4.5
    >  
    > Expand NaN on first appearance here (instead of 5.6.1)
    
    #165 now has a mention (and expansion) in the terminology section.
    We could expand here, as well, I’d probably leave the expansion in 5.6.1. because there is not much context about non-finites here, while there is in 3.4.5.
     
    > * Section 4.2.2
    >  
    > "may want to exclude them from interchange, interchanging"
    >  
    > I would reformulate this.
    
    Because it is wrong, misleading, or because the same word is used twice?
    
    If the latter,
    "may want to exclude them from the protocol format, interchanging"
    maybe?

FP: same word used twice. Reformulation works.
     
    > * Section 4.2.3
    >  
    > Capitalize section title
    
    I’m sure the RFC editor will have a lot of these.
    Fixed in the branch now.

FP: I'm sure, but I try to make you stay as little time as possible in the RFC editor's hands __
     
    > * Section 4.2.3
    >  
    > First paragraph: please add a reference to 4.2.1 when talking about core deterministic encoding requirements.
    
    Yes.
     
    > * Section 5.4
    >  
    > "A generic encoder also may want" -> "A generic encoder may also want"
    
    Yes.
     
    > * 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.
    
    Good point.  So let’s say “not accepted”.

FP: nice.
    
    >  
    > * Section 5.6
    >  
    > "except to specify that some, orders are disallowed" -> remove comma
    
    (Fixed previously.)
    
    >  
    > * Section 7.1, last sub-bullet
    >  
    > Please reference section 7.2.
    
    Yes.  (Let’s see whether the RFC editor throws that out again…)

FP: oh you mean for fw reference? 
    
    >  
    > * Section 8.1
    >  
    > I like examples. I would have liked an example for the second paragraph of this section.
    
    Good point.

FP: Thanks.
     
    > * Appendix G
    >  
    > "this may not be actually be an error" -> "this may not actually be an error"
    
    Yes.
    
    Now PR #166: https://github.com/cbor-wg/CBORbis/pull/166
    
    GrĂĽĂźe, Carsten