Description
The Media Gateway (MGW) is a critical functional entity within the 3GPP Core Network, specifically in the Circuit-Switched (CS) and IP Multimedia Subsystem (IMS) domains. Its primary role is to perform media conversion and processing. Architecturally, the MGW is controlled by a Media Gateway Controller (MGC) or, in the 3GPP context, by a Mobile Switching Center (MSC) Server or Call Session Control Function (CSCF) using control protocols like H.248 (Megaco) or SIP. The MGW itself handles the user-plane traffic. It contains termination points for various network interfaces: on one side, it connects to legacy circuit-switched networks using Time-Division Multiplexing (TDM) interfaces like E1/T1; on the other side, it connects to packet-switched networks like IP-based networks (e.g., the IMS core or the Internet) using Real-time Transport Protocol (RTP) over IP. The key internal components include codecs for transcoding (e.g., converting between G.711 PCM and AMR), echo cancellers, tone generators, and playout buffers to handle jitter. Its operation involves receiving control plane commands to establish, modify, and release terminations and contexts (logical associations of terminations for a call). For a voice call originating from a legacy PSTN phone to a VoIP client, the MGW would terminate the TDM trunk, decode the G.711 stream, transcode it to a suitable codec (if needed), packetize it into RTP packets, and send it over the IP network. It also performs bearer resource functions like playing announcements and collecting DTMF tones. In the IMS architecture, the MGW is often referred to as a Media Resource Function Processor (MRFP) when providing media processing services like conferencing and transcoding. Its role is foundational for network convergence, allowing operators to migrate from legacy TDM networks to all-IP infrastructures while maintaining service quality and interoperability.
Purpose & Motivation
The MGW was created to address the fundamental challenge of network evolution and convergence. Historically, telecommunications networks were built on circuit-switched TDM technology, which is efficient for voice but rigid and costly for data. The rise of the Internet and IP-based services demanded a more flexible, cost-effective packet-switched infrastructure. The MGW solves the problem of interoperability between these disparate network domains. It allows network operators to introduce IP-based core networks (like IMS) gradually without immediately discarding their massive investments in legacy PSTN and 2G/3G circuit-switched equipment. Before MGWs, interworking required complex and expensive adapters, and services like voice over IP were siloed. The MGW, under the control of a softswitch (MSC Server), enabled the separation of call control (signaling) from media transport, a key principle of next-generation networks. This separation increased scalability, allowed for centralized intelligence, and facilitated the introduction of new multimedia services. The creation of the MGW was motivated by the need for a standardized, vendor-interoperable way to bridge the TDM and IP worlds, which was a central goal of 3GPP from Release 99 onwards as part of defining the All-IP network vision for UMTS and beyond.
Key Features
- Transcoding between different speech and audio codecs (e.g., G.711, AMR, EVS)
- Interworking between TDM (E1/T1) and IP (RTP/UDP/IP) bearer networks
- Support for control via the H.248 (Megaco) media gateway control protocol
- Integrated media processing functions like echo cancellation, tone generation, and playout buffering
- Bearer resource functionality for playing announcements and collecting in-band DTMF digits
- Acts as a Media Resource Function Processor (MRFP) within the IMS architecture for conferencing and transcoding
Evolution Across Releases
Introduced the MGW as a core component of the UMTS architecture, separating the media handling function from the call control function of the traditional MSC. The MSC Server (handling signaling) controlled the MGW (handling media) using the H.248 protocol. This enabled the first step towards an All-IP core network for 3G.
Formalized the split architecture (MSC Server and MGW) as the standard for the Core Network CS domain. Enhanced support for bearer-independent call control (BICC) and defined the Nb interface between MGWs for carrying user plane traffic, further solidifying the IP transport path.
Integrated the MGW into the new IP Multimedia Subsystem (IMS) architecture. Defined the MGW's role as a Media Resource Function Processor (MRFP) controlled by a Media Resource Function Controller (MRFC) for advanced media services like conferencing and transcoding within the IMS service layer.
Enhanced MGW capabilities to support the EPS (Evolved Packet System) and SRVCC (Single Radio Voice Call Continuity). The MGW became critical for handovers of voice calls from LTE/IMS to legacy 2G/3G CS networks, ensuring voice service continuity during mobility.
Continued evolution within the 5G System (5GS). While 5GC is fully packet-based, MGWs remain relevant for interworking with legacy networks and for enabling Voice over NR (VoNR) fallback to LTE or 3G via procedures like eSRVCC, requiring media anchoring and transcoding.
Defining Specifications
| Specification | Title |
|---|---|
| TS 21.905 | 3GPP TS 21.905 |
| TS 23.205 | 3GPP TS 23.205 |
| TS 23.221 | 3GPP TS 23.221 |
| TS 23.231 | 3GPP TS 23.231 |
| TS 23.333 | 3GPP TS 23.333 |
| TS 24.228 | 3GPP TS 24.228 |
| TS 24.229 | 3GPP TS 24.229 |
| TS 24.428 | 3GPP TS 24.428 |
| TS 24.528 | 3GPP TS 24.528 |
| TS 24.628 | 3GPP TS 24.628 |
| TS 26.102 | 3GPP TS 26.102 |
| TS 26.114 | 3GPP TS 26.114 |
| TS 26.202 | 3GPP TS 26.202 |
| TS 26.944 | 3GPP TS 26.944 |
| TS 28.702 | 3GPP TS 28.702 |
| TS 28.703 | 3GPP TS 28.703 |
| TS 28.706 | 3GPP TS 28.706 |
| TS 29.333 | 3GPP TS 29.333 |
| TS 29.414 | 3GPP TS 29.414 |
| TS 29.415 | 3GPP TS 29.415 |
| TS 29.863 | 3GPP TS 29.863 |
| TS 32.240 | 3GPP TR 32.240 |
| TS 32.272 | 3GPP TR 32.272 |
| TS 32.632 | 3GPP TR 32.632 |
| TS 32.633 | 3GPP TR 32.633 |
| TS 32.635 | 3GPP TR 32.635 |
| TS 32.636 | 3GPP TR 32.636 |
| TS 32.732 | 3GPP TR 32.732 |
| TS 32.733 | 3GPP TR 32.733 |
| TS 32.735 | 3GPP TR 32.735 |
| TS 32.736 | 3GPP TR 32.736 |
| TS 33.107 | 3GPP TR 33.107 |
| TS 36.300 | 3GPP TR 36.300 |
| TS 48.103 | 3GPP TR 48.103 |