Re: [quicwg/base-drafts] Move stateless reset token to the end (#842)
Mike Bishop <notifications@github.com> Tue, 10 October 2017 23:07 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 46AA51342FF for <quic-issues@ietfa.amsl.com>; Tue, 10 Oct 2017 16:07:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.799
X-Spam-Level:
X-Spam-Status: No, score=-4.799 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_H2=-2.8, 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 UBF1bbDx2Xzx for <quic-issues@ietfa.amsl.com>; Tue, 10 Oct 2017 16:07:09 -0700 (PDT)
Received: from o6.sgmail.github.com (o6.sgmail.github.com [192.254.113.101]) (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 88275133072 for <quic-issues@ietf.org>; Tue, 10 Oct 2017 16:07:09 -0700 (PDT)
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=acReDg7uY5uJ6OtsxciZOsBQO5U=; b=v228CAVWS6nv3isP I5VXs6IsbFGtOwJwP4ah6sjED+rF4MN3UYLZFcFVs3MJLLie0cgb98ttkfKGLGvi Ki2txjyP9MlVppL+MRVf29jERmcDn3LNbm7nGK1ohk3o+Beh5+Ff1k7YwGs/qJ7t k8GalNxZt+I5MWYgsxnjoZzps3M=
Received: by filter0091p1las1.sendgrid.net with SMTP id filter0091p1las1-1799-59DD529C-A 2017-10-10 23:07:08.496380661 +0000 UTC
Received: from github-smtp2a-ext-cp1-prd.iad.github.net (github-smtp2a-ext-cp1-prd.iad.github.net [192.30.253.16]) by ismtpd0008p1sjc2.sendgrid.net (SG) with ESMTP id o2nubqFDSJesRRLoYMVsiw for <quic-issues@ietf.org>; Tue, 10 Oct 2017 23:07:08.316 +0000 (UTC)
Date: Tue, 10 Oct 2017 23:07:08 +0000
From: Mike Bishop <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4ab4c81d594a14f0fbd911bf5e58516a23fd508820f92cf0000000115f5149b92a169ce0fb8c6e7@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/842/review/68452414@github.com>
In-Reply-To: <quicwg/base-drafts/pull/842@github.com>
References: <quicwg/base-drafts/pull/842@github.com>
Subject: Re: [quicwg/base-drafts] Move stateless reset token to the end (#842)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_59dd529bb7e81_131523fb95601af284957e"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: MikeBishop
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: l64QuQ2uJCcEyUykJbxN122A6QRmEpucztpreh3Pak3HP4+kM/IXQ+5vPLBGOR93C1eFDlDZvM+jw6 urB4UtSsc11PIC1UwrYwunOOhL8lSS80qUWTpSZW7PFgrYyV+7Me480O3AaDHTUpJaXC92bp+JDOMb PI8TIuGP0i3KtwN6aKUdoiBvX/7ZzKZaDyQQ8cOjk5THLuoJy6uT46y2VAnYU3uVMsGWYf0NhrQv9D c=
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/f1LnY6M_3yIaGxV0AUs5eCZuHfI>
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, 10 Oct 2017 23:07:11 -0000
MikeBishop approved this pull request. LGTM. > A server copies the connection ID field from the packet that triggers the stateless reset. A server omits the connection ID if explicitly configured to do so, or if the client packet did not include a connection ID. +The Packet Number field is set to a randomized value. The server SHOULD send a +packet with a short header and a type of 0x01. This produces the shortest +possible packet number encoding, which minimizes the perceived gap between the +last packet that the server sent and this packet. A server MAY use a different +short header type, indicating a different packet number length, but this allows +for the message to be identified as a stateless reset more easily using It's not the identification we care about, but the fact that an observer could identify the SR by seeing a packet number jump. If the number is only eight bits long, then it's harder for an observer to infer a large jump. > @@ -1595,11 +1600,11 @@ CONNECTION_CLOSE or APPLICATION_CLOSE frame if it has sufficient state to do so. #### Detecting a Stateless Reset A client detects a potential stateless reset when a packet with a short header -cannot be decrypted. The client then performs a constant-time comparison of the -16 octets that follow the Connection ID with the Stateless Reset Token provided -by the server in its transport parameters. If this comparison is successful, -the connection MUST be terminated immediately. Otherwise, the packet can be -discarded. +either cannot be decrypted or is marked as a potential duplicate. The client +then performs a constant-time comparison of the last 16 octets of the packet +with the Stateless Reset Token provided by the server in its transport +parameters. If this comparison is successful, the connection MUST be terminated Any of the above seem fine for now; we'll want to tie this in with @janaiyengar's Unified Theory of Connection Closure when that lands. -- 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/842#pullrequestreview-68452414
- [quicwg/base-drafts] Move stateless reset token t… Martin Thomson
- Re: [quicwg/base-drafts] Move stateless reset tok… ekr
- Re: [quicwg/base-drafts] Move stateless reset tok… Martin Thomson
- Re: [quicwg/base-drafts] Move stateless reset tok… janaiyengar
- Re: [quicwg/base-drafts] Move stateless reset tok… Mike Bishop
- Re: [quicwg/base-drafts] Move stateless reset tok… Mike Bishop
- Re: [quicwg/base-drafts] Move stateless reset tok… Martin Thomson
- Re: [quicwg/base-drafts] Move stateless reset tok… Martin Thomson
- Re: [quicwg/base-drafts] Move stateless reset tok… Martin Thomson
- Re: [quicwg/base-drafts] Move stateless reset tok… ianswett
- Re: [quicwg/base-drafts] Move stateless reset tok… Martin Thomson
- Re: [quicwg/base-drafts] Move stateless reset tok… ianswett
- Re: [quicwg/base-drafts] Move stateless reset tok… janaiyengar
- Re: [quicwg/base-drafts] Move stateless reset tok… janaiyengar