TURN

Traversal Using Relays around NAT

Protocol →
Introduced in Rel-7 Also in: Core Network

TURN is a protocol that relays data through a public server to enable real-time communication between devices behind NATs or firewalls when direct peer-to-peer connections are blocked.

Category
Protocol
Introduced
Rel-7
Where
Services › Codecs
Also touches
1 segments
Specifications
5 specs
TURN Description Purpose Related Classification Detected Changes Specifications

Description

Traversal Using Relays around NAT (TURN) is a network protocol designed to facilitate real-time media communication, such as VoIP and video conferencing, between endpoints that are behind Network Address Translation (NAT) devices or restrictive firewalls. It operates as an extension of the STUN (Session Traversal Utilities for NAT) protocol, using a TURN server as an intermediary relay in the public internet. When direct peer-to-peer connectivity is impossible due to symmetric NATs or firewall policies, TURN enables endpoints to establish a connection by sending all data through the TURN server, which forwards traffic between the parties. The protocol is standardized by the IETF (RFC 5766, updated by RFC 8656) and is widely used in 3GPP IMS (IP Multimedia Subsystem) and WebRTC frameworks for reliable session establishment.

Architecturally, a TURN deployment includes TURN clients (e.g., user devices running communication applications), TURN servers (publicly accessible relay nodes), and peer endpoints. The TURN client first discovers the TURN server using STUN mechanisms, then allocates a relayed transport address (IP address and port) on the server through a TURN Allocate request. This address is shared with the peer via signaling protocols like SIP (Session Initiation Protocol), allowing the peer to send data to the relay address. The TURN server forwards incoming packets from the peer to the client, and vice versa, using ChannelData messages or Send/Data indications. Key components include the allocation lifetime management, permissions to control which peers can send data, and integrity protection via message authentication.

In operation, TURN works in tandem with ICE (Interactive Connectivity Establishment) to determine the optimal network path. During ICE candidate gathering, the TURN server provides relay candidates, which are prioritized lower than host or server-reflexive candidates from STUN. If direct or NAT-assisted connections fail, ICE falls back to using the TURN relay, ensuring connectivity at the cost of increased latency and server load. TURN supports both UDP and TCP (including TLS-secured) transports, with mechanisms for congestion control and bandwidth management. In 3GPP networks, TURN servers are often deployed as part of the IMS architecture, specified in TS 23.334 for WebRTC interworking, to guarantee service continuity for voice and video calls across diverse network environments.

Purpose & Motivation

TURN was created to solve the critical problem of NAT and firewall traversal for real-time communication protocols, which often fail in peer-to-peer mode due to restrictive network policies. As internet usage grew in the 2000s, NATs became ubiquitous to conserve IPv4 addresses, but they broke end-to-end connectivity by hiding private IP addresses. While STUN could handle many NAT types by discovering public addresses, it failed with symmetric NATs, where port mappings are unique per destination. Firewalls further blocked unsolicited inbound traffic, preventing direct media streams. TURN addressed these limitations by providing a guaranteed relay path, ensuring that applications like VoIP and video conferencing could work reliably in all network scenarios.

The motivation for TURN emerged from the IETF's work on ICE and WebRTC, aiming to standardize a fallback mechanism for worst-case connectivity. In 3GPP, TURN gained importance with the adoption of IMS for multimedia services and WebRTC for browser-based communication, starting in Release 7. It solved interworking challenges between mobile networks (often behind carrier-grade NATs) and external internet endpoints, enabling seamless services like VoLTE and video calls. By relaying traffic through a controlled server, TURN also offers operators a point for traffic management and security enforcement, though it introduces additional latency and resource costs compared to direct connections.

Classification

Part ofICE
Related approachesNATIMS

Detected Changes Across Releases

from 3GPP Change Requests

Specific changes extracted from the „Change history“ tables of 3GPP specifications (2 CRs across 1 releases). Complements the general historical overview above with the evidence-based evolution of this function.

Studied in Rel-7, normative work from Rel-17.

Rel-17 2 changes

In Release 17, the updates for the TURN function primarily involved modernizing the foundational IETF references, specifically updating to IETF RFC 8656 for "Traversal Using Relays around NAT (TURN): Relay Extensions to Session Traversal Utilities for NAT (STUN)". Furthermore, the release introduced support for end-to-access-edge (e2ae) security using DTLS-SRTP specifically for non-WebRTC sessions, expanding the applicability of secure media traversal.

  • Update of IETF references for ICE, STUN and TURN TS 23.334CR0177
  • Support of e2ae security using DTLS-SRTP for non WebRTC sessions TS 23.334CR0178

Explore further

Broader topics and technologies where TURN plays a role.

Defining Specifications

3GPP specifications that define or reference TURN, with the latest known release. Sourced from the 3GPP document catalog — see methodology.

SpecificationTitleRelease
TS 23.334 vj00 IMS-ALG to IMS-AGW Interface (Iq) Stage 2 Rel-19
TS 24.229 vj50 IMS call control protocol based on SIP and SDP Rel-19
TS 26.506 vj20 Real-Time Media Communication Architecture for 5G Rel-19
TS 26.510 vj10 Media Delivery APIs for 5GMS and RTC Systems Rel-19
TR 26.998 vj00 5G AR/MR Glasses Integration Study Rel-19