Re: [Suit] self-describing format vs fixed/binary manifest structure - pull parser

Derek Atkins <derek@ihtfp.com> Fri, 21 December 2018 18:06 UTC

Return-Path: <derek@ihtfp.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 C9E9D130E4D for <suit@ietfa.amsl.com>; Fri, 21 Dec 2018 10:06:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.79
X-Spam-Level:
X-Spam-Status: No, score=-1.79 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, T_SPF_PERMERROR=0.01, URIBL_CSS=0.1, URIBL_CSS_A=0.1] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ihtfp.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 VY3yVPn5H1xG for <suit@ietfa.amsl.com>; Fri, 21 Dec 2018 10:06:07 -0800 (PST)
Received: from mail2.ihtfp.org (MAIL2.IHTFP.ORG [204.107.200.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8B15112875B for <suit@ietf.org>; Fri, 21 Dec 2018 10:06:07 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mail2.ihtfp.org (Postfix) with ESMTP id C109FE2048; Fri, 21 Dec 2018 13:06:01 -0500 (EST)
Received: from mail2.ihtfp.org ([127.0.0.1]) by localhost (mail2.ihtfp.org [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 22635-09; Fri, 21 Dec 2018 13:05:52 -0500 (EST)
Received: from securerf.ihtfp.org (unknown [8.46.76.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mocana.ihtfp.org", Issuer "IHTFP Consulting Certification Authority" (not verified)) by mail2.ihtfp.org (Postfix) with ESMTPS id 0C982E2047; Fri, 21 Dec 2018 13:05:49 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ihtfp.com; s=default; t=1545415552; bh=vZ+Ne1SSuHjOFwVGKGx3PTwZha6GC997AxBhCuCf5YI=; h=From:To:Cc:Subject:References:Date:In-Reply-To; b=OtZ2bApbvCX52Y4p+Z9EQslHJpwUCHOo4nw0A814Aec7+dT5o9BkLGJKslA3JT9CI zpQ4Ty4Zz6dAnX9rEFjCDQ38v/NYmZprzL1du9aIVFgY9LQW8hKL29YxxDFYFEsmMF Qjs/6y7A2WLzBbuoyukj/PZEI0bySohI86M3Tizk=
Received: (from warlord@localhost) by securerf.ihtfp.org (8.15.2/8.15.2/Submit) id wBLI5ZiW008654; Fri, 21 Dec 2018 13:05:35 -0500
From: Derek Atkins <derek@ihtfp.com>
To: Martin Pagel <Martin.Pagel=40microsoft.com@dmarc.ietf.org>
Cc: David Brown <david.brown@linaro.org>, Michael Richardson <mcr+ietf@sandelman.ca>, "suit@ietf.org" <suit@ietf.org>, "dev-mcuboot@lists.runtime.co" <dev-mcuboot@lists.runtime.co>
References: <DM5PR21MB06984CC3CF3075F362FB410A9DBF0@DM5PR21MB0698.namprd21.prod.outlook.com>
Date: Fri, 21 Dec 2018 13:05:35 -0500
In-Reply-To: <DM5PR21MB06984CC3CF3075F362FB410A9DBF0@DM5PR21MB0698.namprd21.prod.outlook.com> (Martin Pagel's message of "Thu, 20 Dec 2018 02:05:14 +0000")
Message-ID: <sjmtvj6u55c.fsf@securerf.ihtfp.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: Maia Mailguard 1.0.2a
Archived-At: <https://mailarchive.ietf.org/arch/msg/suit/BIbBXuTGgMbL2404UFZI4oFTJhA>
Subject: Re: [Suit] self-describing format vs fixed/binary manifest structure - pull 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, 21 Dec 2018 18:06:09 -0000

Martin Pagel <Martin.Pagel=40microsoft.com@dmarc.ietf.org> writes:

> Thanks, David, 
> Yes, I am familiar with pull parsers, thanks to Brendan's example, but
> I'm not sure what the advantage of CBOR encoding provides if you build
> a custom parser for a particular fixed CBOR encoding/schema. Seems

The benefit is that you can create standardized server software that can
read the manifest to any particular MCU client without requiring special
per-MCU software.

The cost to the MCU to process a CBOR-pull is relatively low.  But the
cost to a server to deal with dozens (or more!) of uniquely-defined MCU
static manifest structures would be extremely high.

-derek
-- 
       Derek Atkins                 617-623-3745
       derek@ihtfp.com             www.ihtfp.com
       Computer and Internet Security Consultant