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

Christer Holmberg <christer.holmberg@ericsson.com> Wed, 14 September 2011 11:09 UTC

Return-Path: <christer.holmberg@ericsson.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 1585B21F8C9C for <rtcweb@ietfa.amsl.com>; Wed, 14 Sep 2011 04:09:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.079
X-Spam-Level:
X-Spam-Status: No, score=-6.079 tagged_above=-999 required=5 tests=[AWL=-0.380, BAYES_00=-2.599, J_CHICKENPOX_44=0.6, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_MED=-4]
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 BxTL-iM9ESOz for <rtcweb@ietfa.amsl.com>; Wed, 14 Sep 2011 04:09:13 -0700 (PDT)
Received: from mailgw9.se.ericsson.net (mailgw9.se.ericsson.net [193.180.251.57]) by ietfa.amsl.com (Postfix) with ESMTP id AFE8521F8C9B for <rtcweb@ietf.org>; Wed, 14 Sep 2011 04:09:12 -0700 (PDT)
X-AuditID: c1b4fb39-b7bfdae000005125-0d-4e708bd8db91
Received: from esessmw0247.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw9.se.ericsson.net (Symantec Mail Security) with SMTP id D6.98.20773.8DB807E4; Wed, 14 Sep 2011 13:11:20 +0200 (CEST)
Received: from ESESSCMS0356.eemea.ericsson.se ([169.254.1.250]) by esessmw0247.eemea.ericsson.se ([10.2.3.116]) with mapi; Wed, 14 Sep 2011 13:11:20 +0200
From: Christer Holmberg <christer.holmberg@ericsson.com>
To: Iñaki Baz Castillo <ibc@aliax.net>
Date: Wed, 14 Sep 2011 13:11:18 +0200
Thread-Topic: [rtcweb] draft-ibc-rtcweb-sip-websocket -- WebSocket Transport for Session Initiation Protocol (SIP)
Thread-Index: Acxyyy0csspcLj+8R/e32BKosoNEDAAANzpA
Message-ID: <7F2072F1E0DE894DA4B517B93C6A05852233EDB2D1@ESESSCMS0356.eemea.ericsson.se>
References: <CALiegfk6BhtzErXOQM8iSV7FC6isYUwOS1KPYCw_M1vEcNP6eQ@mail.gmail.com> <1F2A2C70609D9E41844A2126145FC09802585056@HKGMBOXPRD22.polycom.com> <CALiegfnR=b-9AOBmzytAT-AX9Evr1vegFK-J+MtAhBNWNAAWbA@mail.gmail.com> <7F2072F1E0DE894DA4B517B93C6A05852233EDB21A@ESESSCMS0356.eemea.ericsson.se> <CALiegf=fOcGYKuwabmeHDbkFY4ywrFsPjb9q0uXbTh_K6W4nSw@mail.gmail.com>
In-Reply-To: <CALiegf=fOcGYKuwabmeHDbkFY4ywrFsPjb9q0uXbTh_K6W4nSw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Brightmail-Tracker: AAAAAA==
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
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: Wed, 14 Sep 2011 11:09:14 -0000

Hi, 

>> I have a comment, related to this.
>>
>> The text says:
>>
>>   "Even more, the WebSocket protocol is not symmetric since
>>   just a WebSocket client can open a connection to a 
>>   WebSocket server (a WebSocket client does not listen for incoming 
>>   connections)."
>>
>> But, this is of course also true when you DO use a browser, 
>> but it's not really addressed in the draft. You need to 
>> describe that it is assumed that the WebSocket connection has 
>> been established at the point when the browser is supposed to 
>> be able to receive incoming SIP calls.
> 
> Hi Christer. IMHO that is already addressed in the draft:
> 
> ----------------------------------------------------
> 6.  WebSocket Client Usage
> 
>    As stated in [I-D.ietf-hybi-thewebsocketprotocol], a WebSocket URI
>    [RFC3986] is given to the WebSocket client (typically within a web-
>    based application) who resolves the URI destination and 
>    establishes a WebSocket connection with the corresponding server (by 
>    performing the handshake and negotiation procedures described in
>    [I-D.ietf-hybi-thewebsocketprotocol]).
> -----------------------------------------------------

