Re: 0-RTT Design for HTTP/2

David Schinazi <dschinazi.ietf@gmail.com> Wed, 16 December 2020 12:34 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@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 B84A13A0A97 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 16 Dec 2020 04:34:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.747
X-Spam-Level:
X-Spam-Status: No, score=-2.747 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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 liAIEYhPalLQ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 16 Dec 2020 04:34:56 -0800 (PST)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (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 7FC2E3A0AA1 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 16 Dec 2020 04:34:52 -0800 (PST)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1kpW0u-00067p-Ky for ietf-http-wg-dist@listhub.w3.org; Wed, 16 Dec 2020 12:34:40 +0000
Resent-Date: Wed, 16 Dec 2020 12:34:40 +0000
Resent-Message-Id: <E1kpW0u-00067p-Ky@lyra.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <dschinazi.ietf@gmail.com>) id 1kpW0t-000673-6M for ietf-http-wg@listhub.w3.org; Wed, 16 Dec 2020 12:34:39 +0000
Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by titan.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <dschinazi.ietf@gmail.com>) id 1kpW0r-00046o-7Q for ietf-http-wg@w3.org; Wed, 16 Dec 2020 12:34:39 +0000
Received: by mail-pf1-x42f.google.com with SMTP id c12so16484727pfo.10 for <ietf-http-wg@w3.org>; Wed, 16 Dec 2020 04:34:36 -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=vx5eWEZCTwTT594edWVP1/E+j9jmismtXgITMj4UuVE=; b=W34VihUlE3ewydLyXb2Ee9sfnMJMUZECF370/Fl86/gY0ISUk7Xz8isURO/JlXL/uJ dnlrEt5xxVRz36e+bJC6ToJtQuPK5DPu81QkMISFpfZeA0knnAK4nJ/98jK0nQSnXicp g3mOzTDl+A3/Waa0lH8X7jkMJl7+ZZJklzMSuMu/qyHWqIThFlqU0Ya/62R6HU0syAJV ILgCakmeEvYAjKoHjCNG4oRDORHSxL2MS7OuCvlyLSZ5xjCDaaIsjEpyO738lGGWlMbV JrxsX9d2uvmKuV6PgSBN21mPpQ44bIuopFKYSs5nLO9liDrlbvnyuEU67iOek2lT0ELu PX7Q==
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=vx5eWEZCTwTT594edWVP1/E+j9jmismtXgITMj4UuVE=; b=dolsfJhgaSezCH1prpeiWI7BNEiT3CBnLv97m7XzQeELYGHBl2bJXdds10ARFXx9S/ xz/kNmrb85sL1DG4IBinCbGpjmS0yAAMqIY4WcrzcQ4A13pd0BEUWWabanUc5tnd6/+7 pPGd05Z7KO69SAZE/vx/5UFrHQ59HxsCZFzp6CseH9wCCkkR0sdZk5u+6xHRZMazSki+ xunvHEKwiwM3O30K6q7JdMgqaErpGnW1pUxXRKlx4Qq9E6sZO3MCY86h3F5TFM9Xm84m lCJB1Wn2T3shHC14AoW7ubIFplw9EJtgXdWfwplly6ULyi5/fpzKV/MeNii7uiYwx4bC eq9g==
X-Gm-Message-State: AOAM530WKQ9FRHsIxveMTRaIw4nBT7qJpMbe6E1yzYcXnn4yOxFoX/z2 Ohr36JIDRczbJ+rmxRO0l4C2n9co59L/ARNgfvs=
X-Google-Smtp-Source: ABdhPJwsXKPXMuxx6HkazIYoXfvOlybtX9tJDnt4FWpTuCvYQsy01hg0A0VrAVUGqcquoxg5C+xka8Htp4oKvE0b488=
X-Received: by 2002:a63:b1c:: with SMTP id 28mr33159689pgl.206.1608122065724; Wed, 16 Dec 2020 04:34:25 -0800 (PST)
MIME-Version: 1.0
References: <126ee381-7828-451f-865a-db6357928243@www.fastmail.com> <CAH_hAJEmDzfsQQ_V9vpFkGAZcXHtfKzfSDM0r6WJERb6y0_qMA@mail.gmail.com> <CAKcm_gP=2uix9wd_uOw9JgR2OeobNPAdR4s7Sp=r6CEUEng58g@mail.gmail.com>
In-Reply-To: <CAKcm_gP=2uix9wd_uOw9JgR2OeobNPAdR4s7Sp=r6CEUEng58g@mail.gmail.com>
From: David Schinazi <dschinazi.ietf@gmail.com>
Date: Wed, 16 Dec 2020 04:34:14 -0800
Message-ID: <CAPDSy+55brsH9c_RkvmjzFX6CmKu10go2_G-w2Ub=iO2LZjpbQ@mail.gmail.com>
To: Ian Swett <ianswett@google.com>
Cc: Cory Benfield <cory@lukasa.co.uk>, Martin Thomson <mt@lowentropy.net>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="0000000000007ba87205b69418de"
Received-SPF: pass client-ip=2607:f8b0:4864:20::42f; envelope-from=dschinazi.ietf@gmail.com; helo=mail-pf1-x42f.google.com
X-W3C-Hub-Spam-Status: No, score=-6.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1kpW0r-00046o-7Q 9b488cd01e7b9f1791167acdd95a6421
X-Original-To: ietf-http-wg@w3.org
Subject: Re: 0-RTT Design for HTTP/2
Archived-At: <https://www.w3.org/mid/CAPDSy+55brsH9c_RkvmjzFX6CmKu10go2_G-w2Ub=iO2LZjpbQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/38313
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: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hi,

