Re: Exercising Version Negotiation

Ryan Hamilton <rch@google.com> Thu, 22 March 2018 20:54 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 C427C12426E for <quic@ietfa.amsl.com>; Thu, 22 Mar 2018 13:54:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.71
X-Spam-Level:
X-Spam-Status: No, score=-2.71 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_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 6tNcCnbIwPcp for <quic@ietfa.amsl.com>; Thu, 22 Mar 2018 13:54:33 -0700 (PDT)
Received: from mail-yw0-x22d.google.com (mail-yw0-x22d.google.com [IPv6:2607:f8b0:4002:c05::22d]) (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 C9476127076 for <quic@ietf.org>; Thu, 22 Mar 2018 13:54:32 -0700 (PDT)
Received: by mail-yw0-x22d.google.com with SMTP id r29so3299082ywa.12 for <quic@ietf.org>; Thu, 22 Mar 2018 13:54:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=5GwyPypwpkb7V1XgHNgCtj3XPjrXhKUh/RFAGY6ZsGY=; b=J6hSlxpVvKq5aqogRFvbN4hDfwCe+u44Jm62+JR6gt6PLOU3icJOa6gK3LQsU7TMvX xfelYOgLnxb0Hmcqc4AnmKfDr8Tp27ikOyzk5hw05syedYHORAPDWIckPwDf8J6F5lZe s3MFiKARH26UPflX1zdi2T1+VGX4bV6nxXS/WQbzYPqrYGFDZounKwIpH6R2lnrxcBrD /wuFDHsODV1i6bjw/0a30cUP3Isrng/VxWTRqeMHjNnW9mwPec2JcEZ77psVJogxgMCA In3BU1OTrstBZWI+vwolk+DNtRf6DC6+/ZjC7i/qbIa1Nc/OusuQAbvjN3Uu3M3Ojowk BgmA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=5GwyPypwpkb7V1XgHNgCtj3XPjrXhKUh/RFAGY6ZsGY=; b=o1V2bbMOQvXvAP+l/hQ0QzPPVeOp0HlAqjvilnlFwePtFi/sBUUiy5sSwlQtOTpJLZ h3YJ8AX18Av4yk/P5uaF87+Iu+RLWITj3KSjpZ6Xzh0N52LmqADnx/eoC/OnMrR5mSHR Du9LGtkUdLGPb1/RTlM5EsJfHj6RG2GgWZUoNPClUaCwY3jHKbkKQ+vJ2qC7MN0xO4X6 +Fnr7+T/So/jMEqaE7TrPftgh3sCavTXI8M3UQdVtYTia0OFWIFCdO+pYDWMX1q4q9o7 2t7myqkmcjP6OC0Plfeu9N4u1LBU6uFcCwRqmjbY8tHlKGg1hxuRhE4Kg1gWq79PyO/g 1SFA==
X-Gm-Message-State: AElRT7EO6/XDXfVVECDcmAOZ1gfu5ZXH5l3K4eFCYZ1MzbUCbQbPFh6d 0DQTimyGI4+wCJAMmKBYzOyNvk49W/8VZZsQfG4JKkR6
X-Google-Smtp-Source: AG47ELtC8KwZGzoCSvIukksyNDz6qhbx0p6kCxho7872xfQjbbYQ4F5E1AYULmKSZXB+Em2EQ96QhTSjn0anNwRDwhg=
X-Received: by 10.13.250.68 with SMTP id k65mr13148845ywf.21.1521752071685; Thu, 22 Mar 2018 13:54:31 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a25:98c5:0:0:0:0:0 with HTTP; Thu, 22 Mar 2018 13:54:31 -0700 (PDT)
In-Reply-To: <BY2PR15MB0775F2D1CDEA831B64491A67CDA90@BY2PR15MB0775.namprd15.prod.outlook.com>
References: <CABcZeBMv5BqZOtgVA2wfqaaGCd94gcNPB9bTXkrvNXXRveU8wA@mail.gmail.com> <BY2PR15MB0775F2D1CDEA831B64491A67CDA90@BY2PR15MB0775.namprd15.prod.outlook.com>
From: Ryan Hamilton <rch@google.com>
Date: Thu, 22 Mar 2018 13:54:31 -0700
Message-ID: <CAJ_4DfSPqsr1Oq3c9iaJ5DzMkaAZ46cndC+5qxoETXMEeNue6Q@mail.gmail.com>
Subject: Re: Exercising Version Negotiation
To: Roberto Peon <fenix@fb.com>
Cc: Eric Rescorla <ekr@rtfm.com>, IETF QUIC WG <quic@ietf.org>
Content-Type: multipart/alternative; boundary="94eb2c065a76ac016f05680683b2"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/m5tJIU-tXQ323K-jTmRJD0TlIDU>
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: Thu, 22 Mar 2018 20:54:35 -0000

Version Negotiation adds 1-RTT to the connection attempt, so I don't think
that's practical for 50% of connections.

On Thu, Mar 22, 2018 at 9:19 AM, Roberto Peon <fenix@fb.com> wrote:

> Love it. This is a great idea!
>
> I'd suggest being more agressive with deployment,  e.g. recommend that
> servers negotiate speaking version +1 to more like 50% of the clients, and
> swap guid/ip mappings to have clients formerly using +1 switch  to -1 and
> vice versa weekly or so.
>
> -=R
>
>
>
> Sent via the Samsung Galaxy S7, an AT&T 4G LTE smartphone
>
>
> -------- Original message --------
> From: Eric Rescorla <ekr@rtfm.com>
> Date: 3/22/18 5:05 AM (GMT-08:00)
> To: IETF QUIC WG <quic@ietf.org>
> Subject: Exercising Version Negotiation
>
> Following up on the discussion at the mic, I do think it is useful to
> exercise the VN function, but I don't think it's useful to have those
> versions be different, because that creates perverse incentives.
>
> Here's what I suggest instead: create two versions (we can call them QUIC
> v1+i  and QUIC v1-i), each with its own code point [0]. They should be
> essentially identical except for two trivial differences, intended to
> ensure that if you screw up version negotiation, you get failed interop.
>
> - The constant in the handshake salt (5.2.2)
> - The HKDF expansion constants
>
> I suggest we handle each of these by just inverting the bits.
>
> We would then suggest to people that they somewhat randomize their
> preferences (e.g., 99% of the time prefer v1+i, 1% of the time prefer
> v1-i). This will almost always result in matching versions, but will
> occasionally result in a mismatch, thus forcing us to test VN.
>
> -Ekr
>
> [0] Obviously we can do this for draft versions. We just say that the two
> versions are
> ff0000XX and ffffffXX.
>
>
>
>
>
>
>