Re: [AVTCORE] I-D Action: draft-ietf-avtcore-clksrc-05.txt

Magnus Westerlund <magnus.westerlund@ericsson.com> Wed, 14 August 2013 12:35 UTC

Return-Path: <magnus.westerlund@ericsson.com>
X-Original-To: avt@ietfa.amsl.com
Delivered-To: avt@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D20DC11E8153 for <avt@ietfa.amsl.com>; Wed, 14 Aug 2013 05:35:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.121
X-Spam-Level:
X-Spam-Status: No, score=-105.121 tagged_above=-999 required=5 tests=[AWL=-1.028, BAYES_00=-2.599, HELO_EQ_SE=0.35, J_CHICKENPOX_14=0.6, J_CHICKENPOX_15=0.6, J_CHICKENPOX_18=0.6, RCVD_IN_DNSWL_MED=-4, SARE_SUB_6CONS_WORD=0.356, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0xAa4kMC-paM for <avt@ietfa.amsl.com>; Wed, 14 Aug 2013 05:35:46 -0700 (PDT)
Received: from mailgw2.ericsson.se (mailgw2.ericsson.se [193.180.251.37]) by ietfa.amsl.com (Postfix) with ESMTP id 7925021F9F00 for <avt@ietf.org>; Wed, 14 Aug 2013 05:35:45 -0700 (PDT)
X-AuditID: c1b4fb25-b7fc58e000001048-0c-520b799f2456
Received: from ESESSHC012.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw2.ericsson.se (Symantec Mail Security) with SMTP id B5.54.04168.F997B025; Wed, 14 Aug 2013 14:35:43 +0200 (CEST)
Received: from [127.0.0.1] (153.88.183.17) by smtp.internal.ericsson.com (153.88.183.56) with Microsoft SMTP Server id 14.2.328.9; Wed, 14 Aug 2013 14:35:38 +0200
Message-ID: <520B79DC.6020202@ericsson.com>
Date: Wed, 14 Aug 2013 14:36:44 +0200
From: Magnus Westerlund <magnus.westerlund@ericsson.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8
MIME-Version: 1.0
To: Kevin Gross <kevin.gross@avanw.com>
References: <20130714080418.18036.97048.idtracker@ietfa.amsl.com> <CALw1_Q1KZ534Bf5voQvh9jdJV97GhsjmiHF=qcBQjm=yP-Wvzg@mail.gmail.com>
In-Reply-To: <CALw1_Q1KZ534Bf5voQvh9jdJV97GhsjmiHF=qcBQjm=yP-Wvzg@mail.gmail.com>
X-Enigmail-Version: 1.5.2
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJLMWRmVeSWpSXmKPExsUyM+Jvre78Su4gg2urbSxe9qxkt5j0dTur xYtD7WwOzB7/rm5n9liy5CeTx5fLn9kCmKO4bFJSczLLUov07RK4MrZsbmIueOVV8WLFS+YG xiarLkZODgkBE4n+NZNZIGwxiQv31rN1MXJxCAkcZpS4/X8mI0hCSGAZo8TcfaYgNq+AtsTV KbPZQGwWAVWJg0s2g9WwCVhI3PzRCBYXFQiWaN/+lQ2iXlDi5MwnYAtEBNQlHu16yARiMwtU SZzZ/RnI5uAQFnCW+HelFmJVG6PEl21qIDanQKDEpqY2qNskJbYtOsYO0aonMeVqCyOELS/R vHU2M0SvtkRDUwfrBEahWUg2z0LSMgtJywJG5lWM7LmJmTnp5UabGIHBe3DLb9UdjHfOiRxi lOZgURLn3ax3JlBIID2xJDU7NbUgtSi+qDQntfgQIxMHp1QD4/q/V7TWXPxy6x2j5fdM6ZAj UTLZ+80nTGKNPNQU/uORZcONL/MSXjpue75U++vkzINLFx/weegtoXCxuip5171vCkefWQQ8 uiYVPvFuh9L9zyVR27bEd0TuXxwheOfOvjRLNdezay/yyT3mveY7dWu/bGu5o+5dMWEFXV7t q9Uc67/zbD1kwK/EUpyRaKjFXFScCABIeWUfLAIAAA==
Cc: "avt@ietf.org" <avt@ietf.org>, "draft-ietf-avtcore-clksrc@tools.ietf.org" <draft-ietf-avtcore-clksrc@tools.ietf.org>
Subject: Re: [AVTCORE] I-D Action: draft-ietf-avtcore-clksrc-05.txt
X-BeenThere: avt@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Audio/Video Transport Core Maintenance <avt.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/avt>, <mailto:avt-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/avt>
List-Post: <mailto:avt@ietf.org>
List-Help: <mailto:avt-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/avt>, <mailto:avt-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Aug 2013 12:35:53 -0000

WG,

I have reviewed the -05 version and found some minor issues that I hope
the authors will be able to address in the update in progress anyway to
resolve the SDP directorate review. The Offer/answer section looks
acceptable even if I yet again needed to read it twice to make certain
that all cases are covered. The default statements in 6.1 and 6.1.1 I
have a tendency to overlook when I read 6.1.2 and 6.1.3.

1. Section 3:

   source level  : Source level information applies to a RTP media
      stream Source-Specific Media Attributes in the Session Description
      Protocol (SDP) [RFC5576] defines how source-level information is
      included into an SDP session description.


I think this definition looks a bit strange I would propose two
modifications to it to make it be clearer:

NEW:

   source level  : Source level information applies to a specific RTP
                                                         ^^^^^^^^
      media stream.  Source-Specific Media Attributes in the Session
                  ^^
      Description Protocol (SDP) [RFC5576] defines how source-level
      information is included into an SDP session description.


2. Section 4.8 and 5.4:

The ABNF actually is underspecified by lacking definitions. I run it in
BAP (http://tools.ietf.org/tools/bap/abnf.cgi) and got the following
response.

; integer UNDEFINED
; SP UNDEFINED
mediaclk-master = "a=ssrc:" integer SP clk-master-id
clk-master-id = "mediaclk:master-id=" master-id
timestamp-mediaclk-sl = "a:ssrc" integer SP timestamp-mediaclk
timestamp-mediaclk = "a=mediaclk:" mediaclock
mediaclock = sender / refclk / streamid / mediaclock-ext
sender = "sender" sender-ext
; token UNDEFINED
sender-ext = token
; DIGIT UNDEFINED
refclk = "direct" [ "=" 1*DIGIT ] [ rate ] [ direct-ext ]
rate = [ SP "rate=" integer "/" integer ]
direct-ext = token
streamid = ( "master-id=" master-id
streamid = ) / ( "IEEE1722=" avb-stream-id
streamid = ) / streamid-ext
master-id = EUI48
avb-stream-id = EUI64
; HEXDIG UNDEFINED
EUI48 = 5( 2HEXDIG ":" ) 2HEXDIG
EUI64 = 7( 2HEXDIG ":" ) 2HEXDIG
streamid-ext = token
; byte-string UNDEFINED
mediaclock-ext = token [ SP byte-string ]
; mediaclk-master defined but not used
; timestamp-mediaclk-sl defined but not used

As you see this results in a number of undefined labels. This needs to
be resolved. They belong to two categories:

A) The ones defined in RFC 5234. These could be easily resolved. The
most explicit way is to do the following and avoids forking definitions:

SP     = <See RFC 5234>
DIGIT  = <See RFC 5234>
HEXDIG = <See RFC 5234>

B) The second categories are more uncertain and which of there are three
labels:
integer, token and byte-string.

