Re: [Suit] Which type of devices? CBOR "parser"

Brendan Moran <Brendan.Moran@arm.com> Fri, 09 November 2018 16:02 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 5C4BE130E16 for <suit@ietfa.amsl.com>; Fri, 9 Nov 2018 08:02:24 -0800 (PST)
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, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=armh.onmicrosoft.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 9G0zinpDn4t1 for <suit@ietfa.amsl.com>; Fri, 9 Nov 2018 08:02:21 -0800 (PST)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80043.outbound.protection.outlook.com [40.107.8.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4B3D2130DFF for <suit@ietf.org>; Fri, 9 Nov 2018 08:02:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AHIEa45HwlPpuWe0y2YZPMRlGVQKm1lrxBeHxh3eNhk=; b=TIHn3cV/cnJwMcXgBAFTMkT4MLdpC5/2RCgvKyputYyi+5QrsvfRlzHjiwSJqECCGzGiKpwMr661i+JHJlTsEpzZoUXWiycSr0hrqRmiGAUeedRqztwOgjgH9b3liwmox5z/3r9jMDZRrMlCKK9h4YebtTsX/NbgoArJsWIjPus=
Received: from DB6PR0801MB1879.eurprd08.prod.outlook.com (10.168.85.13) by DB6PR0801MB1861.eurprd08.prod.outlook.com (10.168.85.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.26; Fri, 9 Nov 2018 16:02:16 +0000
Received: from DB6PR0801MB1879.eurprd08.prod.outlook.com ([fe80::acf2:1e1b:193a:4971]) by DB6PR0801MB1879.eurprd08.prod.outlook.com ([fe80::acf2:1e1b:193a:4971%3]) with mapi id 15.20.1294.034; Fri, 9 Nov 2018 16:02:16 +0000
From: Brendan Moran <Brendan.Moran@arm.com>
To: Martin Pagel <Martin.Pagel@microsoft.com>
CC: Carsten Bormann <cabo@tzi.org>, Hannes Tschofenig <Hannes.Tschofenig@arm.com>, "suit@ietf.org" <suit@ietf.org>, Alexander Pelov <a@ackl.io>, Matthias Waehlisch <m.waehlisch@fu-berlin.de>
Thread-Topic: [Suit] Which type of devices? CBOR "parser"
Thread-Index: AdR3zzfKSrkybXNyTjm4m9im0pN2rAAL3G6AAAfHPgAABy934AACxFYA
Date: Fri, 09 Nov 2018 16:02:16 +0000
Message-ID: <229484BC-5582-41E8-A9CF-E338AC970252@arm.com>
References: <DM5PR21MB0698136CE9A547C4B353C4E99DC60@DM5PR21MB0698.namprd21.prod.outlook.com> <0597284A-33CD-4A25-9862-77584E2E3BDF@tzi.org> <63338B40-E308-40BE-BF4D-CC23B895C1DE@arm.com> <DM5PR21MB06989A6D8F9EC95DF73369459DC60@DM5PR21MB0698.namprd21.prod.outlook.com>
In-Reply-To: <DM5PR21MB06989A6D8F9EC95DF73369459DC60@DM5PR21MB0698.namprd21.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-mailer: Apple Mail (2.3445.9.1)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Brendan.Moran@arm.com;
x-originating-ip: [217.140.106.52]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; DB6PR0801MB1861; 6:5k0TVs9wkJ4zDl9/yvrlHOloTP8ytxV1+6jI6xSRWOmc0Ru4S4s73wKBqJRZizD9MnES+xlCNgsS17kA5uM7bf/xXzcRUFtf3G3PgTHkaHGzrXzUYEUsRZs2Vx/SZlHwOxF7PD8oy7NNhtPg+QIdQkMJocs3RIr1TEVHT37jhl9Grg9osHwk+d88YOzY9sM4nMko0aURzinvbnfLlcdkjfRhq6v59o8zGFvK31aIF5tuL84tKm2ecx/3vXpKR2JguOOYxnT+xPnsuKWzlXIBj8slcRhVVgkr+u62ErtTIRc2Fh6cPe7vxn4SlDQeu5n7Wx28F/NiDQ+1cdNk+o1RFUfXTjNfVmf1RyICwIlnzXc3SJ6zgfNetj4JSZHo6U5R2xw6WoB0dhEU1nK/1JxTFCwEZoIc//yYwx4vrR2XAm6DkGW0cpu2CWaLzv4Ki+IMwzTxWuo3D59NLJiEU9nifA==; 5:ux8pNHlv0JvLq/MgQF2BF1FUPxmnw08NR10GmGWOmZOtCc3AKw3XYLujiDSYe1dwClgxoW90Rc+pRH+HwFO0VoazS99y8LS0shYlfs2bfqQ3gbjU+1n124uxHscp3Z/AKIZi1yCcXCCpNe4bGvN3CNRl70ujK07x5cjzd9Bt7Q4=; 7:mgvci/qNwSUWz7GywSnRO54m+BC5OjZEFiP7JSeLQnBnRzfa1MR1ZIR/SyVrOdpvj5WfHQHpiwMnUZBRun12aoF+phCXuvuh08WXiTuaUX6qscasqHeR7Jch7JfymX9TU0Vi5OEqWDxCCbYqPM5d1g==
x-ms-exchange-antispam-srfa-diagnostics: SOS;SOR;
x-ms-office365-filtering-correlation-id: 8363a471-660e-476f-22fa-08d6465cb8aa
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:DB6PR0801MB1861;
x-ms-traffictypediagnostic: DB6PR0801MB1861:
x-microsoft-antispam-prvs: <DB6PR0801MB18614075E099FC0CBDD26C92EAC60@DB6PR0801MB1861.eurprd08.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(180628864354917)(219752817060721)(189930954265078);
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231382)(944501410)(52105095)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123560045)(201708071742011)(7699051)(76991095); SRVR:DB6PR0801MB1861; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0801MB1861;
x-forefront-prvs: 08512C5403
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(396003)(39860400002)(376002)(136003)(366004)(13464003)(40434004)(189003)(199004)(54896002)(53936002)(105586002)(1511001)(6916009)(6306002)(26005)(606006)(14444005)(6512007)(236005)(256004)(53546011)(102836004)(45080400002)(6506007)(36756003)(97736004)(54906003)(5024004)(4326008)(66066001)(229853002)(2900100001)(106356001)(316002)(478600001)(82746002)(14454004)(76176011)(72206003)(33656002)(99286004)(6116002)(446003)(93886005)(5660300001)(966005)(2906002)(57306001)(68736007)(575784001)(6436002)(6486002)(81156014)(81166006)(86362001)(83716004)(6246003)(486006)(8676002)(2616005)(50226002)(25786009)(71200400001)(11346002)(3846002)(476003)(186003)(71190400001)(7736002)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0801MB1861; H:DB6PR0801MB1879.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: kHW3GIZ0d6US8barPkhrW1ISJa+hQ3a18oWiHciDeI0wx2UsaJOTQJej2+hEJyHPTm5NRR31K416Mz7xr9MO6tbX2tIXHMTXNXv97HW/6+DGUNFRCXIjMJf5lAFz8eXOYY7TTnjMsjhPkXIv88vE4fNpg0s5J3O9J1vq6PF1UaPgamZZdIV2NmpNEuMWj+Sw5UjzsHqnGIFk3azxGAMX3J8dpuzyfsHzasAuaIwYpqoEDYz1UvOicMhz3yRg0M9BQykLIQ8M6Qt6huCjcUPrAihHIwFN1zVx53o4bhjVtXjiWlhXFvX1Wee535+N9epEVh0xoO8ei2Ub3ffEQ+9kUNOYU1OpWTbWE+8L4lxxygc=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_229484BC558241E8A9CFE338AC970252armcom_"
MIME-Version: 1.0
X-OriginatorOrg: arm.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 8363a471-660e-476f-22fa-08d6465cb8aa
X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Nov 2018 16:02:16.7846 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB1861
Archived-At: <https://mailarchive.ietf.org/arch/msg/suit/xz0hJ6DXMnnMSvKP1CMKicA7DfM>
Subject: Re: [Suit] Which type of devices? CBOR "parser"
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: Fri, 09 Nov 2018 16:02:25 -0000

