Re: [Webtransport] Use of HTTP priorities in WebTransport

Ian Swett <ianswett@google.com> Fri, 23 April 2021 21:02 UTC

Return-Path: <ianswett@google.com>
X-Original-To: webtransport@ietfa.amsl.com
Delivered-To: webtransport@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 193903A0C3A for <webtransport@ietfa.amsl.com>; Fri, 23 Apr 2021 14:02:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.6
X-Spam-Level:
X-Spam-Status: No, score=-17.6 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, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_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 H4zW9q_c2IWb for <webtransport@ietfa.amsl.com>; Fri, 23 Apr 2021 14:02:52 -0700 (PDT)
Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7D92B3A0C38 for <webtransport@ietf.org>; Fri, 23 Apr 2021 14:02:52 -0700 (PDT)
Received: by mail-wr1-x436.google.com with SMTP id h4so40575734wrt.12 for <webtransport@ietf.org>; Fri, 23 Apr 2021 14:02:52 -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=3lweM+RoOLI7mDCIo29sBbFLQJdpDfKXGbcJzqKHxvQ=; b=wNE2PvGgFB3WKrZsAMfJZ5f4UQISeHUUTBHySMWddnOqz49Jdlbgu5FL1w13IogOXR 9BemQuL2tB0gWSFh7eRaJpaYFNpeLyF5Oks37MUMeZSBt5tp2jkYaBXrSU21SFf8wegW r2bx9lP3NTTT8PAtBQ3LjqAukxdM9Le9jv3OJPEOyK+VhYyzHVaYsVHfb2aP3ohS83c+ ZVLPJ/uRvOROPMMwXdRsuie+0ASCzXTbfsElINoiTKKF12A6+X03nJ0n7PwnMW35zsMQ FbzwHzdegeKxCYOWATN1jBmmZuwfWEwuusjqH8P7BvkPL/nsNTtnpF5qc+rogVNWm85G AZGA==
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=3lweM+RoOLI7mDCIo29sBbFLQJdpDfKXGbcJzqKHxvQ=; b=QSpAfDOvegiTewgYO621j5UOUEIZZbrbqT4R8iEA3mprkv6OcGOvwQhkUz5kYmch0b XL/zpkx/G8CfOkQfCVGL+nsJ84NZUBKBqhFte0BF3zJ9A3deLYwAajcin8pT/QOnFTg8 PvF6mzn8EJGwuyIRk3/AHfxeCwsjpOGTOo56tvYbv7kZmBHo2bVsw7HpbjWaDK/JIdLM kM++64NUEAfQPln/fJeDjNw0x2SAq1lx1e37Xoq62c+AmJ4Am9pKb4c126EN937KkXeF D+KjoJqf5rjXy3p6a+XJvuyrTHBYPCLR2sA1Ms1Xwd/Z2nbaakKwC4UCrQRMwqGCMlJC 9n7w==
X-Gm-Message-State: AOAM530z1Pv+vhGSmAbEGAPyx7l2EcdH5SxYOOc4ZVdLCtpo+i82O3+9 2zHWQ5+VSpJ+4tsKmE3bhzrQQLbxSNSFsIVhy06UwQ==
X-Google-Smtp-Source: ABdhPJxfr0tdLZjvEbEfrTnIbkD2e7dxc2cYWhQ3+xVkQsWNIdF3G9fbcCdvCUN1DaF/4uRVhzhjgQR/9X1Jlajb+oE=
X-Received: by 2002:a5d:524d:: with SMTP id k13mr7195048wrc.113.1619211765619; Fri, 23 Apr 2021 14:02:45 -0700 (PDT)
MIME-Version: 1.0
References: <CAKcm_gOMcFYF2YROhsbVW15Q+tnWfwGsHhrjxQwq1jJAyvLvVQ@mail.gmail.com> <CALGR9obOXRk=ZxL8Sj9zhsP-wQyv_09doZuzfCSRzquw4CZFYw@mail.gmail.com> <CAHVo=Zmo0Nta92_Ub0m8v6+=hjQ1iR6R9Aa==fe_-VXkhJEJYQ@mail.gmail.com>
In-Reply-To: <CAHVo=Zmo0Nta92_Ub0m8v6+=hjQ1iR6R9Aa==fe_-VXkhJEJYQ@mail.gmail.com>
From: Ian Swett <ianswett@google.com>
Date: Fri, 23 Apr 2021 17:02:32 -0400
Message-ID: <CAKcm_gN9Ro1+ceNd_Q80oLF6Su6LiqV7UV4zN_g6Fz1K_6e4jg@mail.gmail.com>
To: Luke Curley <kixelated@gmail.com>
Cc: Lucas Pardue <lucaspardue.24.7@gmail.com>, WebTransport <webtransport@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000001b786305c0aa1ef7"
Archived-At: <https://mailarchive.ietf.org/arch/msg/webtransport/s1QXOuqFbdnbEZDtI97bddflmsY>
Subject: Re: [Webtransport] Use of HTTP priorities in WebTransport
X-BeenThere: webtransport@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <webtransport.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/webtransport>, <mailto:webtransport-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/webtransport/>
List-Post: <mailto:webtransport@ietf.org>
List-Help: <mailto:webtransport-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/webtransport>, <mailto:webtransport-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 23 Apr 2021 21:02:57 -0000

