Re: HTTP/3 Prioritization: kickstarting the discussion (again)

Nick Harper <nharper@google.com> Mon, 08 July 2019 23:39 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 AF304120310 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 8 Jul 2019 16:39:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.251
X-Spam-Level:
X-Spam-Status: No, score=-10.251 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] 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 fBhIr1j2hagM for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 8 Jul 2019 16:39:25 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [IPv6:2603:400a:ffff:804:801e:34:0:38]) (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 3D03812035F for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 8 Jul 2019 16:39:23 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1hkdBq-0005Zo-6y for ietf-http-wg-dist@listhub.w3.org; Mon, 08 Jul 2019 23:36:58 +0000
Resent-Date: Mon, 08 Jul 2019 23:36:58 +0000
Resent-Message-Id: <E1hkdBq-0005Zo-6y@frink.w3.org>
Received: from uranus.w3.org ([128.30.52.58]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <nharper@google.com>) id 1hkdBo-0005ZB-SE for ietf-http-wg@listhub.w3.org; Mon, 08 Jul 2019 23:36:56 +0000
Received: from www-data by uranus.w3.org with local (Exim 4.89) (envelope-from <nharper@google.com>) id 1hkdBo-0004w1-LO for ietf-http-wg@listhub.w3.org; Mon, 08 Jul 2019 23:36:56 +0000
Received: from titan.w3.org ([2603:400a:ffff:804:801e:34:0:4c]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <nharper@google.com>) id 1hkciH-00062w-6d for ietf-http-wg@listhub.w3.org; Mon, 08 Jul 2019 23:06:25 +0000
Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from <nharper@google.com>) id 1hkciF-0006XX-BL for ietf-http-wg@w3.org; Mon, 08 Jul 2019 23:06:25 +0000
Received: by mail-ot1-x332.google.com with SMTP id j19so17982252otq.2 for <ietf-http-wg@w3.org>; Mon, 08 Jul 2019 16:06:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hHe9RJ9sYOjavke9snCHNq6mFYKVDNFwCe1nIkmf3vQ=; b=GmGBMsYU/Y7pgN5K7CfVRwHL8HcNbxAIkPT5togpvKsz/NxsQApxGHOWkDUuUxQIYf /nggIaEpLzgr33DymCK09QSymDq1+Ny+S7rMFmdKYYFRfrMB2fdTT0TDvIsNyf+cuf8D 4F2Dd7xt2E284WyEt7/rkGXVkp9+lKFzxFIkirYKIqx2jzYk+ez8OJKD3AtJ7jeGzMsX 7SkX0S0WZ11BWTtU9qfnttApyJ+i4AWwVNSfzVVL0O4v1ZVDdkIgj4DvJZH28RgQ6jrj PuUYxykxs3zVuv3Z18DwsSgp8JzOqqMQ0XuH9G9iSRJ8mWg5RF2+AU0CKTDRUZLUv5jp CP+w==
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=hHe9RJ9sYOjavke9snCHNq6mFYKVDNFwCe1nIkmf3vQ=; b=Y02zcbcpABOnNtcl+XdML/i8895V1XJl6GhQmn0e6yiME3X1SWDF5XflvfvHMFcQZh 21pqn8spRg71BTxmxr4ELLZYi/cOzHp019tQ1aCgu8mQOZdxC/xfZlk9imdYespINmLW vhBOEf+175BoRKLk7nI7g5STX6OiAn3+XqPebZzT0GdzHqcRA4pF0PomCslzpvi0BhnY WtpL4AkWp1uZQH/uPuoM2F+8m7NTuzaaqeRismTepOAXSFkuvJ27XbBcg27bOLvc8EL7 jEZvgSUVd5CKd+1zaYJBjabLSKCepv1rC3OJ444aFRTiKFlqxlUYaMDSLsLRg8WhoW0U tOVQ==
X-Gm-Message-State: APjAAAW9CJisqYOJNbuKazcvkYtonozlvkGr0YxsspoAhAjYiCE7oPXJ PxWuxEOSLR2y5SzdGLMcVTgPqc5hp7y9f4CPLJP4Cg==
X-Google-Smtp-Source: APXvYqwM0CY9e1LfVk1mFqLDZFAgafyKS3tW048ki+XqWmKzA+8mQ4xPCZWvulo/wtnvA8aSs/1qrDXKY5tRBMcUKMc=
X-Received: by 2002:a05:6830:1303:: with SMTP id p3mr16921715otq.267.1562627161762; Mon, 08 Jul 2019 16:06:01 -0700 (PDT)
MIME-Version: 1.0
References: <CAC7UV9YW5xFc+C28QtLBfDOPcLZ+DEViR__GRuc9Kx8GhUaYOg@mail.gmail.com> <CAJV+MGxBwsm1N9UsSQQihBk8o1FYcObOObGkneSr3QN3tqWqoA@mail.gmail.com>
In-Reply-To: <CAJV+MGxBwsm1N9UsSQQihBk8o1FYcObOObGkneSr3QN3tqWqoA@mail.gmail.com>
From: Nick Harper <nharper@google.com>
Date: Mon, 08 Jul 2019 16:05:50 -0700
Message-ID: <CACdeXi+HpXH0qEtehp8FDJp3Ydi3Z2eiP9ZjQLR1CgR0Lh1JUA@mail.gmail.com>
To: Patrick Meenan <patmeenan@gmail.com>
Cc: Robin MARX <robin.marx@uhasselt.be>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="000000000000e50a91058d337c12"
Received-SPF: pass client-ip=2607:f8b0:4864:20::332; envelope-from=nharper@google.com; helo=mail-ot1-x332.google.com
X-W3C-Hub-Spam-Status: No, score=-19.6
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, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1hkciF-0006XX-BL 8f44a4ef62f20e129806cc02ad1d83cb
X-caa-id: 55d8e4e914
X-Original-To: ietf-http-wg@w3.org
Subject: Re: HTTP/3 Prioritization: kickstarting the discussion (again)
Archived-At: <https://www.w3.org/mid/CACdeXi+HpXH0qEtehp8FDJp3Ydi3Z2eiP9ZjQLR1CgR0Lh1JUA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/36766
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>

