Re: Should the specifications hard-refer to UDP?

Martin Thomson <mt@lowentropy.net> Tue, 18 August 2020 04:36 UTC

Return-Path: <mt@lowentropy.net>
X-Original-To: quic@ietfa.amsl.com
Delivered-To: quic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9E0063A172C for <quic@ietfa.amsl.com>; Mon, 17 Aug 2020 21:36:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, 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=i5sET8/t; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=U/QZk193
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 PJTxDpjxYtk0 for <quic@ietfa.amsl.com>; Mon, 17 Aug 2020 21:36:55 -0700 (PDT)
Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DF4C53A1726 for <quic@ietf.org>; Mon, 17 Aug 2020 21:36:54 -0700 (PDT)
Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 285595C00AE for <quic@ietf.org>; Tue, 18 Aug 2020 00:36:54 -0400 (EDT)
Received: from imap2 ([10.202.2.52]) by compute2.internal (MEProxy); Tue, 18 Aug 2020 00:36:54 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lowentropy.net; h=mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm3; bh=5ht49D3zPWbY4J+BhpwJtaWAWGq/fof V/nRsPRfrqBk=; b=i5sET8/tP2TRTcI4pWrMHGF88Ic2BMHMNvcKhcNxOor0yHq meQTYKQIf+/VRAFmZSXJjQXA/WbXkxD7tO/YoZtPZbPQ69/gZA8exOj5JJ3VEQbX O2KA553iDK/d5EkKZF8yqDnMTM/+sjouMJu43mJoVEM1sY4ZdgRw5hE6sRyPqPlT FJsU+SJGefjr4JanTqKd21zN6UWUmx+Cc3FoOnAfxBfMrkl7CRMHYQey48/faEIT FYP8StKvNyegWLRKIw1cRYZyXCNFYdnfGTfZfFRg0cnOsbKPkFm5mbhm9eKUmw8Q gQ8kQHHFFKHnzM2uPjxZx2iX4pKxWeEyn41Pxgg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=5ht49D 3zPWbY4J+BhpwJtaWAWGq/fofV/nRsPRfrqBk=; b=U/QZk193Qy0V+Cvj6V6dgA 42i4KMS4yyj5pcv2E4ko9nvl/MjmToxBN6qwPYxPQh6K2l99NFnW8cDRiUMi34b5 RH6d4lqieoD5taKHEMSKKWdSRVfna73fPLba4zXES0Y/0EnHhjZ/6isbXU3eoUNe g+UhvbhmNapPtTthxIrOlav98VbeyVvkRYJz0Q14quvbq2hEuHe9QTr3EUkv8l4i eEbgDOnJgZv5mfzwe9WNwc89yKd5sH6Q6KkcO4+22pnj47IoHiM7EKzGMCwjaAEf 9b9Iw/eg5UyL23uTyUgiFPIabXSxNZBI5YgaDuVR7bPllPwAW4JEzO8MHk6NhSVw ==
X-ME-Sender: <xms:5Vo7X8ZRE9HR9Hrz4BlS65t-MaUygqEq1MQ9jKzg1hJq7hqG40PF7w>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedruddthedgkedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderredtnecuhfhrohhmpedfofgrrhhtihhnucfvhhhomhhsohhnfdcuoehmtheslhho figvnhhtrhhophihrdhnvghtqeenucggtffrrghtthgvrhhnpefhiedttdeviefhjeejgf evfeeuudfggfekveekheeugeegleevkeevkedthfeuieenucffohhmrghinhepihgvthhf rdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epmhhtsehlohifvghnthhrohhphidrnhgvth
X-ME-Proxy: <xmx:5Vo7X3bRL7-gWCqftu7gzX88rBHsvhfaBfXGWOw2v9uZTScvbL_QEw> <xmx:5Vo7X2-LtMEwYxgfUd7QgpiZd5PhJp3pAMHQmKetEA70fL1fCh8kEw> <xmx:5Vo7X2qEXMDptDNwvsdj8ar4PIiqdsRK4d1czST2DKqwWjulPBxqJw> <xmx:5lo7X87LrC4Kb9p4r3jHYbFG9eUGWrjQB6eiDcHr1XoKI7Vt27N4OA>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id C750FE00B3; Tue, 18 Aug 2020 00:36:52 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.3.0-192-gd9d7a78-fm-20200816.001-gd9d7a786
Mime-Version: 1.0
Message-Id: <2bac14c6-a543-454f-a0f3-d77258c2428b@www.fastmail.com>
In-Reply-To: <1ce1b329-78c0-42c4-aec7-db19b74742eb@www.fastmail.com>
References: <1ce1b329-78c0-42c4-aec7-db19b74742eb@www.fastmail.com>
Date: Tue, 18 Aug 2020 14:36:31 +1000
From: Martin Thomson <mt@lowentropy.net>
To: quic@ietf.org
Subject: Re: Should the specifications hard-refer to UDP?
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/8VqAKNqLmfw3_WcEEbUXmq-72wI>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Main mailing list of the IETF QUIC working group <quic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic>, <mailto:quic-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic/>
List-Post: <mailto:quic@ietf.org>
List-Help: <mailto:quic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic>, <mailto:quic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 18 Aug 2020 04:36:57 -0000

