Re: [rtcweb] On ptimes and maxptimes

Magnus Westerlund <magnus.westerlund@ericsson.com> Fri, 21 March 2014 08:19 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 860A81A0395 for <rtcweb@ietfa.amsl.com>; Fri, 21 Mar 2014 01:19:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.651
X-Spam-Level:
X-Spam-Status: No, score=-2.651 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_SE=0.35, J_CHICKENPOX_15=0.6, J_CHICKENPOX_18=0.6, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=ham
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 inRowPGkAv1H for <rtcweb@ietfa.amsl.com>; Fri, 21 Mar 2014 01:19:11 -0700 (PDT)
Received: from mailgw2.ericsson.se (mailgw2.ericsson.se [193.180.251.37]) by ietfa.amsl.com (Postfix) with ESMTP id DACED1A08AB for <rtcweb@ietf.org>; Fri, 21 Mar 2014 01:19:10 -0700 (PDT)
X-AuditID: c1b4fb25-b7f038e000005d01-5d-532bf5f414d8
Received: from ESESSHC024.ericsson.se (Unknown_Domain [153.88.253.124]) by mailgw2.ericsson.se (Symantec Mail Security) with SMTP id 20.C1.23809.4F5FB235; Fri, 21 Mar 2014 09:19:01 +0100 (CET)
Received: from [127.0.0.1] (153.88.183.153) by smtp.internal.ericsson.com (153.88.183.92) with Microsoft SMTP Server id 14.2.347.0; Fri, 21 Mar 2014 09:19:00 +0100
Message-ID: <532BF5F4.90901@ericsson.com>
Date: Fri, 21 Mar 2014 09:19:00 +0100
From: Magnus Westerlund <magnus.westerlund@ericsson.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.4.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> <532AC890.7000602@ericsson.com> <CAOJ7v-2=p8LBjVK289usieiDFsmf6m3N8rYMNpBFPhDzdb_61Q@mail.gmail.com>
In-Reply-To: <CAOJ7v-2=p8LBjVK289usieiDFsmf6m3N8rYMNpBFPhDzdb_61Q@mail.gmail.com>
X-Enigmail-Version: 1.6
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnluLIzCtJLcpLzFFi42KZGfG3RvfrV+1gg+Y2RoutU4Us1v5rZ3dg 8liwqdRjyZKfTAFMUVw2Kak5mWWpRfp2CVwZLyftYC+Yql1x+cRsxgbGB7JdjJwcEgImEgfu LmCBsMUkLtxbz9bFyMUhJHCIUWLR/onsEM5yRomJm5rAqngFNCXur/vMBGKzCKhK3H7WzgZi swlYSNz80QhmiwoESyydsxiqXlDi5MwnYLaIgJrEw1m7WEFsZgF1iTuLz7GD2MICuhLrlu9h glg2i0ni79t7YIM4BQIlzl6+AGRzAJ0nLtHTGATRqynRuv03O4QtL9G8dTYziC0koC3R0NTB OoFRaBaS1bOQtMxC0rKAkXkVI3tuYmZOernRJkZgoB7c8lt1B+OdcyKHGKU5WJTEeT+8dQ4S EkhPLEnNTk0tSC2KLyrNSS0+xMjEwSnVwFjJdNva6Yy9fWs+g9XqX3Hmq1SCq8XDP0r+Piip OivJ7LFWeBHv7LmdFz7E3dUqvyc5t+T111uRfHG76h9mlD+Q3m4w2z3qWumC3vYGtofPl0hq 6teWi3mnf9+ZLbCrYU3BnIj/HAzXn68+XvA/2W/VQzXrVU/FzmyULtQ4FGb7d+HjVYIKa5RY ijMSDbWYi4oTAQix2JoiAgAA
Archived-At: http://mailarchive.ietf.org/arch/msg/rtcweb/E9ivoIZejNsOvBQ4Ua5W54RPnoc
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: Fri, 21 Mar 2014 08:19:14 -0000

On 2014-03-20 17:39, Justin Uberti wrote:
> 
> 
> 
> On Thu, Mar 20, 2014 at 3:53 AM, Magnus Westerlund
> <magnus.westerlund@ericsson.com <mailto:magnus.westerlund@ericsson.com>>
> wrote:
> 
>     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>
>     <mailto: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.
> 
> 
> Just to be sure I understand, your position is that WebRTC impls SHOULD
> include an a=maxptime attribute indicating the "minimum maximum" frame
> size they can receive, across all codecs?

Yes, as long as we lack payload type specific, I think that is the best
we can do.
> 
> Do you think anything needs to be included regarding a=ptime?

I think it MAY be included to indicate an initial preference for
packetization interval. In cases that is not common across the set of
payload types for that m= section, then one should skip it.

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
----------------------------------------------------------------------