Well, that describes HOW the WebSocket is established.

--------

>>For example, the WebSocket could be established once the JS app is 
>>downloaded,
> 
>But that is obvious given the WebSocket protocol nature. The 
>client MUST establish a WebSocket connection with the server 
>before attempting to send or receive WebSocket messages.

Of course. But, as you describe the WebSocket usage for SIP, I think it needs to be stated WHEN that can occur for SIP.

--------

>Could you please point to the exact section in the draft in 
>which you miss such explanation? We'll be very glad to improve it.

I would like something like:

	"When the WebSocket is used to transport SIP traffic, the WebSocket MUST be established at the point where
	the browser SIP application shall be able to place and receive SIP calls. Based on local policy, this might
	e.g. occur once the JavaScript SIP application has been downloaded from the web server, or when the
	SIP user using the browser application registers itself to a SIP registrar (assuming that calls cannot be
	placed or received before that)."

I guess text text could fit either in section 4.x, or in section 6. 

--------

>>or when the JS SIP client registers (similar to how SIP 
>>Outbound works).
> 
>In normal scenarios the client must register in order to 
>receive incoming SIP calls, but that is not a MUST. For 
>example a WebSocket server could route INVITE requests to 
>connected WebSocket clients without previous SIP registration 
>made by the clients. It would be up to the provider local 
>policy. I don't think the draft should mandate SIP 
>registration in order to receive calls (neither RFC 3261 
>mandates it), as registration is just one of the existing 
>ways for receiving incoming calls, but not the unique. Am I wrong?

I was not suggesting that we mandate registration. It was just an example of when one could choose to establish the WebSocket, IF the browser shall be able to receive incoming calls after registration. If it shall be able to receive incoming calls before the registration (or, if there is no registration in the first place), the WebSocket needs to be established at some other point.

--------

>>> The keep-alive mechanism is needed for cases in which 
>>> there is a NAT router in the path. Those routers usually close a TCP connection 
>>> after some minutes of inactivity. This happens in any TCP 
>>> connection from client to server through a NAT box.
>>
>> Since WebSocket provides a keep-alive function, you can of 
>> course use that.
> 
> Current limitation exists in WebSocket API since it does not 
> provide a way for the client to send Ping frames to the 
> server. Please check the open request in the W3C tracker 
> about this topic:
> 
>   http://www.w3.org/Bugs/Public/show_bug.cgi?id=13104#c3
> 
> 
>> I guess it could still be mentioned that a SIP level 
>> mechanism exists.
> 
> I assume you mean the CRLF+CRLF mechanism defined in RFC 5626 
> "Managing Client-Initiated Connections in SIP" which is a 
> technique for SIP clients to keep the connection open by 
> sending CRLF+CRLF and receiving CRLF reply from the proxy/server.
> 
> RFC 5626 says:
> 
> ---------------------------------
> 3.5.1.  CRLF Keep-Alive Technique
> 
>    This approach can only be used with connection-oriented transports
>    such as TCP or SCTP.  The client periodically sends a double-CRLF
>    (the "ping") then waits to receive a single CRLF (the "pong").  If
>    the client does not receive a "pong" within an appropriate 
> amount of
>    time, it considers the flow failed.
> -------------------------------
> 
> 
> Since SIP WebSocket transport (as defined in the draft) is 
> also a reliable transport, we could mention the usage of this 
> keepalive technique in the draft, is it ok?

I think it's better to refer to RFC 6223, which only covers the keep-alive part of RFC 5626.

(RFC 5626 contains also contains other stuff that most likely doesn't apply for the browser case).

--------

Regards,

Christer