Re: HTTP/2.0 section 2.4 "Starting HTTP/2.0 with Prior Knowledge"

Martin Thomson <martin.thomson@gmail.com> Wed, 17 April 2013 21:51 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 80AEA21F8CEE for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 17 Apr 2013 14:51:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.366
X-Spam-Level:
X-Spam-Status: No, score=-10.366 tagged_above=-999 required=5 tests=[AWL=0.233, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wR00BQd2sMal for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 17 Apr 2013 14:51:22 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 627B421F8C08 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 17 Apr 2013 14:51:21 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1USaFR-0006iv-Pj for ietf-http-wg-dist@listhub.w3.org; Wed, 17 Apr 2013 21:50:37 +0000
Resent-Date: Wed, 17 Apr 2013 21:50:37 +0000
Resent-Message-Id: <E1USaFR-0006iv-Pj@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1USaFO-0006iA-QR for ietf-http-wg@listhub.w3.org; Wed, 17 Apr 2013 21:50:34 +0000
Received: from mail-wi0-f171.google.com ([209.85.212.171]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1USaFN-00026a-JN for ietf-http-wg@w3.org; Wed, 17 Apr 2013 21:50:34 +0000
Received: by mail-wi0-f171.google.com with SMTP id l13so1519201wie.16 for <ietf-http-wg@w3.org>; Wed, 17 Apr 2013 14:50:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=XZlhlCVkmdS6WIpWrjK2W2sdm8yB99/ty7c+NB9FIn0=; b=dMdN1KakhU847nrOYLwJXbckEVxt8SiU4cU4Fabwr/AmQJUEa3rP84f57+iGPaeUAU Onr/VMf9xKy0maHAlYTJLUgvZLcyJXHRCVNA2ApdjJERX0Wy4dwVAArKCkIWE4qJFYdp /VQqgNYJUi1hjbPggP9YBH31ITWHS9K0ORdO61mxZ1ozPEA/IWvAvmaaCuwwgFawGrkA uF4t7knNCYKugaROeXb1d6rPuLs9wi83t4l4PBPNF/et7itdTpkVno8j/slcxPItuGQ2 +UFIKHyKjyLYyT/zvZ48W/IJnVe4Cb3ZCQ69B+YMI3aKxHwd+zeUVpLyUsZdVFC2OQS6 i9dw==
MIME-Version: 1.0
X-Received: by 10.180.92.97 with SMTP id cl1mr29144985wib.19.1366235407400; Wed, 17 Apr 2013 14:50:07 -0700 (PDT)
Received: by 10.194.28.195 with HTTP; Wed, 17 Apr 2013 14:50:07 -0700 (PDT)
In-Reply-To: <f7426275980d44b2ade49b277ae68d0f@BN1PR03MB072.namprd03.prod.outlook.com>
References: <6a90b4a06d1b43ba8eeb459d8f189f0f@BN1PR03MB072.namprd03.prod.outlook.com> <20130417113926.GA6710@LK-Perkele-VII> <CABkgnnVMgKzbbespzuvsgV0OHn3GEd2VNXx3=fG7aSuHhr4Xbg@mail.gmail.com> <f7426275980d44b2ade49b277ae68d0f@BN1PR03MB072.namprd03.prod.outlook.com>
Date: Wed, 17 Apr 2013 14:50:07 -0700
Message-ID: <CABkgnnU7OP5XvArYm=0AtZsa9C5hcjwnxyUPfJ-fngKPQ6hDAw@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Gabriel Montenegro <Gabriel.Montenegro@microsoft.com>
Cc: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=209.85.212.171; envelope-from=martin.thomson@gmail.com; helo=mail-wi0-f171.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.695, 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
X-W3C-Scan-Sig: maggie.w3.org 1USaFN-00026a-JN 67db8d13af1ab8f7a878a3fe6af44c7b
X-Original-To: ietf-http-wg@w3.org
Subject: Re: HTTP/2.0 section 2.4 "Starting HTTP/2.0 with Prior Knowledge"
Archived-At: <http://www.w3.org/mid/CABkgnnU7OP5XvArYm=0AtZsa9C5hcjwnxyUPfJ-fngKPQ6hDAw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17304
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

ALPN is going to add only a handful of bytes to the handshake.  It's
probably not going to cause the handshake to hit CWND limits (whatever
they are).  Larger certificates are more likely to do that.  So it
comes down to implementation cost - do you want to build the switch
and provide a way to actuate that switch?

Sure, some folks will build their own stack, but if they are at the
point of building their own stack, they aren't going to be overly
bothered by what some standard says if it turns out to be
inconvenient.   It's also likely that if they are sinking that much
engineering effort into it, then something like ALPN is probably a
flyspeck on the overall cost of the project.

On 17 April 2013 14:29, Gabriel Montenegro
<Gabriel.Montenegro@microsoft.com> wrote:
>> On 17 April 2013 04:39, Ilari Liusvaara <ilari.liusvaara@elisanet.fi> wrote:
>> > On Wed, Apr 17, 2013 at 01:15:34AM +0000, Gabriel Montenegro wrote:
>> >> http://http2.github.io/http2-spec/#known-http says:
>> >>
>> >> A client can learn that a particular server supports HTTP/2.0 by
>> >> other means. A client MAY immediately send HTTP/2.0 frames to a
>> >> server that is known to support HTTP/2.0. This only affects the resolution
>> of "http:"
>> >> URIs, servers supporting HTTP/2.0 are required to support protocol
>> >> negotiation in TLS<http://http2.github.io/http2-spec/#TLSNPN> [TLSNPN].
>> >>
>> >> The above fails to include "https:" URIs. It only mentions "http:" URIs.
>> >
>> > HTTPS is over TLS, so NPN (ALPN) is a requirement and will reveal if
>> > server supports HTTP2 without additional RTTs.
>>
>> That was certainly the intent of the text.  However, I know that Gabriel is a
>> pretty smart guy and he has been paying attention.  If this isn't obvious, we
>> should definitely make it more so.
>>
>>    This only affects the resolution of "http:" URIs, servers supporting HTTP/2.0
>> are required to
>>    support <xref target="TLSNPN">protocol negotiation in TLS</xref> for
>> "https:" URIs.
>>
>> https://github.com/http2/http2-
>> spec/commit/329d29e58a88628435ebd4678d3a3bd250155d47
>>
>> (Note, the ALPN edit isn't in yet, the reference will need to change.)
>
> I was just wondering about the twitter apps scenario. Jeff Pinner indicated in Tokyo that for some scenarios (non-browser based apps using their specific servers), they forgo any TLS negotiation as the client simply knows that those particular servers talk HTTP/2.  This allows them to deploy with no dependency on anything but the usual TLS on their target platforms.
>
> It seems like a valid scenarios for "prior knowledge", but I'll let Jeff argue for that. I'm ok with requiring ALPN as the text currently implies (might help to make it explicit, yes).
>