Hi John,

Thanks for your email.  This is something I recall discussing, but it might not have made it onto a record (it might have been in an in-person meeting), so it's good that someone raises it.

There are reasons that we might not want too much abstraction here.  To take the most obvious example, if you were to seek an IP protocol number for QUIC, there are a few things that need attention.  You lose the UDP port number, so references to those in the protocol are invalid.  We encode those in just a few places, so maybe you can just pretend that any value is OK, or set them to zero always.  Maybe you tweak the MTU to account for the lower overhead.  But we mostly just talk about "address" in the abstract, and we already deal with MTU variation between IPv4 and IPv6.  After that, there isn't much more to say.  So then you have a protocol that interoperates.

Whatever you call this new thing, it won't interoperate with QUIC.  

This also carries a risk, because this "porting" exercise is different based on the target.  If you were to overlay the abstract protocol on a different medium entirely, you need to consider how other IP services are used by QUIC.  A protocol defined directly atop IP still benefits from ICMP and ECN and the other facilities provided by IP, but if you wanted to layer this in some other way those facilities might not be available.  Maybe you don't miss those facilities, and it is almost certainly not work of the same magnitude as a full protocol design, but it requires careful analysis.

Now, I'm not saying that there isn't value in understanding the exact shape of the protocol's dependency on UDP.  That's a great exercise.  Personally, I would want to see that this didn't adversely affect the ability of a new reader to comprehend what is already a complicated mess of a protocol (300+ pages of old-fashioned text).

Getting a split right is challenging.  It's more than just understanding the structure of specification text.  You have to discover all the places that the abstraction leaks through.  That could be a useful contribution, but we haven't prioritized it in this working group.  That doesn't mean it's not possible, only that changes on that magnitude would need to be careful.  That's a non-trivial exercise in a document on this scale.

The split for TLS was originally much cleaner, but reality set in and I'm not sure that we'd be able to unwind the resulting tangle (though we have an issue on file).  That interface is probably more involved than the interface to UDP though; maybe a clean abstraction is more achievable in this case.

I don't want to discourage you from trying if you are so inclined, but I do want to set expectations appropriately.  We regard this documentation to be almost done, so our tolerance for risk or delays is pretty low.  All I can promise is that we'll give any contributions a fair assessment.

Cheers,
Just one of the editors

On Tue, Aug 18, 2020, at 13:47, John Ericson wrote:
> To be clear, I have no issue with the pragmatics that QUIC will be 
> layered atop UDP in practice. I am *not*, for example, trying to dredge 
> up some years-old discussion about whether QUIC should be assigned an 
> IP protocol number!
> 
> What I am questioning is the editorial/rhetorical choice of whether the 
> specifications should refer to UDP in particular as the underlying 
> protocol, or abstractly speak of an underlying protocol that merely 
> must meet certain criteria, such as preserving message boundaries and 
> (at least ephemerally) addressing endpoints.
> 
> Here are the benefits I think of doing so:
> 
> * By speaking about the underlying protocol in abstract terms, the 
> specification can narrow in on just the qualities of UDP pertinent to 
> the aspect of QUIC being specified, bringing clarity to the spec.
> 
> * Implementations that do use other underlying transports can still 
> provide a fully-conformant QUIC implementation, rather than a protocol 
> that is merely QUIC "in spirit". I am thinking of research or 
> experimental implementations that are coupled with real-world 
> applications for evaluation, and also of educational projects---perhaps 
> ones that do so merely to teach students about protocol layering!
> 
> * If the underlying protocol is swapped in educational projects, 
> students would retain the ability to follow the RFC to the letter while 
> doing their work, rather than having to carefully take creative 
> license. [I might remark that it's great that the layering **within* 
> *QUIC is already so wonderful, and that ought to yield educational 
> dividends.]
> 
> * Implementations that rely on the OS's or other external 
> implementation of UDP (which I'd guess is at least a plurality of them 
> weighted by usage) are already abstracting over exact details of the 
> underlying transport mechanism. Even as abstracting over the underlying 
> transport bring the specification further from how QUIC is **used* *in 
> practice, one could argue it brings it closer to how it is 
> **implemented* *in practice.
> 
> If there is interest in this, I would be happy to take to the time to 
> author pull requests replacing references to UDP and port numbers with 
> more abstract language.
> 
> Finally, my sincerest apologies if this has been discussed before. It 
> certainly seems like the sort of thing that would have been, but I 
> couldn't find a prior discussion searching the GitHub issue tracker and 
> mailing list. (The closest I saw was [1], but that was focused on 
> avoiding the use of 5-tuple altogether, rather than having QUIC 
> continue to rely on the underlying protocol's addressing/disambiguation 
> and merely avoid requiring that it be 5-tuple in particular.)
> 
> Thanks for your consideration,
> 
> John
> 
> [1]: https://mailarchive.ietf.org/arch/msg/quic/dPyWlsrhQGyAUae4_Ht5wYbX_vk
> 
>