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

Gabriel Montenegro <Gabriel.Montenegro@microsoft.com> Wed, 17 April 2013 21:33 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 E33E321E80EB for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 17 Apr 2013 14:33:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.219
X-Spam-Level:
X-Spam-Status: No, score=-8.219 tagged_above=-999 required=5 tests=[AWL=-0.793, BAYES_00=-2.599, MIME_BASE64_BLANKS=0.041, RCVD_IN_DNSWL_HI=-8, UNRESOLVED_TEMPLATE=3.132]
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 yUnsYxz82Y0m for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 17 Apr 2013 14:33:50 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id C6FCE21E80ED for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 17 Apr 2013 14:33:47 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1USZym-0005F7-Ae for ietf-http-wg-dist@listhub.w3.org; Wed, 17 Apr 2013 21:33:24 +0000
Resent-Date: Wed, 17 Apr 2013 21:33:24 +0000
Resent-Message-Id: <E1USZym-0005F7-Ae@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <Gabriel.Montenegro@microsoft.com>) id 1USZyj-0005DM-6u for ietf-http-wg@listhub.w3.org; Wed, 17 Apr 2013 21:33:21 +0000
Received: from mail-bl2lp0206.outbound.protection.outlook.com ([207.46.163.206] helo=na01-bl2-obe.outbound.protection.outlook.com) by lisa.w3.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from <Gabriel.Montenegro@microsoft.com>) id 1USZyi-00048q-CA for ietf-http-wg@w3.org; Wed, 17 Apr 2013 21:33:21 +0000
Received: from BY2FFO11FD007.protection.gbl (10.1.15.201) by BY2FFO11HUB039.protection.gbl (10.1.14.122) with Microsoft SMTP Server (TLS) id 15.0.675.0; Wed, 17 Apr 2013 21:32:34 +0000
Received: from TK5EX14HUBC107.redmond.corp.microsoft.com (131.107.125.37) by BY2FFO11FD007.mail.protection.outlook.com (10.1.14.128) with Microsoft SMTP Server (TLS) id 15.0.675.0 via Frontend Transport; Wed, 17 Apr 2013 21:32:34 +0000
Received: from db3outboundpool.messaging.microsoft.com (157.54.51.113) by mail.microsoft.com (157.54.80.67) with Microsoft SMTP Server (TLS) id 14.2.318.3; Wed, 17 Apr 2013 21:32:02 +0000
Received: from mail28-db3-R.bigfish.com (10.3.81.230) by DB3EHSOBE003.bigfish.com (10.3.84.23) with Microsoft SMTP Server id 14.1.225.23; Wed, 17 Apr 2013 21:30:34 +0000
Received: from mail28-db3 (localhost [127.0.0.1]) by mail28-db3-R.bigfish.com (Postfix) with ESMTP id 94B00460645 for <ietf-http-wg@w3.org.FOPE.CONNECTOR.OVERRIDE>; Wed, 17 Apr 2013 21:30:34 +0000 (UTC)
X-Forefront-Antispam-Report-Untrusted: CIP:157.56.240.21; KIP:(null); UIP:(null); (null); H:BL2PRD0310HT005.namprd03.prod.outlook.com; R:internal; EFV:INT
X-SpamScore: 2
X-BigFish: PS2(zz98dI1432Izz1f42h1fc6h1ee6h1de0h1fdah1202h1e76h1d1ah1d2ahzz17326ah8275bhz31h2a8h668h839h93fhd24hf0ah1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh162dh1631h1758h18e1h1946h19b5h1ad9h1b0ah17ej9a9j1155h)
Received-SPF: softfail (mail28-db3: transitioning domain of microsoft.com does not designate 157.56.240.21 as permitted sender) client-ip=157.56.240.21; envelope-from=Gabriel.Montenegro@microsoft.com; helo=BL2PRD0310HT005.namprd03.prod.outlook.com ; .outlook.com ;
X-Forefront-Antispam-Report-Untrusted: SFV:SKI; SFS:; DIR:OUT; SFP:; SCL:-1; SRVR:BN1PR03MB070; H:BN1PR03MB072.namprd03.prod.outlook.com; LANG:en;
Received: from mail28-db3 (localhost.localdomain [127.0.0.1]) by mail28-db3 (MessageSwitch) id 1366234197165713_32206; Wed, 17 Apr 2013 21:29:57 +0000 (UTC)
Received: from DB3EHSMHS003.bigfish.com (unknown [10.3.81.233]) by mail28-db3.bigfish.com (Postfix) with ESMTP id 25CE04201A7; Wed, 17 Apr 2013 21:29:57 +0000 (UTC)
Received: from BL2PRD0310HT005.namprd03.prod.outlook.com (157.56.240.21) by DB3EHSMHS003.bigfish.com (10.3.87.103) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 17 Apr 2013 21:29:56 +0000
Received: from BN1PR03MB070.namprd03.prod.outlook.com (10.255.225.154) by BL2PRD0310HT005.namprd03.prod.outlook.com (10.255.97.40) with Microsoft SMTP Server (TLS) id 14.16.299.2; Wed, 17 Apr 2013 21:29:53 +0000
Received: from BN1PR03MB072.namprd03.prod.outlook.com (10.255.225.156) by BN1PR03MB070.namprd03.prod.outlook.com (10.255.225.154) with Microsoft SMTP Server (TLS) id 15.0.670.13; Wed, 17 Apr 2013 21:29:52 +0000
Received: from BN1PR03MB072.namprd03.prod.outlook.com ([169.254.10.181]) by BN1PR03MB072.namprd03.prod.outlook.com ([169.254.10.181]) with mapi id 15.00.0670.000; Wed, 17 Apr 2013 21:29:52 +0000
From: Gabriel Montenegro <Gabriel.Montenegro@microsoft.com>
To: Martin Thomson <martin.thomson@gmail.com>, Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
CC: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Thread-Topic: HTTP/2.0 section 2.4 "Starting HTTP/2.0 with Prior Knowledge"
Thread-Index: Ac47CJmjsmv6AyBTQkeFrAVexJQltQAV50AAABPdeAAAAJwHoA==
Date: Wed, 17 Apr 2013 21:29:51 +0000
Message-ID: <f7426275980d44b2ade49b277ae68d0f@BN1PR03MB072.namprd03.prod.outlook.com>
References: <6a90b4a06d1b43ba8eeb459d8f189f0f@BN1PR03MB072.namprd03.prod.outlook.com> <20130417113926.GA6710@LK-Perkele-VII> <CABkgnnVMgKzbbespzuvsgV0OHn3GEd2VNXx3=fG7aSuHhr4Xbg@mail.gmail.com>
In-Reply-To: <CABkgnnVMgKzbbespzuvsgV0OHn3GEd2VNXx3=fG7aSuHhr4Xbg@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [2001:4898:98:200b:c4ca:6c97:f955:788f]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OrganizationHeadersPreserved: BN1PR03MB070.namprd03.prod.outlook.com
X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn%
X-FOPE-CONNECTOR: Id%59$Dn%W3.ORG$RO%2$TLS%6$FQDN%corpf5vips-237160.customer.frontbridge.com$TlsDn%
X-FOPE-CONNECTOR: Id%59$Dn%ELISANET.FI$RO%2$TLS%6$FQDN%corpf5vips-237160.customer.frontbridge.com$TlsDn%
X-FOPE-CONNECTOR: Id%59$Dn%GMAIL.COM$RO%2$TLS%6$FQDN%corpf5vips-237160.customer.frontbridge.com$TlsDn%
X-CrossPremisesHeadersPromoted: TK5EX14HUBC107.redmond.corp.microsoft.com
X-CrossPremisesHeadersFiltered: TK5EX14HUBC107.redmond.corp.microsoft.com
X-Forefront-Antispam-Report: CIP:131.107.125.37; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(199002)(189002)(6806003)(81542001)(81342001)(74662001)(47446002)(74502001)(44976003)(23676002)(31966008)(621065001)(63696002)(47776003)(76482001)(59766001)(54356001)(53806001)(77982001)(47976001)(65816001)(16676001)(51856001)(79102001)(50986001)(20776003)(80022001)(47736001)(33646001)(49866001)(54316002)(4396001)(69226001)(56776001)(56816002)(50466001)(73894001)(46102001)(3826001)(24736002); DIR:OUT; SFP:; SCL:1; SRVR:BY2FFO11HUB039; H:TK5EX14HUBC107.redmond.corp.microsoft.com; RD:InfoDomainNonexistent; A:1; MX:1; LANG:en;
X-OriginatorOrg: microsoft.onmicrosoft.com
X-Forefront-PRVS: 081904387B
Received-SPF: pass client-ip=207.46.163.206; envelope-from=Gabriel.Montenegro@microsoft.com; helo=na01-bl2-obe.outbound.protection.outlook.com
X-W3C-Hub-Spam-Status: No, score=0.7
X-W3C-Hub-Spam-Report: RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, UNRESOLVED_TEMPLATE=0.716
X-W3C-Scan-Sig: lisa.w3.org 1USZyi-00048q-CA 9731b32d27dad5b5b5c29a4f0a7ad55a
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/f7426275980d44b2ade49b277ae68d0f@BN1PR03MB072.namprd03.prod.outlook.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17301
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>

> 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).