Re: [quicwg/base-drafts] Rewrite text about Version Negotiation (#1039)

MikkelFJ <notifications@github.com> Tue, 16 January 2018 19:51 UTC

Return-Path: <bounces+848413-a050-quic-issues=ietf.org@sgmail.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 BC76112EAC0 for <quic-issues@ietfa.amsl.com>; Tue, 16 Jan 2018 11:51:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.03
X-Spam-Level:
X-Spam-Status: No, score=-2.03 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_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 lGSNrsgaQxGz for <quic-issues@ietfa.amsl.com>; Tue, 16 Jan 2018 11:51:07 -0800 (PST)
Received: from o9.sgmail.github.com (o9.sgmail.github.com [167.89.101.2]) (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 476BC12EAA9 for <quic-issues@ietf.org>; Tue, 16 Jan 2018 11:51:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=github.com; h=from:reply-to:to:cc:in-reply-to:references:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe; s=s20150108; bh=rl+ln4A1dvpniDR+3YmUvUdm1eg=; b=sSz5aWy5LB4oAXVQ D3sh5mkHTPf74ncTjq1gkIrzxfKCplZfmjJat6tu1J1quMvzKhHfmtJqnqIbIpr8 2QoS09bGz54r7lYaTGjrd1zoWfPsTJBOb+M7JL2Fe6IAKh3jW8LTl7md3jFOy/Ll /ZG0Jm+L/4/fCOQ0EBBtVEMPmHw=
Received: by filter0321p1iad2.sendgrid.net with SMTP id filter0321p1iad2-27321-5A5E57AA-2 2018-01-16 19:51:06.043744814 +0000 UTC
Received: from github-smtp2b-ext-cp1-prd.iad.github.net (github-smtp2b-ext-cp1-prd.iad.github.net [192.30.253.17]) by ismtpd0019p1iad2.sendgrid.net (SG) with ESMTP id PvxTzqaMRN69plJzGUki8A for <quic-issues@ietf.org>; Tue, 16 Jan 2018 19:51:06.015 +0000 (UTC)
Date: Tue, 16 Jan 2018 19:51:06 +0000
From: MikkelFJ <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4ab29c140cad3c3e45c2ae8e4e1d6cf8785bf931ce192cf00000001167619a992a169ce1115d834@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/c358083675@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_5a5e57a9e6c7d_164a83fa12ae66f30705f1"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: mikkelfj
X-GitHub-Recipient: quic-issues
X-GitHub-Reason: subscribed
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: quic-issues@ietf.org
X-SG-EID: l64QuQ2uJCcEyUykJbxN122A6QRmEpucztpreh3Pak2JOK6BMYkw//+alK4eslFGnOrdUJ+cWhO6Sh c8plpAhlBQEwAz+ZcamothIYJyOckDvanHhewlqMa226H69V2N822u/f7UoS2gMDBrPFWoZRw7/vIk oJ2IpCEC8zlxl4VJiTjzEYVmGyVcrjBkEfWPs+AXzPdvO3XKw9+kwqCELAQNorrucysMIgt6OIsEZJ E=
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/zG3rqirmtB_-TVuqDNhvrM5YFDg>
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, 16 Jan 2018 19:51:09 -0000

Nice work, C in pseudo code :)

It mostly looks good to me, except for where the client upgrades to the new version id:

> else if (tuple_matches && is_first_pkt && version_matches)
        use_new_conn_id()
        decrypt()

The client needs to use the new connection id only after it has got a connection id match. So it would be something along:
client:

```
In Client:
...
else /* long header */
    if (conn_id_matches)
        if (handshake_recent)
            if (version == 0)
                if (is_first_pkt)
                    process_VN();
                else
                    drop();
            else
                decrypt();
                if (got_new_conn_id)
                    use_new_conn_id()
        else
            drop();
    else
        drop()
```

Otherwise we are back to matching in tuples at one stage.

-- 
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#issuecomment-358083675