Description
The Tunnel End Point Identifier (TEID) is a cornerstone of the GPRS Tunneling Protocol (GTP) used across 3GPP mobile networks from 3G to 5G. It is a 32-bit field present in the header of GTP-U (User plane) and GTP-C (Control plane) packets. Architecturally, a GTP tunnel is a logical point-to-point connection established between two GTP-speaking nodes, such as between a Serving Gateway (SGW) and a Packet Data Network Gateway (PGW) in 4G, or between a UPF and a SMF/UPF in 5G. The TEID uniquely identifies a specific tunnel endpoint at the receiving node. Crucially, both ends of a tunnel have their own local TEID values; the sender sets the TEID value that the receiver has assigned for that particular tunnel or bearer context.
How it works is fundamental to GTP-based mobility. When a Packet Data Protocol (PDP) context in 3G or a PDN connection/EPS bearer in 4G is established, control plane signaling (GTP-C) allocates TEIDs for the user plane tunnels (GTP-U). For example, during an LTE attach procedure, the MME instructs the SGW to create a session, and the SGW allocates a TEID for its downlink side of the S1-U tunnel towards the eNodeB and another for its uplink side of the S5/S8 tunnel towards the PGW. These TEIDs are exchanged via GTP-C messages. Subsequently, every user data packet carries the destination TEID in its GTP-U header. The receiving node (e.g., an eNodeB or a UPF) uses this TEID as a direct lookup key to find the associated bearer context, which contains all necessary information for processing the packet, such as QoS parameters and the next hop.
Its role extends beyond simple addressing. The TEID is the primary mechanism for bearer multiplexing. A single network node (like a SGW) manages thousands of simultaneous tunnels, each for a different UE or different QoS flow. The TEID allows the node to instantly demultiplex incoming GTP packets to the correct internal context without inspecting the inner IP packets. In 5G Core, the principle remains, though the architecture shifts to a service-based interface for control plane, with GTP-U still prevalent in the user plane between UPFs and (R)AN. The TEID's design ensures stateful, connection-oriented forwarding that is optimized for mobility and QoS enforcement across the mobile core network.
Purpose & Motivation
The TEID was created to solve the problem of managing multiple, simultaneous packet data sessions for millions of users in a scalable and efficient manner within mobile core networks. Prior to GPRS, data was primarily circuit-switched, which was inefficient for bursty IP traffic. The introduction of packet-switching required a tunneling mechanism to forward user IP packets between network nodes while preserving the subscriber's session context, QoS, and charging rules as they moved.
The GTP protocol, with the TEID at its heart, was designed to provide this tunneling capability. It addresses key limitations: it decouples the user's IP address (which can change) from the routing within the core network, enables seamless mobility by allowing tunnels to be re-routed as the user moves, and provides a simple, fast lookup mechanism for forwarding planes. The TEID specifically solves the multiplexing problem—allowing a single IP address/port pair on a network node to serve thousands of distinct user sessions. Its creation was motivated by the need for a standardized, robust tunneling protocol that could support the "always-on" IP connectivity model essential for mobile internet services, from early GPRS to modern 5G.
Release Timeline
Detected Changes Across Releases
from 3GPP Change RequestsSpecific changes extracted from the „Change history“ tables of 3GPP specifications (7 CRs across 4 releases). Complements the general historical overview above with the evidence-based evolution of this function.
In Release 15, the TEID function was enhanced to improve security by introducing unpredictability for GTP TEIDs at the PGW for both the GTP-C and GTP-U interfaces. Furthermore, a new Interface Type was defined for an AMF F-TEID, and a new cause code was introduced to support these updated procedures.
In Release 16, the primary documented change for the Tunnel Endpoint Identifier (TEID) function was the removal of a specific test case related to it. This indicates a refinement of the testing specifications, where a previously defined TEID-related validation procedure was deemed unnecessary or superseded. The change focused on streamlining the conformance testing requirements rather than altering the TEID's core technical function or its use in data tunnels.
- Deletion of the test case on TEID TS 33.515CR0005
In Release 17, the TEID function was enhanced to support the monitoring of GTP data packet loss by introducing specific incoming and outgoing TEIDs for this purpose. Furthermore, the release defined a new Interface Type, N19mb, for use within the F-TEID (Fully Qualified Tunnel Endpoint Identifier).
In Release 18, a specific enhancement was made for the TEID function concerning the PGW-C TEID during PGW-triggered PDN connection restoration. The change involved including the PGW-C TEID within the Update Bearer Response message for this specific restoration procedure. This provides the necessary tunnel endpoint identifier explicitly during the restoration process initiated by the PGW.
- PGW-C TEID in Update Bearer Response during PGW triggered PDN connection restoration TS 29.274CR2076
Explore further
Broader topics and technologies where TEID plays a role.
Defining Specifications
3GPP specifications that define or reference TEID, with the latest known release. Sourced from the 3GPP document catalog — see methodology.
| Specification | Title | Release |
|---|---|---|
| TR 21.905 vj00 | 3GPP Technical Terms and Definitions | Rel-19 |
| TS 23.060 vj00 | GPRS Service Description Stage 2 | Rel-19 |
| TS 23.527 vj50 | 5G System Restoration Procedures | Rel-19 |
| TS 25.401 vj00 | UTRAN Overall Architecture | Rel-19 |
| TS 25.413 vj00 | Radio Access Network Application Part (RANAP) | Rel-19 |
| TS 25.414 vj00 | UTRAN Iu Interface User Plane Transport Protocols | Rel-19 |
| TR 25.931 vj00 | UTRAN Signalling Procedures Examples | Rel-19 |
| TS 26.804 vj10 | 5G Media Streaming Extensions Study | Rel-19 |
| TS 28.552 vk10 | 5G Performance Management Measurements | Rel-20 |
| TS 29.060 vj00 | GPRS Tunnelling Protocol (GTP) version 1 | Rel-19 |
| TS 29.061 vj00 | Packet Domain Interworking for PLMN | Rel-19 |
| TS 29.119 vj00 | GTP for GLR in 3GPP Networks | Rel-19 |
| TS 29.274 vj50 | GTPv2-C Control Plane Protocol Specification | Rel-19 |
| TS 29.276 vj00 | EPS S101/S121/S103 Interfaces Stage 3 | Rel-19 |
| TS 29.281 vj20 | GTPv1-U Protocol Specification | Rel-19 |
| TS 29.532 vj30 | MB-SMF Service Based Interface Protocol | Rel-19 |
| TS 33.515 vk00 | 5G SMF Security Assurance Specification | Rel-20 |
| TS 36.300 vj00 | E-UTRAN Radio Interface Protocol Architecture Overview | Rel-19 |
| TS 36.413 vj10 | S1 Application Protocol (S1AP) | Rel-19 |
| TS 36.414 vj00 | S1 Interface User Plane Transport | Rel-19 |
| TS 36.424 vj00 | X2 Interface User Plane Transport Protocols | Rel-19 |
| TS 36.444 vj00 | M3AP Protocol Specification for M3 Interface | Rel-19 |
| TS 36.445 vj00 | M1 interface user plane protocol for MBMS | Rel-19 |
| TS 38.340 vj00 | Backhaul Adaptation Protocol (BAP) Specification | Rel-19 |
| TS 38.401 vj10 | NG-RAN Architecture Specification | Rel-19 |
| TS 38.414 vj00 | NG Interface User Plane Protocol | Rel-19 |
| TS 38.424 vj00 | Xn Interface User Plane Transport Protocol | Rel-19 |
| TS 38.474 vj00 | F1 Interface User Plane Protocol | Rel-19 |
| TS 44.318 vj00 | Generic Access Network (GAN) Interface Procedures | Rel-19 |