Loading learning content...
Every handoff, every roaming registration, every call delivered to a mobile subscriber in a foreign country—all of these operations depend on specialized signaling protocols that carry control messages between network elements. These protocols form the nervous system of mobile networks, orchestrating the complex dance of mobility management.
Understanding these protocols is essential for:
The evolution of mobile network protocols mirrors the evolution of mobile networks themselves—from the circuit-switched, SS7-based world of 2G/3G to the all-IP, Diameter-based architecture of 4G/5G.
By the end of this page, you will understand the SS7 protocol stack and MAP (Mobile Application Part) for 2G/3G mobility, the Diameter protocol framework for LTE/5G, GTP (GPRS Tunneling Protocol) for user plane and control plane tunneling, and how these protocols work together to enable seamless handoff and roaming.
Signaling System 7 (SS7) is the signaling protocol stack that has underpinned global telecommunications since the 1980s. Originally designed for PSTN (Public Switched Telephone Network) call setup, SS7 was extended to support mobile network functions through the Mobile Application Part (MAP).
SS7 is a layered protocol stack optimized for reliable signaling:
Level 1: MTP1 (Message Transfer Part 1) - Physical Layer
Level 2: MTP2 - Data Link Layer
Level 3: MTP3 - Network Layer
Level 4: SCCP (Signaling Connection Control Part)
Application Parts:
| Layer | Protocol | Function | Equivalent in IP |
|---|---|---|---|
| Physical | MTP1 | Physical signaling links | Ethernet/Physical |
| Data Link | MTP2 | Reliable frame delivery | TCP-like reliability |
| Network | MTP3 | Signaling routing | IP routing |
| Transport | SCCP | Services + GTT routing | UDP/TCP + DNS |
| Application | MAP/ISUP/CAP | Mobile/Call functions | HTTP/SIP/Diameter |
MAP is the SS7 application protocol that provides mobility management functions for GSM and UMTS networks. It defines the procedures for:
Location Management:
Handoff (Handover) Support:
Authentication:
Subscriber Management:
Supplementary Services:
The key MAP messages for roaming are: UPDATE_LOCATION (subscriber registers with new VLR), INSERT_SUBSCRIBER_DATA (HLR sends profile to VLR), SEND_ROUTING_INFORMATION (find roaming subscriber for incoming call), and PROVIDE_ROAMING_NUMBER (allocate MSRN for call delivery). These messages traverse international SS7 links for international roaming.
As networks evolved toward IP, the need arose to carry SS7 signaling over IP networks rather than dedicated TDM signaling links. SIGTRAN is the IETF framework for SS7 over IP.
SIGTRAN provides a set of adaptation layers that carry SS7 protocols over SCTP (Stream Control Transmission Protocol), an IP transport protocol designed for signaling:
M2UA (MTP2 User Adaptation):
M2PA (MTP2 Peer-to-Peer Adaptation):
M3UA (MTP3 User Adaptation):
SUA (SCCP User Adaptation):
SCTP (Stream Control Transmission Protocol) was designed specifically for signaling:
SCTP's features make it ideal for signaling transport where reliability and failover are critical but message structure must be preserved.
Most modern GSM/UMTS networks use SIGTRAN for inter-network signaling, especially for international roaming. The Signaling Gateway (SG) at the network edge converts between SS7/TDM and SIGTRAN/IP. For roaming, signaling travels over the GRX/IPX network using SIGTRAN rather than dedicated international SS7 links.
Diameter is the AAA (Authentication, Authorization, Accounting) protocol that replaced MAP for signaling in LTE and 5G networks. While Diameter was originally developed as an evolution of RADIUS for AAA, it was adapted for mobile network signaling.
Base Protocol (RFC 6733):
Key Diameter Properties:
S6a/S6d - MME to HSS Interface:
The primary mobility management interface in LTE:
S13 - MME to EIR Interface:
Device identity checking:
Gx - PCRF to PGW Interface:
Policy and Charging Rules Function:
Rx - AF to PCRF Interface:
Application Function to Policy:
Gy - OCS to PGW Interface:
Online Charging System:
| Interface | Endpoints | Application | Key Functions |
|---|---|---|---|
| S6a | MME ↔ HSS | S6a (3GPP) | Location update, authentication, profile |
| S6d | SGSN ↔ HSS | S6d (3GPP) | Same as S6a for 2G/3G interworking |
| S13 | MME ↔ EIR | S13 (3GPP) | Device identity checking |
| SWx | ePDG ↔ HSS | SWx (3GPP) | WiFi authentication |
| Gx | PCRF ↔ PGW | Gx (3GPP) | Policy and charging control |
| Rx | AF ↔ PCRF | Rx (3GPP) | Application-level QoS |
| Gy | OCS ↔ PGW | Gy (3GPP) | Online charging |
| Gz | OFCS ↔ PGW | Gz (3GPP) | Offline charging |
Diameter S6a provides similar functions to MAP for mobility management but with improvements: IP-native transport (no SS7), extensible AVP format, standardized application framework, and better support for data services. However, Diameter is more verbose and has higher message overhead than the compact MAP encoding.
GTP (GPRS Tunneling Protocol) is a family of protocols that provide tunneling for both signaling (GTP-C) and user data (GTP-U) in mobile networks. GTP is essential for maintaining session continuity during handoff and roaming.
GTP-C (Control Plane):
GTP-U (User Plane):
GTP' (GTP Prime):
Why Tunneling is Needed:
When a mobile device gets an IP address from the PGW, that address must remain valid as the device moves between eNodeBs and even between SGWs. GTP-U tunnels provide this mobility:
GTP-U Header Structure:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Version| PT| E | S |PN| Message Type | Length (Octets) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| TEID (Tunnel Endpoint ID) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
TEID (Tunnel Endpoint Identifier):
The 32-bit TEID uniquely identifies a tunnel endpoint at a network element:
During X2 handoff in LTE, downlink data is forwarded between eNodeBs via GTP-U to prevent data loss. The source eNodeB continues receiving data from SGW and forwards to target eNodeB until the path is switched. This forwarding uses a temporary GTP-U tunnel between eNodeBs.
Key GTPv2-C Interfaces:
Key GTPv2-C Messages:
| Message | Function | Trigger |
|---|---|---|
| Create Session Request/Response | Establish bearer context | Initial attach, PDN connection |
| Modify Bearer Request/Response | Update bearer parameters | Handoff, service request |
| Delete Session Request/Response | Tear down bearer | Detach, PDN disconnect |
| Create Bearer Request/Response | Add dedicated bearer | QoS setup (e.g., VoLTE) |
| Update Bearer Request/Response | Modify existing bearer | Policy change |
| Release Access Bearers Request/Response | Release radio resources | Idle mode entry |
Roaming Considerations:
For roaming, the S8 interface between SGW (visited network) and PGW (home network) uses GTPv2-C for control and GTP-U for user plane. This interface carries the roaming subscriber's traffic across operator boundaries.
Handoff requires coordination between radio access network (RAN) elements, core network, and often between operators. Multiple protocols work together to execute handoffs.
X2AP is the protocol between LTE eNodeBs for direct handoff support:
X2 Interface Functions:
Key X2AP Procedures:
X2AP Message Flow for Handover:
Source eNB Target eNB MME
| | |
|-- HO Request ---->| |
|<-- HO Req Ack ----| |
| (RRC config) | |
| | |
|==== UE moves ====>| |
| | |
|<--- SN Status ----| |
|-- Data Fwding --->| |
| |-- Path Switch -->|
| |<- Path Sw Ack ---||
|<-- UE Ctx Rel ----| |
S1AP is the control plane protocol between eNodeB and MME:
S1AP for Handover:
When X2 is not available (different vendors, no direct link), handoff signaling goes through the MME via S1:
S1-based vs. X2-based Handover:
| Aspect | X2-based | S1-based |
|---|---|---|
| Path | Direct eNB to eNB | Via MME |
| Latency | Lower (< 50ms) | Higher (50-100ms) |
| Use Case | Common, same-vendor | Inter-vendor, no X2 |
| Data Forwarding | Direct via X2 | Via MME/SGW |
| MME Involvement | Path switch only | Full handover control |
RANAP (Radio Access Network Application Part) provides similar functions for UMTS:
Handoff between different technologies (e.g., LTE to UMTS) requires inter-RAT signaling. This involves S1AP/X2AP on the LTE side and RANAP on the UMTS side, with the MME/SGSN handling the translation. Such handoffs are more complex and typically have higher latency.
Roaming signaling requires interconnection between different operators' networks. This section covers the infrastructure that enables inter-operator signaling.
SS7 International Network:
Traditionally, international SS7 signaling used dedicated circuits:
GRX (GPRS Roaming Exchange):
GRX networks provide IP connectivity between operators:
Diameter Roaming:
LTE uses Diameter over IPX for roaming signaling:
IPX (IP Packet Exchange):
IPX is the evolution of GRX:
Service-Based Architecture (SBA):
5G uses a service-based architecture with HTTP/2 APIs:
SEPP Functions:
5G Roaming Interfaces:
| Interface | Function | Protocol |
|---|---|---|
| N32-c | SEPP-to-SEPP control | TLS + HTTP/2 |
| N32-f | SEPP-to-SEPP forwarding | JOSE (encrypted) |
| N8 | AMF to UDM (roaming) | HTTP/2 via SEPP |
| N12 | AMF to AUSF (auth) | HTTP/2 via SEPP |
| N37 | SMF to CHF (charging) | HTTP/2 |
PRINS (Protocol for N32 Interconnect Security):
PRINS provides application-layer security for N32:
Mobile IP protocols provide IP-layer mobility, allowing devices to maintain IP connectivity while moving between networks without changing IP addresses.
Problem Statement:
In standard IP routing, packets are routed based on the IP address prefix. If a device moves to a different network, it gets a new IP address, breaking existing connections.
Mobile IPv4 Architecture:
Mobile IPv4 Operation:
Mobile IPv4 has 'triangle routing'—packets from a correspondent node go via the home network even if the MN and correspondent are on the same network. This adds latency and wastes bandwidth. Route optimization extensions address this but are not widely deployed.
Improvements over Mobile IPv4:
Mobile IPv6 Operation with Route Optimization:
Network-Based Mobility:
PMIPv6 provides Mobile IP functionality without mobile node involvement:
PMIPv6 Advantages:
Relationship to GTP:
PMIPv6 and GTP solve similar problems—maintaining IP continuity during mobility. LTE primarily uses GTP, but PMIPv6 was defined (S5/S8 PMIPv6 variant) as an alternative for operators preferring IETF protocols.
| Aspect | Mobile IPv4 | Mobile IPv6 | PMIPv6 |
|---|---|---|---|
| MN Involvement | Required | Required | Not Required |
| Foreign Agent | Required | Not Required | MAG (network-side) |
| Route Optimization | Extension (optional) | Built-in | N/A (local mobility) |
| Tunneling | IP-in-IP to HA | IP-in-IP or Routing Hdr | GRE or IP-in-IP to LMA |
| Deployment | Limited | Limited | Some LTE/WiFi networks |
Mobile network protocols form a complex ecosystem, with each protocol serving specific functions in enabling seamless handoff and roaming. Understanding this ecosystem is essential for anyone working with mobile network infrastructure.
What's Next:
Now that we understand the protocols enabling mobility, the final page explores seamless mobility—the engineering techniques and system designs that minimize user-perceptible disruption during handoff and roaming.
You now possess comprehensive knowledge of the protocols that power mobile network mobility—from legacy SS7/MAP to modern Diameter and GTP. You can trace signaling flows for handoff and roaming scenarios and understand how different protocols work together to provide seamless mobile connectivity.