Re: [dispatch] draft-devault-bare-07 to be discussed during IETF 114

Martin Thomson <mt@lowentropy.net> Wed, 27 July 2022 02:23 UTC

Return-Path: <mt@lowentropy.net>
X-Original-To: dispatch@ietfa.amsl.com
Delivered-To: dispatch@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EDF6EC13CCF9 for <dispatch@ietfa.amsl.com>; Tue, 26 Jul 2022 19:23:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.81
X-Spam-Level:
X-Spam-Status: No, score=-2.81 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=lowentropy.net header.b=VK1nNjT4; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=p22C42BC
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4rOpqBh045L7 for <dispatch@ietfa.amsl.com>; Tue, 26 Jul 2022 19:23:40 -0700 (PDT)
Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F3F39C13CCF8 for <dispatch@ietf.org>; Tue, 26 Jul 2022 19:23:39 -0700 (PDT)
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 6B81B3200974 for <dispatch@ietf.org>; Tue, 26 Jul 2022 22:23:39 -0400 (EDT)
Received: from imap41 ([10.202.2.91]) by compute3.internal (MEProxy); Tue, 26 Jul 2022 22:23:39 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lowentropy.net; h=cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1658888618; x=1658975018; bh=eEADo3x7Ex UpJE5CBgG7H+dlOR5CpjEHa3NumQyYdNQ=; b=VK1nNjT4IfclbPhfAoQgyXjxji NA69ks7onbLexPzi1Az0xuzMef7No1mk74GEfwtYNE07Rmd9jrSbJ2fVIHaJwRNp Fx514fyLY2I9I6yxA6byaIShqe46vTr00zFRYDWcPpaq2IwbxFAh8HnSWtMd3Bg3 Mer2qpeieuytU2FZZwQjE8dHXDbQrUXDVuiYAowIWnAhnHBPXW/Vz0SH6cj4yUGR /1prv0oJH0JsV8e6tC0jAFuELgihGtYY2yrCAidsS9w43vC5IzYk7H7Cc4uX6m3y 65QlEy34jx9l3JilmBk0nIVQHV7lE+jfS6zA9HYKsn16F0HfDhgUQf+lgPRw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1658888618; x=1658975018; bh=eEADo3x7ExUpJE5CBgG7H+dlOR5C pjEHa3NumQyYdNQ=; b=p22C42BChhf0elqsfc/AEQxbNx8lqCkKDd50BUCy50Gg 5fGpVvvz/h54eAbE9GrHGuDdX/kLi85A620Y8EfitmJ3o88IosaH2d0jmvCzJhsj wE1+886o+LJzySj+RShLMbJDEEmYnA9oQrK5iJ7icDjXjMYePzYRrodJ1ckWT8bQ Fha1l+AFKzTYA/5FtrOjUf+dYUg5NWi5p0E02icxI1eTB0rtpjLq/BsMqj3Y+sPj j/cpiV2j20DMR+dx74nb/ZohZEZ4UwRvRrkwR6XYN//njPb51cHhEVqT5HyEDA4G WYlMsKO/N/VmCIIJ0Ay+U6aFfKthtIJ8Sp8/LT4zZQ==
X-ME-Sender: <xms:qqHgYmUjyWawFabxDC812orzBaqtJwON5d--RPBAzs4zR4JxWDMMQA> <xme:qqHgYinsgviKKSo9_zH1oSFUxoMLRXlCiMgm-zO1pTw4Lds0MRnuYqLGnllzRjm-h V8TIDziMs4mcJ0rv7A>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdduuddgheelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderredtnecuhfhrohhmpedfofgrrhhtihhnucfvhhhomhhsohhnfdcuoehmtheslhho figvnhhtrhhophihrdhnvghtqeenucggtffrrghtthgvrhhnpeetveeuvedvueeufffhle fhgfefgeefieekffelgfehieeigefhtdetvddutefhleenucffohhmrghinheprhhftgdq vgguihhtohhrrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepmhhtsehlohifvghnthhrohhphidrnhgvth
X-ME-Proxy: <xmx:qqHgYqa7F6tAB4uGzv3MXTcF_3F6_mXesVuOcL4iiNFdp4MelpufYw> <xmx:qqHgYtV1nWHR7Sth0p6IPEwIz7lfBR8N3HLHk1H8mbQDFW9QP1Nxzg> <xmx:qqHgYglOiJouwGVuJWFTVVWlYId6iQeu_GSfmWA-c66hI_S1dGe1sg> <xmx:qqHgYsy10pH3-veQZXyKeZPPWJUbH_doxyz7ucuwnjE9TUloaXmIMw>
Feedback-ID: ic129442d:Fastmail
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 720B62340077; Tue, 26 Jul 2022 22:23:38 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.7.0-alpha0-757-gc3ad9c75d3-fm-20220722.001-gc3ad9c75
Mime-Version: 1.0
Message-Id: <624e00b7-dd14-4a50-b0e3-d972fe23d991@www.fastmail.com>
In-Reply-To: <CAL02cgSi5GL4qLdZhd9QDHZK0s1YqBE-T-g5bz151sMZJPFbWQ@mail.gmail.com>
References: <YqC0MHD7MPpcFEuc@cvut.cz> <20220608210551.72EB94341C93@ary.qy> <CAL02cgTqv5_18w_sNZHuk5uStRL3UGH5JzxHPxkyG1MEBXZLYQ@mail.gmail.com> <CAL02cgTcoN5suDOMAs5L8kM9MU-4Kyyt5pjNCiTZX=50fMbErQ@mail.gmail.com> <CABcZeBMoVKxbjBT3r_zs7okTsM77Qy97FXVcpUAntVSqwUHSkQ@mail.gmail.com> <CAHbrMsDs4-B-GMrxcrZL7Civ0FdnjwGdHRXz3LY5YRO67mrPxw@mail.gmail.com> <CAL02cgSi5GL4qLdZhd9QDHZK0s1YqBE-T-g5bz151sMZJPFbWQ@mail.gmail.com>
Date: Tue, 26 Jul 2022 22:23:17 -0400
From: Martin Thomson <mt@lowentropy.net>
To: dispatch@ietf.org
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/dispatch/pTINGzZhR8bdznTVY7EU1BuUecM>
Subject: Re: [dispatch] draft-devault-bare-07 to be discussed during IETF 114
X-BeenThere: dispatch@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: DISPATCH Working Group Mail List <dispatch.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dispatch>, <mailto:dispatch-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dispatch/>
List-Post: <mailto:dispatch@ietf.org>
List-Help: <mailto:dispatch-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dispatch>, <mailto:dispatch-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 27 Jul 2022 02:23:45 -0000

