CS-MGW

Circuit Switched Media Gateway

Core Network
Introduced in R99
The CS-MGW is a network element that performs media conversion and transcoding between circuit-switched (CS) networks (like PSTN/ISDN) and packet-switched (PS) networks (like IP in 3GPP). It enables voice and circuit-switched data services over IP transport, facilitating network convergence and efficient resource utilization.

Description

The Circuit Switched Media Gateway (CS-MGW) is a critical functional entity within the 3GPP Core Network, specifically in the Circuit Switched (CS) domain. It acts as a bridge between traditional Time Division Multiplexing (TDM) based circuit-switched networks, such as the Public Switched Telephone Network (PSTN) and Integrated Services Digital Network (ISDN), and packet-switched networks based on Internet Protocol (IP) or Asynchronous Transfer Mode (ATM). Architecturally, the CS-MGW is controlled by the Media Gateway Control Function (MGCF) via the H.248 (Megaco) protocol, which is standardized in 3GPP as the Mn interface. The MGCF provides the call control and signaling intelligence, while the CS-MGW executes the media plane operations as commanded. This separation of control and user planes is a fundamental principle of the Gateway Control architecture adopted by 3GPP.

From a functional perspective, the CS-MGW's primary role is media processing. It terminates bearer channels from the CS network (e.g., E1/T1 trunks with TDM timeslots) and media streams from the PS network (e.g., Real-time Transport Protocol (RTP) streams over IP). Its core operations include media conversion, transcoding, and bearer processing. Media conversion involves adapting the transport format, for instance, converting a 64 kbps PCM voice channel from a TDM circuit into an RTP/UDP/IP packet stream for transmission over an IP network, and vice-versa. Transcoding is the process of converting between different speech codecs, which is essential when the codec used in the mobile network (e.g., AMR) differs from the codec used in the fixed network (e.g., G.711). The CS-MGW may also perform echo cancellation, tone generation (e.g., dial tone, busy tone), and conferencing functions for multiparty calls.

The CS-MGW interfaces with several other network elements. On the CS side, it connects to the legacy circuit-switched network via TDM interfaces. Within the 3GPP IP Multimedia Subsystem (IMS) or the CS core, it connects to the MGCF for control (Mn interface) and to other media gateways or endpoints for user plane traffic. In the context of Mobile Switching Centre (MSC) server-based architecture, introduced in 3GPP Release 4, the CS-MGW is the user plane termination point that is controlled by an MSC Server. This allows the traditional monolithic MSC to be split into a call control server (MSC Server) and a media processing entity (CS-MGW), enabling more flexible and scalable network deployments. The CS-MGW is therefore a key enabler for network modernization, allowing operators to migrate their voice infrastructure to all-IP backbones while maintaining interoperability with legacy circuit-switched services and networks.

Purpose & Motivation

The CS-MGW was created to address the fundamental challenge of network convergence between legacy circuit-switched telephony and emerging packet-switched networks. Prior to its introduction, voice services were exclusively delivered over dedicated TDM circuits, which are efficient for constant-bit-rate voice but inflexible and costly for data transport. The rise of IP as a universal networking protocol presented an opportunity to carry voice as packetized data, offering statistical multiplexing gains, simplified infrastructure, and the potential for integrated multimedia services. However, a direct bridge was needed to interconnect these two disparate technological worlds without disrupting existing services.

The primary problem the CS-MGW solves is the interworking of bearer traffic and basic call features between TDM and IP/ATM domains. It allows mobile network operators to modernize their core networks by deploying IP-based transport and control (e.g., using MSC Servers) while still connecting to the global PSTN/ISDN, which remained predominantly TDM-based for many years. This transition was economically motivated, as IP networks are generally cheaper to build, maintain, and scale. The CS-MGW, under the control of an MGCF or MSC Server, handles the complex real-time media processing required for this interworking, insulating the call control logic from the specifics of the underlying bearer technology. Its creation was a critical step in the evolution towards all-IP core networks and was a foundational component for the later introduction of the IMS for multimedia services.

Key Features

  • Media conversion between TDM circuits and IP/ATM packet streams
  • Speech codec transcoding (e.g., between AMR and G.711)
  • Echo cancellation and tone generation/announcement
  • Bearer termination and processing under H.248 (Megaco) control
  • Support for in-band and out-of-band DTMF relay
  • Interfaces with MGCF (Mn) and legacy CS networks (e.g., via E1/T1)

Evolution Across Releases

R99 Initial

Introduced as a key component in the initial 3GPP specifications for the split architecture of the Core Network. In Release 99, the CS-MGW was defined to work under the control of the Media Gateway Control Function (MGCF) for interworking with the PSTN, primarily for IMS-related scenarios, and also as part of the MSC server architecture, separating call control (MSC Server) from the media plane. It provided basic media conversion between TDM and IP/ATM bearers.

Defining Specifications

SpecificationTitle
TS 23.221 3GPP TS 23.221
TS 23.236 3GPP TS 23.236
TS 29.292 3GPP TS 29.292