Re: [rtcweb] On ptimes and maxptimes

Magnus Westerlund <magnus.westerlund@ericsson.com> Thu, 20 March 2014 10:53 UTC

Return-Path: <magnus.westerlund@ericsson.com>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C60361A06CF for <rtcweb@ietfa.amsl.com>; Thu, 20 Mar 2014 03:53:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.04
X-Spam-Level:
X-Spam-Status: No, score=-0.04 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_SE=0.35, HOST_MISMATCH_NET=0.311, J_CHICKENPOX_15=0.6, J_CHICKENPOX_18=0.6, SPF_PASS=-0.001] autolearn=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 hnygrl3qnN_G for <rtcweb@ietfa.amsl.com>; Thu, 20 Mar 2014 03:53:15 -0700 (PDT)
Received: from sessmg20.mgmt.ericsson.se (sessmg20.ericsson.net [193.180.251.50]) by ietfa.amsl.com (Postfix) with ESMTP id 0C82B1A06D9 for <rtcweb@ietf.org>; Thu, 20 Mar 2014 03:53:14 -0700 (PDT)
X-AuditID: c1b4fb32-b7f4c8e0000012f5-eb-532ac8910914
Received: from ESESSHC005.ericsson.se (Unknown_Domain [153.88.253.124]) by sessmg20.mgmt.ericsson.se (Symantec Mail Security) with SMTP id 1C.7A.04853.198CA235; Thu, 20 Mar 2014 11:53:05 +0100 (CET)
Received: from [127.0.0.1] (153.88.183.153) by smtp.internal.ericsson.com (153.88.183.35) with Microsoft SMTP Server id 14.2.347.0; Thu, 20 Mar 2014 11:53:04 +0100
Message-ID: <532AC890.7000602@ericsson.com>
Date: Thu, 20 Mar 2014 11:53:04 +0100
From: Magnus Westerlund <magnus.westerlund@ericsson.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
MIME-Version: 1.0
To: Justin Uberti <juberti@google.com>
References: <CAOJ7v-1e+FXQZrvh8Q549kwyhf8JX2BA_0q=+6mjha9+o-Dgpw@mail.gmail.com> <531DE104.2010908@ericsson.com> <CAOJ7v-31-xHGq1ERYYx5mvZuqTor0Seod_ChNT2AhY2BLaJi-Q@mail.gmail.com>
In-Reply-To: <CAOJ7v-31-xHGq1ERYYx5mvZuqTor0Seod_ChNT2AhY2BLaJi-Q@mail.gmail.com>
X-Enigmail-Version: 1.6
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrILMWRmVeSWpSXmKPExsUyM+Jvje7EE1rBBvsvSFtsnSpksfZfO7sD k8eCTaUeS5b8ZApgiuKySUnNySxLLdK3S+DK2L3qP2vBa/mKpgWtzA2M58W7GDk5JARMJM4u nsoIYYtJXLi3nq2LkYtDSOAEo8T3C1/YIZzljBI31/xjBaniFdCW+PNyP1gHi4CqxL9fz9lB bDYBC4mbPxrZQGxRgWCJnQd+M0LUC0qcnPmEBcQWEVCTeDhrF9gcZgF1iTuLz4H1CgvoSqxb vocJYtlWRokl3zaDNXAKBEpMvLgGyOYAOk9coqcxCKJXU6J1+292CFteonnrbGYQWwjotoam DtYJjEKzkKyehaRlFpKWBYzMqxgli1OLi3PTjQz0ctNzS/RSizKTi4vz8/SKUzcxAoP54Jbf RjsYT+6xP8QozcGiJM57nbUmSEggPbEkNTs1tSC1KL6oNCe1+BAjEwenVANj7t2oh182aP7e WKuQeXrSRH3vI7xv3fu5P3LG3f7SmSS0tFLHIfTV143GajHea25uerCpSp+5+MvaFZsmL/0w SUGr7D+jwwb1Ve0eCo9+XxcxTtHK2b6da6lqjfaJzy8v2Icfufs47lVk3cP7L9P37Xgmebnw +KVVRuetLm87ZPQ2wm2mnOmxYiWW4oxEQy3mouJEAGryzdc0AgAA
Archived-At: http://mailarchive.ietf.org/arch/msg/rtcweb/AQ3-PiCApvxYDSD7hTbjrvJCrFU
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [rtcweb] On ptimes and maxptimes
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <rtcweb.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rtcweb/>
List-Post: <mailto:rtcweb@ietf.org>
List-Help: <mailto:rtcweb-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 20 Mar 2014 10:53:17 -0000

