Presentation is loading. Please wait.

Presentation is loading. Please wait.

SIP Traversal over NAT Problems and Solutions Mr. Ting-Yun Chi May 2,2006 (Taiwan,NICI IPv6 R&D Division)

Similar presentations


Presentation on theme: "SIP Traversal over NAT Problems and Solutions Mr. Ting-Yun Chi May 2,2006 (Taiwan,NICI IPv6 R&D Division)"— Presentation transcript:

1 SIP Traversal over NAT Problems and Solutions Mr. Ting-Yun Chi May 2,2006 (Taiwan,NICI IPv6 R&D Division)

2 Outline  Before we start  NAT  SIP Traversal over NAT  NAT Check

3 Before we start….  You have learned VoIP  You will try to use VoIP but only write the paper.  Don ’ t forget the final solution.

4 Face the music…  VoIP can ’ t work in most of the IPv4 networks.  Most of the “ real network ” work with NAT

5 NAT(RFC2663) IP Network Address Translator (NAT) Terminology and Considerations  Traditional NAT Basic NAT NAPT  Bi-directional NAT  Twice NAT  Multi-Home NAT

6 Bi-directional NAT  With a Bi-directional NAT, sessions can be initiated from hosts in the public network as well as the private network. Private network addresses are bound to globally unique addresses, statically or dynamically as connections are established in either direction. The name space (i.e., their Fully Qualified Domain Names) between hosts in private and external networks is assumed to be end- to-end unique.

7 Twice NAT  Twice NAT is a variation of NAT in that both the source and destination addresses are modified by NAT as a datagram crosses address realms.

8 Multi-Home NAT  Multiple NAT boxes or multiple links on the same NAT box, sharing the same NAT configuration can provide fail-safe backup for each other.

9 Basic NAT Variations (RFC 3489) STUN - Simple Traversal of User Datagram Protocol (UDP) Through Network Address Translators (NATs)  Full Cone NAT  Restricted Cone  Port Restricted Cone:  Symmetric

10 Full Cone  A full cone NAT is one where all requests from the same internal IP address and port are mapped to the same external IP address and port. Furthermore, any external host can send a packet to the internal host, by sending a packet to the mapped external address.

11 Restricted Cone  A restricted cone NAT is one where all requests from the same internal IP address and port are mapped to the same external IP address and port. Unlike a full cone NAT, an external host (with IP address X) can send a packet to the internal host only if the internal host had previously sent a packet to IP address X.

12 Port Restricted Cone  A port restricted cone NAT is like a restricted cone NAT, but the restriction includes port numbers. Specifically, an external host can send a packet, with source IP address X and source port P, to the internal host only if the internal host had previously sent a packet to IP address X and port P.

13 Symmetric  A symmetric NAT is one where all requests from the same internal IP address and port, to a specific destination IP address and port, are mapped to the same external IP address and port. If the same host sends a packet with the same source address and port, but to a different destination, a different mapping is used. Furthermore, only the external host that receives a packet can send a UDP packet back to the internal host

14 APP will get problem with NAT…  From RFC RFC3022.RFC3027.RFC3225.RFC3489.P2P draft..  Non-port Data flow will be blocked  Packet will be Changed  Forward cause the lower performance  Data flow will be blocked(directional)

15 Non-port Data flow will be blocked  It will not happen in VoIP

16 Packet will be Changed  Can ’ t pass IPsec(ESP)

17 Forward case the lower performance  It ’ s easy to see..

18 Data flow will be blocked (directional)  App need multi-session.  Use IP payload info for connection  P2P

19 SIP Traversal over NAT 1. Hole Punching 2. DNS_ALG 3. SIP_ALG/RTP Relay Server 4. STUN 5. TURN 6. Tunnel 7. UPnP 8. MIDCOM 9. RFC1335:A Two-Tier Address

20 Hole Punching  It ’ s simple.  It ’ s just a tool.

21 DNS_ALG  Use DQDN  Cooperate with NAT-BOX to provide Bi-directional.

22 How DNS_ALG work?

23 SIP_ALG/RTP Relay Server  SIP_ALG  RTP Relay

24 SIP_ALG

25 RTP Relay

26 STUN  Agent + Hole Punching  Can ’ t work with Symmetric

27

28 Can’t work with Symmetric  12/1781.html

29 TURN  Use Relay TURN server  It Can work with Symmetric

30

31 Tunnel  Use third party Tunnel or VPN..

32 UPnP  MS~ MS~

33 MIDCOM(RFC 3304) Middlebox Communications (midcom) Protocol Requirements  midcom-charter.html

34 RFC1335:A Two-Tier Address  …… forget this solution …

35 NAT Check  Check Your Network Address Translator for Compatibility with Peer-to-Peer Protocols 

36 Final Solution IPv6


Download ppt "SIP Traversal over NAT Problems and Solutions Mr. Ting-Yun Chi May 2,2006 (Taiwan,NICI IPv6 R&D Division)"

Similar presentations


Ads by Google