Re: KEYS_READY

Ryan Hamilton <rch@google.com> Thu, 14 February 2019 20:34 UTC

Return-Path: <rch@google.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 CDFFD131186 for <quic@ietfa.amsl.com>; Thu, 14 Feb 2019 12:34:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.501
X-Spam-Level:
X-Spam-Status: No, score=-17.501 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 K7J_XZpwLJZw for <quic@ietfa.amsl.com>; Thu, 14 Feb 2019 12:34:27 -0800 (PST)
Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) (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 5A4971311D7 for <quic@ietf.org>; Thu, 14 Feb 2019 12:34:27 -0800 (PST)
Received: by mail-wm1-x32e.google.com with SMTP id b11so7774289wmj.1 for <quic@ietf.org>; Thu, 14 Feb 2019 12:34:27 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XHluBcollh/ae6ObtZt5jBno0ElgpHSuSMikUe1DEUE=; b=YOWRI8tB66rKbldBNg+CmGabvj4ufypCC2mSe++e7rjyno1Lyim8CdRMTocAL5Ect/ xVXS2JxX5XfaGe+E/H5kNNOaiKdPVrXrR30Y1KZwACZD5UZgsLmr69gbJOCIkRFeUuUa U6PIr2b7jxa68qVlS/1DevswSp+hIy3RPuh6+3m/FHfpk7HHEYcGSzB2K4bmijfwnO0k nWtzwWB6hg9Ydt+hF8ZahqnRdAhof7qJEoaT7tsLqY0SelxH9P2KrLhphmYfuezIXe3U byQMJc3+8g3r5SLCGY2oO3eZ52G6REMgreQrjYBoXxfuX8WN9fchBfRo4kjJQ6r4NLRE EEcQ==
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=XHluBcollh/ae6ObtZt5jBno0ElgpHSuSMikUe1DEUE=; b=J/2MSmGNVUbmg+/ZWdbju4CHFyPb/ZfBYZofbdoj+AGWAFYRP98Hc+A5vCITGFJfM+ nb648rxqkk1DfKbIMXUHlZ0+QlX3C5GaURoYYcH99QsWXlOGzaRNCaSJARHM2opu6TXg 5D2R9lSXwT3VHz181iYyD53VqF8JvaNcexMHg3cu9EaqkDV67IuES3Fs7h4rEuTyRgrt iPTcTYzHMOLnjRcJ0xX2Ttw+u0iZWjODR7zJBaWoo0QK2yHy2agVeR0VtNJdgVa0PuTm Ve7xK/4B4XgU5i3QkH1SPHZZmIAkJ2DJN8EuSoql5NOOlsS0OJHXxxngo3ni1EubVeNV 6lmA==
X-Gm-Message-State: AHQUAubnWkMhXrPyXVh3hJfewUa13ojOYcJOlhHnFdRtIttXW2ef85kd 1xygCNK61+9NmaJ/bHcIKVTI7SoMXy8yntaVGPSJpQ==
X-Google-Smtp-Source: AHgI3IZgqKS89HWupSPOSIJVvoUpa5iu+rnppYjRio7EIwZnlqWQqgRohFimBZeXxDDlnTScxQPCJll0g34lfADkFJA=
X-Received: by 2002:a1c:9693:: with SMTP id y141mr4186754wmd.33.1550176465376; Thu, 14 Feb 2019 12:34:25 -0800 (PST)
MIME-Version: 1.0
References: <1550022355.557617.1656828112.4DD1CEE6@webmail.messagingengine.com> <CANatvzy_juza_meGR_-KuBV9FA=F754mv54aawxMb8hYWxb1gA@mail.gmail.com> <CAN1APdcVYKWuapZ3XHxXa_nVACwkRD-xeF3ub-5ROttE7QVrmQ@mail.gmail.com> <CAOYVs2ooxAuwu_zr2XZ-y9UqUP5kTbjoFrckAOi40bF9vODGOg@mail.gmail.com> <CAKcm_gNk=jKrnXM4Ht4yF0RX25wtVifjxz0c1gay0uie7PMw6A@mail.gmail.com> <CANatvzxBYzEaDZ1Ftt=o1zT5zVcVTd1EwtGiJOC-mkrNUWzVAQ@mail.gmail.com> <CAN1APdfzepc9DE98UsWw=hB4dM38qKLxdAjpsYuddDBatcscDA@mail.gmail.com> <739AFC55-DD02-47AA-A29E-B9C34ED7D6F9@gmail.com> <CAN1APddWLdmRo+ZZDnmvrBEFQk4TTcS3UK_9AU4KqAeSkiBvJQ@mail.gmail.com> <375A63C5-7120-4688-8873-EEA90693332E@huitema.net> <CANatvzxoOFzpkcH_4VpQscpZq8ak0QL0D6REvyJVjE+ga97SVQ@mail.gmail.com> <1550111606.3717440.1657643080.033E200B@webmail.messagingengine.com> <ae018a6d-4c9a-acc7-4213-21d1670f9dad@huitema.net> <1550117510.928793.1657684264.41D049FA@webmail.messagingengine.com> <CACpbDcfbEcg70RwpFrCQ2X6WA0Dd7ygd=Q0w7iwKc-ZgZQbZ0w@mail.gmail.com> <1550120733.954579.1657700168.72A8F92A@webmail.messagingengine.com> <CAOYVs2qQJgGNhXJNjhE8L=wxBgq+3qs144WYXs0JoWNBrK_a6A@mail.gmail.com> <DB6PR10MB1766128EAD7248F02C1EAFA5AC670@DB6PR10MB1766.EURPRD10.PROD.OUTLOOK.COM> <DB6PR10MB176684E61A66BF01C66008F6AC670@DB6PR10MB1766.EURPRD10.PROD.OUTLOOK.COM> <CAPDSy+5MSST-Nkoi+oaRzSLDJCYqhUmKw1nP_p4fOyq7cfK17w@mail.gmail.com>
In-Reply-To: <CAPDSy+5MSST-Nkoi+oaRzSLDJCYqhUmKw1nP_p4fOyq7cfK17w@mail.gmail.com>
From: Ryan Hamilton <rch@google.com>
Date: Thu, 14 Feb 2019 12:34:13 -0800
Message-ID: <CAJ_4DfRKrYOyozbp4GmPNODnZ_sKTECXbMa5Vsuxa4zmubERHQ@mail.gmail.com>
Subject: Re: KEYS_READY
To: David Schinazi <dschinazi.ietf@gmail.com>
Cc: Mikkel Fahnøe Jørgensen <mikkelfj@gmail.com>, Marten Seemann <martenseemann@gmail.com>, Jana Iyengar <jri.ietf@gmail.com>, QUIC WG <quic@ietf.org>, Martin Thomson <mt@lowentropy.net>
Content-Type: multipart/alternative; boundary="0000000000008f336b0581e095f5"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/lJ_oo_y7RCrvh-ei_k97ULql-SA>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 14 Feb 2019 20:34:37 -0000

On Thu, Feb 14, 2019 at 9:57 AM David Schinazi <dschinazi.ietf@gmail.com>
wrote:

> I don't think the proposed PR matches what we discussed in Tokyo, and it
> seems less robust than what we discussed.
>
> In Tokyo we had discussed a RETIRE_KEYS frame with the following
> properties:
> 1) You send RETIRE_KEYS when both (a) you have sent everything you wanted
> with those keys AND (b) that has been ACKed
>     In particular, the client sends a 1RTT packet with
> RETIRE_KEYS(Handshake) when the server ACKs the packet containing the
> crypto frame with the ClientFinished
> 2) You can discard keys (and congestion control state if applicable) when
> you've both sent and received RETIRE_KEYS
>
> The proposal in PR#2237 does not have these properties, because it focuses
> on the new keys being ready instead of focusing on when an endpoint is done
> sending with previous keys.
> In order to avoid the client infinitely retransmitting ClientFinished
> issue, PR#2237 has the server delay its 1-RTT KEYS_READY until it believes
> the handshake is complete.
> It would be more robust to have the endpoint who is sending decide when it
> is done sending, instead of having the peer assume it knows.
>

I completely agree with this. The usage of RETIRE_KEYS, as outlined here
and in summaries of the discussion in Tokyo that I read, seems simple and
clear.