Re: ALPN and QUIC versions

Martin Duke <martin.h.duke@gmail.com> Wed, 19 May 2021 21:22 UTC

Return-Path: <martin.h.duke@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 7A89D3A1FE8 for <quic@ietfa.amsl.com>; Wed, 19 May 2021 14:22:27 -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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-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 WOU2pJVEiJA6 for <quic@ietfa.amsl.com>; Wed, 19 May 2021 14:22:26 -0700 (PDT)
Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) (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 84A983A1FCA for <quic@ietf.org>; Wed, 19 May 2021 14:22:17 -0700 (PDT)
Received: by mail-io1-xd36.google.com with SMTP id d24so14490765ios.2 for <quic@ietf.org>; Wed, 19 May 2021 14:22:17 -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=Hz1uUXxF3pwq6peZ0JetoJVQUOOmhNPvrGAjhroOCZs=; b=pbSWdjMltQTD/AFu7CxUzPG/Cd75YQzep0hNi/6pdxdpo+negKJ92G4pkvgyfRjSik AItzncUD5H7gzEJ/WVYO/c5wbjpNfGZA3QOKtQY36eC961a0mWTcVdF/3HGemBu6P7y+ sxibfw4vS+Tnn631Lw+L1W/kEdDKzL4uOpK3Yv08yDwb5B7qVHYAjdeHw7sXWIifmBK0 3OxtD2o6668jnBa+BK1Q7L/YU3QKXNzZ/p5t9Tj0vRQ8pAyQvcqFu9sB2SXRLTMLTyWG doXXM/lgpC/3kQhGib33uTlXrwvXqezmzSlRcYdvYDhNfj3VsRNmbyXA93+rEFzFK7Ov 1ohQ==
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=Hz1uUXxF3pwq6peZ0JetoJVQUOOmhNPvrGAjhroOCZs=; b=KKBkbYBVHulE+BOCgxDZ/8tUT2ETmCctCbNx9drCbllz5Gw49vqnif5Fi0dI9HteIA YeQaQrY84TosP8qwJOjaRgg2vUvODlymq4kIhjyaTK0BN7b19SSg26N7NucHJ/c5e4wa ZtoJYWg7iftLf9HR/PcBAOysLH1H+FfZIDmreMQYqdJAU57+C9it7UGLHL6bk9zvZBgC 6OY3n8PZYAjzvEPiPPyBLTaBN//QbqMZpDHPpZGQ/tBs3HYkOrNcJZZmvSgojGfCp5za 4x1KUoXOtADKjsOQX8zpWNWoqUAUyy/jeBZmuNXoO4gy7UlZe97XOpCjL/e2XCq3KGZy JFNA==
X-Gm-Message-State: AOAM532/9uUi1Stu8EvZxSuxqpUya4lzX0lp+bANDN42KPKDCW6MJeEb vRzbrYqToQ4pbXAA8EHZlecGrfv5qfKIFUL25Qk=
X-Google-Smtp-Source: ABdhPJzdqa69huO/rzjkYAE+AXdQnpHgX5gPUWMNd3YZD5JIea1uXu5zG0pPXk3eSikku+xeZaOpDrfQk9pnR05ZPMw=
X-Received: by 2002:a02:cf32:: with SMTP id s18mr1386109jar.31.1621459336731; Wed, 19 May 2021 14:22:16 -0700 (PDT)
MIME-Version: 1.0
References: <CAM4esxSLAMNZQ73sEk-8LnVRiv00b-PDVPmUqY3iMxCSYui0fw@mail.gmail.com> <CAKKJt-eBCbpQ2+0KHmX7WZkPbJGEScx0p8j8ztjGmZO0MYq4nQ@mail.gmail.com>
In-Reply-To: <CAKKJt-eBCbpQ2+0KHmX7WZkPbJGEScx0p8j8ztjGmZO0MYq4nQ@mail.gmail.com>
From: Martin Duke <martin.h.duke@gmail.com>
Date: Wed, 19 May 2021 14:22:13 -0700
Message-ID: <CAM4esxR=K3Q5Cy_YPaTkSj4izwU9hMuUoMy0U86Mr80Xibbe5A@mail.gmail.com>
Subject: Re: ALPN and QUIC versions
To: Spencer Dawkins at IETF <spencerdawkins.ietf@gmail.com>
Cc: IETF QUIC WG <quic@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000c8a00c05c2b56bb2"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/huqf9DJvsZ2DxhJ2dQbvj5lr2lk>
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 May 2021 21:22:36 -0000

Hi Spencer,


> 1) As stated in the applicability draft, the ALPN includes the QUIC
>> version. Then every new version document has to review the set of
>> QUIC-specific ALPN codes and register new ALPNs. As these version numbers
>> are 32 bit integers and may not simply increment up from 1, ALPN codes will
>> often look like h3-0x4384abc0, doq-0x4384abc0 [4], etc. Similarly, each new
>> application of QUIC has to review the set of QUIC versions and register new
>> ALPNs for each version. This has the advantage of reducing the need for
>> version negotiation, but it's not scalable if there are a lot of versions
>> and applications. The ALPN registry will essentially have a matrix of
>> applications and QUIC versions with the combination that signifies each.
>>
>> I imagine most QUIC implementation APIs would present an interface for an
>> application to declare its ALPNs. I'm not sure how that implementation
>> easily deploys new versions (or deprecates old ones) if all the apps then
>> have to change, unless it's mutating the ALPN from an application-provided
>> root. That seems error-prone.
>>
>
> I agree with your reasoning here, but in addition, doesn't that require
> either (1) implementations to support old QUIC versions basically forever,
> or (2) deployed applications to be updated to specify a new ALPN in order
> to retire old QUIC versions?
>

I believe that is correct (hence my parenthetical about deprecating old
versions)


> When we were chartering TAPS, one of the major reasons was to stop
> requiring application updates to take advantage of new transport protocols.
> I know this isn't quite the same thing, but I'm not understanding why
> requiring applications to be updated to specify a new ALPN for a backwards
> compatible version of QUIC (so, little or no benefit for the application)
> would be a GOOD thing.
>

I agree!