Re: KEYS_READY

David Schinazi <dschinazi.ietf@gmail.com> Thu, 14 February 2019 20:42 UTC

Return-Path: <dschinazi.ietf@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 0E6CE12D4F2 for <quic@ietfa.amsl.com>; Thu, 14 Feb 2019 12:42:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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 Em1vSZaarO5w for <quic@ietfa.amsl.com>; Thu, 14 Feb 2019 12:42:38 -0800 (PST)
Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) (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 64FD512EB11 for <quic@ietf.org>; Thu, 14 Feb 2019 12:42:32 -0800 (PST)
Received: by mail-pg1-x52d.google.com with SMTP id r124so3646378pgr.3 for <quic@ietf.org>; Thu, 14 Feb 2019 12:42:32 -0800 (PST)
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=6Sbbid3yn7RAiAsD+/bM3vB9gu0Cm+BFx6xHECDqwbQ=; b=LW+aTJmIJPjxiqGIzKxSnpCBUMneeSe3EGJsn5PmoRGDCQe0WNfqFjZGiYxcpiqEPc h+j99iV2auUDldXxVW+y7ieXT5HRY53Xcn8Dje7JCtM+p+MiQoZc/xrmwgKhnyBikzyy MfIjVGY0uNgQ58ey5Etbnj7cwmg1EKJfuBsyVRcs74VxeDixAyla3yABoXHr+uuI818b lowb5k4/u0kfW5Mw+p3fqI+uH/7iKXsUBBllOTIIOxVRq+qu8tQCM28iNSWr7cUDRP0b Me5FBTafu9hGQfY6uOZ/Treg6Gws0tqiXyGs2H2Re+toENPDmhSKHQfYt7Ah0Xr+Yuhh d76g==
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=6Sbbid3yn7RAiAsD+/bM3vB9gu0Cm+BFx6xHECDqwbQ=; b=PMwQdLjymMqpdrt5SK69NqVr9qs8AsDx2qnh+Ji58rhLQJS6KehtRYSi9zTkodFofM y3P0h9iM85lMbp7+TaWI3sd2iy31suuAj/y6dH5ce50xNsW44IIQYfjjDAF9Qid6WzWS KyC4V3e45Ip44U8V/H0umPw8GjlkPOZc3NGthcjO/IsZss/996oGLnlqP6JZ5MSvdImh B7YaMJZBzqpOmIYvJh9cO181Q/xLTveaWifNcpA+qbeXSkfH18kIB/MmuFnHwMbKtcTV lqNJnmxiEJdiRPv5dpiXGmdOUukqRNkcjSsrMfBMN3iq4P4XEmAV8wdBq3+XZWNfYsBd i74A==
X-Gm-Message-State: AHQUAuaAuZze91TwgnndX2JZn/v79DN9hoK9SOABuCvYNApsZ+0R5+aF y+vdzDZTodISsEHHp3fY+7OJKo1VhiZGWO8kmGE=
X-Google-Smtp-Source: AHgI3IbFXevmpWv/uf42fZPNFkAAduH+uchPOjSD3PKYBBEIgpO9yR1iv6YUG7z1AUl6RQsia3N0uoql0AMXqRYNNR0=
X-Received: by 2002:a63:2a89:: with SMTP id q131mr5492943pgq.216.1550176951550; Thu, 14 Feb 2019 12:42:31 -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> <CAJ_4DfRKrYOyozbp4GmPNODnZ_sKTECXbMa5Vsuxa4zmubERHQ@mail.gmail.com> <MWHPR22MB0991FCD3ADA97790B238E491DA670@MWHPR22MB0991.namprd22.prod.outlook.com>
In-Reply-To: <MWHPR22MB0991FCD3ADA97790B238E491DA670@MWHPR22MB0991.namprd22.prod.outlook.com>
From: David Schinazi <dschinazi.ietf@gmail.com>
Date: Thu, 14 Feb 2019 12:42:19 -0800
Message-ID: <CAPDSy+4=YYyTe5=85X09e1kAB7TrmmNXK-2wnLZubfS1ekWRJA@mail.gmail.com>
Subject: Re: KEYS_READY
To: Mike Bishop <mbishop@evequefou.be>
Cc: Ryan Hamilton <rch=40google.com@dmarc.ietf.org>, Marten Seemann <martenseemann@gmail.com>, Jana Iyengar <jri.ietf@gmail.com>, Mikkel Fahnøe Jørgensen <mikkelfj@gmail.com>, QUIC WG <quic@ietf.org>, Martin Thomson <mt@lowentropy.net>
Content-Type: multipart/alternative; boundary="0000000000008947540581e0b2a2"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/3MzWnnzE36-AgDjV3V8khb9sk98>
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:42:41 -0000

I think RETIRE_KEYS solves both problems. I don't think KEYS_READY does.

On Thu, Feb 14, 2019 at 12:38 PM Mike Bishop <mbishop@evequefou.be> wrote:

> The question is whether the same mechanism can/should be used for
> post-handshake key updates or if two separate mechanisms are needed.
> They’re very similar problems, but it seems as if the requirements are
> slightly different.
>
>
>
> *From:* QUIC <quic-bounces@ietf.org> *On Behalf Of * Ryan Hamilton
> *Sent:* Thursday, February 14, 2019 12:34 PM
> *To:* David Schinazi <dschinazi.ietf@gmail.com>
> *Cc:* Marten Seemann <martenseemann@gmail.com>; Jana Iyengar <
> jri.ietf@gmail.com>; Mikkel Fahnøe Jørgensen <mikkelfj@gmail.com>; QUIC
> WG <quic@ietf.org>; Martin Thomson <mt@lowentropy.net>
> *Subject:* Re: KEYS_READY
>
>
>
> 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.
>