On Tue, Jul 26, 2022, at 12:34, Richard Barnes wrote:
> 2. QUIC has its own different syntax. 
> https://www.rfc-editor.org/rfc/rfc9000.html#name-notational-conventions

I want to caution against using this as the basis for a formal grammar.  It was never intended as such.  These are pictures, not specifications.

If you want something that you can feed into a parser/generator, ASN.1 and PER (probably the unaligned variant, which is the less weird of the two) is superior in many respects.  CBOR is similarly good (I don't like CBOR for reasons, but it has a lot of tooling support now).  Protobuf is even better.  And there are many others with similarly good tooling and support.  The TLS format is often used, but I am of the opinion that it is not ideal in many cases and bad in some others; see cTLS.

But the idea that there might be a generic set of tools ignores the fact that there is a continuous desire to find something "optimal" for different use cases.  None of the design choices in the above are perfect because adaptation to a specific use case is a constant consideration.

That you might invent a format that will rule them all is ... for want of a nicer word ... hubris.  You might as well expect everyone to decide that vi or emacs is superior to the point that the other can be archived and never used ever again.  See also why git is the only possible answer for VCS.

There is perhaps a use case for a format system for protocols that undergo symbolic analysis.  Even there, the encoding is rarely the subject of the analysis.  Encodings are so trivial that they are rarely considered.  That is, some tools did look at this for QUIC and TLS, but most operated on an abstract model of the protocol; it is a gap, but not a particularly bad one given how easy it is to create unambiguous encodings.

What role the IETF might play in all this mess is unclear.  As much as any major player, we're responsible for adding to the pile of different options, even as we manage to consolidate here and there.

Perhaps the IETF's role as a bespoke protocol crafting shop means we'll always turn out new methods of describing the way to arrange bits on a wire.  I'm personally OK with that.