STUN, Simple Traversal of UDP Through NAT

Description Glossary RFCs Publications Obsolete RFCs

Description:

Protocol suite: TCP/IP.
Type:Application layer protocol.
Port:3478 (TCP, UDP).
MIME subtype:
SNMP MIBs:
Working groups: behave, Behavior Engineering for Hindrance Avoidance.
Links:

A lightweight protocol that allows applications to discover the presence and types of Network Address Translators and firewalls between them and the public Internet. It also provides the ability for applications to determine the public IP addresses allocated to them by the NAT. STUN works with many existing NATs, and does not require any special behavior from them. As a result, it allows a wide variety of applications to work through existing NAT infrastructure.


MAC header IP header TCP header STUN header Data :::
MAC header IP header UDP header STUN header Data :::

STUN header:

0001020304050607 0809101112131415 1617181920212223 2425262728293031
Type Length
Transaction ID
-
-
-
Data :::

Type. 16 bits.

TypeDescription
0x0001Binding Request.
0x0002Shared Secret Request.
0x0101Binding Response.
0x0102Shared Secret Response.
0x0111Binding Error Response.
0x0112Shared Secret Error Response.

Length. 16 bits.
The size of the message in bytes not including the STUN header.

Transaction ID. 16 bits.

Data. Variable length.


Glossary:


RFCs:

[RFC 3489] STUN - Simple Traversal of User Datagram Protocol (UDP) Through Network Address Translators (NATs).


Description Glossary RFCs Publications Obsolete RFCs