Re: Priority signals in HTTP/2

Cory Benfield <cory@lukasa.co.uk> Fri, 18 December 2020 09:37 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 225823A11EC for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 18 Dec 2020 01:37:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.648
X-Spam-Level:
X-Spam-Status: No, score=-7.648 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_HI=-5, 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=lukasa-co-uk.20150623.gappssmtp.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 uBFfhMJ9HHgE for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 18 Dec 2020 01:37:43 -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 47B2D3A11EA for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 18 Dec 2020 01:37:42 -0800 (PST)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1kqCBy-0001GN-Cp for ietf-http-wg-dist@listhub.w3.org; Fri, 18 Dec 2020 09:36:54 +0000
Resent-Date: Fri, 18 Dec 2020 09:36:54 +0000
Resent-Message-Id: <E1kqCBy-0001GN-Cp@lyra.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <cory@lukasa.co.uk>) id 1kqCBx-0001FW-96 for ietf-http-wg@listhub.w3.org; Fri, 18 Dec 2020 09:36:53 +0000
Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by mimas.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <cory@lukasa.co.uk>) id 1kqCBs-0003AR-5G for ietf-http-wg@w3.org; Fri, 18 Dec 2020 09:36:53 +0000
Received: by mail-lf1-x134.google.com with SMTP id l11so3869689lfg.0 for <ietf-http-wg@w3.org>; Fri, 18 Dec 2020 01:36:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lukasa-co-uk.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=5GUG9jbKKIzhjbO/72QY0ZTMvIRR4GM2HflffeKneYc=; b=DVD/cL49mxw5vHMEndCSIbAJmFt4gYbDcyqApi9lr2lNIVWFYldwQSoVaG0Vo9yemM UaIcxl7ttgqVoTJHmwjmOs1b8MNtjOclavFqiUiAi4RCrKPIjHZCBL0Z1WMCSU4KPhx8 3MNr/view8VkdxY36s/AQhCx7rksSLJ9ZT/JHKUdgKx0XGYB1jYRxaZLnXG4cvGgX+Tl Q7OeetAtzf/jxjoYbgwCCwXXvM14krSv+oAxn/vo1fLtpSTYC1SpFmakqK9bXrvVCN9h MLvU9mUi2lm4O1pgNJ5LWZYkekTTL6Zb+8Qvxx5M9mqFjZzcmLRSzwPiSuqFDwK1VWEi /oYw==
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:content-transfer-encoding; bh=5GUG9jbKKIzhjbO/72QY0ZTMvIRR4GM2HflffeKneYc=; b=dKneletm5jqnpWjM40shs9/4hwcq053gYHsfaAqmr4zYAHr/iPr0i/0uqV0kE+J8Eg GkjcyOXLf8n+eWNRmDmEYGmNJDLObXgs0UfOHGO5RsffzO08zk/CvNRqzbNZ/pmyQOKO /dOjfN+rNpIkC7wJc5vMFzzvRuzs30XQgmWgK2YF99FibUAMrTKrbduSdyh41T7fLgnt eC5w1Ddf3YUYbSxU1Ue/7jvdjarXjZBmhorUKM48Yy+tiuLExj7bQxdhFziN/eQQ95ox iVJvrzhhqzTM/Aojxfa6X+8C0xqFeXQwFRZ9nZKvTbu5UbHsI470hkVPr0oMKtq93D3e rAxQ==
X-Gm-Message-State: AOAM531soBynzxMXi5H+0GuT8Ppk2OsyMNs+ts1EQI7zwatjeE75YkLR 0glTA3U8nmrThfHIIXQtKCm/m+PHVXpd+qpnuJSMfVYflw8=
X-Google-Smtp-Source: ABdhPJxvmQS2cKU7cT/YtJV98qxliBy2L22chS08pO2vGvjTiDZx0ctEWD2ApyuVZi4E2e0QX0nX+MdB28OWooCh4Qg=
X-Received: by 2002:ac2:47fb:: with SMTP id b27mr1144782lfp.548.1608284196590; Fri, 18 Dec 2020 01:36:36 -0800 (PST)
MIME-Version: 1.0
References: <32bc8d5e-23c9-412e-84a5-5f153e827c33@www.fastmail.com>
In-Reply-To: <32bc8d5e-23c9-412e-84a5-5f153e827c33@www.fastmail.com>
From: Cory Benfield <cory@lukasa.co.uk>
Date: Fri, 18 Dec 2020 09:36:25 +0000
Message-ID: <CAH_hAJFK_pRTBCbQKvs6hiHQERG7nHBb+KDpuLX9FFLRYO1SAQ@mail.gmail.com>
To: Martin Thomson <mt@lowentropy.net>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=cory@lukasa.co.uk; helo=mail-lf1-x134.google.com
X-W3C-Hub-Spam-Status: No, score=-3.9
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1kqCBs-0003AR-5G f8b401ba0043d733a9f310dcb9d513d3
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Priority signals in HTTP/2
Archived-At: <https://www.w3.org/mid/CAH_hAJFK_pRTBCbQKvs6hiHQERG7nHBb+KDpuLX9FFLRYO1SAQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/38322
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 think this looks like a reasonable approach to me.

On Fri, 18 Dec 2020 at 02:26, Martin Thomson <mt@lowentropy.net> wrote:
>
> Now that we're official, I'd like to get started on some of the more difficult pieces: priority.
>
> I wrote up a proposed plan for dealing with the priority signaling in RFC 7540 here: https://github.com/httpwg/http2-spec/issues/773#issuecomment-725285414
>
> What do people think about this general approach (quoting):
>
> 1.    Cut the section with the detailed explanation and replace it with some explanatory text about the importance of having prioritization in a multiplexed transport (though not necessarily signaling thereof).
>
> 2.    Explain that this document used to define a priority signaling scheme, but that the one that was defined was unsuccessful.
>
> 3.    In that section recommend against using the priority signaling scheme from RFC 7540, but explain that other endpoints that you talk to might send these frames.
>
> 4.    Point to the new signaling system if that is mature enough (and probably even if it is not).
>
> 5.    Suggest, but not recommend, that servers pay attention to priority signals using these old mechanisms in the absence of other signals. This might take a little careful wording, but it's probably enough to caution that ignoring signals might degrade performance and some signals might be better than none. Point to RFC 7540 for the details of how the old scheme works.
>
> 6.    Leave the definition of the frame type intact, but cut the definitions right down to just the necessary pieces sizes, names, and any mandatory processing (error handling, sizes, ranges, the hard stuff). This should ensure that people are able to do things like generate the right error codes and skip over the HEADERS frame pieces properly.
>
> 7.    Leave text about when PRIORITY can be sent in the state machine. This is important for interoperating with endpoints that generate the frame.
>
>
>