Re: Should the specifications hard-refer to UDP?

Spencer Dawkins at IETF <spencerdawkins.ietf@gmail.com> Wed, 19 August 2020 14:33 UTC

Return-Path: <spencerdawkins.ietf@gmail.com>
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 D9DA93A0992 for <quic@ietfa.amsl.com>; Wed, 19 Aug 2020 07:33:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=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=gmail.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 T8IzeYnyFxPd for <quic@ietfa.amsl.com>; Wed, 19 Aug 2020 07:33:43 -0700 (PDT)
Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7BC433A0B30 for <quic@ietf.org>; Wed, 19 Aug 2020 07:33:43 -0700 (PDT)
Received: by mail-yb1-xb35.google.com with SMTP id q16so13439730ybk.6 for <quic@ietf.org>; Wed, 19 Aug 2020 07:33:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=o1Fazhf5VYCCDBXpVBHi0gyX1wl3q10ghA3CQ3DNzH0=; b=H3ncc8Yqmt0ZGgv5XmZehY3WNtJ3ZjQaH0J6w51sE6VEioIN/oq72zaBd7I5f6NHnx sTwKMCqXZpIbdBMPRfNCfZcbpw4rk7agEX2HFVTwjmirHE8c8jOdw6GlVDFzYmzGpFAA JLR8U3WHU6urC3FCJWJtu1wtNpBL8pc4Gm+YeqbHuoBjDBTaznunFGOj/3bb27eQK2H/ i0KvIr7LwE+9cnutTTGeYisqUBt26fAxzCxPt2RCpEI/SPVNpndJ2OWTib3b57A7uZ5G KDaoNoHYRmM6rVwXHZ4NieT8ehvDwEFGgvOQdPD8JpOEqsk6HGnO8jFKQkN613vm+4H0 UdLw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=o1Fazhf5VYCCDBXpVBHi0gyX1wl3q10ghA3CQ3DNzH0=; b=P37Gtyh1J5CEZhy1wrP39PFJTQJ0qPS3Pr+DaZw56s/Gp1U2jDv9TLuUR1gHYwQrQv xnND//w55FRfLEfVIpMjPmWb/678q+A+tcDlNPGmkhoV7SmikJD8XW1ToifoF717LhHG 2LlIJ/ni5kKhM1QVYfqDHpY3S2QkfAJlE3dZ/m4uM9x799dza7Tx7Bk0MT558Qud8q7T Ndk5DRh3MtS632QAUJBK5Hs17yn9FLKWeZLgn69zbfMg7+ogeSc/o3axwTMbjsI8vqL5 hAhJvyHymxtkDGVKEK/QmITJruoU/UpbpkNMw6dTuNFJJfpMUzAEkhuU5ZOTsGROJ0sg SJsA==
X-Gm-Message-State: AOAM533xG0y9ABDy3zURrJKTMOysuN08lUY+CeCwZLpBQIKBcroMHvRL ocRt2Qx/uRAoPQWKitkFOxNiRXZYkuVU497W0bJ/y/7Q
X-Google-Smtp-Source: ABdhPJxdZIXo5YcQjiUiY5jgxmK20+hikCqmYyCmKgIQv1Ty0jBCZ78GXMsnTY7ZxyICCVfg/8Wbj+kNoXVLkTrJ/TU=
X-Received: by 2002:a25:317:: with SMTP id 23mr33444161ybd.297.1597847622540; Wed, 19 Aug 2020 07:33:42 -0700 (PDT)
MIME-Version: 1.0
References: <1ce1b329-78c0-42c4-aec7-db19b74742eb@www.fastmail.com> <2bac14c6-a543-454f-a0f3-d77258c2428b@www.fastmail.com>
In-Reply-To: <2bac14c6-a543-454f-a0f3-d77258c2428b@www.fastmail.com>
From: Spencer Dawkins at IETF <spencerdawkins.ietf@gmail.com>
Date: Wed, 19 Aug 2020 09:33:16 -0500
Message-ID: <CAKKJt-dMnzrPZqCGfxNApCq6ZbZpHteE_ODof-pN1TT=EUkQ9A@mail.gmail.com>
Subject: Re: Should the specifications hard-refer to UDP?
To: Martin Thomson <mt@lowentropy.net>
Cc: IETF QUIC WG <quic@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000f2610e05ad3be3a0"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/R1ViVzkm9qM1jr091arTJm6GKQA>
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: Wed, 19 Aug 2020 14:33:46 -0000

I've read this thread, so I'm current, but wanted to chime in on one of the
encouraging things Martin said ...

On Mon, Aug 17, 2020 at 11:37 PM Martin Thomson <mt@lowentropy.net> wrote:

> 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.


I think that's a great place to start. ISTM that we're used to thinking of
UDP as "IP plus ports for path sharing", but that's probably not nearly
enough to base implementation over another protocol on. Documenting that
dependency is probably useful, thought-provoking, and (best of all) not
something that will slow QUICv1 down at all.

As pointed out, running directly over IP and running through a sockets
interface are two obvious possibilities (and I didn't see "running directly
over IP" coming), and they aren't particularly similar, so a document that
describes what QUIC expects from an underlying protocol would be helpful.

John, thank you for starting this conversation.

Best,

Spencer


> 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
> >
> >
>
>