I'm in favor of a simpler approach for H3 priorities, and something like
Patrick Meenan's proposal sounds good. I like the simplicity and
statelessness of that proposal. I don't foresee any issues with
implementing it in Chrome, nor do I see any issues with needing to maintain
separate priority implementations for H2 vs H3.

I would prefer that a simpler proposal be the default (MTI) priority scheme
used in H3. If there are applications that need the full expressivity and
complexity of the H2 or draft-20 tree based approach to priorities, I think
that would be better suited to an extension.

On Wed, Jul 3, 2019 at 9:30 AM Patrick Meenan <patmeenan@gmail.com> wrote:

> I don't know if we want it as an explicit goal but one of the main reasons
> for my initial alternative proposal was that it is stateless which makes it
> easier for application logic outside of the connection-owning code to
> reason about and influence prioritization. That can always be handled by a
> translation from something proprietary into a tree at the actual connection
> but having both sides speak the same stateless model makes it a lot
> cleaner.
>
> On Wed, Jul 3, 2019 at 12:11 PM Robin MARX <robin.marx@uhasselt.be> wrote:
>
>> Hello everyone,
>>
>> As I expect most of you know, there has been quite a bit of talk over at
>> the QUIC / HTTP/3 working group recently on what to do with the dependency
>> tree / prioritization system from HTTP/2 in H3.
>>
>> There are two major issues:
>> - There a a few subtle HOL-blocking issues in porting the system to H3
>> due to the way streams work in QUIC
>> - Quite a few people feel H2's approach is overly complex and can/should
>> be simplified
>>
>> For now, the QUIC wg has taken the stance to try and stay as close to H2
>> as possible (e.g., exclusive priorities had been removed before, but are
>> now back in the editor's draft of HTTP/3).
>> The QUIC wg wishes to see more real implementation experience and
>> experimental results for new proposals before considering them. It also
>> feels this issue is best discussed in the httpbis wg. And thus we come to
>> this email.
>>
>> We have been recently running some prioritization experiments for a
>> variety of schemes and proposals using our own HTTP/3 implementation in the
>> Quicker project.
>> We have discussed our findings in a paper, which you can find in
>> attachment and also on https://h3.edm.uhasselt.be.
>>
>> The paper attempts to provide a rather extensive discussion of the issues
>> with H2's setup, H3's approaches so far and the alternative proposals that
>> have been made.
>> As I appreciate not everyone has the time to read all of that, our main
>> findings are:
>>
>> 0) The current proposal (which should be "draft-21" soon) for HTTP/3
>> works well in practice, though the semantics of the "orphan placeholder"
>> might still need to be tweaked a bit.
>>
>> 1) Simpler setups are also perfectly viable.. The main contender, from
>> Patrick Meenan (
>> https://github.com/pmeenan/http3-prioritization-proposal/blob/master/README.md)
>> would be a good candidate for this.
>>
>> 2) However, there is no single scheme that produces ideal results for all
>> web pages (e.g., the scheme that is best for page A can perform really
>> badly for page B). So dropping everything for a single, simpler approach is
>> potentially sub-optimal. Similarly, the current approach of browsers of
>> just using a single scheme for all pages might need revision.
>>
>> 3) Ideally, we should thus allow the scheme to be tweaked per-page,
>> either via a mechanism where the server indicates the optimal scheme to the
>> client (which we propose in the paper), or where the client communicates
>> additional metadata to the server (e.g., resource is blocking/non-blocking,
>> can be processed progressively, ...) to make server-side prioritization
>> easier (Kazuho Oku is working on a proposal for this, but doesn't feel it's
>> ready to share here yet).
>>
>>  4) In order to make progress on H3, it's probably best to stick with the
>> draft-21 approach (potentially with a few more small tweaks) and define a
>> new approach as an extension or implement it at the higher HTTP layer
>> (i.e., as HTTP headers, rather than H3 frames). However, would that then
>> find enough adoption fast enough...
>>
>> While I'll be the first to admit our study isn't terribly extensive or
>> fully realistic (we tested 40 pages in lab settings without a real
>> browser), I still feel our results are enough to have a basis to continue
>> the discussion on. We of course encourage others to share their results as
>> well.
>> Some more background information can be found here as well:
>> https://github.com/quicwg/wg-materials/blob/master/interim-19-05/priorities.pdf
>>
>> I'm a bit unsure what the best questions are to ask at this point, but
>> some attempts:
>> - Are implementers willing to implement 2 completely different approaches
>> (1 for H3, 1 for H2)?
>> - Are (browser) implementers willing to consider supporting multiple
>> schemes (specific trees)?
>> - Are (server) implementers willing to create/support more complex
>> (user-driven) server-side prioritization config/APIs?
>> - How important is it to move to a simpler (and thus less flexible)
>> setup?
>> - Should this be a blocker for HTTP/3 or not?
>>
>> Looking forward to your feedback.
>> With best regards,
>> Robin
>>
>> --
>>
>> Robin Marx
>> PhD researcher - web performance
>> Expertise centre for Digital Media
>>
>> T +32(0)11 26 84 79 - GSM +32(0)497 72 86 94
>>
>> www.uhasselt.be <http://www.uhasselt..be>
>> Universiteit Hasselt - Campus Diepenbeek
>> Agoralaan Gebouw D - B-3590 Diepenbeek
>> Kantoor EDM-2.05
>>
>>
>>