RE: HTTP/3 Preface (PRI method)
Mike Bishop <mbishop@evequefou.be> Tue, 06 July 2021 18:46 UTC
Return-Path: <mbishop@evequefou.be>
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 C4BF73A317E for <quic@ietfa.amsl.com>; Tue, 6 Jul 2021 11:46:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=evequefou.onmicrosoft.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 ioLQ1svBENFR for <quic@ietfa.amsl.com>; Tue, 6 Jul 2021 11:46:36 -0700 (PDT)
Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam08on2092.outbound.protection.outlook.com [40.107.102.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 374593A315D for <quic@ietf.org>; Tue, 6 Jul 2021 11:46:35 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b1b0XyBwtpvngNjlOf2gJCZvmfDQeHmeSrSf7IbiU9RNgiyQI16yRe3wmVqceCV5irw6K5envb7vvtOO6+Y2uX4aHL0B57bZm/sCkMalvbIZD5AoxkmjkuWpP/FYTK+iq6nlffVUylXUTK15jnaCaRg19OumRsVqdQ0iu3nm1h1Llw9kXA/fiPa2QR/K9t9xG2y3v+fodcp04KpJaxLgXIHDekMfIQd6StdpJa3CA17/cCL5Bk/iFRaPjlT8kRfLF1xuj04j0HAcJVkC9nDiwxUkV3gs03QA7zKID58U5beqj/076revZYY7Z6E1guRM8f6Ii/6T1zyd2aGrrAQ08g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vJ/YzkIE5wZAY2x6acAscTY4NL2VuNWrAWt40Hg2Q1s=; b=dKBr4Yobp8H59E6buCR92NHhO6ONcc6ah/3/hjZr0E2jBdx22ADxZyFUb/r80qki1ShXu90JtA1lSsJsrv9eRhzU4xZ2N1TywJlZREDG3SgdVrRSYER59hEDcAsThSDUo92ZbqOWwl9T6F3Fr1ytYI+aP8H6fxtehF0LJfZo5WbsgIbrQtz1uEhyUo8MdqBtUqtkuBqlIcQWQRrL4kVeyD4rSvu7H/cSRw0roBxL5MVn2hCCfj0tgraUR5ggUVBGq0S7oxZaUqbR4olfECmDfK6G0vlk81PwQmon8XhLspxHq7CcLcc8aCmiFVy4O4xAewYiHeMG8wgd5tdKw4F2mg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=evequefou.be; dmarc=pass action=none header.from=evequefou.be; dkim=pass header.d=evequefou.be; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=evequefou.onmicrosoft.com; s=selector2-evequefou-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vJ/YzkIE5wZAY2x6acAscTY4NL2VuNWrAWt40Hg2Q1s=; b=Deo2s7rpBj4H+o3xKUPt94aReLn4vm9Kdk6TtUcjgaN7BVyhPX3hSpHE+r5KYZ8fbwckPNfN5AYAi3srMvnVUrgia0haBwJOs3KqnyluGM/ZMLuRLpNT7DMEHM7WeSZKPRraft2KEp68+1e3b30Gazmd/MRYtzBeb5J0pAOTfZg=
Received: from BLAPR22MB2259.namprd22.prod.outlook.com (2603:10b6:208:27b::11) by BLAPR22MB2338.namprd22.prod.outlook.com (2603:10b6:208:277::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.31; Tue, 6 Jul 2021 18:46:31 +0000
Received: from BLAPR22MB2259.namprd22.prod.outlook.com ([fe80::2549:c98c:dcda:526c]) by BLAPR22MB2259.namprd22.prod.outlook.com ([fe80::2549:c98c:dcda:526c%6]) with mapi id 15.20.4287.033; Tue, 6 Jul 2021 18:46:31 +0000
From: Mike Bishop <mbishop@evequefou.be>
To: "ben=40yocto.nu@dmarc.ietf.org" <ben=40yocto.nu@dmarc.ietf.org>, Matt Joras <matt.joras@gmail.com>
CC: IETF QUIC WG <quic@ietf.org>
Subject: RE: HTTP/3 Preface (PRI method)
Thread-Topic: HTTP/3 Preface (PRI method)
Thread-Index: AQHXbRqS7hMMnA14qkydILl9JhVAJasrYFgAgAAEggCACu5wAA==
Date: Tue, 06 Jul 2021 18:46:31 +0000
Message-ID: <BLAPR22MB2259B0565DFAFD5A04263699DA1B9@BLAPR22MB2259.namprd22.prod.outlook.com>
References: <4723f90d822b18e3d0402b6496ac1d02@yocto.nu> <CADdTf+im9s_A4LXiwR15R=iLr6X8PJR=J3xq7302WWeGEiOy1A@mail.gmail.com> <fc1c52d95748524e5322c1b083ad1ade@yocto.nu>
In-Reply-To: <fc1c52d95748524e5322c1b083ad1ade@yocto.nu>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dmarc.ietf.org; dkim=none (message not signed) header.d=none;dmarc.ietf.org; dmarc=none action=none header.from=evequefou.be;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: a4f7c3b2-b340-4257-0473-08d940ae5f30
x-ms-traffictypediagnostic: BLAPR22MB2338:
x-microsoft-antispam-prvs: <BLAPR22MB2338365A4075EA39B7E2205DDA1B9@BLAPR22MB2338.namprd22.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: B6VOt43JHtqSHjmnxNsvdfctrTlT369DxVd99Q4pHas46TcRM5HpYItQfqsDj3pt2iS/Uz7ZN+6hR1ZV1j4GULtzM9HwPxCGcJukKmuGGR4Oqnx+LdQvi66xvacgpeG4nWcSmtCtieTDxdURN1hW18Hd7AU+oOS8oTzDsmZLgfKuo5g2v+KgNqJv+bIRaAhOioOzSmMkRD/xQgaGQREJqb+t/Sp5KHEfL0oT+LQLTj3E3m5Ad8CcbFJoOBy0PK7Xh4iixGAxLDg3dZC+DlQHpeN9wI91BRJxl2NTjh/VW/XeKcIVsY2Bx/XyA/k/tAHyq2tW054DCnq6x84GJp1cq7rI0SE//8HnqCIgUdDuJBSbSTcx3gfCX+YaqIB69xb254qHUWbCCyR/Z3bSpEKJB29+P2PIrM1oxtpewUrIpomsSeG6BXL0Mqu2KXf6h906JcyZi70eWuOs8RGmAd4yp0HAApWNKlcDq83qbecGxQuuXNh4UcRbPRhlq79LRet5191gjwzARneFSq+6nsKD3+NaUR5QGslFXLMzsCNBr+AnYflqPIjYSTASV/bXTL7Z5fdyX5NR+Qf0o+W3tC2P9gRh+7CkgH2Ep3IaPRW+n9QtGWP20D0ADEQYQ6l4Xr2z7g7iFUbnxba3/CfQKPk5N058W4hBC4BwUUZzi7D5KcU/nW1ecNJkszu2C0cMVsiqwa4DEaWwE43eOknfoZSxkXmPzlARO4tTF9JZ3FM7Exc=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BLAPR22MB2259.namprd22.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(346002)(376002)(39830400003)(396003)(366004)(122000001)(110136005)(2906002)(38100700002)(71200400001)(55016002)(4326008)(186003)(83380400001)(7696005)(52536014)(316002)(33656002)(64756008)(8936002)(86362001)(66446008)(966005)(66476007)(6506007)(478600001)(66946007)(8676002)(9686003)(76116006)(66556008)(53546011)(26005)(5660300002); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: 8UlvH31dEXMbaH+wcYg9SPHw1gzrJ/Ly3so879yBHhT3TNTTAhVwScIEVcIglzOJ5VJG+/fYD/imZ9zumMgG3ifwmJ08ykpmNLI5JR6AVLMyLOUknANhbx+BrHzbBWhWefL4ju80AhSZtTjUpBt39R9mcjtjevJsut7BgQHH1mQW1C9irCjb+1xTe4OAPrjWrNZLuOf08Zu7JU4DiHOzQScQL7z//Hp7PCxtB+oUq5pKk6p+MSaKiFWqkbxb17sGNrfYHHJOX7tx7WfDYOBrQ1x2idbodXxom6+T7JPvv1x3b3a/06iZ59PA/NuzQoA2pCYXe44tOoZzUHL3wLkvzhfh2HLSOLg38looMiMOVCNwiAcAEWxiC8xF5AxOCdMJyDG2IKIX7ZQ8AkSXBe3KTXP9hAPTLhLytUSm5us2dhDnKwkRT8F9nwAUWRTK6h4+rZwhkHKWgUwDJJd56kNRnVBc7yrQBzd8xBkZqCygzuGujablLsY8SP3Uxdzot0kQQZplByNQV90LdqMMYjMFEjI0XvHQeO37qVn+0+uNnt2hCLgOCI8RniKWAZFQsDI0zxGEhLK7L7eGjaqxI3tboLX+Fmu+86v/OWXRxdKqhlFwnkC6pRRKTmggSvamv5Gwzi99suzQKyE+nkXxBA8kVpGKdOh5zZvn7GROr2Y5L5+uoSz9xqPyKXhVxFj6qNW3ifBgBCsduyWpvn6840HJLNI4xZHmcJHPnEmM9tkNbGw99zf754g8vr6Eh40IeJvdZ2mf/gFTBWH1OryHFc6w3ecVjcv3Ayf1S6MXjqUgpENkIe2s3nRaj/6Buy3tXTZ5lm1p/ROZoXGDkE5lhuU1rQdEQh588L9vC2kem5JLInW2qALDVhRWNWA5/7xXR0tC1pZDFympGiHbsr+87dWXzKDjluA3KraUFP3XZqGCuRDVdjtXpxt4nH0f10z5z7n2DV2uAAxXKJaxmCo2ajxS5kH/YnsHdAIEnApEXfbrO6dfRv5126WNQDfbK/06lGXIeIMzv6WqQd5efs6DjY2nUv9+PdMRl7L3hSe01a7RqFUik8ESi5a0E2yXtvwPW10i752OVmJ+3SMRtjCWbhRoGWF2TutqHD0d3maJ3jqQHPt8ECwHqSwPGC+GNEf7tOaEo2IoL+4Npoo5avp1FsQpEapxNaPcO/2QKLFEvEjxmdMqMYo4XTNDJC06Z6F4mfk4P9566UQw/MIvUREFnZlPp5WpzTXMAxc4dQ9pXYCsn7OAXEAQ8Veo18Mn0S9Pcu0kQELYM3/NRlTRbdrK2hwOu6Coje9DXFqd6yyXKUWZ7LM=
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: evequefou.be
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: BLAPR22MB2259.namprd22.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: a4f7c3b2-b340-4257-0473-08d940ae5f30
X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jul 2021 18:46:31.3034 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 41eaf50b-882d-47eb-8c4c-0b5b76a9da8f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: HOOIi23B1FrS3WJrOusEmYEZBy6TbZmbcGhb232qyVVQwdaxeuPZ3NNj4nT7Z8UK6q/5Oyrq8Ro3He16v1A16A==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR22MB2338
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/AS2p_oZX2H3JC_RFq3R2qGJUuH8>
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: Tue, 06 Jul 2021 18:46:47 -0000
Regardless of how you see HTTP/3, the RFC-to-be says this: > HTTP/3 relies on QUIC version 1 as the underlying transport. The use of other QUIC transport versions with HTTP/3 MAY be defined by future specifications. That is, there is no such thing as HTTP/3 over TLS over TCP. Neither is there any such thing as HTTP/3 directly over TCP. HTTP/3 assumes and relies on a multi-streamed transport underneath it; you can't just drop it on top of a single bytestream transport and expect it to work. There would be far larger issues than the connection prefix. -----Original Message----- From: QUIC <quic-bounces@ietf.org> On Behalf Of ben=40yocto.nu@dmarc.ietf.org Sent: Tuesday, June 29, 2021 3:47 PM To: Matt Joras <matt.joras@gmail.com> Cc: IETF QUIC WG <quic@ietf.org> Subject: Re: HTTP/3 Preface (PRI method) I understand. When connecting through QUIC using TLS, it will tell me that HTTP/3 is used. However, I see HTTP/3 as protocol that isn't just allowed on QUIC, but also still on TCP, because QUIC is a TCP-alternative. So, we look to three cases: - QUIC: use the ALPN code - TCP/SSL: use ALPN code - Plain TCP: What to do then? HTTP/3 directly starts with binary. It seems to me that HTTP should be developed like it is just an protocol, not specific made for QUIC or TCP. So in that case, there should be placed a preface somewhere. Matt Joras schreef op 2021-06-29 21:30: > Hi Ben, > > This issue in general, if I'm understanding you correctly, is solved > via the ALPN[1]. I.e., as part of the TLS handshake the server will be > able to know which application is being used. For example, "h2" > corresponds to HTTP/2 and "h3" corresponds to HTTP/3. Also note that > there are no standardized mappings of HTTP over QUIC except for the > currently-pending HTTP/3 specification. Future versions of HTTP over > QUIC would also be distinguished via ALPN, presumably. > > Best, > Matt Joras > > [1] https://datatracker.ietf.org/doc/html/rfc7301 > > On Tue, Jun 29, 2021 at 12:11 PM <ben=40yocto.nu@dmarc.ietf.org> wrote: > >> Hello all, >> >> When reading about QUIC, it comes to me as a better alternative of >> TCP, build upon UDP. >> In this case, servers that run on TCP could easily also run on >> UDP/QUIC; think about DNS, SMTP, FTP. >> >> Now there is also a new version of HTTP. HTTP/3. This version will be >> transfered over QUIC by default. >> However, as I mentioned above, it could be possible to have "TCP >> protocols" that use QUIC too. >> That makes me think about also transfering some old HTTP versions, >> for example HTTP/0.9 (I came across a library that transfered >> HTTP/0.9 over QUIC). >> But also HTTP/1.0, HTTP/1.1 and HTTP/2 are possible. >> >> All older HTTP versions send the following request line: <METHOD> >> <PATH> [VERSION] \n If an endpoint is directly accessed (without some >> negotiation), it will find out the version directly by reading the >> first line. >> For 0.9 the version will be absent. For 2.0 this will be a preface >> with a PRI method and * as path. >> >> When I think about running a HTTP server, I think about this: >> >> TCP (80) or TCP/SSL (443): >> - HTTP/0.9 >> - HTTP/1.0 >> - HTTP/1.1 >> - HTTP/2.0 >> - HTTP/3.0 (I think this is possible too) >> >> UDP/QUIC: >> - HTTP/0.9 (HTTP/0.9 but over QUIC) >> - HTTP/1.0 (HTTP/1.0 but over QUIC) >> - HTTP/1.1 (HTTP/1.1 but over QUIC) >> - HTTP/2.0 (HTTP/2.0 but over QUIC) >> - HTTP/3.0 (Default) >> >> However, if I listen for all versions on my HTTP-QUIC server, how am >> I supposed to know that it is HTTP/3? Does HTTP/3 has a preface? And >> if not, why not? >> I think the preface of HTTP/2 is great and I think it would be great >> in >> HTTP/3 too: PRI * HTTP/3.0 >> >> I would like to see a preface added to HTTP/3.0. It is only 18 extra >> bytes at the beginning of the request. It could be ignored by some >> servers if they want, but for servers that want to have backwards >> compatibility it would be a great feature. (Luckily HTTP/3 is not a >> released standard yet.) >> >> Ben
- Re: HTTP/3 Preface (PRI method) Matt Joras
- HTTP/3 Preface (PRI method) ben
- Re: HTTP/3 Preface (PRI method) Nick Harper
- Re: HTTP/3 Preface (PRI method) ben
- Re: HTTP/3 Preface (PRI method) Ryan Hamilton
- RE: HTTP/3 Preface (PRI method) Mike Bishop
- Re: HTTP/3 Preface (PRI method) Roberto Peon
- Re: HTTP/3 Preface (PRI method) ben
- Re: HTTP/3 Preface (PRI method) Piers O'Hanlon