Re: [MMUSIC] Wisdom sought: Prioritization of codecs

Adam Roach <adam@nostrum.com> Thu, 15 November 2012 21:53 UTC

Return-Path: <adam@nostrum.com>
X-Original-To: mmusic@ietfa.amsl.com
Delivered-To: mmusic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7292F21F8B19 for <mmusic@ietfa.amsl.com>; Thu, 15 Nov 2012 13:53:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.327
X-Spam-Level:
X-Spam-Status: No, score=-102.327 tagged_above=-999 required=5 tests=[AWL=0.273, BAYES_00=-2.599, SPF_PASS=-0.001, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IXn7sBn32WUP for <mmusic@ietfa.amsl.com>; Thu, 15 Nov 2012 13:53:24 -0800 (PST)
Received: from shaman.nostrum.com (nostrum-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:267::2]) by ietfa.amsl.com (Postfix) with ESMTP id 9DA5721F8A48 for <mmusic@ietf.org>; Thu, 15 Nov 2012 13:53:23 -0800 (PST)
Received: from Orochi.local (99-152-144-32.lightspeed.dllstx.sbcglobal.net [99.152.144.32]) (authenticated bits=0) by shaman.nostrum.com (8.14.3/8.14.3) with ESMTP id qAFLrJlG000947 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 15 Nov 2012 15:53:19 -0600 (CST) (envelope-from adam@nostrum.com)
Message-ID: <50A5644F.4010809@nostrum.com>
Date: Thu, 15 Nov 2012 15:53:19 -0600
From: Adam Roach <adam@nostrum.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: Paul Kyzivat <pkyzivat@alum.mit.edu>
References: <50A4AC20.5030306@alvestrand.no> <50A4AE7F.4040403@alvestrand.no> <50A51F04.5090502@alum.mit.edu> <50A54895.7030006@nostrum.com> <50A55F78.4010603@alum.mit.edu>
In-Reply-To: <50A55F78.4010603@alum.mit.edu>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Received-SPF: pass (nostrum.com: 99.152.144.32 is authenticated by a trusted mechanism)
Cc: mmusic@ietf.org
Subject: Re: [MMUSIC] Wisdom sought: Prioritization of codecs
X-BeenThere: mmusic@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Multiparty Multimedia Session Control Working Group <mmusic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mmusic>, <mailto:mmusic-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/mmusic>
List-Post: <mailto:mmusic@ietf.org>
List-Help: <mailto:mmusic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mmusic>, <mailto:mmusic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 15 Nov 2012 21:53:25 -0000

On 11/15/12 15:32, Paul Kyzivat wrote:
> On 11/15/12 2:55 PM, Adam Roach wrote:
>> On 11/15/12 10:57, Paul Kyzivat wrote:
>>> The whole notion of codec preference breaks down even more for
>>> multiplexed streams. You may very explicitly prefer/require different
>>> streams to use different codecs.
>>>
>>> So I don't think we can rely too much on parsing the existing text for
>>> guidance on how to use SDP to represent multiplexed sessions. (Unless
>>> of course we use bundle, with a separate m-line for each stream.)
>>> AFAIK we are breaking new ground here.
>>
>> This kind of "we fixed this problem once and get to fix it all over
>> again" issue is exactly the kind of thing I was speaking to at the
>> microphone in MMUSIC in Atlanta. The further we drift from the
>> established semantics of SDP, the less applicable previously developed
>> mechanisms become. Bundle and similar approaches that maintain one m=
>> line per stream allow us to leverage 14 years of extensions and
>> clarifications. If we decide to split from that (rather fundamental,
>> IMHO) characteristic of SDP, we are effectively forking the protocol,
>> and throwing away years of prior work.
>
> I would like to agree with you. But when multiplexing RTP streams it 
> is problematic to prearrange every stream in SDP. That requires 
> knowing in advance how many there will be, what their SSRCs will be, 
> and what the mapping from SSRC to codec will be.
>
> We are still thrashing that out for CLUE. We have some use cases where 
> it seems we can't do all of that in advance, and doing an O/A after we 
> get packets is too late. Maybe we will find a way around that. Too 
> early to tell.

I need to catch up on CLUE before I can talk to that very much. I'd been 
pretty much ignoring CLUE; but in Atlanta, it became clear that CLUE's 
impact was going to seep out into every other working group in RAI.

> And AFAIK RTCWEB has only been planning to use bundle to give a 
> separate m-line for audio and one for video, not necessarily a 
> separate one for every media stream.

I don't think that's a settled question.

> And even our 14 years of experience on this haven't resulted in a spec 
> that fully lines up with what is deployed in the wild. There is an 
> assumption in the specs that if you offer multiple codecs and the 
> answer accepts multiple codecs, then you can accept packets in any of 
> the negotiated codecs, and switch among them, even though we know 
> implementations that depend on only one codec being used. (With a 
> special case for telephone-events.)

True. It would be good if we could document this set of unstated 
assumptions as a "current practices" document at some point (note the 
lack of "best" before "current practices").

> We are now encountering applications that have more complex needs than 
> were anticipated over those 14 years. It's nice if we can reuse what 
> we have without change to meet those needs. But lets not constrain new 
> applications to the sorts of things we had in mind 14 years ago.

I don't think it's necessary to do so. I've spent some time thinking on 
this problem, and have a half-formed proposal that I plan to bring forth 
once I'm more comfortable that it provides a satisfying user experience.

I just think we're rushing down a path of throwing out a lot of good to 
get rid of a little bit of bad. I'd like to see more discussion around 
less radical changes to SDP to achieve the goals of CLUE and RTCWEB.

/a