IW-MGW

Interworking Media Gateway Function

Core Network
Introduced in Rel-8
The Interworking Media Gateway Function is a network element that facilitates media conversion and transport between circuit-switched (CS) networks (like legacy 2G/3G voice) and packet-switched (PS) IP networks (like IMS). It handles voice and video media transcoding, bearer control, and payload processing, enabling seamless service interworking.

Description

The Interworking Media Gateway Function (IW-MGW) is a critical functional entity within the 3GPP IP Multimedia Subsystem (IMS) and Core Network architecture, specified primarily in TS 29.164. Its primary role is to act as a bridge for user plane media traffic between different network domains with incompatible transport and encoding formats. Specifically, it interworks between the legacy circuit-switched (CS) domain, which uses Time-Division Multiplexing (TDM) or ATM-based bearers for voice, and the modern packet-switched (PS) IP domain, such as the IMS, which uses Real-time Transport Protocol (RTP) over IP. The IW-MGW is typically controlled by a Media Gateway Control Function (MGCF) using protocols like H.248 (Megaco).

Architecturally, the IW-MGW contains termination points for both CS and PS bearers. On the CS side, it connects to legacy MSC or GMSC networks via TDM (E1/T1) or ATM interfaces. On the PS side, it connects to the IMS or other IP networks via IP interfaces. Its core processing involves media stream manipulation: it performs transcoding between different speech codecs (e.g., from the GSM Full Rate codec used in CS to the AMR-WB codec used in IMS), echo cancellation, tone generation and detection, and in some cases, video transcoding. It also handles the conversion of the transport layer, demultiplexing TDM timeslots into individual RTP streams and vice-versa.

In a typical call flow for a call from a CS UE to an IMS UE, the MGCF receives the CS signaling, determines the need for interworking, and instructs the IW-MGW via H.248 to create a context. The IW-MGW allocates resources, establishes the CS bearer connection to the MSC, and the IP bearer connection towards the IMS core (e.g., to a P-CSCF or another MGW). It then continuously processes the bi-directional media stream, performing any necessary codec conversion and transport adaptation in real-time. This allows subscribers on legacy networks to communicate transparently with subscribers on VoIP or IMS-based networks, a crucial capability during network migration phases.

Purpose & Motivation

The IW-MGW was created to solve a fundamental problem in telecommunications network evolution: how to maintain seamless voice and multimedia service continuity while migrating from legacy circuit-switched networks (2G GSM, 3G UMTS CS) to all-IP packet-switched networks like the IMS and, eventually, 5G Core. Without an interworking function, subscribers on old and new networks would be isolated, unable to communicate, which is commercially and practically unacceptable. The IW-MGW provides the essential user plane glue that allows these disparate networks to coexist and interoperate during a potentially long transition period.

Historically, telecom networks were built on TDM technology for voice. The rise of the internet and the desire for converged multimedia services drove the development of IMS as an all-IP service delivery platform. The IW-MGW, along with the MGCF for signaling interworking, addressed the limitations of a "big bang" cutover. It allowed operators to deploy IMS for new services and subscribers gradually, while their massive installed base of legacy handsets and circuit switches continued to function. It solved the technical challenge of converting real-time, delay-sensitive voice media between inherently different transport technologies (synchronous TDM vs. asynchronous packet IP) and between different, often incompatible, speech compression codecs mandated in each domain.

Key Features

  • Media transcoding between circuit-switched and packet-switched codecs (e.g., GSM/UMTS codecs to AMR, EVS)
  • Transport adaptation between TDM/ATM bearers and IP/RTP/UDP bearers
  • Echo cancellation and voice quality enhancement processing
  • Support for tone generation (e.g., busy tone, ringing) and detection (DTMF)
  • Control via the H.248 (Megaco) protocol from an MGCF
  • Bearer resource management and allocation for concurrent media sessions

Evolution Across Releases

Rel-8 Initial

Introduced the IW-MGW as a standalone functional entity for IMS-based interworking with CS networks, detailed in TS 29.164. Defined its architecture as being controlled by an MGCF using H.248. Established core capabilities for voice media interworking, including codec transcoding and transport conversion between CS and IMS domains to support basic voice call continuity.

Enhanced support for emergency call interworking, ensuring IW-MGW could handle emergency service calls between CS and IMS. Introduced requirements for more robust codec support and clarified procedures for bearer establishment and modification under MGCF control.

Strengthened support for SRVCC (Single Radio Voice Call Continuity) and vSRVCC (enhanced SRVCC), where the IW-MGW plays a key role in anchoring the voice media path during a handover of a voice call from LTE/IMS to a legacy 2G/3G CS network. This required precise coordination with the MGCF and MSC Server.

Adapted IW-MGW requirements for operation in the 5G System era, particularly for interworking between 5GS and legacy CS networks. Ensured compatibility with 5G media protocols and codecs, and considered its role in the context of Voice over NR (VoNR) fallback scenarios.

Maintenance and updates to TS 29.164. Focus on protocol updates, security enhancements, and ensuring the IW-MGW specifications remain aligned with the evolving overall network architecture, including support for new codecs like Enhanced Voice Services (EVS) and continued support for legacy interworking as networks evolve.

Defining Specifications

SpecificationTitle
TS 29.164 3GPP TS 29.164