====== STUN - Simple Traversal of UDP Through NATs ====== ===== Documentation ===== * STUN protocol : [[http://rfc.net/rfc3489.html|RFC3489 March 2003 standard]], [[http://www.potaroo.net/ietf/all-ids/draft-ietf-behave-rfc3489bis-01.txt|IETF February 2005 memo]] * General description of various P2P [[http://www.brynosaurus.com/pub/net/draft-ford-midcom-p2p-00.txt|connection mechanisms]] * [[http://list.sipfoundry.org/archive/ietf-behave/pdf00000.pdf|NAT types]] * NAT traversal using [[http://www.brynosaurus.com/pub/net/p2pnat/|hole punching]] * [[http://cnscenter.future.co.kr/resource/ietf/ind-draft/draft-takeda-symmetric-nat-traversal-00.txt|Symmetric/symmetric]] NAT traversal * different traversal techniques : [[http://www.tml.tkk.fi/Publications/C/18/hu.pdf|comparison]], [[http://www.iab.org/documents/drafts/draft-iab-nat-traversal-considerations-00.txt|IAB considerations]] ===== General description ===== The STUN client protocol implementation uses its own UDP socket layer to communicate with one or more servers. The discovery process begins with determining of free UDP socket starting at port number 36000 and continuing downwards. The discovery itself is currently implemented using five-step procedure described in [[http://rfc.net/rfc3489.html#s10.1|March 2003 standard]]. The whole process does not last more than 10 seconds ( actually, full discovery in wost, symmetric/symmetric case, can take as long as 105 seconds) and is able to discover information necessary for performing UDP NAT traversal using hole punching : accessibility of public and private addresses and the type of most restrictive NAT between the client and the STUN server. ===== AllPeers integration ===== * [[apINetStateService]] * [[apINetStateCallback]] ===== Available open source implementations ===== * [[http://www.vovida.org/applications/downloads/stun/|Vovida server]] * [[http://sourceforge.net/projects/stun/|Vovida derived client & server]] * [[http://jstun.javawi.de/|JSTUN client & server]], in Java ===== Free servers list ===== * Vovida 0.96 : stun.fwdnet.net, stun.fwd.org, stun01.sipphone.com, stun.softjoys.com, stun.voipbuster.com, stun.voxgratia.org, stun.xten.com, stun.noc.ams-ix.net