Re: Questions regarding the handshake sequence

Martin Thomson <martin.thomson@gmail.com> Tue, 22 May 2018 10:27 UTC

Return-Path: <martin.thomson@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 0236612EADE for <quic@ietfa.amsl.com>; Tue, 22 May 2018 03:27:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=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 fpwWgz1uzZa7 for <quic@ietfa.amsl.com>; Tue, 22 May 2018 03:27:06 -0700 (PDT)
Received: from mail-oi0-x235.google.com (mail-oi0-x235.google.com [IPv6:2607:f8b0:4003:c06::235]) (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 EBFA512EAD4 for <quic@ietf.org>; Tue, 22 May 2018 03:27:05 -0700 (PDT)
Received: by mail-oi0-x235.google.com with SMTP id w123-v6so15701004oia.4 for <quic@ietf.org>; Tue, 22 May 2018 03:27:05 -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=0GIUYXUDt+WlL3HG08NnQSceO3Lp6CPgzpE2nU/u9ZU=; b=p6ju9C+6aIgDGV/4a8diR7cuKtF2lkEI5tIyF4PZEeEDdmK+J5srDXQbDDHilOua/Y Lm2hj5qvNOAwzfJyWWFLznD5+SeI1MSdPxBn8nIG6iMeqUorUR8bC2BLgfh/fTJ2F/PS Eg+aUw5b1rNU/cwLYDftKq+Ijixr+7tgCHvt5Zut4MZuuqUveMlXd2d9SjH6owDgAsr9 c1P/b2kBUDjzruB2lnzP+nGsAAV/aNCXrTzoRVlu31z8S9Xez9QIycmxMuG/Yt5KxNdb xxJkD3FTm3IaqcRqPj7lN17mmzQ3aky11JMWN/EI4c89N2ksF215F1pmPQNIqeOW3cZG jWmA==
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=0GIUYXUDt+WlL3HG08NnQSceO3Lp6CPgzpE2nU/u9ZU=; b=cj+9jEq9C8jz5I4bpg2vo6HRlSd1XE8OexA0mm01fCYfcdcDD3da1fIwTjPU1PTE4T pHH6vpMFXOPWSf/HUIsl6iyGKUjsBB7hySqMD898thomGSbWKJ61rSHPUAYcM4n4fseG wt7xZLDE139IepZx+jz9i6/UF2RpLEKZeHtt55frLrkqacN+U1+s2CD0CL0DF6rrY5DU H6NDBWTAGOFwozt5ygWVDVIf/gzQ/PSFhZ9Pf1GWYL0OwM9cadRCKttxZ9LkLMTLf2G1 pAGCsZPpryoNM+mUuOtOzxLiVk0cZi6Pff9scxMaUtJvyKy0q+BqfvAS7ZAYdmeXPuCP +4TQ==
X-Gm-Message-State: ALKqPwf0Zak6VcXgaUUwcrtd+XCyNzJdGYPEaMYeYggWwH4PZXEueskZ /xrqAin4JiZVXyJoVrBRLMCKwk+x4wUUSslhZPR2peRJ
X-Google-Smtp-Source: AB8JxZrr80I7dWBftEcu3He5n5YPcKfJylTq39NyLWvBpIRu/3P2MEcBrp3ruLKH4L7lrLPUgi+kOfXBg3/U+290e5Y=
X-Received: by 2002:aca:ebd4:: with SMTP id j203-v6mr14580281oih.110.1526984825099; Tue, 22 May 2018 03:27:05 -0700 (PDT)
MIME-Version: 1.0
References: <4582ce45-d016-1eda-46f9-57cf868c5f3d@ericsson.com>
In-Reply-To: <4582ce45-d016-1eda-46f9-57cf868c5f3d@ericsson.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Tue, 22 May 2018 20:26:53 +1000
Message-ID: <CABkgnnVRM5Rd+6j3YghGbvcZaJo82rTnhr1Z6vDJkt8Hh0tDtQ@mail.gmail.com>
Subject: Re: Questions regarding the handshake sequence
To: Magnus Westerlund <magnus.westerlund@ericsson.com>
Cc: QUIC WG <quic@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/8ukzEYwzDAa5ZhAK5YIb4KfTeAM>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.22
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, 22 May 2018 10:27:08 -0000

Hmm, yes, that could be clearer.  Does this help?

https://github.com/quicwg/base-drafts/pull/1368
On Tue, May 22, 2018 at 7:31 PM Magnus Westerlund <
magnus.westerlund@ericsson.com> wrote:

> Hi,

> Reviewing the transport draft -11 I get a bit confused about what
> possible combination of packets type that can occur during the
> handshaking. Thus, I would appreciate some clarifications.

> First a sequence with a HelloRetryRequest

> C -> S: Initial PN=0, ClientHello

> S-> C: Retry Packet PN=0, HelloRetryRequest, ACK (0)

> C -> s: Initial PN=1, ClientHello

> S -> C: Handshake Packet PN=0, ServerHello, ACK (0,1)

> C -> S: ? PN=2, Client Finished, Data Frame, ACK (0)

> So in this sequence, in what type of packet is the client sending its
> Client Finished message?

> Secondly, In the Handshake packet, is the server using PN=0 again. Spec
> text appear to indicate that, but I get uncertain.

> And I understand correctly this is also a valid sequence:

> C -> S: Initial PN=0, ClientHello

> S -> C: Handshake Packet PN=0, ServerHello, ACK (0)

> C-> S: ? PN=1, Client Finished, Data frame, ACK(0)

> Also here, it is unclear which packet type the client uses in its second
> message.

> Cheers

> Magnus Westerlund

> ----------------------------------------------------------------------
> Network Architecture & Protocols, Ericsson Research
> ----------------------------------------------------------------------
> Ericsson AB                 | Phone  +46 10 7148287
> Torshamnsgatan 23           | Mobile +46 73 0949079
> SE-164 80 Stockholm, Sweden | mailto: magnus.westerlund@ericsson.com
> ----------------------------------------------------------------------