Re: [rtcweb] draft-ibc-rtcweb-sip-websocket -- WebSocket Transport for Session Initiation Protocol (SIP)

Dzonatas Sol <dzonatas@gmail.com> Thu, 15 September 2011 19:05 UTC

Return-Path: <dzonatas@gmail.com>
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 99D4E11E80C2 for <rtcweb@ietfa.amsl.com>; Thu, 15 Sep 2011 12:05:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.871
X-Spam-Level:
X-Spam-Status: No, score=-3.871 tagged_above=-999 required=5 tests=[AWL=-0.272, BAYES_00=-2.599, 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 KKtdGKkNykYg for <rtcweb@ietfa.amsl.com>; Thu, 15 Sep 2011 12:05:46 -0700 (PDT)
Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by ietfa.amsl.com (Postfix) with ESMTP id A1B9E11E80BF for <rtcweb@ietf.org>; Thu, 15 Sep 2011 12:05:46 -0700 (PDT)
Received: by iaby26 with SMTP id y26so1795780iab.31 for <rtcweb@ietf.org>; Thu, 15 Sep 2011 12:07:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=Oc2jyRXQJcJrYywfeaAcUyRe1gHBTqVDpnlwWb50ems=; b=hHD9qjbEVjAzO695dd2KI7F8pgze8KoUzC2ti7UGEqxsSPqbSsoQxK7z5c2Sa6w9FM +uuKanfKLie0f0SWmoHNG9gQ6cJf+L4w9iUqlIrHJ9OJvKh/7RzsaSgBEnAQK0T2nqOb PVCJnyr95mhoFHUPcGZ9hA+kpC4Qxu3fLbAH0=
Received: by 10.231.65.139 with SMTP id j11mr2422436ibi.33.1316113678985; Thu, 15 Sep 2011 12:07:58 -0700 (PDT)
Received: from [192.168.0.50] (adsl-70-133-70-225.dsl.scrm01.sbcglobal.net. [70.133.70.225]) by mx.google.com with ESMTPS id a11sm5894996ibg.3.2011.09.15.12.07.55 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 15 Sep 2011 12:07:56 -0700 (PDT)
Message-ID: <4E724D8D.7020603@gmail.com>
Date: Thu, 15 Sep 2011 12:10:05 -0700
From: Dzonatas Sol <dzonatas@gmail.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110818 Icedove/3.0.11
MIME-Version: 1.0
To: rtcweb@ietf.org
References: <CABw3bnO+85i-TtuqS+P4n+rYgyxyoASc8HXpADhy4QPTC0_szA@mail.gmail.com> <6F469757-6B5C-4DC9-BC34-026F34C7E508@phonefromhere.com> <CAD5OKxvCSJWS+F72P_WOFapmtffkLCSSe3A-rDEUOhNjWcoh4A@mail.gmail.com> <E44893DD4E290745BB608EB23FDDB7620B39D8@008-AM1MPN1-043.mgdnok.nokia.com>
In-Reply-To: <E44893DD4E290745BB608EB23FDDB7620B39D8@008-AM1MPN1-043.mgdnok.nokia.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Subject: Re: [rtcweb] draft-ibc-rtcweb-sip-websocket -- WebSocket Transport for Session Initiation Protocol (SIP)
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: Thu, 15 Sep 2011 19:05:47 -0000

On 09/15/2011 11:49 AM, Markus.Isomaki@nokia.com wrote:
> Hi,
>
> This is an important point. But why do you think it is necessary for a Javascript based implementation, using HTTP or websockets, to send keepalives more often than a regular SIP UA would? If both are running on TCP, the NAT and firewall and such timers will be the same for both, and this gives an upper bound to the keepalive interval. (SIP over UDP is out of the question due to too short timers.)
>
> RTCWeb HTTP or websocket servers should be designed so that they do not require some kind of hearbeat or pingpong or keepalive too often by themselves, and especially they should not interfere but let the clients do them.
>    

In crowds of more than 10,000 people all with "mobiles" the heart-beat 
signal/server is liken to QoS for proximal optimization for them. They 
have the option to tune-out and still have expected bandwidth which is 
known to get worse without QoS in such scenarios. With "50mi wi-fi" out 
now, this is now liken to the clock towers at universities and not just 
some reminder of the Olympic bandwidth requirements. We can think of 
that as basic federation before we evolve security states; also, that 
help clear-up the situation of a stateful transfer between get-opts and 
SCTP such that schema moves up on the lexical stack.

I see why Bruce Perens wants "The Covenant" now.



> The trend has been that a lot of asynchronous communication is nowadays agregated to apps via some kind of "notification service" (several companies run them), so that not all apps need to do keepalives by themselves. It would be useful if the browser/web environment could also make use of these services. Unfortunately they are all proprietary and bound to a particular OS or vendor.
>
> Markus
>
>
> From: rtcweb-bounces@ietf.org [mailto:rtcweb-bounces@ietf.org] On Behalf Of ext Roman Shpount
> Sent: 15 September, 2011 20:34
> To: Tim Panton
> Cc: rtcweb@ietf.org
> Subject: Re: [rtcweb] draft-ibc-rtcweb-sip-websocket -- WebSocket Transport for Session Initiation Protocol (SIP)
>
> The only potential problem with mobile applications and javascript based signaling code is the effect of maintaining registrations for long periods of time while waiting for a call on battery life and network utilization. A regular SIP library can be designed is such a way that the device will go into sleep mode and will wake up when a SIP packet is received. JavaScript will need to open a connection to a server and send ping messages at regular, fairly short, intervals, that will cause device to wake up every time ping message needs to be sent and to consume both power and network capacity. Such applications, running for the long periods of time can seriously decrease battery lifetime. On the other hand, doing this during an active call has a negligible effect on both power consumption or network utilization, since device is already running and sending media.
> _____________
> Roman Shpount
>
> On Thu, Sep 15, 2011 at 6:02 AM, Tim Panton<tim@phonefromhere.com>  wrote:
>
> On 13 Sep 2011, at 21:50, Jos� Luis Mill�n wrote:
>
>
> On Tue, Sep 13, 2011 at 9:25 PM, �<Markus.Isomaki@nokia.com>  wrote:
>    
>> Hi Inaki,
>>
>> Fully agree about everything you say below.
>>      
> Hi,
>
> Sorry if this mail arrives out of the original mail thread.
>
>    
>> It would be interesting to understand the performance differences of the native vs. Javascript SIP stack, if there is anything we should be worried about. This is my only concern when (perhaps one day) applying RTCWeb in devices like smartphones. If the JS stack works in (any of) today's high end smartphones without problems, we should be fine.
>>      
> The are no meaningful performance penalties at all using the JavaScript SIP stack in our prototype. In fact, multiple SIP stack instances can run in a single Web browser freshly. �BTW, is there any WebSocket capable web browser for smartphones?
>
> As an additional datapoint, The�Phono.com�javascript XMPP stack performs fine on android and iOS within a Phonegap app.
> Native browser javascript engines tend to be slightly better optimized than the ones available to mobile apps,
> so I doubt that performance would be an issue.
>
> Tim.
>
>
> _______________________________________________
> rtcweb mailing list
> rtcweb@ietf.org
> https://www.ietf.org/mailman/listinfo/rtcweb
>
> _______________________________________________
> rtcweb mailing list
> rtcweb@ietf.org
> https://www.ietf.org/mailman/listinfo/rtcweb
>
>    


-- 

---
<i>The wheel.</i metro-link=t dzonatasolyndra>