Re: [quicwg/base-drafts] Compatible version upgrade (#1901)
Marten Seemann <notifications@github.com> Wed, 24 October 2018 08:37 UTC
Return-Path: <noreply@github.com>
X-Original-To: quic-issues@ietfa.amsl.com
Delivered-To: quic-issues@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D07FB130DF1 for <quic-issues@ietfa.amsl.com>; Wed, 24 Oct 2018 01:37:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.47
X-Spam-Level:
X-Spam-Status: No, score=-8.47 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.47, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=github.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 zy3v8BheoGcW for <quic-issues@ietfa.amsl.com>; Wed, 24 Oct 2018 01:37:01 -0700 (PDT)
Received: from out-1.smtp.github.com (out-1.smtp.github.com [192.30.252.192]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D7FF81288BD for <quic-issues@ietf.org>; Wed, 24 Oct 2018 01:37:00 -0700 (PDT)
Date: Wed, 24 Oct 2018 01:36:59 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1540370219; bh=8rX9eekl1j0k2upNreyxjH4oIsI5wwd+CCmTnE/FKdY=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:List-ID: List-Archive:List-Post:List-Unsubscribe:From; b=JwDpd1hIzlB+xDUH1vgLXr+2E+dytpKjc4rQmKVSwpcxhCW2i/Y7oNp5YeKb8HdE/ ugZu5HByfcs2uEEwhrt3Fqb7AGfoZOubQDlXR05lFsu4IDpr3sq9mrzhBzCJgrOjYb m8ipekkz+XzqEym6DvV+9DUO9f/aJz7RYeQsnrHg=
From: Marten Seemann <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4aba24cab8fdf5dfc5d969196c442471eb5c436daf492cf0000000117e7f12b92a169ce1640b1a8@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/1901/review/167781310@github.com>
In-Reply-To: <quicwg/base-drafts/pull/1901@github.com>
References: <quicwg/base-drafts/pull/1901@github.com>
Subject: Re: [quicwg/base-drafts] Compatible version upgrade (#1901)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5bd02f2bdbda9_78573fc7d6ed45bc2377cb"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: marten-seemann
X-GitHub-Recipient: quic-issues
X-GitHub-Reason: subscribed
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: quic-issues@ietf.org
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/t5NxqWw6bz1lsN0Y9F8DM3BH82U>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.29
List-Id: Notification list for GitHub issues related to the QUIC WG <quic-issues.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic-issues/>
List-Post: <mailto:quic-issues@ietf.org>
List-Help: <mailto:quic-issues-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Oct 2018 08:37:08 -0000
marten-seemann commented on this pull request. > -The first client packet of the cryptographic handshake protocol MUST fit within -a 1232 octet QUIC packet payload. This includes overheads that reduce the space -available to the cryptographic handshake protocol. +2. The first message MUST include the transport parameters chosen by the client. + This enables upgrade to a compatible version (see {{version-upgrade}}). + +3. The first message MUST fit within a 1232 octet QUIC packet payload. This Isn’t this already implied by 1.? > -with a VERSION_NEGOTIATION_ERROR error code if version negotiation occurred but -it would have selected a different version based on the value of the -supported_versions list. - -When an endpoint accepts multiple QUIC versions, it can potentially interpret -transport parameters as they are defined by any of the QUIC versions it -supports. The version field in the QUIC packet header is authenticated using -transport parameters. The position and the format of the version fields in -transport parameters MUST either be identical across different QUIC versions, or -be unambiguously different to ensure no confusion about their interpretation. -One way that a new format could be introduced is to define a TLS extension with -a different codepoint. +is sent by an attacker. + +To protect against these attacks, the transport parameters includes the complete +list of versions that a client is willing to use, with the version they used for s/they/it > -transport parameters. The position and the format of the version fields in -transport parameters MUST either be identical across different QUIC versions, or -be unambiguously different to ensure no confusion about their interpretation. -One way that a new format could be introduced is to define a TLS extension with -a different codepoint. +is sent by an attacker. + +To protect against these attacks, the transport parameters includes the complete +list of versions that a client is willing to use, with the version they used for +sending the first packet in the first entry. Including this information in the +cryptographic handshake provides it with integrity protection, and allows the +server to detect version downgrade attacks. + +The client MUST include the first QUIC version it attempts to use as the first +entry of the supported_versions list in the transport parameters. A server MUST +close the connection attempt with a VERSION_NEGOTIATION_ERROR if it supports the This sentence has some leftover parts, I assume. > +The client MUST include the first QUIC version it attempts to use as the first +entry of the supported_versions list in the transport parameters. A server MUST +close the connection attempt with a VERSION_NEGOTIATION_ERROR if it supports the +first entry in the list it receives is supported and does not match the version +of the QUIC packet. The server MAY choose to upgrade to a compatible version, +as defined in {{version-upgrade}}. + +Different QUIC versions might define transport parameters, or their equivalent, +using a different format. However, the version field in the QUIC packet header +is authenticated using transport parameters. The position and the format of the +version fields in transport parameters therefore MUST either be identical across +different QUIC versions, or be unambiguously different to ensure no confusion +about their interpretation. One way that a new format could be introduced is to +define a TLS extension with a different codepoint. + +Transport parmeters for QUIC versions that are compatible with this QUIC version Parameters. > + +## Compatible Version Upgrade {#version-upgrade} + +The first packet sent by a client uses a QUIC version selected by the client. +In this version of QUIC, this packet also includes transport parameters. Those +transport parameters include a list of QUIC versions the client supports. + +A server that understands the version selected by the client can extract the +list of QUIC versions and select an alternative version from the list of +supported versions. A server MAY choose a compatible version from that list and +continue the handshake with that version. The server sends its first packet as +though it was continuing with the version it selects. + +A QUIC version is compatible with this version if the cryptographic handshake +message sent in the first packet can be used in both versions. A compatible +version is also able to identifying and acknowledge the first packet sent by the s/identifying/identify > +list of QUIC versions and select an alternative version from the list of +supported versions. A server MAY choose a compatible version from that list and +continue the handshake with that version. The server sends its first packet as +though it was continuing with the version it selects. + +A QUIC version is compatible with this version if the cryptographic handshake +message sent in the first packet can be used in both versions. A compatible +version is also able to identifying and acknowledge the first packet sent by the +client in some fashion. Other QUIC versions might have different constraints in +determining what is compatible. In order to facilitate this process, new QUIC +versions could define a process for transforming the first packet from other +compatible versions into the equivalent packet in the new version. + +Upgrading in this manner allows a server to upgrade without incurring the round +trip imposed by sending a Version Negotiation packet. It also allows clients to +send their first packet using a widely deployed version, without the risk of There’s no incentive to use a widely deployed version any more. A client can use the highest (compatible) version, and the server would just downgrade it to the highest version it supports. > +A QUIC version is compatible with this version if the cryptographic handshake +message sent in the first packet can be used in both versions. A compatible +version is also able to identifying and acknowledge the first packet sent by the +client in some fashion. Other QUIC versions might have different constraints in +determining what is compatible. In order to facilitate this process, new QUIC +versions could define a process for transforming the first packet from other +compatible versions into the equivalent packet in the new version. + +Upgrading in this manner allows a server to upgrade without incurring the round +trip imposed by sending a Version Negotiation packet. It also allows clients to +send their first packet using a widely deployed version, without the risk of +having to use that version with servers that supports a more-preferred version. + +A server MUST NOT send a Version Negotiation packet if it prefers a version that +is not compatible with the version the client initially chose; a server has to +allow the client to choose between versions that are not compatible. Do we need some text what a client is supposed to do when it receives a VNP that includes a compatible version to the one it initially selected? > QUIC includes the encoded transport parameters in the cryptographic handshake. Once the handshake completes, the transport parameters declared by the peer are -available. Each endpoint validates the value provided by its peer. In -particular, version negotiation MUST be validated (see {{version-validation}}) -before the connection establishment is considered properly complete. +available. Each endpoint validates the value provided by its peer. Successful +validation of transport parameters MUST be completed before a connection is +considered successfully established. + +A client also includes a list of supported versions along with its transport +parameters. Transport parameters are carried in the first packet the client +sends. Sending the list of supported versions enables upgrade between s/upgrade/upgrades -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/quicwg/base-drafts/pull/1901#pullrequestreview-167781310
- [quicwg/base-drafts] Compatible version upgrade (… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… MikkelFJ
- Re: [quicwg/base-drafts] Compatible version upgra… Marten Seemann
- Re: [quicwg/base-drafts] Compatible version upgra… Marten Seemann
- Re: [quicwg/base-drafts] Compatible version upgra… MikkelFJ
- Re: [quicwg/base-drafts] Compatible version upgra… MikkelFJ
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Kazuho Oku
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Kazuho Oku
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… MikkelFJ
- Re: [quicwg/base-drafts] Compatible version upgra… Nick Banks
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… MikkelFJ
- Re: [quicwg/base-drafts] Compatible version upgra… Kazuho Oku
- Re: [quicwg/base-drafts] Compatible version upgra… MikkelFJ
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… MikkelFJ
- Re: [quicwg/base-drafts] Compatible version upgra… Kazuho Oku
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Marten Seemann
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Kazuho Oku
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Kazuho Oku
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Kazuho Oku
- Re: [quicwg/base-drafts] Compatible version upgra… Kazuho Oku
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… MikkelFJ
- Re: [quicwg/base-drafts] Compatible version upgra… MikkelFJ
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… MikkelFJ
- Re: [quicwg/base-drafts] Compatible version upgra… MikkelFJ
- Re: [quicwg/base-drafts] Compatible version upgra… Igor Lubashev
- Re: [quicwg/base-drafts] Compatible version upgra… ianswett
- Re: [quicwg/base-drafts] Compatible version upgra… ianswett
- Re: [quicwg/base-drafts] Compatible version upgra… ianswett
- Re: [quicwg/base-drafts] Compatible version upgra… Ryan Hamilton
- Re: [quicwg/base-drafts] Compatible version upgra… Dmitri Tikhonov
- Re: [quicwg/base-drafts] Compatible version upgra… Marten Seemann
- Re: [quicwg/base-drafts] Compatible version upgra… ianswett
- Re: [quicwg/base-drafts] Compatible version upgra… MikkelFJ
- Re: [quicwg/base-drafts] Compatible version upgra… ianswett
- Re: [quicwg/base-drafts] Compatible version upgra… MikkelFJ
- Re: [quicwg/base-drafts] Compatible version upgra… Kazuho Oku
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… martinduke
- Re: [quicwg/base-drafts] Compatible version upgra… Mike Bishop
- Re: [quicwg/base-drafts] Compatible version upgra… Ryan Hamilton
- Re: [quicwg/base-drafts] Compatible version upgra… David Schinazi
- Re: [quicwg/base-drafts] Compatible version upgra… Marten Seemann
- Re: [quicwg/base-drafts] Compatible version upgra… David Schinazi
- Re: [quicwg/base-drafts] Compatible version upgra… MikkelFJ
- Re: [quicwg/base-drafts] Compatible version upgra… Marten Seemann
- Re: [quicwg/base-drafts] Compatible version upgra… Nick Banks
- Re: [quicwg/base-drafts] Compatible version upgra… David Schinazi
- Re: [quicwg/base-drafts] Compatible version upgra… Nick Banks
- Re: [quicwg/base-drafts] Compatible version upgra… martinduke
- Re: [quicwg/base-drafts] Compatible version upgra… David Schinazi
- Re: [quicwg/base-drafts] Compatible version upgra… Kazuho Oku
- Re: [quicwg/base-drafts] Compatible version upgra… MikkelFJ
- Re: [quicwg/base-drafts] Compatible version upgra… martinduke
- Re: [quicwg/base-drafts] Compatible version upgra… martinduke
- Re: [quicwg/base-drafts] Compatible version upgra… MikkelFJ
- Re: [quicwg/base-drafts] Compatible version upgra… Kazuho Oku
- Re: [quicwg/base-drafts] Compatible version upgra… martinduke
- Re: [quicwg/base-drafts] Compatible version upgra… Igor Lubashev
- Re: [quicwg/base-drafts] Compatible version upgra… martinduke
- Re: [quicwg/base-drafts] Compatible version upgra… MikkelFJ
- Re: [quicwg/base-drafts] Compatible version upgra… MikkelFJ
- Re: [quicwg/base-drafts] Compatible version upgra… MikkelFJ
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson
- Re: [quicwg/base-drafts] Compatible version upgra… Martin Thomson