TMGW

Trunking Media Gateway

Core Network
Introduced in Rel-8
A network element that performs media conversion and processing between circuit-switched (CS) trunking networks (like PSTN/ISDN) and packet-switched (PS) IP networks (like IMS). It is essential for enabling voice and multimedia services across legacy and modern networks, handling transcoding, echo cancellation, and bearer control.

Description

The Trunking Media Gateway (TMGW) is a critical functional entity within the 3GPP IP Multimedia Subsystem (IMS) architecture, specifically defined for trunking scenarios. It operates as a media plane node that interconnects traditional Time-Division Multiplexing (TDM) based circuit-switched trunking networks, such as the Public Switched Telephone Network (PSTN) or Integrated Services Digital Network (ISDN), with the packet-switched IP-based IMS core. Its primary role is to convert media streams and bearer channels between these disparate network domains. Architecturally, the TMGW is controlled by a Media Gateway Controller Function (MGCF) via standardized control protocols like H.248 (Megaco), as defined in 3GPP TS 29.332. The MGCF handles the session signaling (e.g., SIP/SDP), while the TMGW executes its commands for media processing.

From a functional perspective, the TMGW performs several key media processing tasks. It terminates TDM trunk lines (e.g., E1/T1 interfaces) on the CS side and RTP/UDP/IP streams on the IMS side. Core processing includes transcoding between voice codecs used in the CS domain (like G.711 A-law/μ-law) and those used in the PS domain (like AMR, AMR-WB, or EVS). It also implements essential voice quality features such as echo cancellation, voice activity detection (VAD), comfort noise generation (CNG), and packet loss concealment (PLC). Furthermore, the TMGW handles bearer control functions, including the setup, modification, and release of media connections as dictated by the MGCF.

Within the broader IMS architecture for interconnection, the TMGW works in tandem with the MGCF and a Signaling Gateway (SGW) to provide a complete PSTN/CS interconnect solution. The SGW translates lower-layer signaling (e.g., MTP) to SIGTRAN (e.g., M3UA) over IP, while the MGCF translates higher-layer call control signaling (e.g., ISUP/BICC to SIP). The TMGW's role is purely in the user plane, ensuring the media path is correctly established and processed. This clear separation of control (MGCF) and media (TMGW) planes aligns with IMS principles, allowing for scalability, independent development, and efficient resource utilization. Specifications such as TS 29.412 and TS 29.424 detail the Diameter-based interfaces (e.g., Rf/Ro) used for offline and online charging of media gateway resources, integrating the TMGW into the operator's billing and policy control ecosystem.

Purpose & Motivation

The TMGW was created to solve the fundamental problem of interworking between the vast, existing infrastructure of circuit-switched telephony networks and the emerging, more flexible IP-based IMS networks. Prior to IMS, mobile and fixed networks relied heavily on monolithic switches that integrated both signaling and media functions. The transition to all-IP networks required a way to leverage existing PSTN/ISDN investments while migrating services to a packet core. The TMGW, as part of a decomposed gateway architecture, addresses this by providing a specialized media processing node that can be controlled independently via standardized protocols.

This approach solved significant limitations of earlier gateway solutions, which were often proprietary, vertically integrated, and difficult to scale. By separating the media gateway from its controller (the MGCF), 3GPP enabled network operators to source these components from different vendors, fostering competition and innovation. It also allowed for more efficient resource pooling; a farm of TMGWs could be shared and dynamically allocated by multiple MGCFs based on traffic load, improving overall network utilization and resilience. The creation of the TMGW was thus motivated by the need for a standardized, scalable, and cost-effective migration path from legacy circuit-switched voice trunking to the all-IP future envisioned by IMS, ensuring service continuity and quality during the transition.

Key Features

  • Media conversion between TDM circuits and RTP/IP streams
  • Transcoding between legacy (e.g., G.711) and IMS/3GPP (e.g., AMR) codecs
  • Integrated voice quality enhancement (echo cancellation, VAD, PLC)
  • Control via the H.248 (Megaco) protocol from an MGCF
  • Support for Diameter-based charging interfaces (Rf/Ro)
  • Scalable, pooled architecture independent of the signaling controller

Evolution Across Releases

Rel-8 Initial

Introduced as a core component of the IMS-based PSTN/CS interconnect architecture. Defined its fundamental role in media interworking between TDM trunking networks and the IMS packet core. Specified control via H.248 from the MGCF and basic media processing functions like transcoding and echo cancellation.

Defining Specifications

SpecificationTitle
TS 29.332 3GPP TS 29.332
TS 29.412 3GPP TS 29.412
TS 29.424 3GPP TS 29.424