Re: Should the specifications hard-refer to UDP?

Ian Swett <ianswett@google.com> Tue, 18 August 2020 13:04 UTC

Return-Path: <ianswett@google.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 685DD3A09B4 for <quic@ietfa.amsl.com>; Tue, 18 Aug 2020 06:04:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.599
X-Spam-Level:
X-Spam-Status: No, score=-17.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 TAHMRtk8gE5b for <quic@ietfa.amsl.com>; Tue, 18 Aug 2020 06:04:48 -0700 (PDT)
Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) (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 187E23A09B3 for <quic@ietf.org>; Tue, 18 Aug 2020 06:04:47 -0700 (PDT)
Received: by mail-io1-xd34.google.com with SMTP id b16so21090101ioj.4 for <quic@ietf.org>; Tue, 18 Aug 2020 06:04:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XpiIddu7anfq3LGK7XIa1qzMXTW1x7DJ+gucAN8ZLL0=; b=pT68ENDZvFJrt4VByxMv0mk4tkD/JIztAdObnDuTUk3Ifuz+grn38v9D5jQA9/3+ZG mEqeYAgpJqJDuAZoEM5Gw0VhxoLGg3viCMYRemiclerz1CBYhBXDhNxQ9KeW/WGho7nZ 0eImp26VFm8ZrACAzO5OjA5JbyhqTp2LmX3pxbXHN6mOYsR88dn72BsIiEkrYsNFm6Rz 44gCEKJy8fQnfbDQYxM1DKhTgIv9UdUaYT6Z1xmw5ZCMmEZ60rZHkC6qFY+L/SaT2lUz mzYLiyw6/a8PsLGXfAzDW9FdEFmqYWdBD/dSWE8cw9WW/mSrc1/cy7ImkSkkC+HcnicM +2TA==
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=XpiIddu7anfq3LGK7XIa1qzMXTW1x7DJ+gucAN8ZLL0=; b=dOta29UVLu7CfUCVheOXpRE4yHj7cnlT+/PZU5z+RgePGPeZzaH+mMUzVUaeEGpAt1 WwVYC5KeNswvaWL0OqMl3YVvBwE5H2eJLyFZJp0hKuL5ILtHpceHr5AXi0qOoW1KpBMH InR7dvIAzy1njlsnbl+lFLGVcm/6+HWWT/1jqjBAvcoiuzZOxQox8dyVrQSUqA/fka73 2HmMiwEb078ARKst46seIHxjhFylyiYIr3chV2VXfSORZ4Ox3+tr3cvqqVzPiVlVIzzX 2IjLxGX1gvgo53Sf9VnnzQRSRZx6cNzlxxMg0qqEY3chaGipfeSOXQr37Doz83smoV94 tmvA==
X-Gm-Message-State: AOAM532MzrxLbJKcqO+aoSj0JGLJ0BhU48q8cCjxt+iQ3bKXe83KhB4P nAb+yB/oMAfJqUxmbz+C8pbAmdT2pqJX4hJMrrSG8gI5Izr3pQ==
X-Google-Smtp-Source: ABdhPJyNz3AWlNEDHHOr4y2odJYPO/XbME2ZobfQ4YqG74vRLOpOhnMzOCT32mV6N2UGKLXfG6dxwMgtV6R7zxgZVa0=
X-Received: by 2002:a6b:4e0e:: with SMTP id c14mr15351749iob.8.1597755886884; Tue, 18 Aug 2020 06:04:46 -0700 (PDT)
MIME-Version: 1.0
References: <1ce1b329-78c0-42c4-aec7-db19b74742eb@www.fastmail.com> <2bac14c6-a543-454f-a0f3-d77258c2428b@www.fastmail.com> <CALGR9oa1y59huKSx+AY3OnMveN1Bm2xChZ=cbgaw+7jxvxQG5A@mail.gmail.com>
In-Reply-To: <CALGR9oa1y59huKSx+AY3OnMveN1Bm2xChZ=cbgaw+7jxvxQG5A@mail.gmail.com>
From: Ian Swett <ianswett@google.com>
Date: Tue, 18 Aug 2020 09:04:34 -0400
Message-ID: <CAKcm_gMQz5NR=ZjD4CfTTFZRdXv5762j0DXBc5AMLJ7cb+Q2yw@mail.gmail.com>
Subject: Re: Should the specifications hard-refer to UDP?
To: Lucas Pardue <lucaspardue.24.7@gmail.com>
Cc: QUIC WG <quic@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000013f17605ad268824"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/O_JbGaJvQFiXnI9qq1pwh2iZkc4>
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 13:04:50 -0000

I don't believe anyone has implemented QUIC over anything besides UDP,
which makes me think it's too early to specify it.

I'm also pretty risk averse and would agree with most of Martin's points.
I'd support editorial changes that make the text a bit less tightly coupled
to UDP, and identification of design changes which could be put into
potential QUICv2 work, but I doubt I'd support any design changes specific
to this at this stage.

Willy, I think it'd be very cool to see this run over UNIX dgram sockets.

On Tue, Aug 18, 2020 at 6:20 AM Lucas Pardue <lucaspardue.24.7@gmail.com>
wrote:

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