Re: Comments on Extensible Prioritization Scheme for HTTP

Lucas Pardue <lucaspardue.24.7@gmail.com> Thu, 31 March 2022 14:24 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 331013A19D6 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 31 Mar 2022 07:24:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.759
X-Spam-Level:
X-Spam-Status: No, score=-2.759 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.248, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, 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 5Y3ShJfdumNO for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 31 Mar 2022 07:24:44 -0700 (PDT)
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 608EA3A1888 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 31 Mar 2022 07:24:40 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1nZvgl-0005V2-I9 for ietf-http-wg-dist@listhub.w3.org; Thu, 31 Mar 2022 14:22:15 +0000
Resent-Date: Thu, 31 Mar 2022 14:22:15 +0000
Resent-Message-Id: <E1nZvgl-0005V2-I9@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 <lucaspardue.24.7@gmail.com>) id 1nZvgj-0005Tj-Ie for ietf-http-wg@listhub.w3.org; Thu, 31 Mar 2022 14:22:13 +0000
Received: from mail-qt1-f173.google.com ([209.85.160.173]) by titan.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <lucaspardue.24.7@gmail.com>) id 1nZvgi-0005VV-5v for ietf-http-wg@w3.org; Thu, 31 Mar 2022 14:22:13 +0000
Received: by mail-qt1-f173.google.com with SMTP id i4so21510116qti.7 for <ietf-http-wg@w3.org>; Thu, 31 Mar 2022 07:22:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Oru72pf7Lr2yZvoKLtT+nUYVD2IT+0JerUhZn9T5tZQ=; b=C+SZHJbSspc3Ty0gv6LySM5HYz+iqfrT78lp7ySnB0xk5K/4OmoOUwBC0WHXcmlQ4L XakZkrryM1V9KfouUcqw+HUihEk99VgVEroirtbj5PSS9TzZ5CMEMK9BMLk7fN0BlmK5 8CgrjfOWpG7Xvwn2BXgOcTTm5toO3/M8sUa4dBvRFOqzBWXWrlxY9YdNxAbM6YKfa4si FfWr+OhV4MGYsDt0RRsGc3f0lXVsQESFaq3eLsp77J24oNTPyKVmRWQ2T9vUuQa8L2hM aGQQD1l5omnTLqldSB2/9gQIQ6GXKijjD0NHi2cmgqwuJWPCHEIBtXVNM5+YzI4aGGty QtCw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Oru72pf7Lr2yZvoKLtT+nUYVD2IT+0JerUhZn9T5tZQ=; b=lPqND0j53s7ASNgs32WoOJKbP3u/J1luwBsDxD9u1wx2IU0HLa8OuH39FS6SPPa0bO yOJN3upMydRFGwpqdYqGrPCQo4j+jb1Xz+TnjzUbCWar6a3A9LI32T/mKvjk8VLtoVrp j195BMapHh4Mv9tQw8xrEqjvKjTmqYXlYEynJQpKUCpLSgJEzRrOTaUaNbPKGrUEb9OX MgKbhZsQqKAPWzBdaYnbFsi9rhw6JE/QBkcN/zwNC+T6AgHgjcL7wHxqZpdIOQkx3HU/ IVGGHB7xFkxSKetLXIaxlccodOjd4IvrtF/f4LYlefNBBCFlhQSN7aHGcS7tZVEx8gOH QrEg==
X-Gm-Message-State: AOAM533N2m0+crAqLsCijmYe4JnqyvlV8wwxJP5rG9zGZ/MYgx7z/+mz PcZ0Xj+Vlmkv6lFEf622pmrEexUASKf0WDJoLvqlVe0DX1U=
X-Google-Smtp-Source: ABdhPJyOV45//i0DtKjA81d0cdiTv4Jm2pG9w+QNP3jjyzAZOM9Zv+4pmAAJ095mXaDq+oA4SMq/0ZcEmtTYF/NkQTo=
X-Received: by 2002:ac8:5a55:0:b0:2e1:ce7f:2702 with SMTP id o21-20020ac85a55000000b002e1ce7f2702mr4479042qta.37.1648736461390; Thu, 31 Mar 2022 07:21:01 -0700 (PDT)
MIME-Version: 1.0
References: <YkU6IoXeg470P45G@xps13> <20220331070709.GE23808@1wt.eu> <YkWRelL/qO0qpzf3@xps13> <CALGR9oZsSVzw5XzPkGr7N30qyGVVKLJo7fd0_3tiRfzVuE4SLw@mail.gmail.com> <YkWwq0fAYDEK/XOM@xps13>
In-Reply-To: <YkWwq0fAYDEK/XOM@xps13>
From: Lucas Pardue <lucaspardue.24.7@gmail.com>
Date: Thu, 31 Mar 2022 15:20:50 +0100
Message-ID: <CALGR9obahaYemAfxPdTGJemSZHALDsMfEo=pb0rj5wAhG8rDbQ@mail.gmail.com>
To: Glenn Strauss <gs-lists-ietf-http-wg@gluelogic.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>, Kazuho Oku <kazuhooku@gmail.com>
Content-Type: multipart/alternative; boundary="0000000000001c079105db845f22"
Received-SPF: pass client-ip=209.85.160.173; envelope-from=lucaspardue.24.7@gmail.com; helo=mail-qt1-f173.google.com
X-W3C-Hub-DKIM-Status: validation passed: (address=lucaspardue.24.7@gmail.com domain=gmail.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-4.9
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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, W3C_AA=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1nZvgi-0005VV-5v 704e45486f861f3f18bbafca59cb0101
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Comments on Extensible Prioritization Scheme for HTTP
Archived-At: <https://www.w3.org/mid/CALGR9obahaYemAfxPdTGJemSZHALDsMfEo=pb0rj5wAhG8rDbQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/39932
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 Glenn,

Response inline

On Thu, Mar 31, 2022 at 2:46 PM Glenn Strauss <
gs-lists-ietf-http-wg@gluelogic.com> wrote:

> On Thu, Mar 31, 2022 at 01:06:45PM +0100, Lucas Pardue wrote:
> > It's noble to want a pattern but I don't think we have enough examples of
> > HTTP/2 extensions at the IETF to form consensus on one.
>
> My understanding is that communicating/negotiating feature support
> is among the raison d'être of HTTP/2 SETTINGS.
>

That depends on the case. For instance, extension frames can be sent
without any need of negotiation and we formally have ALTSVC (RFC 7838) and
ORIGIN (RFC 8336) that do it that way. Examples where settings have been
used are strictly where the HTTP/2 or HTTP/3 semantics have been changed,
such as extended CONNECT (RFC 8441), or the pending HTTP/3 DATAGRAM
setting, or WebTransport extensions to HTTP/2 and HTTP/3. All of these are
quite different in their needs, the advice in
https://httpwg.org/http2-spec/draft-ietf-httpbis-http2bis.html#section-5.5
holds but there are no clear patterns in my opinion.


> Communicating and negotiating features is not new.  For example, the
> *1977* RFC 731 for telnet has IAC WILL/IAC WONT and IAC DO/IAC DONT.
>

I don't see the relevance between telnet and HTTP/2 or HTTP/3.


>
> I believe that draft-ietf-httpbis-priority for PRIORITY_UPDATE has
> serious omissions in this regard -- communicating and negotiating
> use of the optional feature -- especially since the draft recognizes
> limitations of PRIORITY and proposes an alternative to provide
> substantially overlapping functionality.  For example:
>
>
> https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-priority-12#section-2.1.1
> makes an assumption which I find incorrect.
>
>    Similarly, if the client receives SETTINGS_NO_RFC7540_PRIORITIES with
>    value of 0 or if the settings parameter was absent, it SHOULD stop
>    sending PRIORITY_UPDATE frames (Section 7.1), since those frames are
>    likely to be ignored.
>
> My server (lighttpd) parses and discards PRIORITY frames, but I am
> planning on implementing the coarser, but simpler, PRIORITY_UPDATE,
> as well as supporting the proposed HTTP request header Priority.
> draft-ietf-httpbis-priority does not currently provide a clean way
> to communicate server HTTP/2 support preference for PRIORITY_UPDATE,
> but not PRIORITY, to the client.  Using HTTP/2 SETTINGS appears to
> me to be a simple and an appropriate place to communicate this.
>

We've been over this through the standardization process. There wasn't an
appetite to attempt to define a rich negotiation process for a
prioritization scheme. Instead, an HTTP/2 server that send
SETTINGS_NO_RFC7540_PRIORITIES=1 is most likely going to support Extensible
Priorities because there is nothing else. If at some future point somebody
decides they need a different priority scheme, they will probably have to
do work to figure out how it gets used. We don't need to spend effort today
trying to solve a problem that might never exist.

Cheers,
Lucas