Re: [sipcore] Proposal for a new SIP transport (WebSocket)

Iñaki Baz Castillo <ibc@aliax.net> Thu, 03 November 2011 15:30 UTC

Return-Path: <ibc@aliax.net>
X-Original-To: sipcore@ietfa.amsl.com
Delivered-To: sipcore@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A98301F0C96 for <sipcore@ietfa.amsl.com>; Thu, 3 Nov 2011 08:30:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.344
X-Spam-Level:
X-Spam-Status: No, score=-2.344 tagged_above=-999 required=5 tests=[AWL=-0.267, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, J_CHICKENPOX_24=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 fMITYI1N2-+m for <sipcore@ietfa.amsl.com>; Thu, 3 Nov 2011 08:30:26 -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 2515A1F0C72 for <sipcore@ietf.org>; Thu, 3 Nov 2011 08:30:26 -0700 (PDT)
Received: by vcbfl11 with SMTP id fl11so1426894vcb.31 for <sipcore@ietf.org>; Thu, 03 Nov 2011 08:30:25 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.52.100.70 with SMTP id ew6mr10121334vdb.49.1320334225566; Thu, 03 Nov 2011 08:30:25 -0700 (PDT)
Received: by 10.220.107.206 with HTTP; Thu, 3 Nov 2011 08:30:25 -0700 (PDT)
In-Reply-To: <4EB2AFEE.9050006@alum.mit.edu>
References: <CALiegf=_8GuvEHPR=rFA3Urtj0WxzRFQ4W=_dxkCDKZMbHL_aw@mail.gmail.com> <CALiegf=pRjgBUpLxm3e7CopwSrS8e9BekKdF5ZZEW04S29-XnA@mail.gmail.com> <4EAEE023.6010600@alum.mit.edu> <CALiegfnqsGrSVCe0OgdaH6sMW2QkXkZ_TJg0SzVTE=EY9usyLw@mail.gmail.com> <4EAEFC94.3050207@alum.mit.edu> <CALiegfk1Annk8-W8K=A8h9nEq_4Lj0neepA59-NmDRk7RLXroQ@mail.gmail.com> <4EB0060A.5020106@alum.mit.edu> <CALiegfkAeMWrpF1=GDfBm55uOOhsqGuK_gyVBrr0Pa74PyphAg@mail.gmail.com> <4EB2AFEE.9050006@alum.mit.edu>
Date: Thu, 03 Nov 2011 16:30:25 +0100
Message-ID: <CALiegf=_iy7d=z3ZHK0GnLswP_v5ReymtZ=Hu-xZm+OVG0x4kQ@mail.gmail.com>
From: Iñaki Baz Castillo <ibc@aliax.net>
To: Paul Kyzivat <pkyzivat@alum.mit.edu>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Cc: sipcore@ietf.org
Subject: Re: [sipcore] Proposal for a new SIP transport (WebSocket)
X-BeenThere: sipcore@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: SIP Core Working Group <sipcore.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/sipcore>, <mailto:sipcore-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/sipcore>
List-Post: <mailto:sipcore@ietf.org>
List-Help: <mailto:sipcore-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sipcore>, <mailto:sipcore-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 03 Nov 2011 15:30:26 -0000

2011/11/3 Paul Kyzivat <pkyzivat@alum.mit.edu>:
>> However I don't think that omitting the ;received stuff in the SIP
>> WebSocket server is something critical. As said before, ;received is
>> useless in SIP over WebSocket: it's a connection oriented protocol so
>> responses are sent using the same connection, and in case such
>> connection is closed responses cannot be sent to the WS client since
>> the WS client does not liste for incoming connections. The same occurs
>> with SIP TCP natted clients, but in this last case revealing the
>> ;received IP is not a risk.
>
> IMO this isn't something that it makes sense to deal with piecemeal.
> If a case can be made that this sort of privacy is important enough to
> introduce architectural changes in protocols, then we should be talking
> about that in general.

Hi Paul. I see a bit difference here:

In SIP we all assume that an element in the path of a SIP
communication is a IP layer box (a router) or a SIP box (a SIP
proxy/B2BUA/SBC). Let's forget NAT routers for now.

But in HTTP world is very common to have TCP/HTTP load balancers in
the path (while in SIP we use SIP proxies for balancing). Those
elements alter the received IP:port in the HTTP server but nobody
cares since such information is never told to the HTTP client. This is
not true in SIP since Via ;received / ;rport are supposed to reveal to
the client the source IP:port from which the server has received the
request.

In the case of WebSocket, the WS connection is made using an HTTP GET
replied with an HTTP 101. And then we have a TCP connection in which
both the WS client and WS server can send data by encapsulating it
over WebSocket frames.

Since we are defining here WebSocket as a transport for SIP, IMHO it
should not matter the TCP/HTTP load balancers in the path. Those are
in a layer below the WebSocket communication. The link I pasted in my
previous mail clearly shows how the received IP:port can be totally
useless for a WebSocket server.


Thanks a lot.


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