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

Martin Pagel <Martin.Pagel@microsoft.com> Fri, 09 November 2018 14:50 UTC

Return-Path: <Martin.Pagel@microsoft.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 C64C5130DC6 for <suit@ietfa.amsl.com>; Fri, 9 Nov 2018 06:50:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.471
X-Spam-Level:
X-Spam-Status: No, score=-2.471 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.47, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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=microsoft.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 8hjFZoV-C4Hp for <suit@ietfa.amsl.com>; Fri, 9 Nov 2018 06:50:34 -0800 (PST)
Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-eopbgr740112.outbound.protection.outlook.com [40.107.74.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B88BF1277C8 for <suit@ietf.org>; Fri, 9 Nov 2018 06:50:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qITJhiRPjgO8g0YR/AMlPw0/3cFeoRPyyAxHuGZeJdQ=; b=Y9zICY8WHYZOSArTG1tzOmj4awQC+HpGY47UUUGfOB6zuJBBzuBLRdHGE0YUJGKbapuxGtAq//4A2KwJGj1wjpZcQIr3dC0wILCRLvrNmdf9/c7AAQgfC5Bs7yaeEzAxiz7ZrcrjGxraomovw1Zy4CrsyVIrxNwOBRUAB1ca8t4=
Received: from DM5PR21MB0698.namprd21.prod.outlook.com (10.175.112.13) by DM5PR21MB0154.namprd21.prod.outlook.com (10.173.173.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1339.11; Fri, 9 Nov 2018 14:50:31 +0000
Received: from DM5PR21MB0698.namprd21.prod.outlook.com ([fe80::a98a:d82e:2d5a:220f]) by DM5PR21MB0698.namprd21.prod.outlook.com ([fe80::a98a:d82e:2d5a:220f%16]) with mapi id 15.20.1339.009; Fri, 9 Nov 2018 14:50:31 +0000
From: Martin Pagel <Martin.Pagel@microsoft.com>
To: Brendan Moran <Brendan.Moran@arm.com>, Carsten Bormann <cabo@tzi.org>
CC: 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: AdR3zzfKSrkybXNyTjm4m9im0pN2rAAL3G6AAAfHPgAABy934A==
Date: Fri, 09 Nov 2018 14:50:31 +0000
Message-ID: <DM5PR21MB06989A6D8F9EC95DF73369459DC60@DM5PR21MB0698.namprd21.prod.outlook.com>
References: <DM5PR21MB0698136CE9A547C4B353C4E99DC60@DM5PR21MB0698.namprd21.prod.outlook.com> <0597284A-33CD-4A25-9862-77584E2E3BDF@tzi.org> <63338B40-E308-40BE-BF4D-CC23B895C1DE@arm.com>
In-Reply-To: <63338B40-E308-40BE-BF4D-CC23B895C1DE@arm.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Owner=mapagel@microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2018-11-09T14:50:29.0950356Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Application=Microsoft Azure Information Protection; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Extended_MSFT_Method=Automatic; Sensitivity=General
x-originating-ip: [97.126.26.32]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; DM5PR21MB0154; 6:SjBigNKxjg7EIorfcD/p2xZNzPziW84PvrBPoV5Luvsr1xk+BmbnFiFMRzwPayfe5On8CWZokC8WpbCWg/Rvj4s1/tjj3PJwF0QdCUfLM88M7KOVYkigT/U/EnUCl5C62ORdWewnUK5eR/z9ZTOCZaH/kmu2UiHj6G66XLs/BiuBlXjN8iE6pUaatOMlLuXhxwN5OF2BarOqRTyxA9mq6+bGBqXkTbZHaaUGMz3GRTPqPWMxXYTcxOn6bkWP8fRMc5AtQPfTvva7PvCaD2DwTn6BP5lf/SmWAow/t4hYblZR0oal+bJZGZCWszhTLiFYr0K3PwZwGi/oJRMPtXOixL/1trSCyqcO6l9E/vvQ3mMd+Uj4LaX2v6v3oWtWMgojNEmCmRc2fECiJWKbXJucmqvBZrj8NJNGmj0ktKDAEY2DQ9f3b+H9mJZkPaY5HT4ilBaqkvXU2sOmN5cFctvpig==; 5:LrJ57c8T82w8ETDdEibCPe51oaHSF49m4/VJxoTUxIc3uZ8v4qjNO7J9PTdYt1kw90pmDWr/WQ0p0p7c7RB6gK4wWzUSRrUkUmESlvsmntvXVlwhMFtK4OiKEkfN/WcBKDNX7QW8gNMsit8428ynp/IlLLu1aRmSbQWJgjCVXw4=; 7:cv3aSaPuv+Zbyz2s+U2pUVbinQDDIqILoVusEJx0dSfdpUAm4rUJPSgAjiLVMP1vbZCb4pg2jgstdYzx2lU7DSczWbNoxNlBNMA/UG3YzHsb2Np47UQiB8vqrjcKrZv04imktWTwqtrdYBaaILDjPA==
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: a0e449ab-515c-4af0-b1a5-08d64652b254
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)(7193020); SRVR:DM5PR21MB0154;
x-ms-traffictypediagnostic: DM5PR21MB0154:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Martin.Pagel@microsoft.com;
x-ld-processed: 72f988bf-86f1-41af-91ab-2d7cd011db47,ExtAddr
x-microsoft-antispam-prvs: <DM5PR21MB0154347AB940F510B38E37969DC60@DM5PR21MB0154.namprd21.prod.outlook.com>
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(8220035)(2401047)(8121501046)(5005006)(10201501046)(3231390)(944501410)(52105111)(2018427008)(93006095)(93001095)(3002001)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(201708071742011)(7699051)(76991095); SRVR:DM5PR21MB0154; BCL:0; PCL:0; RULEID:; SRVR:DM5PR21MB0154;
x-forefront-prvs: 08512C5403
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(979002)(376002)(346002)(366004)(396003)(136003)(39860400002)(40434004)(13464003)(199004)(189003)(68736007)(72206003)(8936002)(14454004)(10090500001)(966005)(81166006)(8990500004)(81156014)(74316002)(186003)(9686003)(3846002)(97736004)(305945005)(6306002)(66066001)(55016002)(229853002)(106356001)(33656002)(26005)(6116002)(2900100001)(105586002)(446003)(5660300001)(11346002)(7736002)(110136005)(6246003)(5024004)(102836004)(256004)(14444005)(476003)(99286004)(575784001)(54906003)(7696005)(478600001)(4326008)(486006)(86362001)(76176011)(2906002)(10290500003)(53546011)(71190400001)(71200400001)(22452003)(316002)(6506007)(6436002)(53936002)(86612001)(25786009)(8676002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR21MB0154; H:DM5PR21MB0698.namprd21.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: v2sepirQpACSiKv4TCyea4BsHyDwqaZwnfqUoCPBWp9IXJN4W6WzV5eb5cL83v5RuX6nOC4H0XafqLg4biW6TaO3+hEEKxSCSAjwSCJqFwfafUfUw00Y0Phdo36BRXVkV8caaKim9Vl/x6zlc5VN5UG0k1LgjpqvyRCCoHHZotlFBDnocaVN2TfjMSXHStQu0U+z2jLRUsQe7LgHSGOtiu75C3Eetgo6P6Nm5FJ2IT874EuIET3Z9zzjnozNb3+NtN+1BsJ/j058MgVmcpSCbnNMyTa7AzuyPYmIBV6Rohq3Xlro2LOwZWl3OaViXbqIPDfFE2A+DF9joZNjLeF9nw5L4KJ8vSHYDQmU8eLWdFA=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
X-MS-Exchange-CrossTenant-Network-Message-Id: a0e449ab-515c-4af0-b1a5-08d64652b254
X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Nov 2018 14:50:31.1260 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR21MB0154
Archived-At: <https://mailarchive.ietf.org/arch/msg/suit/ogKGtsijsrNJsTIkDeMLgDUROjA>
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 14:50:37 -0000

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> 
Sent: Friday, November 9, 2018 3:17 AM
To: Carsten Bormann <cabo@tzi.org>
Cc: Martin Pagel <Martin.Pagel@microsoft.com>; Hannes Tschofenig <Hannes.Tschofenig@arm.com>; suit@ietf.org; Alexander Pelov <a@ackl.io>; Matthias Waehlisch <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> 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
> 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.