Re: [payload] Eric Rescorla's No Objection on draft-ietf-payload-rtp-vc2hq-06: (with COMMENT)

James Barrett <James.Barrett@bbc.co.uk> Mon, 13 August 2018 10:28 UTC

Return-Path: <James.Barrett@bbc.co.uk>
X-Original-To: payload@ietfa.amsl.com
Delivered-To: payload@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AE48C127598; Mon, 13 Aug 2018 03:28:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level:
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 edhCNDYbacNr; Mon, 13 Aug 2018 03:28:17 -0700 (PDT)
Received: from mailout1.telhc.bbc.co.uk (mailout1.telhc.bbc.co.uk [132.185.161.180]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4CD271277BB; Mon, 13 Aug 2018 03:28:17 -0700 (PDT)
Received: from BGB01XI1012.national.core.bbc.co.uk (bgb01xi1012.national.core.bbc.co.uk [10.161.14.16]) by mailout1.telhc.bbc.co.uk (8.15.2/8.15.2) with ESMTP id w7DASF3O003625; Mon, 13 Aug 2018 11:28:15 +0100 (BST)
Received: from BGB01XI1015.national.core.bbc.co.uk (10.161.14.78) by BGB01XI1012.national.core.bbc.co.uk (10.161.14.16) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 13 Aug 2018 11:28:15 +0100
Received: from BGB01XUD1007.national.core.bbc.co.uk ([10.161.14.5]) by BGB01XI1015.national.core.bbc.co.uk ([10.161.14.78]) with mapi id 14.03.0408.000; Mon, 13 Aug 2018 11:28:14 +0100
From: James Barrett <James.Barrett@bbc.co.uk>
To: Eric Rescorla <ekr@rtfm.com>
CC: The IESG <iesg@ietf.org>, "ali.begen@networked.media" <ali.begen@networked.media>, "payload-chairs@ietf.org" <payload-chairs@ietf.org>, "payload@ietf.org" <payload@ietf.org>, "draft-ietf-payload-rtp-vc2hq@ietf.org" <draft-ietf-payload-rtp-vc2hq@ietf.org>
Thread-Topic: Eric Rescorla's No Objection on draft-ietf-payload-rtp-vc2hq-06: (with COMMENT)
Thread-Index: AQHUB9URjNQLXQW13EOKVvgnXV2YPKSCEZaAgDuuqYA=
Date: Mon, 13 Aug 2018 10:28:14 +0000
Message-ID: <9D0D535D-3CFD-4EC5-B0F7-F635811B17A6@bbc.co.uk>
References: <152941647603.30045.10144097525043801716.idtracker@ietfa.amsl.com> <0DE61DA5-74ED-4576-A7F8-289588F1BD04@bbc.co.uk>
In-Reply-To: <0DE61DA5-74ED-4576-A7F8-289588F1BD04@bbc.co.uk>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [172.19.161.212]
X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.2.1013-24028.006
X-TM-AS-Result: No-23.013300-8.000000-10
X-TMASE-MatchedRID: IeZYkn8zfFqXKs94NAOH8rU+IyHhkXf1hQaFqMRElgnn0JXek/DSxaiz 2yX3N56RhQ+LbrXjMpgmNpzri1sed+uNCMufVVQcxZQoGMRGhhO8ctypbYaK6f2TbFr0CGOD45M 6LwlcBm4JtG7by2Inl3y9I8rVErtJzMi+2eSneQnx5KZMlKYS/Xuuvqd1y3lIayjbe4qUImPk1L hA7Mwru70pjebUJ8aJzKYcwSQnUGX8hNgS+gMueU1Wvi92YKnOnvBHr/aFnM5rvf5eVgMu7PbC7 4s+hpdXnIJoN5ux+HoC0ADhE6+B6w9FV6kNYiPHdPuue3cRiRgLBPYMfuIybheku4dUpgE54zl+ MLm9sZ+E2mUpcnsWvK9mACYIir7Diq265D4ITu9IOSHptb5txzdv9kiYAclL6i5zlFx/UHQcocl 4apple6AO0dbvV6DlEoWBPu93DVms2DLR871sy4Dqq/69Hfgsh8Ytn75ClDPNDTnArhVutVNMHx uAKXRNWgjwuEzFWtE0hSEyGFvlaIIyoDB4dEPQEdFsavUQKAc0AKed0u9fB8KQkd8YrGEvsRCKT KPw3+Dkobx9fVEN/WDP83Vem3nwKoNXDouKeceYseeDnw/s7CDPOgHqOrGCUCgEErrUGFwEBTkY fFsSQtjSOej/GYohFi4fjxPgqK0AqaDTecqK8rYBnn2EUDXr1L9XhwgnIzgJW4Re2U2py2qI1dS DBK5nQf+k9Hlgs/1vDU0weXHfktl+dy3lQHNxA9lly13c/gHJ5SXtoJPLyES/boWSGMtdl05GhW TdDwjHzI7dfDA2mW+hg4run/HZqRpWjuuZWSOeAiCmPx4NwMFrpUbb72MU1B0Hk1Q1KyLUZxEAl FPo8/cUt5lc1lLgZON9R+uSfQA=
X-TM-AS-User-Approved-Sender: Yes
X-TM-AS-User-Blocked-Sender: No
X-TMASE-Result: 10--23.013300-8.000000
X-TMASE-Version: SMEX-12.5.0.1300-8.2.1013-24028.006
Content-Type: text/plain; charset="utf-8"
Content-ID: <6B8A2F17C754AE4E8F6F5644DE1EF9F5@bbc.co.uk>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-EXCLAIMER-MD-CONFIG: c91d45b2-6e10-4209-9543-d9970fac71b7
Archived-At: <https://mailarchive.ietf.org/arch/msg/payload/QwiyzpGpA7tHLZsfQ1xH8NSS56I>
Subject: Re: [payload] Eric Rescorla's No Objection on draft-ietf-payload-rtp-vc2hq-06: (with COMMENT)
X-BeenThere: payload@ietf.org
X-Mailman-Version: 2.1.27
Precedence: list
List-Id: Audio/Video Transport Payloads working group discussion list <payload.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/payload>, <mailto:payload-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/payload/>
List-Post: <mailto:payload@ietf.org>
List-Help: <mailto:payload-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/payload>, <mailto:payload-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 13 Aug 2018 10:28:20 -0000

I have submitted a new version of the draft:

https://tools.ietf.org/html/draft-ietf-payload-rtp-vc2hq-07

Most of the changes are either exactly as already discussed, or minor changes to text to make sections make sense with the changes we already discussed.

I have, however, made one additional change which we didn’t already discuss in order to resolve the Auxiliary Data splitting option. Since the B and E flags in the auxiliary data packet only make sense if the packet can contain a portion of an auxiliary data unit I have adjusted the text elsewhere to match this expectation, making Auxiliary data the only exception to the “do not split a data unit across multiple packets rule”. This removes the need for use of IP fragmentation even in the extremely unlikely case of a future encoder producing Auxiliary Data Units too large to be carried within the network MTU.

I have kept the recommendation that the stream contain no oversized Auxiliary Data Units, but have noted that violating this recommendation does not make the stream impossible to transport (unlike violating the requirements listed in the rest of section 4.4).


I hope this is acceptable.

--
James P. Weaver (né Barrett)
Research Engineer
BBC R&D North Lab,
Floor 5 Dock House, MediaCity,
M50 2LH
Tel: +44(0)30 3040-9521
e-mail: james.barrett@bbc.co.uk



> On 6 Jul 2018, at 12:03, James Barrett <James.Barrett@bbc.co.uk> wrote:
> 
>> This document would also benefit from significant editorial work.
>> Based on S  4.5.1, I take the structure to be that you start with the
>> VC-2 stream and then use RTP headers to contain the information in
>> Parse Info blocks. If that is correct, it would be much clearer if
>> stated upfront.
> 
> Would it be clearer if I changed the second paragraph of Section 3 to read:
> 
>   Each Sequence consists of a series of 13-octet Parse Info
>   headers and variable length Data Units. The Sequence begins
>   and ends with a Parse Info header and each Data Unit is
>   preceded by a Parse Info Header. Data Units come in a variety
>   of types, and the type of a Data Unit is signalled in the
>   preceding Parse Info Header. The most important types are the
>   Sequence Header, which contains configuration data needed by
>   the decoder, and several types of Coded Picture, which contain
>   the coded data for the pictures themselves. Each picture
>   represents a frame in a progressively scanned video Sequence
>   or a field in an interlaced video Sequence.
> 
> Then at the start of Section 4 add:
> 
>   In this specification each RTP packet is used to carry data
>   corresponding to a single Parse Info Header and its following data
>   unit (if it has one).  A single packet MAY NOT contain data from more
>   than one Parse Info header or data unit and a single Parse Info
>   Header and Data Unit pair MUST NOT be split accross more than one
>   packet.
> 
> And change the following paragraph to read:
> 
>   This specification only covers the transport of Sequence Headers
>   (together with their accompanying data unit), High Quality Fragments
>   (together with their accompanying data unit), Auxiliary Data
>   (together with their accompanying data unit), and (optionally) End
>   Sequence Headers and Padding Data (optionally along with a data
>   unit).
> 
> 
> I think that should make the situation clearer.
> 
>> IMPORTANT
>> S 4.2.
>>> 
>>>    The fields of the extended headers are defined as follows:
>>> 
>>>    Extended Sequence Number: 16 bits  MUST Contain the high-order
>>>          16-bits of the 32-bit packet sequence number, a number which
>>>          increments with each packet.  This is needed since the high
>> 
>> Increments by one?
> 
> 
> Yes, as others have commented this is probably an unnecessary statement because that is the definition of the Sequence Number.
> 
> 
>> S 4.2.
>>>          data rates of VC2 Sequences mean that it is highly likely that
>>>          the 16-bit sequence number will roll-over too frequently to be
>>>          of use for stream synchronisation.
>>> 
>>>    B: 1 bit  MUST be set to 1 if the packet contains the first byte of
>>>          an Auxiliary Data or Padded Data Unit.
>> 
>> And otherwise must be 0?
> 
> Yes.
> 
>> S 4.2.
>>> 
>>>    B: 1 bit  MUST be set to 1 if the packet contains the first byte of
>>>          an Auxiliary Data or Padded Data Unit.
>>> 
>>>    E: 1 bit  MUST be set to 1 if the packet contains the final byte of
>>>          an Auxiliary Data or Padded Data Unit.
>> 
>> And otherwise must be 0?
> 
> Yes.
> 
> 
>> S 4.2.
>>>          from a new picture until all the coded data from the current
>>>          picture has been sent.
>>> 
>>>          If the receiver does not receive a transform parameters packet
>>>          for a picture then it MAY assume that the parameters are
>>>          unchanged since the last picture, or MAY discard the picture.
>> 
>> How does this interact with packet loss?
> 
> 
> Would this be better?
> 
>         If the receiver does not receive a transform parameters packet
>         for a picture then it MAY assume that the parameters are
>         unchanged since the last picture, or MAY discard the picture.
>         Choosing between these two options is left up to the
>         implementation as it will be dependent on intended use, the
>         former may result in malformed pictures, the latter will result
>         in dropped frames.  Such an occurance is an indication either
>         of packet loss, joining a stream mid-picture, or of a non-
>         compliant transmitter.
> 
> 
>> COMMENTS
>> S 3.
>>>    the decoder.
>>> 
>>>    Each Sequence consists of a series of 13-octet Parse Info headers and
>>>    variable length Data Units.  The Sequence begins and ends with a
>>>    Parse Info header and each Data Unit is preceded by a Parse Info
>>>    Header.  Data Units come in a variety of types, the most important
>> 
>> This text isn't very clear to me. Is the following valid: PI | Data |
>> PI? How about PI | PI | Data | PI.  PI | PI | PI | Data | PI?
> 
> 
> Hopefully the above revision would make this clearer. For clarification some types of parse info header are always followed by a data unit and some never are. Since the Sequence Header PI Header must always be followed by a data unit and must be the first in any sequence your second two examples are not allowed. This could be made clearer by changing paragraph 4 of Section 3 to read:
> 
>   The High Quality (HQ) profile for VC-2 restricts the types of Parse
>   Info Headers which may appear in the Sequence (and hence also the
>   types of Data Unit) to only:
> 
>   o  Sequence Headers (which are always followed by a Data Unit),
> 
>   o  High Quality Pictures (which are always followed by a Data Unit),
> 
>   o  High Quality Fragments (which are always followed by a Data Unit),
> 
>   o  Auxiliary Data (which are always followed by a Data Unit),
> 
>   o  Padding Data (which are always followed by a Data Unit), and
> 
>   o  End of Sequence (which are never followed by a Data Unit).
> 
> 
> Then combining that with the other restrictions the current definition of VC-2 allows the following structure in a stream that complies with the HQ profile:
> 
>  PI DU [ PI DU ]* PI
> 
> (Where * is “0 or more” as in regular expressions).
> 
>> S 3.
>>>    should not be assumed.
>>> 
>>>    The High Quality (HQ) profile for VC-2 restricts the types of Parse
>>>    Info Headers which may appear in the Sequence to only:
>>> 
>>>    o  Sequence Headers,
>> 
>> The text above says that Sequence Headers are a type of Data Unit. So
>> I'm confused by this text.
> 
> Hopefully the changes above clarify this. A Data Unit type is identified by the Parse Info header that precedes it. A Sequence Header Data Unit is always preceded by a Sequence Header Parse Info Header.
> 
> 
>> S 4.
>>> 
>>> 4.  Payload format
>>> 
>>>    This specification only covers the transport of Sequence Headers,
>>>    High Quality Fragments, Auxiliary Data, and (optionally) End of
>>>    Sequence Headers and Padding Data.
>> 
>> So it doesn't include Parse Info?
> 
> 
> The parse info headers serve to structure the stream and identify the following data unit, the PC field in the packet headers essentially carries all the relevant information from the PI Header.
> 
> 
>> S 4.
>>>       Picture (Figure 2),
>>> 
>>>    o  A Picture Fragment containing VC-2 Coded Slices (Figure 3) for a
>>>       picture,
>>> 
>>>    o  The end of a VC-2 Sequence (Figure 4)
> 
> How about:
> 
> 
>   o  A VC-2 Sequence Header (Figure 1) (see Section 11 of the VC-2
>      specification [VC2]),
> 
>   o  A Picture Fragment containing the VC-2 Transform Parameters for a
>      Picture (Figure 2) (see Section 14 of the VC-2 specification
>      [VC2]),
> 
>   o  A Picture Fragment containing VC-2 Coded Slices (Figure 3) for a
>      picture (see Section 14 of the VC-2 specification [VC2]),
> 
>   o  The end of a VC-2 Sequence (Figure 4)(see Section 10.5.2 of the
>      VC-2 specification [VC2]),
> 
>   o  The contents of an auxiliary data unit (Figure 5)(see
>      Section 10.4.4 of the VC-2 specification [VC2]), and
> 
>   o  An indication of the presence of a padding data unit (Figure 6)
>      (see Section 10.4.5 of the VC-2 specification [VC2]).
> 
>> S 4.
>>>    .                                                               .
>>>    +---------------------------------------------------------------+
>>> 
>>>                Figure 6: RTP Payload Format For Padding Data
>>> 
>>>    All fields in the headers longer than a single bit are interprted as
>> 
>> Nit: interpreted.
> 
> Yep, that needs to be corrected.
> 
>> S 4.2.
>>> 
>>>    Data Length: 32 bits  For an auxiliary data unit this contains the
>>>          number of bytes of data contained in the uncoded payload
>>>          section of this packet.  For a Padding Data Unit this field may
>>>          have any value and simply indicates the size of the recommended
>>>          padding.
>> 
>> This seems like a very large field given that RTP datagrams are almost
>> never this large, so I am suspecting the "uncoded payload" means pre-
>> compressed? Can you be clearer..
> 
> 
> I think this might be best handled by removing the word “uncoded” here and adding the following to the first bullet point list in Section 4.4:
> 
>   o  Every Auxiliary Data Unit SHOULD be small enough that the RTP
>      packet carrying it will fit within the network MTU size.  Since
>      there is currently no specification for the format of Auxiliary
>      Data in VC-2 the mechanism for ensuring this with an encoder
>      implementation that includes Auxiliary Data Units will be
>      dependent upon the implementation's use for them.
> 
> And this to the second list:
> 
>   o  Every Auxiliary Data Unit is small enough that the RTP packet
>      carrying it will fit within the network MTU size.
> 
> In principle a VC-2 stream could have Auxiliary Data units too large to fit into the network MTU, but in practice this seems unlikely. The current VC-2 specification includes no restrictions on the contents of or size of Auxiliary Data Units beyond those imposed by the size of the fields in the PI header, but as far as I am aware the only encoders/decoders that have ever used them have used very small units. I think it is reasonable for a transmitter to reject incoming streams that violate this rule. In extremis IP fragmentation could be used to carry on oversized Auxiliary Data Unit.
> 
> --
> James P. Weaver (né Barrett)
> Research Engineer
> BBC R&D North Lab,
> Floor 5 Dock House, MediaCity,
> M50 2LH
> Tel: +44(0)30 3040-9521
> e-mail: james.barrett@bbc.co.uk