(sorry for the delay, now caught up from leave)

I agree this is potentially more of a W3C issue to standardize an API than
an IETF issue.

I agree that most of this information would not be sent on the wire, but as
we add functionality to HTTP(ie: WebTransport and MASQUE), it becomes
increasingly important to understand how prioritization might work.
Ideally no explicit signals are necessary and each endpoint knows what to
do, and we can fit WebTransport(and MASQUE) into the existing scheduler so
when multiplexed, there's no ambiguity about what implementations should
send first?

My concern is if there are no rules or APIs for prioritization, different
implementations may make different choices, and the more things which are
multiplexed on a single connection, the more important it becomes.

Ian

On Mon, Apr 5, 2021 at 3:47 PM Luke Curley <kixelated@gmail.com> wrote:

> I think stream prioritization is an important next phase for WebTransport.
> But like Lucas mentioned, I'm not sure it needs to be handled at the
> transport layer.
>
> Currently, the server can prioritize sending stream data based on any
> scheme it wants. The browser could inform the server which prioritization
> scheme to use for a given stream, but I think that use-case can be
> negotiated at the application level instead.
>
> The browser definitely needs an API for prioritizing sending stream data
> though and a simple scheme like the priorities draft would be a good
> starting point.
>
> On Thu, Apr 1, 2021 at 4:40 PM Lucas Pardue <lucaspardue.24.7@gmail.com>
> wrote:
>
>> Hey Ian,
>>
>>
>> On Thu, Apr 1, 2021 at 6:01 PM Ian Swett <ianswett=
>> 40google.com@dmarc.ietf.org> wrote:
>>
>>> Now that WebTransport is targeted at HTTP/3 and not QUIC, it seems
>>> logical to build on the prioritization work in the HTTP priorities draft(
>>> draft-ietf-httpbis-priority
>>> <https://tools.ietf.org/html/draft-ietf-httpbis-priority-03>).  This
>>> could be particularly important when pooling HTTP/3 with WebTransport, but
>>> I think that priority model is a good one for WebTransport by itself as
>>> well.
>>>
>>> Except for bidi streams, most of this priority information wouldn't need
>>> to be sent on the wire, but it could be used by local schedulers.
>>>
>>> Thoughts?
>>>
>>
>> The HTTP priorities draft is very specific in that it defines an
>> asymmetric signal from client to server. So I'm curious how you picture it
>> applying to WebTransport. You're right, the general prioritization scheme
>> might be a good fit but I'd like to understand the requirements better. Is
>> it only a local priority configuration from the send side? In which case,
>> this seems like a W3C API issue. Or is the requirement to support sending
>> priority signals that instruct the peer to do something too? The hardest
>> case to solve is a server-initiated bidi stream that wants to signal a
>> priority to the client. Since WebTransport over HTTP/3 is an extension, you
>> might get away with changing the rules for PRIORITY_UPDATE. You could
>> define a new frame that carries the same information, or include it in the
>> WebTransport stream itself somehow.
>>
>> Cheers,
>> Lucas
>> --
>> Webtransport mailing list
>> Webtransport@ietf.org
>> https://www.ietf.org/mailman/listinfo/webtransport
>>
>