Re: HTTP/3 DATA_WITH_OFFSET frame

Dmitri Tikhonov <dtikhonov@litespeedtech.com> Thu, 18 February 2021 16:46 UTC

Return-Path: <dtikhonov@litespeedtech.com>
X-Original-To: quic@ietfa.amsl.com
Delivered-To: quic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 458113A1432 for <quic@ietfa.amsl.com>; Thu, 18 Feb 2021 08:46:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=litespeedtech-com.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 Z9RkXmwC8-K5 for <quic@ietfa.amsl.com>; Thu, 18 Feb 2021 08:46:58 -0800 (PST)
Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) (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 DB2823A13AC for <quic@ietf.org>; Thu, 18 Feb 2021 08:46:57 -0800 (PST)
Received: by mail-qk1-x733.google.com with SMTP id m144so2667933qke.10 for <quic@ietf.org>; Thu, 18 Feb 2021 08:46:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=litespeedtech-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=cT+jEmQfBayHgT00WdnSGmyoQDCM4+JMOvz6ac1cJaY=; b=eNW3K0Tur5Z1JKuTLAoCf4OXu56JdKklqGR5ISEUaa8eFX4N+Rmr9meadvv+DJ2cQj FltD6NGFSu/U2JLf9tH8r7zWYd7JHB8sOiMWXYbLTTMp6Ty2LdMVVI1tvsw3wuqLd2WG UmPP6lI2bzjdAr1AQvkKKf5Hg94Mi2+JhAvzhoooxoYwcr8GN6YIfAY5K8bFrGmZznn4 pAoKFANu9qCTO2MIy/bJfeqRKO1sP7cefMuAhHXlAcrVO6/YE2TNcWXrn5TsqHePZGOI +m7YQKJZMiRCXDweq5LwbpHgcaNBFzRzYGwvex2I/mU3xzAeZsm0h1WIFPbgJ1WeW2kk OD0Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=cT+jEmQfBayHgT00WdnSGmyoQDCM4+JMOvz6ac1cJaY=; b=mb/AC0vJUdCQoMUxcVQui4MC4nf46Q+sPRy1+0XQVWqmId65KfNc+SeG3vJTnnNqwA uTOjU1ECpFXAdlJaa2+c7NN/zGAS1DPH2p2FKCh2wMCJt/zhTlvj189sYgArao3Th6EE qnO99AHXrB/SJpwc4isD2M1jdRlYVx3IgUvfmqG/f/96mxHK6w8O5EkrcUf2hU6q/RI/ X98SVBLuZbv2i1DJScFdBAqDTrZEkjTcAH8gUUygt9X41FPJSLsbXAdR+b+q5FZ9p1qE TMcS34EqnMVLLMEtYlTJrVW8mk4gEEdiRep8cIEEPAdyFOergkKu9NUUZ8yFI2JcjEUj yBRg==
X-Gm-Message-State: AOAM532Re4/16MmLGc2V2YVC0f3AiWHiWO/GHQwl2ez1a+jB8aqRwO1k w9LHhiyNLwiI7nxcJ8Im+cZS5g==
X-Google-Smtp-Source: ABdhPJxp28PxaB0x5t/Xutu2FDqOhBjmvII03ikkFcniUkNv3uuPtrcY8k1HZf+NEhB8LlWyIAhy+Q==
X-Received: by 2002:a37:6116:: with SMTP id v22mr5224513qkb.38.1613666816803; Thu, 18 Feb 2021 08:46:56 -0800 (PST)
Received: from okhta (ool-44c1d219.dyn.optonline.net. [68.193.210.25]) by smtp.gmail.com with ESMTPSA id 12sm3704601qtt.88.2021.02.18.08.46.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Feb 2021 08:46:55 -0800 (PST)
Date: Thu, 18 Feb 2021 11:46:53 -0500
From: Dmitri Tikhonov <dtikhonov@litespeedtech.com>
To: Samuel Hurst <samuelh@rd.bbc.co.uk>
Cc: IETF QUIC WG <quic@ietf.org>, ietf-http-wg@w3.org
Subject: Re: HTTP/3 DATA_WITH_OFFSET frame
Message-ID: <20210218164653.GC145248@okhta>
Mail-Followup-To: Samuel Hurst <samuelh@rd.bbc.co.uk>, IETF QUIC WG <quic@ietf.org>, ietf-http-wg@w3.org
References: <5c96284e-ea35-0454-3c03-225e9bb5efd9@rd.bbc.co.uk> <20210218154857.GB145248@okhta> <e616643f-45ed-6e69-9390-aed452e8f59e@rd.bbc.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <e616643f-45ed-6e69-9390-aed452e8f59e@rd.bbc.co.uk>
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/BkjVg54VMG1fOU0MvjfuNRKyAnk>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Main mailing list of the IETF QUIC working group <quic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic>, <mailto:quic-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic/>
List-Post: <mailto:quic@ietf.org>
List-Help: <mailto:quic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic>, <mailto:quic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Feb 2021 16:46:59 -0000

On Thu, Feb 18, 2021 at 04:15:27PM +0000, Samuel Hurst wrote:
> On 18/02/2021 15:48, Dmitri Tikhonov wrote:
> 
> I have not implemented the latter yet, mostly because of a lack of time.
> This has primarily come out of our unreliable transport work around
> multicast, but it just so happens that with my familiarity with using
> multipart range request I figured that it could benefit there too.
> 
> In terms of actually implementing the multirange support, my personal
> approach would be to have the stream manage the retransmission and then

By retransmission, do you mean dropping overlaps that were already passed
up to the HTTP layer?

> pass this to a HTTP layer within whatever library I'm using (as that was
> my previous experience of playing with libraries like ngtcp2/nghttp3).
> The DATA_WITH_OFFSET offset header would then just replace whatever
> internal data counter I would have been using to synchronise the
> position in the HTTP representation with the position in the stream.
> This would then naturally skip ahead between ranges.

OK, so the HTTP layer would then have to figure out where HTTP/3 frame
headers are.  To do so, it still needs to find the frames in order based
on stream offsets and HTTP/3 frame lengths.

> With the inclusion of the offset field, a potential optimisation could
> be to not block the delivery of subsequent ranges while waiting for a
> retransmission on a previous range?

Yes, I get it.

> Which I think might tie into your next point...
> 
> > From Section 3:
> > 
> >  " The purpose of the "DATA_WITH_OFFSET" frame is only to assist in
> >  " locating a particular slice of data carried as part of an HTTP
> >  " message payload, and not as a means to send data out of order.
> >  " Senders MUST send data in order, i.e. with increasing values in the
> >  " Offset field.
> > 
> > Why proscribe such use?  This may be an avenue for innovation or
> > optimization.
> 
> I couldn't immediately think of any particular reason why an
> implementation would want to send data out-of-order, and the existing H3
> DATA frame must send in-order as it is tied to the stream frame to
> derive the offset within the given HTTP representation being
> transferred.

I don't know of a reason, either, but to me that does not mean that
this use must be forbidden.

> However, if there are realistic use cases in this regard
> then I'm more than happy to remove this proscription in a future version
> of the draft.

One theoretical use-case that comes to mind is that of a log file that
is being appended to.  The receiver wants to display the latest data
while downloading the whole file.  A new write to the growing file is
sent with higher priority.

  - Dmitri.