If there's energy in the community to improve HTTP/2 SETTINGS,
I would personally prefer to direct that energy at also solving the
"not having SETTINGS when sending the first request" problem.
Once potential solution is ALPS [1]. Would it make sense to join
these two efforts to ensure we fix SETTINGS for good?

David

[1] https://tools.ietf.org/html/draft-vvv-tls-alps

On Wed, Dec 16, 2020 at 4:31 AM Ian Swett <ianswett@google.com> wrote:

> Thanks for writing this up.  I need to talk with others before being sure
> this is something we'd be interested in, but it seems likely.
>
> Before we get to that, one Q on deployability: Does the working group
> think enough of the ecosystem can handle this new EARLY_DATA_SETTINGS
> setting?  If no one sends it, even if they support the functionality, it
> sort of defeats the purpose.
>
> Ian
>
>
>
> On Wed, Dec 16, 2020 at 5:36 AM Cory Benfield <cory@lukasa.co.uk> wrote:
>
>> On Wed, 16 Dec 2020 at 07:15, Martin Thomson <mt@lowentropy.net> wrote:
>> >
>> > As part of our adoption call for HTTP/2 (reprise), I opened
>> https://github.com/httpwg/http2-spec/issues/781 regarding the use of TLS
>> early data.
>> >
>> > I thought that it might be worth the time to go through the exercise of
>> defining an extension to h2 that enabled saving of settings across
>> connections.  Here it is:
>> >
>> >
>> https://martinthomson.github.io/h2-0rtt/draft-thomson-httpbis-h2-0rtt.html
>> >
>> > For those who prefer text:
>> https://tools.ietf.org/html/draft-thomson-httpbis-h2-0rtt-00
>> >
>> > Though this is conceptually simple (indicate 1 if you are prepared to
>> remember settings), there are enough fiddly details here that I'm now
>> unsure whether it is worthwhile trying to roll into our revision of HTTP/2.
>>
>> I am somewhat nervous here about how many servers will implement this.
>>
>> Typical OSS server implementations have a somewhat arms-length
>> relationship with their TLS stack. This tends to mean they don't
>> actually know exactly when new session ticket messages were sent.
>> While this is not a hard limitation (OpenSSL has the requisite
>> functions) it's the kind of barrier to entry that could be quite
>> awkward. This may also lead to limitations in how many HTTP/2 stacks
>> go through the effort of implementing the extension.
>>
>> With that said, I'm sure that CDNs and browsers would, and that may be
>> enough.
>>
>> >
>> > I'm interested in what people think about this.  One of the major
>> criticisms of the current arrangement is the time it takes to learn that an
>> extension is available and this could help with that.
>> >
>> > Cheers,
>> > Martin
>> >
>>
>>