Re: [rtcweb] Review request for RTCWeb standard signaling protocol

Randell Jesup <randell-ietf@jesup.org> Wed, 19 October 2011 07:48 UTC

Return-Path: <randell-ietf@jesup.org>
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 C5A9A21F8B27 for <rtcweb@ietfa.amsl.com>; Wed, 19 Oct 2011 00:48:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.553
X-Spam-Level:
X-Spam-Status: No, score=-2.553 tagged_above=-999 required=5 tests=[AWL=0.046, BAYES_00=-2.599]
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 C8F3rdTkbCSr for <rtcweb@ietfa.amsl.com>; Wed, 19 Oct 2011 00:48:05 -0700 (PDT)
Received: from r2-chicago.webserversystems.com (r2-chicago.webserversystems.com [173.236.101.58]) by ietfa.amsl.com (Postfix) with ESMTP id 1E39021F8B24 for <rtcweb@ietf.org>; Wed, 19 Oct 2011 00:48:05 -0700 (PDT)
Received: from pool-173-49-141-165.phlapa.fios.verizon.net ([173.49.141.165] helo=[192.168.1.12]) by r2-chicago.webserversystems.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <randell-ietf@jesup.org>) id 1RGQse-0004aF-Rd for rtcweb@ietf.org; Wed, 19 Oct 2011 02:48:04 -0500
Message-ID: <4E9E7F9F.1020503@jesup.org>
Date: Wed, 19 Oct 2011 03:43:27 -0400
From: Randell Jesup <randell-ietf@jesup.org>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1
MIME-Version: 1.0
To: rtcweb@ietf.org
References: <2E239D6FCD033C4BAF15F386A979BF510F1367@sonusinmail02.sonusnet.com> <665A16AB-AAD8-42B3-AC17-7E629EA2DE35@phonefromhere.com> <2E239D6FCD033C4BAF15F386A979BF5115992E@sonusinmail02.sonusnet.com> <CALiegfmrncjsLVSiWk0tEgzwB00YaBGiqj0SDf9JTm9p1ZNoVA@mail.gmail.com> <0950F0E1-6E4B-407F-9563-654AFE79F64B@ag-projects.com> <2E239D6FCD033C4BAF15F386A979BF51159994@sonusinmail02.sonusnet.com> <1F2A2C70609D9E41844A2126145FC09804004302@HKGMBOXPRD22.polycom.com> <033458F56EC2A64E8D2D7B759FA3E7E703DBF614@sonusmail04.sonusnet.com> <8486C8728176924BAF5BDB2F7D7EEDDF3E091D13@ucolhp4d.easf.csd.disa.mil> <2E239D6FCD033C4BAF15F386A979BF511599F3@sonusinmail02.sonusnet.com> <CALiegfnyfrBHATQ3WThT7F_fpXePN8PFYW_MJMwK-6QUjzkknA@mail.gmail.com> <CA+9kkMBa7RNzT3y_s+PgHZr9DTz-49WC8aEqmmZLt-eEYkBFnQ@mail.gmail.com> <37796D08-7A24-478B-8157-052FFB2E3945@acmepacket.com> <CA+9kkMATLaKpZzbNQeS8XMbqkViyeY=w6qx4S-txJr5A=D9s=w@mail.gmail.com>
In-Reply-To: <CA+9kkMATLaKpZzbNQeS8XMbqkViyeY=w6qx4S-txJr5A=D9s=w@mail.gmail.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - r2-chicago.webserversystems.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - jesup.org
X-Source:
X-Source-Args:
X-Source-Dir:
Subject: Re: [rtcweb] Review request for RTCWeb standard signaling protocol
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: Wed, 19 Oct 2011 07:48:05 -0000

On 10/18/2011 7:40 PM, Ted Hardie wrote:
>
> On Tue, Oct 18, 2011 at 1:43 PM, Hadriel Kaplan <HKaplan@acmepacket.com
> <mailto:HKaplan@acmepacket.com>> wrote:
>     It *is* an advantage.  It puts the power in the hands of the app
>     developer, not the browser developer.
>
>
>
> As Peter Parker's uncle Ben tells, us, with great power comes great
> responsibility.  Yes, it gives them a choice, but it also makes them
> responsible for something that is, bluntly, infrastructure plumbing that
> most of them would rather just worked.

I'll come back to where I've been before - Give those who want it access 
to use their own signaling (on top of ROAP at the browser interface), 
and provide a "simple" default signaling mechanism that *can* be used on 
top of ROAP.

Responses to arguments against this:

1) Don't lock us in to a existing protocol because it blocks doing X

    This doesn't lock anyone in; all can use the ROAP interface directly
    and ignore this protocol offered by the browser.

2) If it's baked into the browsers, it will take years to update/bugfix

    A specific service (website/app) can replace the "standard" protocol
    with their updated implementation in JS any time they want - and
    could even serve it only to people running non-updated browsers.

3) It will take forever to design and agree to a new protocol

    A valid, good point.  That would point one to use an existing
    protocol, or a subset of one.

4) It bloats the browser with something no one will use

    I agree it will increase the browser size.  I would disagree that no
    one would use it.

I'll note that such a signaling library in the browser doesn't *have* to 
be required; a browser could offer it, and the service's app could use 
it if available and download a JS version if not.

This (and ROAP, and standard servers for the protocol) would allow the 
infamous "20-line" JS client, without tying anyone's hands.

>>     It's certainly less efficient and, given the majority of users now
>>     accessing the Internet via mobile devices which are power and
>>     bandwidth constrained, that sort of wastefulness should not be
>>     trivially dismissed.
>
>     If a mobile platform is so constrained of power and bandwidth that
>     downloading a JS library is difficult, it's unlikely it would be
>     able to handle RTP/RTCP media regardless.
>
>
> You don't get to be rich by making a lot of money, you get to be rich by
> keeping it.  The same is true with energy in mobile systems.  Pay
> attention to it all the time, and there's a fair chance you will never
> run out.  Pay attention to it only when you're low, and you're likely
> paying attention to late.

150KB signaling libraries can take time (and energy!) to download; if 
you only have the bandwidth for a narrowband audio call (and rtcweb is 
not just for video!) it could take up to 45 seconds worth of in-call 
bandwidth to download the signaling library alone.  Now, hopefully this 
is cached if it's a service you use a lot, but you can't count on it 
being cached in any particular instance.  Even if you have a 128K 
ISDN-equivalent connection, it's still around 10 seconds just to 
download the library.   Always remember, not everyone has megabit 
bandwidth, or a good wireless connection - and as Ted mentions, even 
those who do are often energy-constrained.  This is even more the case 
in developing countries that may be skipping a lot of the wired 
infrastructure we take for granted.

I'll also note that while browsers are very good at running JS code 
fast, it isn't always the most efficient way to go, and over time is 
less efficient due to repeated re-parsing and re-JIT-ing the same code. 
  A built-in-but-optional protocol would be more efficient both in usage 
(faster is also less energy spent) and in not requiring re-download and 
re-parse/re-JIT.  A major issue? probably not, but a valid consideration.


-- 
Randell Jesup
randell-ietf@jesup.org