Re: [Cbor] Working group last call on draft-ietf-cbor-packed

Marco Tiloca <marco.tiloca@ri.se> Wed, 18 May 2022 11:38 UTC

Return-Path: <marco.tiloca@ri.se>
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 B4BC9C14F727 for <cbor@ietfa.amsl.com>; Wed, 18 May 2022 04:38:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.956
X-Spam-Level:
X-Spam-Status: No, score=-3.956 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-1.857, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ri.se
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D_JPuZGmW-uH for <cbor@ietfa.amsl.com>; Wed, 18 May 2022 04:38:47 -0700 (PDT)
Received: from emea01-obe.outbound.protection.outlook.com (mail-swedensouthazon11011008.outbound.protection.outlook.com [52.101.76.8]) (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 0D381C14F718 for <cbor@ietf.org>; Wed, 18 May 2022 04:38:46 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NFlWQel5sVTl13XwktJ74a9Tc3jZu2PwnlA8UkI6H5ZV0EUth7dOJKTE/6YkVfC5gXoJeNlT3LpyJjyjjUYeMhYdPPXFeBGVcf0hhOPbN8+1ztZ+H65E0MhNVQEtESdR5+Ki4G5DL/xHQqlCmYGXbxM7mswL8hZqutNT+eKUMn1D9KSfzqZ4/icv99cZh1anknHaEIE/73+gmocILrqi9gf9oMELl1fD8xaW8iHND7Tu6npHKgmBT01DhJWEUVTuzf0TRGkPaRNlgVLZXCNZaIWxhLQn5cetMkZG+yHXyPqRPyM431MXs4ZhQn0CB35qy3Ej1eFzKbw+V0OTEq/oEQ==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qCRe3zs7tvmsbAHez7mgxwQIkQha5vdYp+eaHn7HlVw=; b=oU/LdFtI8xYD8tzpMgEvxw9DudrXCOrIFMQrD/ylfbcPDHtMyW5PEdpuD8qkXH569c9SJOw2XGsAvsrwnAavGzERQlarw5u1C/Mqe+AGvEWuYqkIJROsusl38kMAHGUm4x01OCbFSKZ8P/ALJQHh7hDltsK5YM6N115+Gm/byzFWWUFO8Dq6bX2qhbmfkUitBROref7ler1DnCCMrqtCT5Wm3/5RZeVokzs9fulECYiKGaeHN3xYUUiA4po+9BKlr0pMwzqzi9B5VFl+b7crZ21mAc8gi++SedLVIP2w0X+QMuzJfSkoq0V4Bq8UmhCyC+QZEWEGI13laIxh4QnDTw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ri.se; dmarc=pass action=none header.from=ri.se; dkim=pass header.d=ri.se; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ri.se; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qCRe3zs7tvmsbAHez7mgxwQIkQha5vdYp+eaHn7HlVw=; b=NKZp5JD6L5VgQk+H1nh6B6BPLjd0Z7pvNnrBkXutFxoY8DZI1NP0CcoEJs5dy6k36U38y2MM4GGNrzQdt99gD3zb3nmxuDrFfJgHpZJZfU+wKmOPVT/1Sm9Oh5Y72YzOCoqWFavppPZUZJyS0YrgvJR0q8RaMHi+SF7JZi3mKwA=
Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ri.se;
Received: from GVYP280MB0464.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:37::17) by MM0P280MB0264.SWEP280.PROD.OUTLOOK.COM (2603:10a6:190:10::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.14; Wed, 18 May 2022 11:38:20 +0000
Received: from GVYP280MB0464.SWEP280.PROD.OUTLOOK.COM ([fe80::582d:af6:c32:fdaf]) by GVYP280MB0464.SWEP280.PROD.OUTLOOK.COM ([fe80::582d:af6:c32:fdaf%7]) with mapi id 15.20.5273.015; Wed, 18 May 2022 11:38:20 +0000
Message-ID: <865e314f-fe59-f931-a331-fac5bde368b9@ri.se>
Date: Wed, 18 May 2022 13:38:18 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0
Content-Language: en-US
To: Carsten Bormann <cabo@tzi.org>
Cc: cbor@ietf.org
References: <CALaySJKQB77p5u=_V4V7bYd9s9tdPYhy+kRymJ5CZajJMW3mMg@mail.gmail.com> <486a1353-3bed-7dad-c21b-41fa7b7d0639@ri.se> <851EA6FB-D3E8-4F09-939B-F0EF1618DBFC@tzi.org>
From: Marco Tiloca <marco.tiloca@ri.se>
In-Reply-To: <851EA6FB-D3E8-4F09-939B-F0EF1618DBFC@tzi.org>
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="------------31gTyq0AdhzZ529OVIusUCcr"
X-ClientProxiedBy: FR3P281CA0086.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:1f::13) To GVYP280MB0464.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:37::17)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: d410c0bf-1c99-4390-0f38-08da38c2e8c6
X-MS-TrafficTypeDiagnostic: MM0P280MB0264:EE_
X-Microsoft-Antispam-PRVS: <MM0P280MB026471EA4693DEFEB49725DD99D19@MM0P280MB0264.SWEP280.PROD.OUTLOOK.COM>
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: mAaJbHZSEuC6AVmeQBhWYzry5UbNF+VIRxFh8iFplvnwGlxEBcFt3+UjbbTPEoZxwHw+5Rh+0S6Vc9RYZJIubylN5sgfrT2rrEFntwTSBRKVJ/6ae/BY9xBQb8luGkMoED8bIylVla2rgYOGJRfZA9AzBbNxhnuOHMMN/f4UEMLBMaSmfI1oxBHfpO/iaaBGNMUmt1aUa9MDO2lOf+L/XJUTPV4M/vFKx9ENTw0zO5ctUcFf8VK+0UUbBfrZNsBf6y45YlZQHz9jx9QDkiYO9cIsl1y1tBFs2j9gK/0TSMz8BYizKQGQ22ZZ2KuNDX2mfVb5a8vN9bUMBgqup6745AtNS0/9P4csISIvYwPXuDm1jhsfP1K+MRjd9O4q7/L8sRXc4IfS+KjK6iReNNf4LhsTVOEHboR+EOXq3ez1FT9wV2McyooiX07glurlwe+bEjl73eg7OQSKErbM7Ibjb5K/eIYlJVTNBB0aj7k+jrk2maNtQL2xHuWWbPvkh9YyGQm4k+BGnsOcwbuQ69OIXYWBBb58w3Bhz4RWyrGCwG8W3z3SobZ+8/eTuK3SVZ/iZQZ66sjtYqiOF4asi7YwJRWO5IGxMc3YMi66qKbcpp2PFVKEIIPnFJ0TuSUwx1uSjYnL/oVxd9WKlxnuSvUrJ727nRHRWuzmGhC0M1ErbhnRsKOj628zWtFPTnbLLdEHKc8YDMjvJ/kheIDczul3bfEJgA/Y6AuaUzBwUuF8MbWldrCL6SQ7PTg2x3pTlx8VywLsMIkJrKFo9eTa1oB+Lw37wYDycJdJ4z8cJK15PCnzXCqLKdRJOhPQqsoee84uUa5SThuPuyE8eJhT+mF4aA==
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:GVYP280MB0464.SWEP280.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(31686004)(66946007)(2616005)(66476007)(66556008)(508600001)(4326008)(38100700002)(36756003)(316002)(8676002)(45080400002)(6916009)(6486002)(33964004)(53546011)(83380400001)(86362001)(8936002)(6506007)(966005)(235185007)(21480400003)(5660300002)(44832011)(186003)(2906002)(26005)(31696002)(6512007)(21314003)(43740500002)(45980500001); DIR:OUT; SFP:1101;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: bFPq1oYXJdisyK8ZtJSTQ7tYw1eZXvJzGsKq//2Z4FF45kFtUeYN5+hRmkcm3BVUJ0UGmWEX1yS0L0XTt0prL3qlXU+RDbcC6jDpndcuvJxINiU4+sZW9dRwnmlGFJmC7CL/cGXuG3HIrVt7y2ocYII/ByLHSC8/E/ifCuOmVb5pY8SVN2Ju9eFxjv0YVqUA/hXOqpxf8Q8h360PRplebRKWTiVxu5o+b/UsogzG61uGwaIgk26q0WkAQddcmqeHsjjaW4FTmReWtDYrdezNzbnUMOUglYCKu6HIbXkWJmO0pchzTZL547j9XpYhzsDXnk6Jqj5haei4tudjpwSkTJJstZTSz6M2/wbvAO5Hkln0RoqkzFdo7eNZ1gJuBh7Y6papxQC7wRwf9TXBk/EgDBxtCko2pt9DVNApp2SVAo1KwYhoi5D3Wf8+z1ubPyTxnIgybBiazxHYQXMm3zibEkA7IeOOKXm1OHht+nVjPDoPjUutMWvuVRY6wabpYUsIr6Z6BSSDGi+EKNPtInG3BZJQNH+Nxzg0KaCG+YNraOIN5tzJuFvbFkvn1J0oQt/wYN5eI9JzYMMH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u2D3MdrcXqBNOsIjqmbtxqiwEqOdxBMEWdNGNAPuAAeiqBpKSLgnmulU0Gu6yq1Mn6gB9P1EwlCLAN8et0w==
X-OriginatorOrg: ri.se
X-MS-Exchange-CrossTenant-Network-Message-Id: d410c0bf-1c99-4390-0f38-08da38c2e8c6
X-MS-Exchange-CrossTenant-AuthSource: GVYP280MB0464.SWEP280.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2022 11:38:20.8390 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 5a9809cf-0bcb-413a-838a-09ecc40cc9e8
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: 34HT0WhEoG+1vErf8ilrEELnasOlgt91PXiWobTKmq++DLXfGExP0yWqbttkn7yNkG2Kw2GgiSeS9UCRfAeaKg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MM0P280MB0264
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/OyEwoPJIgh2PKwA3HXRol1cR5qs>
Subject: Re: [Cbor] Working group last call on draft-ietf-cbor-packed
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.34
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 May 2022 11:38:51 -0000

