Re: Should the specifications hard-refer to UDP?

Lucas Pardue <lucaspardue.24.7@gmail.com> Tue, 18 August 2020 10:20 UTC

Return-Path: <lucaspardue.24.7@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 966483A0796 for <quic@ietfa.amsl.com>; Tue, 18 Aug 2020 03:20:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.847
X-Spam-Level:
X-Spam-Status: No, score=-1.847 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_ENVFROM_END_DIGIT=0.25, 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 jzeWxc633DS0 for <quic@ietfa.amsl.com>; Tue, 18 Aug 2020 03:20:01 -0700 (PDT)
Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) (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 C8CE83A078C for <quic@ietf.org>; Tue, 18 Aug 2020 03:20:00 -0700 (PDT)
Received: by mail-ed1-x52f.google.com with SMTP id m20so14806866eds.2 for <quic@ietf.org>; Tue, 18 Aug 2020 03:20:00 -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; bh=x4Nto3new1YL0LhAK7M5YqVi37CNFd//Vo2gs2ppGeQ=; b=eqqfoyr1SyRAfFF3qXmMbW2fD7XQcEM3GVwivRaiktdV0Nv4LSs2vaGI7hIFkr3pUk q0DG5sfaCoiTh1pQKOA9s7T5zEi3yHm4eNIAZbl4wv6LOL75CvxTlLTfRJfmc/F6JND3 73otK1qAErdg/qLCPtzhbNrMxAQcz//U3EaQVEWYkwEltXs6RN5po9vtOOCCr3Y6/ok4 c/9IfxWH9FrBcSK4SMbxb2LVL4jNh20GQvTAJAqRI2EBXfemHxCQxI7CWF3X9gnAY/y9 GH1eC4UfTUTX87X5Vf94FMw+ncFPIGzn97Blb9lOgzn/vFwZSIMZowhd85cEJaGpiWgH n1fw==
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; bh=x4Nto3new1YL0LhAK7M5YqVi37CNFd//Vo2gs2ppGeQ=; b=SnYUcGtxgBB4MdoKJRUXaMYUkWWdHCwmnG625AeFoj1GQ2C+juQA4075762fPKjedj I7XP+J7L5qoZLWgSAQoIWfG9635zOaNvTSJGOGcp9X7kMrOnZsLcC/uVlM/+a7wYSBAZ Fm0c7D4GF8fsKPr0qNHZJeWwjhEEzqN+zNJkd9FzDAoc0y3mbC7OMoV7Xqi3kU9D2gex w76QA7A+Netp8a/u+cDbAjXT/F9KnBnon6RaCfmToBmjGBuC8ro1ID1BGF6F3SiHC8JX NcakQHDXJ7shWpToKb0v+A21SS5LLoKUr3cmOXR1fiyLxcCDUgtlExxlptcEdEp3uTtj kMjA==
X-Gm-Message-State: AOAM530H5usNbJwhjoJEn2oYPco+Syw4QG+zY8Cmw/uIe0SbGWldF3vM FpTs6V08/ya5sZOldez5b5NhVnI4uDT3IYGtmGovf9NCdbo7VQ==
X-Google-Smtp-Source: ABdhPJxvk+GNBlsIfvGPUbWIgSdHIrJBx3o6mdTlJ38UtkH3n/PMDZGA8zdNkLHWb/Usu/UdFZPhRp8+ASpdjmKxrA4=
X-Received: by 2002:a50:cf46:: with SMTP id d6mr19530770edk.339.1597745998785; Tue, 18 Aug 2020 03:19:58 -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: Lucas Pardue <lucaspardue.24.7@gmail.com>
Date: Tue, 18 Aug 2020 11:19:46 +0100
Message-ID: <CALGR9oa1y59huKSx+AY3OnMveN1Bm2xChZ=cbgaw+7jxvxQG5A@mail.gmail.com>
Subject: Re: Should the specifications hard-refer to UDP?
To: QUIC WG <quic@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000b2f12c05ad243a71"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/aGi58i2GvdIK1DdOmqmsTkEHB3o>
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 10:20:04 -0000

(Chair hat off)

+1 to Martin's points.

I think there is a risk that trying to piecemeal abstract language into the
core transport document will reduce the document comprehension, and tie up
time with reviewers etc. I'm of the opinion that this challenge, at this
late stage in the document lifecycle, is too large.

However, there is a concrete use case in the IETF for exchanging QUIC
packets not in plain old UDP datagrams - MASQUE [1]. Perhaps that could be
a suitable venue for some of the things you have in mind?

Cheers
Lucas

[1] - https://datatracker.ietf.org/wg/masque/about/

On Tue, Aug 18, 2020 at 5:37 AM 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.
> 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
> >
> >
>
>