Re: [quicwg/base-drafts] Rewrite text about Version Negotiation (#1039)
Martin Thomson <notifications@github.com> Tue, 13 February 2018 06:20 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 5CE7B12E058 for <quic-issues@ietfa.amsl.com>; Mon, 12 Feb 2018 22:20:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.999
X-Spam-Level:
X-Spam-Status: No, score=-6.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, URIBL_BLOCKED=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 UrYc4GrZT0c0 for <quic-issues@ietfa.amsl.com>; Mon, 12 Feb 2018 22:20:01 -0800 (PST)
Received: from github-smtp2a-ext-cp1-prd.iad.github.net (github-smtp2-ext1.iad.github.net [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 B846B1205F0 for <quic-issues@ietf.org>; Mon, 12 Feb 2018 22:20:01 -0800 (PST)
Date: Mon, 12 Feb 2018 22:20:01 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1518502801; bh=s3/TOMgaQlZRAuRiHvrkjjX5GogNcjkUN2Nlk/9dMzU=; h=From:Reply-To:To:Cc:In-Reply-To:References:Subject:List-ID: List-Archive:List-Post:List-Unsubscribe:From; b=d9c7X6MQbbTQ1znLfPozLwUe35M7x6IlzPb9Px1ICacsut54ebwosTPB+207qi/JX nEQ9fuJQBr5DSzwV0mRjxKwXDPAWY9Hs0CTnQbU7bAKhuv8FFACUn6/mKcbTDhB4GI XNIbCUDo3RVTeQ7tkzvp+bVMWQ8zQZ/PTp/Ela9M=
From: Martin Thomson <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4abd595a46e33ec9290fb5b681a2b4ace0bb0f5e14f92cf00000001169a459192a169ce1115d834@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/1039/review/96033938@github.com>
In-Reply-To: <quicwg/base-drafts/pull/1039@github.com>
References: <quicwg/base-drafts/pull/1039@github.com>
Subject: Re: [quicwg/base-drafts] Rewrite text about Version Negotiation (#1039)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5a828391119e8_63a73f8a2001cf2c62627a"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: martinthomson
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/rQD61WAvjY6bTCNUzi-c9NoFoQw>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.22
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: Tue, 13 Feb 2018 06:20:04 -0000
martinthomson commented on this pull request. This is much better. I think that we can address the stateless VN/Retry thing pretty easily by prefacing the server-specific packet handling section appropriately (you already have the text in the right order). > +Due to packet reordering or loss, clients might receive packets for a +connection encrypted with a key it has not yet computed. Clients MAY drop +these packets, or MAY buffer them in anticipation of later packets that +allow it to compute the key. + + +### Server-Specific Behaviors {#server-specific-behaviors} + +If a server receives a packet that has an unknown connection ID, an +unsupported version, and a sufficient length to be an Initial packet for +some version supported by the server, it SHOULD send a Version Negotiation +packet as described in {{send-vn}}. + +Servers MUST drop other packets that contain unsupported versions. + +If the packet is a supported version, and an Initial packet fully I think that you can remove the if (supported(version)) check from these paragraphs. You already did the early return on !supported > +the tuple of a connection with no received packets, it is a reply to an +Initial packet with a server-generated connection ID and will be processed +accordingly. Clients SHOULD discard any packets with new connection IDs that +do not meet these criteria. + +Note that a successfully associated packet may be a Version Negotiation +packet, which is handled in accordance with {{handle-vn}}. + +Due to packet reordering or loss, clients might receive packets for a +connection encrypted with a key it has not yet computed. Clients MAY drop +these packets, or MAY buffer them in anticipation of later packets that +allow it to compute the key. + + +### Server-Specific Behaviors {#server-specific-behaviors} + This is probably where you need to finesse the stateless generation of VN and Retry packets. > -used - and they MUST be padded to at least 1200 octets. - -The server receives this packet and determines whether it potentially creates a -new connection (see {{packet-handling}}). If the packet might generate a new -connection, the server then checks whether it understands the version that the -client has selected. - -If the packet contains a version that is acceptable to the server, the server -proceeds with the handshake ({{handshake}}). This commits the server to the -version that the client selected. +with an existing connection, or - for servers - potentially create a new +connection. + +First, hosts try to associate the packet with an existing connection. If the +packet has a connection ID corresponding to an existing connection, QUIC +processes that packet accordingly. Note that a NEW_CONNECTION_ID frame I would agree, if it weren't for the point about stateless handling. I think that's together it's worth addressing. I think that all you need to do is put in a "Before attempting to identify an existing connection a server might process Initial packets and generate Version Negotiation or Retry packets. Efficient and stateless generation of these packets can be important in reducing server load." Or some such blather. > +some version supported by the server, it SHOULD send a Version Negotiation +packet as described in {{send-vn}}. + +Servers MUST drop other packets that contain unsupported versions. + +If the packet is a supported version, and an Initial packet fully +conforming with the specification, the server proceeds with the handshake +({{handshake}}). This commits the server to the version that the client +selected. + +If the packet is a supported version and a 0-RTT packet, the server MAY +buffer a limited number of these packets in anticipation of a late-arriving +Initial Packet. Clients are forbidden from sending Handshake packets prior +to receiving a server response, so servers SHOULD ignore any such packets. + +Servers MUST drop incoming packets under all other circumstances. What about regular packets for a connection? I know that this section only lists the exceptional cases, but because it doesn't mention packets that are matched to a connection, this could be read as requiring servers to discard all packets that belong to connections. > -{{handshake}}, but any Initial packet sent from the client to the server MUST -use the long header format - which includes the version of the protocol being -used - and they MUST be padded to at least 1200 octets. - -The server receives this packet and determines whether it potentially creates a -new connection (see {{packet-handling}}). If the packet might generate a new -connection, the server then checks whether it understands the version that the -client has selected. - -If the packet contains a version that is acceptable to the server, the server -proceeds with the handshake ({{handshake}}). This commits the server to the -version that the client selected. +with an existing connection, or - for servers - potentially create a new +connection. + +First, hosts try to associate the packet with an existing connection. If the Remove the first here and forward-reference the server-specific section. > +If a client receives a packet with an unknown connection ID, and it matches +the tuple of a connection with no received packets, it is a reply to an +Initial packet with a server-generated connection ID and will be processed +accordingly. Clients SHOULD discard any packets with new connection IDs that +do not meet these criteria. + +Note that a successfully associated packet may be a Version Negotiation +packet, which is handled in accordance with {{handle-vn}}. + +Due to packet reordering or loss, clients might receive packets for a +connection encrypted with a key it has not yet computed. Clients MAY drop +these packets, or MAY buffer them in anticipation of later packets that +allow it to compute the key. + + +### Server-Specific Behaviors {#server-specific-behaviors} s/Behaviors/Packet Handling/ A shorter anchor might be nice too. -- 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/1039#pullrequestreview-96033938
- [quicwg/base-drafts] Rewrite text about Version N… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… Martin Thomson
- Re: [quicwg/base-drafts] Rewrite text about Versi… Martin Thomson
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… MikkelFJ
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… Martin Thomson
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… Martin Thomson
- Re: [quicwg/base-drafts] Rewrite text about Versi… MikkelFJ
- Re: [quicwg/base-drafts] Rewrite text about Versi… ianswett
- Re: [quicwg/base-drafts] Rewrite text about Versi… Martin Thomson
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… ianswett
- Re: [quicwg/base-drafts] Rewrite text about Versi… Martin Thomson
- Re: [quicwg/base-drafts] Rewrite text about Versi… MikkelFJ
- Re: [quicwg/base-drafts] Rewrite text about Versi… Mike Bishop
- Re: [quicwg/base-drafts] Rewrite text about Versi… MikkelFJ
- Re: [quicwg/base-drafts] Rewrite text about Versi… Martin Thomson
- Re: [quicwg/base-drafts] Rewrite text about Versi… Martin Thomson
- Re: [quicwg/base-drafts] Rewrite text about Versi… Martin Thomson
- Re: [quicwg/base-drafts] Rewrite text about Versi… Martin Thomson
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… Martin Thomson
- Re: [quicwg/base-drafts] Rewrite text about Versi… Nick Banks
- Re: [quicwg/base-drafts] Rewrite text about Versi… MikkelFJ
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… MikkelFJ
- Re: [quicwg/base-drafts] Rewrite text about Versi… MikkelFJ
- Re: [quicwg/base-drafts] Rewrite text about Versi… Martin Thomson
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… Marten Seemann
- Re: [quicwg/base-drafts] Rewrite text about Versi… Martin Thomson
- Re: [quicwg/base-drafts] Rewrite text about Versi… Mike Bishop
- Re: [quicwg/base-drafts] Rewrite text about Versi… Mike Bishop
- Re: [quicwg/base-drafts] Rewrite text about Versi… Mike Bishop
- Re: [quicwg/base-drafts] Rewrite text about Versi… Mike Bishop
- Re: [quicwg/base-drafts] Rewrite text about Versi… Kazuho Oku
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… Martin Thomson
- Re: [quicwg/base-drafts] Rewrite text about Versi… Martin Thomson
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… Martin Thomson
- Re: [quicwg/base-drafts] Rewrite text about Versi… Martin Thomson
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… martinduke
- Re: [quicwg/base-drafts] Rewrite text about Versi… Martin Thomson
- Re: [quicwg/base-drafts] Rewrite text about Versi… Martin Thomson
- Re: [quicwg/base-drafts] Rewrite text about Versi… Martin Thomson