[Suit] Packed CBOR

Brendan Moran <Brendan.Moran@arm.com> Thu, 30 July 2020 15:46 UTC

Return-Path: <Brendan.Moran@arm.com>
X-Original-To: suit@ietfa.amsl.com
Delivered-To: suit@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0CB1C3A0AD7 for <suit@ietfa.amsl.com>; Thu, 30 Jul 2020 08:46:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.b=qycfD/O0; dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.b=qycfD/O0
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 YGP6bpmmNguq for <suit@ietfa.amsl.com>; Thu, 30 Jul 2020 08:46:25 -0700 (PDT)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80070.outbound.protection.outlook.com [40.107.8.70]) (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 680333A0AC3 for <suit@ietf.org>; Thu, 30 Jul 2020 08:46:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u4dXdEiAo/Tq3AG/Xdy4a7WASZ3JZVR9mnsDEmI+UUU=; b=qycfD/O0BVICFB3olQCRnV7zjMwhK/9TY4jTPcNscRlFa+JYSbPX28xDoxM8pgKUmYr8rIP3uOgUDFXlS+m90KgIRLltyDMZMf5E/moTl73wFAHRMuOXcptBjf/XlOn3dnZuu9PGwspCohb2T+rKlKz4LrIbtTXmqZfoGwSEpAM=
Received: from AM3PR05CA0090.eurprd05.prod.outlook.com (2603:10a6:207:1::16) by HE1PR0802MB2281.eurprd08.prod.outlook.com (2603:10a6:3:c0::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.16; Thu, 30 Jul 2020 15:46:22 +0000
Received: from AM5EUR03FT018.eop-EUR03.prod.protection.outlook.com (2603:10a6:207:1:cafe::58) by AM3PR05CA0090.outlook.office365.com (2603:10a6:207:1::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.18 via Frontend Transport; Thu, 30 Jul 2020 15:46:21 +0000
X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; ietf.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;ietf.org; dmarc=bestguesspass action=none header.from=arm.com;
Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com;
Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT018.mail.protection.outlook.com (10.152.16.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.20 via Frontend Transport; Thu, 30 Jul 2020 15:46:21 +0000
Received: ("Tessian outbound 8f45de5545d6:v62"); Thu, 30 Jul 2020 15:46:21 +0000
X-CheckRecipientChecked: true
X-CR-MTA-CID: 6ed8a3846156c2da
X-CR-MTA-TID: 64aa7808
Received: from 697a9f72170f.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id D7FC67FD-D3DB-4200-8614-4B170AE60D07.1; Thu, 30 Jul 2020 15:46:16 +0000
Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 697a9f72170f.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 30 Jul 2020 15:46:16 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WLIBDrvHn6YPmJPwWyuCPpo64YeB/Q3jqaZDKFGTl5kV+RnuHMIK/h5J6VnIYqbHuqc3aOQxKz1Cwuerk5a9xCTzVEHC70DfTW5xXAVaqGph6jEYym5AOXuUMWeT5Yg3yMd0Z1YHGWeC3SCRulJwb6X+EyO6dcY/hy1LaCGckT6RGFmitqrank3YVUm53jNv82tj14m1mJo/dDObzCN7jX0f4m7OTHI7Ud+WQnv5wfrFY54He6nJAGMyBIFWiv/dpmTPeXnBPwJtI8ouJmHvJ12250DfQES95NWKUDOzlpt7jzZOOtmP7OXbC1ftqzlycQiKqLHoRl3rgblv5ia/PQ==
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=u4dXdEiAo/Tq3AG/Xdy4a7WASZ3JZVR9mnsDEmI+UUU=; b=W1wWfVEjzx3K3E/1pN0jPStqMs9iPDdz/jMj8rCT7QByu881nfyYJuUxnCInrCNx3wrONLlu5AD9ejrpKhTyS/Ar7MfNQ7dg+mweHWct3JlyGuyscabucPK1r5s2jjkZzg6ScU7X8XPkZOpW0P1kJ0JAxkAZmx+gEmD3eYl8veQQVQmYSrdjeHmBsNIot7m/AwEbiit9wcM2V+9tGiJHRP7pjWlkZJNImQdBz8XqUNX+CMyzUKXBLoWFZEhHju11sJMR7/CefN0pWFcdOVBaFlave17fJEehd4SpUm7+8m8YJIFkKez/j27BEhv0YfalKvM4h8qBRp3a539tiaOdSQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u4dXdEiAo/Tq3AG/Xdy4a7WASZ3JZVR9mnsDEmI+UUU=; b=qycfD/O0BVICFB3olQCRnV7zjMwhK/9TY4jTPcNscRlFa+JYSbPX28xDoxM8pgKUmYr8rIP3uOgUDFXlS+m90KgIRLltyDMZMf5E/moTl73wFAHRMuOXcptBjf/XlOn3dnZuu9PGwspCohb2T+rKlKz4LrIbtTXmqZfoGwSEpAM=
Received: from AM6PR08MB4738.eurprd08.prod.outlook.com (2603:10a6:20b:cf::10) by AM6PR08MB4359.eurprd08.prod.outlook.com (2603:10a6:20b:b9::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.24; Thu, 30 Jul 2020 15:46:14 +0000
Received: from AM6PR08MB4738.eurprd08.prod.outlook.com ([fe80::a98d:5ebe:dc1d:ea56]) by AM6PR08MB4738.eurprd08.prod.outlook.com ([fe80::a98d:5ebe:dc1d:ea56%3]) with mapi id 15.20.3239.019; Thu, 30 Jul 2020 15:46:14 +0000
From: Brendan Moran <Brendan.Moran@arm.com>
To: suit <suit@ietf.org>
Thread-Topic: Packed CBOR
Thread-Index: AQHWZoiO44chiCoVnEWnPljl7lN2tw==
Date: Thu, 30 Jul 2020 15:46:13 +0000
Message-ID: <7C066E44-8C55-4229-993A-28FD0572992B@arm.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-mailer: Apple Mail (2.3608.80.23.2.2)
Authentication-Results-Original: ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=none action=none header.from=arm.com;
x-originating-ip: [82.20.19.206]
x-ms-publictraffictype: Email
X-MS-Office365-Filtering-HT: Tenant
X-MS-Office365-Filtering-Correlation-Id: 74960546-c46c-4b7e-b343-08d8349fb546
x-ms-traffictypediagnostic: AM6PR08MB4359:|HE1PR0802MB2281:
X-Microsoft-Antispam-PRVS: <HE1PR0802MB22816D7ACC40C49323DBE1FDEA710@HE1PR0802MB2281.eurprd08.prod.outlook.com>
x-checkrecipientrouted: true
nodisclaimer: true
x-ms-oob-tlc-oobclassifiers: OLM:10000;OLM:10000;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam-Untrusted: BCL:0;
X-Microsoft-Antispam-Message-Info-Original: EuNLlDS0FyK9bXZJkdYozq0IQML7w/JgwRu+XxLB2d6tRT8gYpg2pyvguZipBeFPdwVEcOMNPvDV4l7300EnSS+/Iiu0HCcfEiGwDwPyhy6GSq/eBfsLvPdWuORpffTuY3S9NI0ZFcvXB/IL7I6XiueytwcXrha3/ve6KAGSnOvSSVDygzXZrgRKD5c2nnXwZfOxQ6yE1HWwSsVMa7a9pI4Bmsnr6VLFeFj/03TBEY7QUMNQ4MFoM4cHL47c1mdqdzAoZ0S8IHV+QSC+VFdLP+yxUFGobyZ4zpqXOR03scdi8Uk7iFYu5F6B+nwgFjXg
X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR08MB4738.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(396003)(366004)(136003)(39860400002)(376002)(346002)(83380400001)(2616005)(8676002)(36756003)(6506007)(6486002)(6512007)(316002)(26005)(2906002)(7116003)(8936002)(6916009)(3480700007)(186003)(66946007)(66476007)(5660300002)(91956017)(64756008)(478600001)(33656002)(86362001)(76116006)(71200400001)(66556008)(66446008); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: t/zxs/mkp4QIyyqklBg/GoAAnyuDHpEBzNkT65RT46CdjWOG7tZ2dOOeXGQYKCI25k7gkHorgiKYH5Kv00gMRb02Y/DjF/Bve5xHH/XEaId4pbDsFuzFFv392wGNTu5Ey9JI+ap/q7PP0GYU5RWzAssVIIvEcQI4Kr5cOQnCfFnC8WAXKziDNUmBYhPBbX86q66Q5+Y8AKl99Pez/wCXAcnCjl45kO7bMGLv0IjspS9165ePYjmLRGuPTXIvyk3yRitgCROJngDatGm5Jk4KB458Esg3pnnjMLz0ZuYd7Gz3yoBNwNMf8p8IqgO6OKFu8oPkroTcSEUe/fN77zOHkpP9+xMIh4cQwzdhlOJbby+5TM9aN5LNssrWQRgDSkbi4m1wntNfJFoBGfvD1X2GgvBWJ3ifxc8Fu7yOxGokaVP5xEpvbgVcwH0RTsvjeaQGKKGZ1vAw7srYKHFVF8tpQBFJiiEH+feqzOpUx/NA3sE=
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-ID: <0280CF50BCFF84418AA3DEA52577FBA2@eurprd08.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4359
Original-Authentication-Results: ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=none action=none header.from=arm.com;
X-EOPAttributedMessage: 0
X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT018.eop-EUR03.prod.protection.outlook.com
X-MS-Office365-Filtering-Correlation-Id-Prvs: cf069bf8-488c-47cd-d1dc-08d8349fb0a9
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: cB4zyqY0knBm9KVS+Z5O5vhEIK8XyTvdzsQJLRHmY64ttqSz70FGrnT9G8geP+/pLFKvmK8YgBOZdXPC6KD7gpDmibQZPsCxuNCSJ3GFqbAYt2zfTYXE18/53vKRs7MNpNsgwW/lKu+VH6KZNCfkuAvBktCeBQwrSgxlIUCcMUgZB20Qel3UE/oJKWNoZosp1lMWf4Z8b71qeM22Km32LofLjce7gGy/Kbed3Gceo2TgP0iVXsq86SdhPSq5tlyDgyqpK36wkUN2yMsLy8pGrABjwn4bfaemoml9BnO8C2xjAFPsQuoxxpEUTbQ9gRFV7sNnagEvq2hB6IKgE65rZ4vp8TqfwY5zY4HvnbYv2jEegPsiYU+gN253/iS4BRDfNOosSfPoRPyUnP34sltjPA==
X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFTY:; SFS:(4636009)(46966005)(336012)(83380400001)(70586007)(186003)(6506007)(47076004)(26005)(33656002)(5660300002)(70206006)(3480700007)(36906005)(81166007)(356005)(82310400002)(2906002)(8676002)(2616005)(36756003)(6512007)(7116003)(8936002)(6486002)(86362001)(498600001)(6916009); DIR:OUT; SFP:1101;
X-OriginatorOrg: arm.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2020 15:46:21.8079 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: 74960546-c46c-4b7e-b343-08d8349fb546
X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com]
X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT018.eop-EUR03.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0802MB2281
Archived-At: <https://mailarchive.ietf.org/arch/msg/suit/N02a1c4YKd8msnMpS-gotVzxXvQ>
Subject: [Suit] Packed CBOR
X-BeenThere: suit@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Software Updates for Internet of Things <suit.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/suit>, <mailto:suit-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/suit/>
List-Post: <mailto:suit@ietf.org>
List-Help: <mailto:suit-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/suit>, <mailto:suit-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 30 Jul 2020 15:46:29 -0000

On Monday, Carsten presented Packed CBOR (draft-bormann-cbor-packed-00) at the CBOR working group, which adopted it. This is an extension to the CBOR standard (RFC7049) that enables “packing” of CBOR objects using a CBOR-based dictionary compression scheme.

If this had been in draft 18 months ago, the SUIT manifest would have used it instead of the “common” block. The common block is a de-facto packing mechanism that would be largely supplanted by packed CBOR. It simplifies many of the schemes that SUIT already uses and makes the manifest more compact besides.

If we were to adopt it now, this would cause two substantial changes in SUIT:

1. Removing several existing SUIT deduplication mechanisms.
2. Placing a dependency on draft-ietf-cbor-packed-00.

Both of these would delay SUIT.

It would have benefits:

1. Simplify the manifest structure (complexity moved to packed cbor)
2. Make the manifest smaller


I see several options ahead of us:
1. Make no change, apply packed CBOR as and when it makes sense.
2. Make no change now, but plan for a v2 SUIT manifest draft
3. Adopt packed CBOR & simplify manifest now.

Option 1 is somewhat problematic in that it splits the ecosystem we’re trying to create. Option 2 does the same, but provides more benefits. 2 is arguably more detectable, since it’s easier to report manifest v2 support, than to report support for a specific CBOR tag within the SUIT Manifest Processor.

Option 3 delays SUIT both for updates to SUIT itself, and for the dependency on draft-ietf-cbor-packed-00.

If it weren’t for the delays, I’d go for Option 3. With the delays, I’m not sure what the right answer is. 1 & 2 fracture the ecosystem of updatable devices into “haves” and “have nots.”

I plan to discuss this tomorrow at the SUIT meeting.


Best Regards,
Brendan
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.