I guess token and byte-string are the definitions from SDP RFC 4566.
Thus they could be solved by:

token = <See RFC 4566>
byte-string = <See RFC 4566>

The integer may also be the definition from RFC 4566, however as the
only usage are in the a=ssrc attribute, I would recommend that one
actually uses the formal grammer from RFC 5576, i.e.:

   ssrc-attr = "ssrc:" ssrc-id SP attribute
   ; The base definition of "attribute" is in RFC 4566.
   ; (It is the content of "a=" lines.)

   ssrc-id = integer ; 0 .. 2**32 - 1

Thus I would suggest that one changes integer to "ssrc-id" and add
ssrc-id = <See RFC 5576>.

I think this will resolve all the issues, but please run the resulting
ABNF through BAP to check that you only get unused indications from the
top level constructs intended and no other indications.

You might have to make changes to this depending on how you are
resolving the SDP directorate review.

The above also applies to the ABNF in Section 5.4.


3. Section 4.8:

Then I am also not a fan of open definitions like the port one:
port = 1*DIGIT

This really means at least 1 Digit up to an infinite number of them. I
do prefer to set some upper limit on it. So far I don't know of a
protocol that uses more than 16-bit port numbers, although that could
change in the future. Considering what is deployed today I think the
following is much more appropriate:

port = 1*5DIGIT ; 0-65535

