RE: [P2PSIP] Choice of STUN peer or TURN peer

"Dan Wing" <dwing@cisco.com> Wed, 23 January 2008 08:12 UTC

Return-path: <p2psip-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1JHaj2-0001vJ-M8; Wed, 23 Jan 2008 03:12:48 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JHaj1-0001v5-Dn for p2psip@ietf.org; Wed, 23 Jan 2008 03:12:47 -0500
Received: from sj-iport-6.cisco.com ([171.71.176.117]) by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1JHaj0-0004ev-CK for p2psip@ietf.org; Wed, 23 Jan 2008 03:12:47 -0500
Received: from sj-dkim-1.cisco.com ([171.71.179.21]) by sj-iport-6.cisco.com with ESMTP; 23 Jan 2008 00:12:45 -0800
Received: from sj-core-1.cisco.com (sj-core-1.cisco.com [171.71.177.237]) by sj-dkim-1.cisco.com (8.12.11/8.12.11) with ESMTP id m0N8Cji4021958; Wed, 23 Jan 2008 00:12:45 -0800
Received: from dwingwxp01 ([10.32.240.195]) by sj-core-1.cisco.com (8.12.10/8.12.6) with ESMTP id m0N8Cj3V011601; Wed, 23 Jan 2008 08:12:45 GMT
From: Dan Wing <dwing@cisco.com>
To: 'JiangXingFeng' <jiang.x.f@huawei.com>, 'P2PSIP Mailing List' <p2psip@ietf.org>
References: <44e301c85d64$c1a11010$c3f0200a@cisco.com> <003601c85d79$f261a290$2d09a40a@china.huawei.com>
Subject: RE: [P2PSIP] Choice of STUN peer or TURN peer
Date: Wed, 23 Jan 2008 00:12:45 -0800
Message-ID: <4b8701c85d97$bc072990$c3f0200a@cisco.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <003601c85d79$f261a290$2d09a40a@china.huawei.com>
Thread-Index: Achc2mE+N3Ev8YYNRpCsDNPfo2q5cgAijS9QAAUvrwAAByAy4A==
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; l=4041; t=1201075965; x=1201939965; c=relaxed/simple; s=sjdkim1004; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=dwing@cisco.com; z=From:=20=22Dan=20Wing=22=20<dwing@cisco.com> |Subject:=20RE=3A=20[P2PSIP]=20Choice=20of=20STUN=20peer=20 or=20TURN=20peer |Sender:=20; bh=z358AINMUi7I1JkkTFtMObXcrA/lno8SI/UZJ1mphjo=; b=cvBXCj6efEet/Hzndy4YfeOLgYA2hZDP3UwtBV4vloc1vlL1V3J2KjlOVN wDGPZNmqQrfPjFDxCibxmkLi0t3lMRMC7UptaAZNdIgomhhMstkMftYCR/N4 qzRFjm5Aaaqm/2NEd/bBFCyWr0Jv8eS1/X1uZTlxkDHGp2jffriYc=;
Authentication-Results: sj-dkim-1; header.From=dwing@cisco.com; dkim=pass ( sig from cisco.com/sjdkim1004 verified; );
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 5d7a7e767f20255fce80fa0b77fb2433
Cc:
X-BeenThere: p2psip@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Peer-to-Peer SIP working group discussion list <p2psip.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/p2psip>, <mailto:p2psip-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/p2psip>
List-Post: <mailto:p2psip@ietf.org>
List-Help: <mailto:p2psip-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/p2psip>, <mailto:p2psip-request@ietf.org?subject=subscribe>
Errors-To: p2psip-bounces@ietf.org

 

