Re: [Cellar] Magnus Westerlund's Discuss on draft-ietf-cellar-ebml-15: (with DISCUSS and COMMENT)

Dave Rice <dave@dericed.com> Fri, 20 December 2019 20:01 UTC

Return-Path: <dave@dericed.com>
X-Original-To: cellar@ietfa.amsl.com
Delivered-To: cellar@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A2EA61209CE; Fri, 20 Dec 2019 12:01:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.119
X-Spam-Level:
X-Spam-Status: No, score=-1.119 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779, URIBL_BLOCKED=0.001] autolearn=no 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 aaish1pSG92f; Fri, 20 Dec 2019 12:01:49 -0800 (PST)
Received: from server172-3.web-hosting.com (server172-3.web-hosting.com [68.65.122.111]) (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 13D2E1209CF; Fri, 20 Dec 2019 12:01:49 -0800 (PST)
Received: from [146.96.19.240] (port=36784 helo=[10.10.201.20]) by server172.web-hosting.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from <dave@dericed.com>) id 1iiOT2-000Fpp-3L; Fri, 20 Dec 2019 15:01:48 -0500
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\))
From: Dave Rice <dave@dericed.com>
In-Reply-To: <157676414666.27346.14188913386068032568.idtracker@ietfa.amsl.com>
Date: Fri, 20 Dec 2019 15:01:42 -0500
Cc: The IESG <iesg@ietf.org>, villereal@gmail.com, draft-ietf-cellar-ebml@ietf.org, cellar-chairs@ietf.org, cellar@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <5253C5B6-EFAA-4DF0-B7B2-FC11E4C02507@dericed.com>
References: <157676414666.27346.14188913386068032568.idtracker@ietfa.amsl.com>
To: Magnus Westerlund <magnus.westerlund@ericsson.com>
X-Mailer: Apple Mail (2.3445.104.8)
X-OutGoing-Spam-Status: No, score=-2.1
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - server172.web-hosting.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - dericed.com
X-Get-Message-Sender-Via: server172.web-hosting.com: authenticated_id: dave@dericed.com
X-Authenticated-Sender: server172.web-hosting.com: dave@dericed.com
X-Source:
X-Source-Args:
X-Source-Dir:
X-From-Rewrite: unmodified, already matched
Archived-At: <https://mailarchive.ietf.org/arch/msg/cellar/4avSk6_wJcmTSitOfYQbEYFulVQ>
Subject: Re: [Cellar] Magnus Westerlund's Discuss on draft-ietf-cellar-ebml-15: (with DISCUSS and COMMENT)
X-BeenThere: cellar@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Codec Encoding for LossLess Archiving and Realtime transmission <cellar.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cellar>, <mailto:cellar-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cellar/>
List-Post: <mailto:cellar@ietf.org>
List-Help: <mailto:cellar-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cellar>, <mailto:cellar-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Dec 2019 20:01:51 -0000

Hi Magnus,

> On Dec 19, 2019, at 9:02 AM, Magnus Westerlund via Datatracker <noreply@ietf.org> wrote:
> 
> Magnus Westerlund has entered the following ballot position for
> draft-ietf-cellar-ebml-15: Discuss
> 
> When responding, please keep the subject line intact and reply to all
> email addresses included in the To and CC lines. (Feel free to cut this
> introductory paragraph, however.)
> 
> 
> Please refer to https://www.ietf.org/iesg/statement/discuss-criteria.html
> for more information about IESG DISCUSS and COMMENT positions.
> 
> 
> The document, along with other ballot positions, can be found here:
> https://datatracker.ietf.org/doc/draft-ietf-cellar-ebml/
> 
> 
> 
> ----------------------------------------------------------------------
> DISCUSS:
> ----------------------------------------------------------------------
> 
> 1. Section 5:
> 
>   The Element ID is encoded as a Variable Size Integer.
> 
>    +-----------------------+-------------------------+---------------+
>    | VINT Length in octets |  Range of Possible IDs  | Number of IDs |
>    +=======================+=========================+===============+
>    |           1           |       0x81 - 0xFE       |           126 |
>    +-----------------------+-------------------------+---------------+
>    |           2           |     0x407F - 0x7FFE     |        16,256 |
>    +-----------------------+-------------------------+---------------+
>    |           3           |   0x203FFF - 0x3FFFFE   |     2,080,768 |
>    +-----------------------+-------------------------+---------------+
>    |           4           | 0x101FFFFF - 0x1FFFFFFE |   268,338,304 |
>    +-----------------------+-------------------------+---------------+
> 
> To me it appears that this whole section can't decide if the Element ID is
> encoded integer using VINT or an VINT format octet sequence that is self
> describing in length? If it is the first then the above quoted table would to
> me state that the IDs are 1-126 for 1 octet, and the second two-octet
> 127-16382. But based on later section it is actually the later. As the ID
> values defined in Section 11.2 for the various elements are actually the
> encoded form rather than a representation of the Integer value encoded. This
> needs to be clarified.

Thanks, this topic came up in Adam Roach’s review [1] as well and ended with a use of an Element ID as a VINT format octet sequence. I have rewritten this section in the referenced pull request [2] according to your suggestions and comments.

> ----------------------------------------------------------------------
> COMMENT:
> ----------------------------------------------------------------------
> 
> 1. Section 5:
> 
> Any Element ID with the VINT_DATA
>   component set as all zero values or all one values MUST be ignored.
> 
> What does it mean to ignore an Element ID in the general case. Can you really
> say this in the general case, rather than state that it is not a valid Element
> ID? Or is the intention that an Element ID with all data is the equivalent to
> padding and simply skipped and a parser needs to expect to find the real
> Element ID in the next octet sequence? Considering the Element Length that do
> allow zero values and non-efficient encoding, if the element should be ignored
> or not depends on the expected element to find by the parser.
> 
> I might have missed some later explanation of this, as I didn't manage to read
> the whole document in detail.

I considered changing this sentence from saying that such an Element ID should be ignored to simply asserting that it is not valid; however the prior sentence "The bits of the VINT\_DATA component of the Element ID MUST NOT be all `0` values or all `1` values.” already makes this clear. Thus I simply removed the sentence in the second commit of the pull request. I think this sentence is okay to remove as there are later statements in Section 7.7 that make the same point more clearly about skipping invalid data.

Thanks much,
Dave

[1] https://mailarchive.ietf.org/arch/msg/cellar/yvXmJPWGkUISXbdt0aZ-UkC57I8
[2] https://github.com/cellar-wg/ebml-specification/pull/315/files