Re: [rtcweb] draft-sipdoc-rtcweb-open-wire-protocol-00 (Open In-The-Wire Protocol for RTC-Web)

Iñaki Baz Castillo <ibc@aliax.net> Mon, 31 October 2011 09:03 UTC

Return-Path: <ibc@aliax.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 BB1E421F8A71 for <rtcweb@ietfa.amsl.com>; Mon, 31 Oct 2011 02:03:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.646
X-Spam-Level:
X-Spam-Status: No, score=-2.646 tagged_above=-999 required=5 tests=[AWL=0.031, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, 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 ieWtWYsE6gsT for <rtcweb@ietfa.amsl.com>; Mon, 31 Oct 2011 02:03:25 -0700 (PDT)
Received: from mail-vx0-f172.google.com (mail-vx0-f172.google.com [209.85.220.172]) by ietfa.amsl.com (Postfix) with ESMTP id CA13521F891D for <rtcweb@ietf.org>; Mon, 31 Oct 2011 02:03:24 -0700 (PDT)
Received: by vcbfo1 with SMTP id fo1so5533287vcb.31 for <rtcweb@ietf.org>; Mon, 31 Oct 2011 02:03:24 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.220.150.81 with SMTP id x17mr2362036vcv.233.1320051804348; Mon, 31 Oct 2011 02:03:24 -0700 (PDT)
Received: by 10.220.184.6 with HTTP; Mon, 31 Oct 2011 02:03:24 -0700 (PDT)
In-Reply-To: <76E0CAF7-E66C-467D-A518-59143A663E31@cisco.com>
References: <CALiegfmvWWMf6dSikgfZqnSPuN-6UZKwAMfKu9HP2uqJxHMVCQ@mail.gmail.com> <CALiegfmFE0zhBg6aZMtRMO5q-k6_jeHAn9q2XivNw8yjNVqyag@mail.gmail.com> <715A5714-B44A-4E1D-AC2F-7CC2EAD42D0F@acmepacket.com> <76E0CAF7-E66C-467D-A518-59143A663E31@cisco.com>
Date: Mon, 31 Oct 2011 10:03:24 +0100
Message-ID: <CALiegf=S-3SP9Se59QSqqcpUpWay0D-=P44apOwRrg+4yrj-NQ@mail.gmail.com>
From: Iñaki Baz Castillo <ibc@aliax.net>
To: Cullen Jennings <fluffy@cisco.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Cc: "<rtcweb@ietf.org>" <rtcweb@ietf.org>
Subject: Re: [rtcweb] draft-sipdoc-rtcweb-open-wire-protocol-00 (Open In-The-Wire Protocol for RTC-Web)
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: Mon, 31 Oct 2011 09:03:27 -0000

2011/10/31 Cullen Jennings <fluffy@cisco.com>:
> One random idea … say that websockets was a protocol you could use to connect to a TURN server and then the TURN sever could send UPD or TCP SIP. That might be easier to deploy … not sure this is a good idea … just a random idea I thought I would mention.

There are two problems with this:

- If the websocket2tcp gateway is not SIP aware it would convert any
TCP packet into a WebSocket message. This means that such WebSocket
message could contain an incomplete SIP message or more than a single
SIP message, and that would require stream parsing in the WebSocket
client (JvaScript) becoming much more complex. In fact, our draft
mandates that a WebSocket message MUST contain a single and complete
SIP message (in the same way that SIP over UDP or SCTP). The draft
"XMPP over WebSocket" mandates the same.

- The SIP stack in JavaScript should set "TCP" in the Via transport,
or may be "TLS", or "UDP" (depending on the SIP transport used after
the websocket2tcp/udp/tls gateway.


So I strongly prefer to add WebSocket as a real SIP transport in a SIP
proxy (even more when I already have it deployed) :)

Regards.


-- 
Iñaki Baz Castillo
<ibc@aliax.net>