Or if you want to be more future safe, then
port = 1*10DIGIT
This allows for 32-bit integers



4. Section 5.2:
   The signalling optionally indicates a media clock offset value.  The
   offset indicates the RTP timestamp value at the epoch (time of
   origin) of the reference clock.  If no offset is signalled, the
   offset can be inferred at the receiver by examining RTCP sender
   reports which contain NTP and RTP timestamps which combined define a
   mapping.

This text actually raises two questions with me.

First, I am not certain that I understand the offset. So the indicated
value is an RTP timestamp, i.e. the integer representation of the 32-bit
value of the RTP timestamp. So the epoch time is dependent on the clock
system, but the current epoch for an NTP reference clock would be 1 jan
at 0:00 year 1900. Thus you need to take all the leap seconds etc into
account to determine how many time has actually passed since then and
then calculate how many wrapping of the timestamp this means. This seems
error prone, at least without being more explicit of how to do it for
the various reference clocks.

Secondly, what are the relative precedence between the SDP signaled
value and any values received in RTCP SR? Is it an initial date point
that then are replaced by any RTCP SR information? If not, does it
blocks the usage of the RTCP SR to update the relation between the "NTP"
field and the RTP TS value? This needs to be made more explicit.

5. Section 5.2 and Figure 7:

   A rate modifier may be specified.  The modifier is expressed as the
   ratio of two integers and modifies the rate specified or implied by
   the media description by this ratio.  If omitted, the rate is assumed
   to be the exact rate specified or implied by the media format.  For
   example, without a rate specification, the media clock for an 8 kHz
   G.711 audio stream will advance exactly 8000 units for each second
   advance in the reference clock from which it is derived.

and looking at this example in Figure 7:

          m=audio 5004 RTP/AVP 96
          a=rtpmap:96 L24/44100/2
          a=sendonly
          a=ts-refclk:ptp=IEEE1588-2008:39-A7-94-FF-FE-07-CB-D0:0
          a=mediaclk:direct=963214424 rate=1000/1001

I realize that I don't understand what the rate modifier means. Without
the rate modifier there would be 44100 RTP timestamp ticks per second of
reference clock. Does the rate modifier multiply with the nominal rate
so that this example means 441000*1000/1001 RTP TS ticks per second of
reference clock?

Some clarification may be required here.

6. Section 5.3:

   In a given system, master clock identifiers must be unique.  Such
   identifiers MAY be manually configured, however 17 octet string
   identifiers SHOULD be generated according to the "short-term
   persistent RTCP CNAME" algorithm as described in RFC6222 [RFC6222].

As draft-ietf-avtcore-6222bis are approved and will soon be published, I
think you should update this reference.
Please also check that the update of RFC 6222 does not cause any issue
for this.

7. Section 8.3:
When creating registries it is quite common to make it clear what
information  is the minimal required in a registration request.
Looking at these registries I would assume any registration would be
required to provide:

- Value
- Long name
- Reference
- Contact for registration

Maybe you should make this explicit.


8. Section 8.5.2:

   The source-level SDP attribute "master-id" defined by this document
   is registered with the IANA registry of SDP Parameters as follows:

   SDP Attribute ("att-field (source level)"):

     Attribute name:     master-id

     Long form:          Media clock source

     Type of name:       att-field

     Type of attribute:  source level

     Subject to charset: No

     Purpose:            See section 5 of this document

     Reference:          This document

     Values:             EUI48


I wonder if this part is needed at all. What I can read to in the
specification all source level usage with the master ID will have it
encapsulated in the mediaclk attribute, i.e. one will specify
a=ssrc:12345678 mediaclk:master-id=<foobar>

rather than

a=ssrc:12345678 master-id=<foobar>

Thus I wonder why there is a registation of master-id?

9. Section 9:

I wonder if not the classificiation of normative references are a bit
wrong. From my reading of this doc, RFC 3261 is not a normative
reference as the only statement related to SIP is the statement that SIP
supports renogitation and that may be used, but really are just an example.

Then I think the clock system/transports which has identifiers in this
specification are actual normative references, so RFC 5905, IEEE 1588-X
etc are in the wrong category.

Cheers

Magnus Westerlund

----------------------------------------------------------------------
Multimedia Technologies, Ericsson Research EAB/TVM
----------------------------------------------------------------------
Ericsson AB                | Phone  +46 10 7148287
Färögatan 6                | Mobile +46 73 0949079
SE-164 80 Stockholm, Sweden| mailto: magnus.westerlund@ericsson.com
----------------------------------------------------------------------