Re: [rtcweb] New Version Notification for draft-guduru-rtcweb-codec-preferences-01.txt

Kiran Kumar Guduru <kiran.guduru@samsung.com> Tue, 12 August 2014 08:52 UTC

Return-Path: <kiran.guduru@samsung.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 C1F4E1A07AE for <rtcweb@ietfa.amsl.com>; Tue, 12 Aug 2014 01:52:23 -0700 (PDT)
X-Quarantine-ID: <BXOa-I5GYqRC>
X-Virus-Scanned: amavisd-new at amsl.com
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "MIME-Version"
X-Spam-Flag: NO
X-Spam-Score: -5.851
X-Spam-Level:
X-Spam-Status: No, score=-5.851 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.723, RCVD_IN_DNSWL_HI=-5, RELAY_IS_203=0.994, RP_MATCHES_RCVD=-0.668, SPF_HELO_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 BXOa-I5GYqRC for <rtcweb@ietfa.amsl.com>; Tue, 12 Aug 2014 01:52:16 -0700 (PDT)
Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E7A091A036A for <rtcweb@ietf.org>; Tue, 12 Aug 2014 01:52:15 -0700 (PDT)
Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NA6008R2RAPYM50@mailout2.samsung.com> for rtcweb@ietf.org; Tue, 12 Aug 2014 17:52:01 +0900 (KST)
Received: from epcpsbgx4.samsung.com ( [172.20.52.122]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 9E.9F.15745.1B5D9E35; Tue, 12 Aug 2014 17:52:01 +0900 (KST)
X-AuditID: cbfee691-b7f306d000003d81-fb-53e9d5b136f2
Received: from epmailer03 ( [203.254.219.143]) by epcpsbgx4.samsung.com (EPCPMTA) with SMTP id 3A.A6.18761.0B5D9E35; Tue, 12 Aug 2014 17:52:00 +0900 (KST)
Message-id: <4A.A6.18761.1B5D9E35@epcpsbgx4.samsung.com>
Date: Tue, 12 Aug 2014 08:52:00 +0000
From: Kiran Kumar Guduru <kiran.guduru@samsung.com>
To: juberti@google.com
MIME-version: 1.0
X-MTR: 20140812084706196@kiran.guduru
Msgkey: 20140812084706196@kiran.guduru
X-EPLocale: en_US.utf-8
X-Priority: 3
X-EPWebmail-Msg-Type: personal
X-EPWebmail-Reply-Demand: 0
X-EPApproval-Locale:
X-EPHeader: ML
X-EPTrCode:
X-EPTrName:
X-MLAttribute:
X-RootMTR: 20140812084706196@kiran.guduru
X-ParentMTR:
X-ArchiveUser:
X-CPGSPASS: N
MIME-version: 1.0
Content-type: multipart/related; boundary="=_NamoWEC-sz6ci9q761"
X-Generator: Namo ActiveSquare 7 7.0.0.45
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprEJsWRmVeSWpSXmKPExsWyRsSkSnfj1ZfBBqc/clus/dfO7sDosWTJ T6YAxigum5TUnMyy1CJ9uwSujLenN7MVfP/LVHHo+kXmBsYHn5m6GDk5hATUJTasvscGYksI mEjsf7cGyhaTuHBvPZDNBVSzlFHi04L1cEXzdm6ESsxhlFi+eCEjSIJXwELi2pFVzCA2i4Cq xKHHJ9hBbDaghl8n1oDVCAskScw49h1ss4iAtMTmibPAapgFQiX6uudDXaQksfbqTVaImYIS J2c+YYFYrCqxeH4zG0RcTWLTvHWMEHFxib8Nj9ghbF6JGe1PoerlJKZ9XcMMYUtLnJ+1gRHm s8XfH0PF+SWO3d4BtJcDrPfJ/W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UnYWkDJ0N0zILaDMz 0ObFszwhwooSU7ofskPYdhLLJ2xnxxRXlfh1YAkrTM3U1gNsqGo4wGqedHAsYORexSiaWpBc UJyUXmGiV5yYW1yal66XnJ+7iRGcLp8t2cHYcMH6EKMAB6MSD++PwJfBQqyJZcWVuYcYVYDG PNqw+gKjFEtefl6qkgiv+GWgNG9KYmVValF+fFFpTmrxIcb9jMAkMZFZSjQ5H5jk80riDY1N zE2NTS0MDM3NzQaPsJI474JbSUFCAumJJanZqakFqUUwLzBxcEo1MC66pb1lgtWVSzd/HK26 e4i3f4I9R6Ww6a066yOLL9Rzeftt6jzixqVzOv2zzzTLVqO47el3v3w498eQY9N2u/iLO/5f 33Q6c7e7X9PmiWrGi8OSPnkVTp1TIpCarPTx2gGrGS2vlL8vW+KxxqVgefy0vTHJDrfV1/6Y mFY/ae5pz2Nv/plNlU5XYinOSDTUYi4qTgQAZ6JJVEQEAAA=
DLP-Filter: Pass
X-CFilter-Loop: Reflected
Archived-At: http://mailarchive.ietf.org/arch/msg/rtcweb/B2qhW8dCyMBAIDKu8x1xVTvW7XQ
Cc: franklin.blek@gmail.com, rtcweb@ietf.org, public-webrtc@w3.org
Subject: Re: [rtcweb] New Version Notification for draft-guduru-rtcweb-codec-preferences-01.txt
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: kiran.guduru@samsung.com
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: Tue, 12 Aug 2014 08:52:24 -0000

Hi Justin,

I was on my biz trip so not able to respond to your mails promptly.

Sorry for the delayed response.

 

The reason you specified seems not suitable in all scenarios.

Please find the scenario explained through below figure

Here Browser supports Opus, G.711, Gateway supports Opus, G.711 and AMR-WB, If we consider a call between a third party application instead of browser, like IMS or RCS application which supports AMR-WB,

Then the call flow will be like,

1.       Browser sends offer with Opus, G.711 as supported codecs in the same order respectively.

2.       Since Gateway supports AMR-WB also, it sends the offer to third party app with Opus, G.711 and AMR-WB in same order respectively. (The reason for moving AMR-WB last is to avoid transcoding, if the remote client supports either Opus or G.711)

3.       If the third party app responds with AMR-WB using its own order of preference in the answer, as explained by you. (Saying some reason of quality or etc). (Since 3GPP specifications allows sending only single codec in answer, the Gateway might receive only AMR-WB)

4.       As per the RFC 3264 Gateway MUST establish the call with remote client using AMR-WB and that of with Browser with Opus, which forces it to do transcoding. (This results in bad user experience).

5.       So most of the Implementations will respond with the codec preferences specified by offerer and try to re-negotiate with its preferences with a re-offer. And that was the reason why RFC 3264 RECOMMENDs to use the codec order same as that specified by the offerer.

 

 

 

 

 

Regards,

Kiran.

 

 

 

From: Justin Uberti [mailto:juberti@google.com]
Sent: Wednesday, July 23, 2014 9:13 AM
To: Kiran Kumar Guduru
Cc: franklin blek; public-webrtc@w3.org; rtcweb@ietf.org
Subject: Re: Re: Re: New Version Notification for draft-guduru-rtcweb-codec-preferences-01.txt

 

 

 

This is a useful example, thanks for explaining this. But I think this is the wrong solution. Quoth RFC3264, S. 7:

 

   When the offerer receives the answer, it MAY send media on the

   accepted stream(s) (assuming it is listed as sendrecv or recvonly in

   the answer).  It MUST send using a media format listed in the answer,

   and it SHOULD use the first media format listed in the answer when it

   does send.

 

Note the use of SHOULD vs MUST.

[KIRAN] section 7 explains about "offerer processing of the Answer". But I think the correct section for my explanation is section 6, " Generating the Answer", which recommonds to use the same order of preference as that in the offer.

 
 
   "Although the answerer MAY list the formats in their desired order of
   preference, it is RECOMMENDED that unless there is a specific reason,
   the answerer list formats in the same relative order they were
   present in the offer."

 

The text says "unless there is a specific reason". You have a specific reason. Just do it. 

 

It is far more sensible to change the order of codecs in the answer, than to send a reoffer with changed codecs immediately afterwards.