Hi Martin,
That likely won’t be necessary with a pull parser. Let’s see how it works out.

Thanks,
Brendan

On 9 Nov 2018, at 14:50, Martin Pagel <Martin.Pagel@microsoft.com<mailto:Martin.Pagel@microsoft.com>> wrote:

Carsten,
I don't understand...
With CBOR I need a Receive Buffer to load the manifest in CBOR format and then apply the parser to store it somewhere else in MCU-native format (such as a regular Int without the CBOR flags at the beginning). With the binary format you can skip that and load it straight in MCU-native format and work on it.

Brendan,
I assume your parser will be smaller, but would still use a Receive Buffer, correct?

Martin

-----Original Message-----
From: Brendan Moran <Brendan.Moran@arm.com<mailto:Brendan.Moran@arm.com>>
Sent: Friday, November 9, 2018 3:17 AM
To: Carsten Bormann <cabo@tzi.org<mailto:cabo@tzi.org>>
Cc: Martin Pagel <Martin.Pagel@microsoft.com<mailto:Martin.Pagel@microsoft.com>>; Hannes Tschofenig <Hannes.Tschofenig@arm.com<mailto:Hannes.Tschofenig@arm.com>>; suit@ietf.org<mailto:suit@ietf.org>; Alexander Pelov <a@ackl.io<mailto:a@ackl.io>>; Matthias Waehlisch <m.waehlisch@fu-berlin.de<mailto:m.waehlisch@fu-berlin.de>>
Subject: Re: [Suit] Which type of devices? CBOR "parser"

I agree, Carsten. I am working on a specialised parser (similar in nature to the one you described above) for a minimal instance of the draft-moran-suit-manifest and hope to share my results shortly.

Best regards,
Brendan

On 9 Nov 2018, at 07:34, Carsten Bormann <cabo@tzi.org<mailto:cabo@tzi.org>> wrote:

But you still need a buffer to receive the CBOR manifest and transform it into a format which the application (update agent, status tracker, communicator…) can use, which means you approximately need twice the memory plus some "transformation" code.

You don’t need another format.  Why not work on the CBOR right away?

Grüße, Carsten

_______________________________________________
Suit mailing list
Suit@ietf.org<mailto:Suit@ietf.org>
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ietf.org%2Fmailman%2Flistinfo%2Fsuit&amp;data=02%7C01%7CMartin.Pagel%40microsoft.com%7C6e72d6b8d5004bbaceb808d64634f0bb%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C1%7C636773590535842589&amp;sdata=%2FMwjmYd77bydmIcSxHfrr0XvvFLRSiUdCzND1gAA1Lc%3D&amp;reserved=0

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.

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.