Re: [Hls-interest] LL-HLS: status-code expected in the response to the PRELOAD request

Lucas Pardue <lucaspardue.24.7@gmail.com> Mon, 17 August 2020 23:38 UTC

Return-Path: <lucaspardue.24.7@gmail.com>
X-Original-To: hls-interest@ietfa.amsl.com
Delivered-To: hls-interest@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DD13E3A144F for <hls-interest@ietfa.amsl.com>; Mon, 17 Aug 2020 16:38:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.847
X-Spam-Level:
X-Spam-Status: No, score=-1.847 tagged_above=-999 required=5 tests=[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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable 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 oFYkx2zPtQAp for <hls-interest@ietfa.amsl.com>; Mon, 17 Aug 2020 16:38:29 -0700 (PDT)
Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) (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 1B1243A144D for <hls-interest@ietf.org>; Mon, 17 Aug 2020 16:38:29 -0700 (PDT)
Received: by mail-ej1-x631.google.com with SMTP id t10so19863170ejs.8 for <hls-interest@ietf.org>; Mon, 17 Aug 2020 16:38:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=I0DylxJR2P4q39EBeFF8yx7VwbfYkPr8Sd26c7hjAOQ=; b=SxK3r/fhoN5qM/cetukRwRwVJK/NWDcTNCySC4nRTquHSn8+ytmOQD9i0oGrmiigGu th6kMQBcN3I5kZd8JrXbdcwdW+kuFMzWmxQITuqtgp23PlzjuNtwlUGygBcLKbCWOCqX NFHcm3YF9QAJAuK3a+Kinpv7ModugtI//Pn5XaM74StAe9u5QnUNcpsNEcmb4w0AyEi/ /ux+0prf77rx8+QFC6R8++aQ+Jjotmk9xvj5UJU7CP3Ye2yW8wMQI7D250UVfDWduxIc d6shk4ueLXKITGAnr6h3XS6xwijtiy+gU+9OM8EFiPGma84XhP001o6v9rl82zsGFGDj Tp9g==
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=I0DylxJR2P4q39EBeFF8yx7VwbfYkPr8Sd26c7hjAOQ=; b=LLSD7a37h/L7TpO/pekN4oVXkg4s/C00o9zyXTK8KrlAx+puGaefM40aC9q9x9w0Qb qGj3SMSuqnNXX5NSxb3fOq0IATSaIVqfi1u0N/kaOUq9r+aamkcn6rFk5nItCTKEttaM 4f6kg+E0g1ONxsrefI5nNS/3hGzsHLVQuCDRlbvaUNN6NuMQ+9bGXmnHoOPf1O4FCoqn fc4Z7URkfSNQ0Va4rZZO8XmJLEQV9Wntr+HurV0PRkWS1prTDoYNdKc+MfdVH1Vx72If uYpxGDKnXOsCesQV65NWH7rrgWNJQxR9s+XbtUYMNIUZNaFyhk1KTQt3S2XA9X6b/N4g b1qQ==
X-Gm-Message-State: AOAM533MmDe6IvMWyXhsnKiIcEhZAcd02JbCDrdQ2cBLTzlhOKCmjXUU 8dZUjOiSX6OzLutc12Aesfc76u6eDBq+823IRoq6FeNlP/Q=
X-Google-Smtp-Source: ABdhPJxCP561UJCIR/eMBnsfzJMwkHI/x9Alwywe5VaG1oB5PzqF3gF5M5zwOBG1dNLmVncfCeLUb8N2oJkvsPDz0xE=
X-Received: by 2002:a17:907:20e6:: with SMTP id rh6mr17173535ejb.301.1597707502458; Mon, 17 Aug 2020 16:38:22 -0700 (PDT)
MIME-Version: 1.0
References: <05DC4355-8B2D-4A1F-A223-7B4E9DE1EF63@akamai.com>
In-Reply-To: <05DC4355-8B2D-4A1F-A223-7B4E9DE1EF63@akamai.com>
From: Lucas Pardue <lucaspardue.24.7@gmail.com>
Date: Tue, 18 Aug 2020 00:38:09 +0100
Message-ID: <CALGR9oYdEqsY8yUo3Ke1CTNmRDukfJ9dDz9dtDcMT-K1rfiYCQ@mail.gmail.com>
To: "Law, Will" <wilaw=40akamai.com@dmarc.ietf.org>
Cc: hls-interest@ietf.org
Content-Type: multipart/alternative; boundary="000000000000239a7f05ad1b44c1"
Archived-At: <https://mailarchive.ietf.org/arch/msg/hls-interest/MMHro_37kD33S3e66UvMb_DDI2g>
Subject: Re: [Hls-interest] LL-HLS: status-code expected in the response to the PRELOAD request
X-BeenThere: hls-interest@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Discussions about HTTP Live Streaming \(HLS\)." <hls-interest.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/hls-interest>, <mailto:hls-interest-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/hls-interest/>
List-Post: <mailto:hls-interest@ietf.org>
List-Help: <mailto:hls-interest-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hls-interest>, <mailto:hls-interest-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 17 Aug 2020 23:38:31 -0000

Would RFC 8673 [1] fit the requirement here?

> To accommodate byte-range requests for content that has data appended
over time, this document defines semantics that allow an HTTP client and a
server to perform byte-range GET and HEAD requests that start at an
arbitrary byte offset within the representation and end at an indeterminate
offset.

[1] https://www.rfc-editor.org/rfc/rfc8673.html

On Tue, 18 Aug 2020, 00:30 Law, Will, <wilaw=40akamai.com@dmarc.ietf.org>
wrote:

> Hello
>
>
>
> I am requesting a clarification on the expected server response status
> code when a client makes an open-ended range request against a media
> segment when playing back LL-HLS.  Consider the following media playlist
> snippet:
>
>
>
> #EXTINF:4.000,
>
> v1_1-7727.m4s
>
> #EXT-X-PROGRAM-DATE-TIME:2020-07-28T17:37:48.771Z
>
> #EXT-X-PART:DURATION=0.500,URI="v1_1-7728.m4s",BYTERANGE="64267@0
> ",INDEPENDENT=YES
>
> #EXT-X-PART:DURATION=0.500,URI="v1_1-7728.m4s",BYTERANGE="63033@64267"
>
> #EXT-X-PART:DURATION=0.500,URI="v1_1-7728.m4s",BYTERANGE="57810@127300"
>
> #EXT-X-PART:DURATION=0.500,URI="v1_1-7728.m4s",BYTERANGE="60558@185110"
>
> #EXT-X-PART:DURATION=0.500,URI="v1_1-7728.m4s",BYTERANGE="68575@245668"
>
> #EXT-X-PART:DURATION=0.500,URI="v1_1-7728.m4s",BYTERANGE="60880@314243"
>
> #EXT-X-PRELOAD-HINT:TYPE=PART,URI="v1_1-7728.m4s",BYTERANGE-START=375123
>
>
>
> To start-up, the client would issue 6 GET range-requests , starting at the
> independent part The server would respond with a 206 response for each and
> a content-range response header indicating the range being returned.
>
>
>
> The next request would be for the PRELOAD-HINT part. This would be a GET
> request with a “range: 375123-“. The client is indicating it wants to
> receive this object starting at offset 375123 and continuing to the end of
> the segment.
>
>
>
> How should the origin (or proxy server) respond to this PRELOAD request?
> Three possible options
>
>    1. It holds back any response until the end of segment, returning at
>    that time a 206 response with a content-range of 375123 – T/T+1 (where
>    represents total size of segment). This would ruin the low latency behavior
>    for the client.
>    2. It starts an immediate response, signaling 206 with content-range:
>    375123 - */*. This is actually forbidden by the RFC’s, which indicate that
>    the last-byte-pos cannot hold a value of “*”.
>    3. It starts an immediate response, signaling a 200 response and if
>    serving H1 to a proxy server which then serves H2 to the client, a
>    "Transfer-Encoding: chunked" response header.
>
>
>
> Option [3] looks to be the most correct however it raises the question of
>  whether a 200 response (chunked-transfer or not) implies to the client
> that is has received the complete object i.e starting at offset 0 instead
> of offset 375123. As a CDN, we need to build a behavior that is robustly
> supported by all HTTP clients and not just a particular class of
> application. The proxy-server cannot tell if is serving a LL-HLS client or
> some other client, therefore we need a consistent behavior when it is asked
> for an open-ended range request against an object of unknown size.
>
>
>
> So the questions are:
>
>    1. Is a 200 status-code expected in the response to the PRELOAD
>    request?
>    2. If so, are there other clients or applications on the internet that
>    would break if we did so for *all open-ended range requests against
>    objects of unknown size* (outside of the application space of LL-HLS)?
>
>
>
> Cheers
>
> Will
>
>
>
>
>
>
> --
> Hls-interest mailing list
> Hls-interest@ietf.org
> https://www.ietf.org/mailman/listinfo/hls-interest
>