> -----Original Message-----
> From: JiangXingFeng [mailto:jiang.x.f@huawei.com] 
> Sent: Tuesday, January 22, 2008 8:40 PM
> To: 'Dan Wing'; 'P2PSIP Mailing List'
> Subject: RE: [P2PSIP] Choice of STUN peer or TURN peer
> 
> Hi, Dan:
> 
> Thanks for your comments.
> 
> ICE does support multiple servers. But I guess ICE has not considered
> whether STUN server or TURN server is behind NAT. (Is my understanding
> right?) So if STUN server or TURN server behind NAT are 
> involved, the ICE
> connectivity procedure will take more time to complete.
> I am not sure how longer it is. 

There are two variables:

  1. how many candidates you could gather
  2. how quickly your peer can send connectivity checks
     to those candidates

To the first point, in the diagram you provided in your earlier email, there
are only three candidate addresses:  one from the local interface, one from
the STUN server that is behind the same NAT you're behind, and another from a
STUN server on the Internet.  Are there network topologies where more
candidate addresses would be learned?

To the second point, the additional delay depends on how quickly you can send
the connectivity checks to the additional candidates.  This rate depends on
the RTP sending rate.  So, for example, if the endpoint is going to send an
~200 byte RTP packet every 20ms, the endpoint is permitted to send a ~200 byte
connectivity check (to a new candidate) every 20ms.  With 3 different
candidates, that is 3*20ms=60ms of additional time.  60ms does not seem
significant to me.

-d


> --
> JiangXingFeng
> 
> > -----Original Message-----
> > From: Dan Wing [mailto:dwing@cisco.com]
> > Sent: Wednesday, January 23, 2008 10:08 AM
> > To: 'JiangXingFeng'; 'P2PSIP Mailing List'
> > Subject: RE: [P2PSIP] Choice of STUN peer or TURN peer
> > 
> > ICE allows you to have multiple STUN servers.  In the diagram you
> provided,
> > Peer A could contact Peer C, Peer D, and Peer B, and would notice
> different
> > answers from some (or all) of them.  All of those different 
> answers can be
> > provided as different candidates (a=candidate) in the call 
> setup message.
> > 
> > -d
> > 
> > 
> > > -----Original Message-----
> > > From: JiangXingFeng [mailto:jiang.x.f@huawei.com]
> > > Sent: Tuesday, January 22, 2008 1:37 AM
> > > To: 'P2PSIP Mailing List'
> > > Subject: [P2PSIP] Choice of STUN peer or TURN peer
> > >
> > > Hi, all:
> > >
> > >
> > >
> > > In order to make the peers serve each other, some peers with
> > > special capabilities could be exploited to play the STUN/TURN
> > > server role for other peers who are behind NAT. Guys in
> > > P2PSIP community has agreed with that peer behind NAT should
> > > seek help from other peers, not centralized STUN/TURN server.
> > >
> > >
> > >
> > > But which kinds of peers are qualified for playing STUN/TURN
> > > server? Of course, Peers on the public internet could take
> > > this responsibility. I also learned from the list that peers
> > > behind p2p-friendly NAT (with end-point independent mapping
> > > and filtering behavior) also could do the same work. But from
> > > my point of view, ICE negotiation procedure may fail if
> > > choosing this kind of peer as STUN/TURN server.
> > >
> > >
> > >
> > > Let's show an example:
> > >
> > >
> > >
> > > Peer A and peer B want to communicate directly. NAT2 is a
> > > p2p-friendly NAT. So peer C would be considered as a
> > > candidate STUN server. If peer A choose the Peer C as its
> > > STUN server, peer A will get a mapping on the NAT1 which is
> > > in the address realm of private network. And Peer A will tell
> > > peer B this server reflexive address. But peer B could not
> > > reach it because it is in different address realm.
> > >
> > >
> > >
> > > Am I missing something? Comments are appreciated!
> > >
> > >
> > >
> > > Regards!
> > >
> > > --
> > >
> > > Jiang XingFeng
> > >
> > >
> > >
> > >
> > >
> > >
> 


_______________________________________________
P2PSIP mailing list
P2PSIP@ietf.org
https://www1.ietf.org/mailman/listinfo/p2psip