Hi Carsten,

Thanks for addressing them, the PR looks good! I've just added two small 
comments inline in the PR.

Best,
/Marco

On 2022-05-18 00:26, Carsten Bormann wrote:
> Hi Marco,
>
> thank you for your comments!
>
> I have created a pull request that should address them:
>
> https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcbor-wg%2Fcbor-packed%2Fpull%2F4&amp;data=05%7C01%7Cmarco.tiloca%40ri.se%7C9d6ad5c970744ee0867308da385472bf%7C5a9809cf0bcb413a838a09ecc40cc9e8%7C0%7C0%7C637884232604758227%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=AxEI0zwNoQGXuf6nN9oxB7VeXRWldxt8tuvU%2Fq%2BEylo%3D&amp;reserved=0
>
> Comments, suggestions, further PRs :-) welcome.
>
> Grüße, Carsten
>
>
>> [Section 2.3]
>>
>> * It can be confusing to see "suffix" in Table 2 and "prefix" in Table 3 used as tag content. I think it's better to have something like "Tag XXX(prefixed rump)" for the entries in Table 2, and "Tag XXX-YYY(suffixed rump)" for the entries in Table 3.
>>
>> * "For a rump of type array and map, the affix also needs to be an array or a map."
>>
>>     It's better if it is explicitly spelled out, to not mix arrays and map. That is: "For a rump of type array, the affix also needs to be an array. For a rump of type map, the affix also needs to be a map."
>>
>> * "For an array, the elements from the prefix are prepended to the rump array, while the elements from a suffix are appended."
>>
>>     I suppose you mean "For an array, the elements from a prefix are prepended to those of the rump, while the elements from a suffix are appended to those of the rump." Correct?
>>
>> * The example include  224("art"), 225("obart")
>>
>>     As per Table 2 and the considered prefix table, shouldn't this rather be  225("art"), 226("obart")  ?
>>
>> * It would be good to have one or two examples where the rump and the affix are strings of different types.
>>
>>
>> [Section 3]
>>
>> * "By one or more tags enclosing the packed content. These can be defined to add to the packing tables that already apply to the tag."
>>
>>     Which tag? Do you mean "apply to the packed content" (regardless of how the tables have been possibly populated already)? Or do you mean any other present and already processed tag?
>>
>> * "Usually, the semantics of the tag will be to prepend items to one of the tables."
>>
>>     Based on the following paragraph and Section 3.1, it is rightly expected that the specification and registration of such a tag specify the semantics for extending the packing tables. I think it's worth making the requirement explicit.
>>
>>
>> [Section 3.1]
>>
>> * The last paragraph seems to generally apply when relying on a tag for packing table setup with prepending semantics.
>>
>>     Since Section 3.0 refers to that semantics as the most expected one, it can be good to have these considerations already in the second bullet point of Section 3.0.
>>
>>
>> [Section 4]
>>
>> * It's useful to have one subsection per registry.
>>
>> * Shouldn't the tag 51 defined in Section 3.1 also be registered?
>

-- 
Marco Tiloca
Ph.D., Senior Researcher

Phone: +46 (0)70 60 46 501

RISE Research Institutes of Sweden AB
Box 1263
164 29 Kista (Sweden)

Division: Digital Systems
Department: Computer Science
Unit: Cybersecurity

https://www.ri.se