Re: [rtcweb] On babies and bathwater (was Re: Summary of Application Developers' opinions of the current WebRTC API and SDP as a control surface)

"Matthew Kaufman (SKYPE)" <matthew.kaufman@skype.net> Fri, 19 July 2013 18:38 UTC

Return-Path: <matthew.kaufman@skype.net>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7292B21E810C for <rtcweb@ietfa.amsl.com>; Fri, 19 Jul 2013 11:38:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.221
X-Spam-Level:
X-Spam-Status: No, score=-3.221 tagged_above=-999 required=5 tests=[AWL=-0.522, BAYES_00=-2.599, J_CHICKENPOX_42=0.6, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_LOW=-1]
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 zPXQsZbGwC0q for <rtcweb@ietfa.amsl.com>; Fri, 19 Jul 2013 11:38:32 -0700 (PDT)
Received: from va3outboundpool.messaging.microsoft.com (va3ehsobe010.messaging.microsoft.com [216.32.180.30]) by ietfa.amsl.com (Postfix) with ESMTP id F18A021E80D2 for <rtcweb@ietf.org>; Fri, 19 Jul 2013 11:38:31 -0700 (PDT)
Received: from mail196-va3-R.bigfish.com (10.7.14.245) by VA3EHSOBE006.bigfish.com (10.7.40.26) with Microsoft SMTP Server id 14.1.225.22; Fri, 19 Jul 2013 18:38:30 +0000
Received: from mail196-va3 (localhost [127.0.0.1]) by mail196-va3-R.bigfish.com (Postfix) with ESMTP id C3D113A01E4; Fri, 19 Jul 2013 18:38:30 +0000 (UTC)
X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14MLTC102.redmond.corp.microsoft.com; RD:autodiscover.service.exchange.microsoft.com; EFVD:NLI
X-SpamScore: -1
X-BigFish: VS-1(zzc89bh1432Izz1f42h208ch1ee6h1de0h1fdah2073h1202h1e76h1d1ah1d2ah1fc6hzz1de098h1de097hz2fh2a8h668h839h93fhd25hf0ah1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh15d0h162dh1631h1758h18e1h1946h19b5h19ceh1b0ah1d0ch1d2eh1d3fh1dfeh1dffh1e1dh1155h)
Received-SPF: pass (mail196-va3: domain of skype.net designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=matthew.kaufman@skype.net; helo=TK5EX14MLTC102.redmond.corp.microsoft.com ; icrosoft.com ;
Received: from mail196-va3 (localhost.localdomain [127.0.0.1]) by mail196-va3 (MessageSwitch) id 1374259108813536_16392; Fri, 19 Jul 2013 18:38:28 +0000 (UTC)
Received: from VA3EHSMHS002.bigfish.com (unknown [10.7.14.240]) by mail196-va3.bigfish.com (Postfix) with ESMTP id B1A8D300268; Fri, 19 Jul 2013 18:38:28 +0000 (UTC)
Received: from TK5EX14MLTC102.redmond.corp.microsoft.com (131.107.125.8) by VA3EHSMHS002.bigfish.com (10.7.99.12) with Microsoft SMTP Server (TLS) id 14.1.225.23; Fri, 19 Jul 2013 18:38:22 +0000
Received: from TK5EX14MBXC266.redmond.corp.microsoft.com ([169.254.2.194]) by TK5EX14MLTC102.redmond.corp.microsoft.com ([157.54.79.180]) with mapi id 14.03.0136.001; Fri, 19 Jul 2013 18:38:11 +0000
From: "Matthew Kaufman (SKYPE)" <matthew.kaufman@skype.net>
To: Adam Roach <adam@nostrum.com>, Iñaki Baz Castillo <ibc@aliax.net>
Thread-Topic: On babies and bathwater (was Re: [rtcweb] Summary of Application Developers' opinions of the current WebRTC API and SDP as a control surface)
Thread-Index: AQHOhJ5X3vuWfZ1FiEyuUoqjlknpnZlsUo3w
Date: Fri, 19 Jul 2013 18:38:09 +0000
Message-ID: <AE1A6B5FD507DC4FB3C5166F3A05A48423716FDE@TK5EX14MBXC266.redmond.corp.microsoft.com>
References: <CAJrXDUGMohpBdi-ft-o_uE7ewFkw7wRY9x7gYEncjov7qi-Bew@mail.gmail.com> <CABcZeBPa4wBS8pYq=0wesMOfL6TkeC7QGAZ8pWwOcnkhkJqWfA@mail.gmail.com> <CAJrXDUFxo8P8wxh8jX3019yPQOuwQ0eVdsFmRXsbWdWinnc5oA@mail.gmail.com> <CABcZeBOTKpmFC34waqZ4kA-P8t+E6yY9gX1JFCHhsBH0+CF-Qw@mail.gmail.com> <1447FA0C20ED5147A1AA0EF02890A64B1C30BC0F@ESESSMB209.ericsson.se> <CAD5OKxtKLMf_d=8GSMrqfNhDHPe9MFP2ZTKzZHFn9CyMr-gSVQ@mail.gmail.com> <1447FA0C20ED5147A1AA0EF02890A64B1C30C833@ESESSMB209.ericsson.se> <CAD5OKxvGfkgRp6tXwbOu_kVteHiBBqsyR5ixH18FMKjCNGO8VQ@mail.gmail.com> <1447FA0C20ED5147A1AA0EF02890A64B1C30CD1E@ESESSMB209.ericsson.se> <BLU401-EAS386F88B3FE140492B39B59693610@phx.gbl> <AE1A6B5FD507DC4FB3C5166F3A05A484213E41E7@TK5EX14MBXC265.redmond.corp.microsoft.com> <C50FDAD5-492C-4A83-AD6D-464242FB4A05@iii.ca> <CALiegfneUj=kzDjR_E1=S-bqAajaPUE3f_A2g8oGriFyPhamPA@mail.gmail.com> <51E96B5B.2050302@nostrum.com>
In-Reply-To: <51E96B5B.2050302@nostrum.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [157.54.51.76]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: skype.net
Cc: "<rtcweb@ietf.org>" <rtcweb@ietf.org>, "public-webrtc@w3.org" <public-webrtc@w3.org>
Subject: Re: [rtcweb] On babies and bathwater (was Re: Summary of Application Developers' opinions of the current WebRTC API and SDP as a control surface)
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.12
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, 19 Jul 2013 18:38:38 -0000

From: Adam Roach [mailto:adam@nostrum.com]:
> 
> I think this is a hopelessly naïve interpretation of the facts on the ground.
> Simply discarding SDP doesn't magically make the underlying issues go away.
> We would still need to settle a vast number of issues around things like
> simulcast, FEC, codec parameters, indication of supported codecs, correlation
> of RTP streams with MediaStreamTracks, attempts by both parties to
> operate on the same stream simultaneously [1], etc. Basically, with very rare
> exception, the same set of problems that we need to solve if we *don't*
> throw SDP out the window.

Not today we wouldn't. We'd need a handful on knobs that let the most common use cases be implemented under JavaScript control, and then we could look at what other APIs need to be added later. None of simulcast, FED, or any of those things (with the exception of the "a=fmt" section for codec parameters or an equivalent) needs to be done to get WebRTC out the door.


> ...
> Your pain point isn't SDP syntax. Yeah, it's ugly, but it's not hard.
> Your pain point isn't offer/answer.

Yes it is. It immediately limits the possible operations that *any* API would be able to achieve.

> Two unilaterally declared sessions that are
> simply blasted out onto the wire only satisfies the simplest of use cases; you
> need a negotiation, and any attempt to define how that negotiation looks is
> going to arrive at something with enough rules that it is substantially as
> complicated as offer/answer.

Simply not true. Offer/answer is only one way to get two things to talk to each other, and it is a "trunk side" "peer to peer" negotiation that assumes no intelligence in the middle.

> 
> No, your pain point here is that non-master-slave networked
> communications are not easy to get right

Aha! I think I see your problem here.

If we give the web developer some JavaScript APIs, then it isn't "non-maser-slave networked communications". In fact it is exactly the opposite. 

Just like all other "HTML5" technologies we should be assuming that the web server and the HTML+JS it sends down *is the master*, telling the browser exactly what it should do. In this scenario, there are a multitude of ways, from simple to complex, to ensuring that both (or more, for any non 1-1 use case) ends are sending data over their network connection that the other end can use and render.

> I understand comment 22 at its core [2], but it has a corollary: any system
> that replaces SDP O/A will end up being similar in complexity once all
> interested parties' use cases have been factored in.

I doubt it. But even if that's true, it will give the JavaScript developer direct control over what is happening, and that's a win. And likely, much of the "extra complexity" you are thinking of will end up in shared JS libraries, not baked into a browser. And the legacy interop you're concerned about? Any compatibility issues will get fixed right in that same place, long before any browser vendor works out exactly what is necessary to work with a particular device that a web site operator cares for their users to connect to.

Matthew Kaufman

ps. Comment 22 isn't "SDP is hard"... rather it is "if you were using our API, you wouldn't be encountering this issue at all"