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

Michael Richardson <mcr+ietf@sandelman.ca> Fri, 21 December 2018 18:25 UTC

Return-Path: <mcr+ietf@sandelman.ca>
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 D2C4C130E4D for <suit@ietfa.amsl.com>; Fri, 21 Dec 2018 10:25:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.001
X-Spam-Level:
X-Spam-Status: No, score=-4.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_CSS=0.1, URIBL_CSS_A=0.1] autolearn=ham autolearn_force=no
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 gzXeN5pYUC36 for <suit@ietfa.amsl.com>; Fri, 21 Dec 2018 10:25:52 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [IPv6:2607:f0b0:f:3:216:3eff:fe7c:d1f3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 92DF81277BB for <suit@ietf.org>; Fri, 21 Dec 2018 10:25:52 -0800 (PST)
Received: from sandelman.ca (obiwan.sandelman.ca [209.87.249.21]) by tuna.sandelman.ca (Postfix) with ESMTP id AE93620008; Fri, 21 Dec 2018 13:25:40 -0500 (EST)
Received: by sandelman.ca (Postfix, from userid 179) id 35EE4DD6; Fri, 21 Dec 2018 13:25:47 -0500 (EST)
Received: from sandelman.ca (localhost [127.0.0.1]) by sandelman.ca (Postfix) with ESMTP id 34924C52; Fri, 21 Dec 2018 13:25:47 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Derek Atkins <derek@ihtfp.com>
cc: Martin Pagel <Martin.Pagel=40microsoft.com@dmarc.ietf.org>, David Brown <david.brown@linaro.org>, "suit@ietf.org" <suit@ietf.org>, "dev-mcuboot@lists.runtime.co" <dev-mcuboot@lists.runtime.co>
In-Reply-To: <sjmtvj6u55c.fsf@securerf.ihtfp.org>
References: <DM5PR21MB06984CC3CF3075F362FB410A9DBF0@DM5PR21MB0698.namprd21.prod.outlook.com> <sjmtvj6u55c.fsf@securerf.ihtfp.org>
X-Mailer: MH-E 8.6; nmh 1.7+dev; GNU Emacs 24.5.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha256"; protocol="application/pgp-signature"
Date: Fri, 21 Dec 2018 13:25:47 -0500
Message-ID: <23718.1545416747@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/suit/GUpjPxAiEjNAVHaadNn0EDUook8>
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:25:55 -0000

Derek Atkins <derek@ihtfp.com> wrote:
    >> 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.

Since I think it's unlikely to happen, there would be a many servers, with
the result that at least one or more systems would not have a server
available, and would never get upgraded.

That's an incredibly high cost: if that results in a compromised
network/building/airport/etc.

-- 
]               Never tell me the odds!                 | ipv6 mesh networks [
]   Michael Richardson, Sandelman Software Works        |    IoT architect   [
]     mcr@sandelman.ca  http://www.sandelman.ca/        |   ruby on rails    [