On 2014-03-20 01:27, Justin Uberti wrote:
> 
> 
> 
> On Mon, Mar 10, 2014 at 8:57 AM, Magnus Westerlund
> <magnus.westerlund@ericsson.com <mailto:magnus.westerlund@ericsson.com>>
> wrote:
> 
>     Hi,
> 
>     (As individual)
> 
>     On 2014-03-05 17:26, Justin Uberti wrote:
>     > From the session this morning, I recall this consensus:
>     >
>     >   * We will add recommendations on the frame sizes to use for
>     PCMU/A to
>     >     the rtcweb audio codec I-D (20, 30, 60 ms frames).
> 
>     The above applies to sending payloads
> 
> 
> Right, thanks for pointing that out. 
> 
> 
>     Yes, but that was given that a receiver will be capable of receiving any
>     valid number of frames, or samples within a reasonable packetization,
>     and I think that should be 120 ms.
> 
>     >   * We will consider adding an a=maxptime attribute that
>     represents the
>     >     "minimum maxptime" of all the offered codecs. That is, if both
>     Opus
>     >     (maxptime of 120ms) and PCMU (maxptime of 60) are offered, a
>     >     maxptime=60 SHOULD be included.
>     >       o Since maxptime spans all codecs, this means that some modes
>     >         (e.g. Opus 120ms) will be unavailable, unless only Opus is
>     offered.
> 
>     I think you base the assumption on maxptime based on the sending
>     recommendations, not what is capable of receiving. If one is capable of
>     receiving 200 ms of a-law and Opus, then you would need to say 120 ms as
>     Opus will limit you.
> 
> 
> I agree that Opus' maxptime is 120, but should that prevent sending PCMU
> with 200 ms? That is, since sending Opus with 200 ms is not legal, is
> there any point in forcing WebRTC impls to indicate this in SDP?

What I wished we fixed this issue with maxptime a long time ago. This is
a well known problem that it really has PT scope, but are signalled on
m= line scope.

>  
> 
> 
>     >   * We will consider adding an a=ptime attribute, set to the
>     receiver's
>     >     preferred frame size to receive. Again, this value spans all
>     codecs,
>     >     so the specified value may not be viable for all codecs (e.g.
>     30 ms
>     >     works for PCMU but not for Opus)
>     >
>     > After thinking about this some, I'm not sure the maxptime/ptime values
>     > will lead to any different behavior than if they were not specified.
>     > Since there is a complexity cost (especially if the values need to
>     > change based on which codecs are offered), is there a clear upside
>     here?
> 
>     The maxptime values may in some cases be limited downwards for
>     interoperability, for example if one like to gateway AMR into a CS
>     network then the gateway might indicate a maxptime that is less, more
>     like 20 or 40 ms.
> 
> 
> Sure - WebRTC impls need to respect any maxptime value that they
> receive, but it's not clear to me that they need to include one in the
> SDP they send. 

Ok, but then we are back to my previous argument for writing down what
receiver requirement in regards to each payload type one is required to
support in the audio draft for the ones specified there. But what about
the other codecs that aren't included in the audio draft?

How can a peer know if there are limitations? I wouldn't attempt to
solve the general problem of the scope issue with maxptime. Simply state
that you should include this. It is going to be limited but still
provide information in many cases that is quite useful for the sender.

Cheers

Magnus Westerlund

----------------------------------------------------------------------
Services, Media and Network features, Ericsson Research EAB/TXM
----------------------------------------------------------------------
Ericsson AB                 | Phone  +46 10 7148287
Färögatan 6                 | Mobile +46 73 0949079
SE-164 80 Stockholm, Sweden | mailto: magnus.westerlund@ericsson.com
----------------------------------------------------------------------