Share this Post:

PAGE CONTENTS

PDN Gateway: Core Functions, Pros/Cons, and Best Practices

PAGE CONTENTS

What is a Packet Data Network (PDN) Gateway? 

The PDN Gateway (Packet Data Network Gateway or P-GW) is a critical component of the 4G LTE Evolved Packet Core (EPC) network that connects User Equipment (UE) to external packet data networks (like the internet or corporate intranets). It acts as the anchor point for mobility between 3GPP and non-3GPP technologies (like Wi-Fi). 

In standalone 5G core networks, traditional P-GW functions are decomposed mainly across the Session Management Function (SMF) and User Plane Function (UPF). In EPC–5GC interworking scenarios, it is common to use combined functions such as PGW-C+SMF and UPF+PGW-U.

Key functions of the P-GW include:

  • IP address allocation: Assigns IP addresses to the UE.
  • Packet filtering/routing: Performs packet screening, routing, and forwarding.
  • Policy enforcement: Manages Quality of Service (QoS) and traffic gating.
  • Charging: Provides user-level charging support.
  • Mobility anchoring: Ensures session continuity as a user moves between access types.

The P-GW terminates the SGi interface towards the external Packet Data Network. It is essential for managing user data traffic and enabling high-performance connectivity in mobile networks.

This is part of a series of articles about core network

Core Functions of the PDN Gateway

IP Address Allocation

The PDN Gateway assigns IP addresses to user devices when they connect to the mobile network. Each user session is given a unique IP address, which allows data to be routed to and from the user’s device. This process can involve both IPv4 and IPv6 addresses, depending on network configuration and device capabilities. Proper IP address management ensures that users receive valid and routable addresses, enabling uninterrupted data services.

IP address allocation by the PDN Gateway also supports network scalability and security. Address exhaustion and address reuse are managed through techniques such as dynamic assignment and address pooling. This reduces the risk of address conflicts and supports operational controls such as auditing, troubleshooting, lawful-intercept support, and subscriber-to-address traceability. The PDN Gateway can also track and log IP address usage for auditing and compliance.

 

Packet Filtering/Routing

Packet filtering and routing are core tasks handled by the PDN Gateway. The gateway inspects data packets as they flow between user equipment and external networks, applying filtering rules based on predefined policies. This allows the network to block unwanted or malicious traffic, prioritize certain types of data, and enforce security measures. 

Packet filtering helps enforce operator-defined security and traffic policies, such as blocking unauthorized flows, applying service restrictions, and reducing exposure to unwanted or abusive traffic. Additional security platforms may be required for malware detection, DDoS mitigation, and advanced threat prevention.

Routing ensures that data packets take an appropriate path to their destination. The PDN Gateway uses routing tables and policies to direct user traffic toward the appropriate external network or service. This supports features such as load balancing and traffic engineering. By managing both filtering and routing, the PDN Gateway helps maintain network performance and security.

 

Policy Enforcement

Policy enforcement is performed by the P-GW through its PCEF role, applying rules received from the PCRF for gating, QoS, charging, and traffic treatment. The gateway enforces policies related to bandwidth allocation, access control, and application prioritization, often based on subscriber profiles or service agreements. These policies help ensure fair usage, prevent network congestion, and support differentiated services for various user tiers or applications.

Through integration with the policy and charging rules function (PCRF), the PDN Gateway applies and updates policies in real time. This enables the network to respond to changing conditions, such as increased demand during peak hours or the need to restrict access to certain services. Policy enforcement supports service quality, regulatory requirements, and tiered or usage-based offerings.

 

Charging

The PDN Gateway plays a central role in the charging and billing process for mobile data services. It collects usage records for each subscriber, including data volume, session duration, and the types of services accessed. This information is forwarded to the charging system, enabling billing for prepaid and postpaid users. 

The P-GW supports charging by generating usage records and applying charging-related enforcement rules, often in coordination with online and offline charging systems. This can support usage caps, prepaid credit control, rating triggers, and service restrictions depending on operator configuration.

In addition to usage tracking, the PDN Gateway supports charging models such as differentiated billing for specific applications or content types. Real-time charging allows response to user actions, such as blocking access when balances are depleted or applying promotional discounts. The charging function supports revenue assurance and customer satisfaction.

 

Mobility Anchoring

Mobility anchoring ensures data connectivity for users as they move across different network access points, such as when transitioning between cell towers or coverage areas. The PDN Gateway acts as an anchor point for user sessions, maintaining the same IP address and session continuity even as the underlying radio connection changes. This is important for applications that require uninterrupted connectivity, such as voice over IP (VoIP), video streaming, or online gaming.

The P-GW remains the external PDN anchor while mobility procedures update the user-plane path through EPC components such as the SGW and MME. This allows the session and IP address to remain stable while the access path changes.

PDN Gateway vs. Other LTE Core Components

PDN Gateway vs. Serving Gateway (SGW)

The PDN Gateway and the Serving Gateway (SGW) are both components of the LTE core network, but they serve distinct roles. The SGW handles the routing and forwarding of user data packets between the radio access network (RAN) and the PDN Gateway. It acts as a local mobility anchor for inter-eNodeB handovers and manages the user plane during active data sessions. The SGW focuses on data transport within the operator’s network.

In contrast, the PDN Gateway serves as the gateway between the mobile network and external packet data networks. It is responsible for functions such as IP address allocation, policy enforcement, charging, and packet filtering. While the SGW manages internal data movement and local mobility, the PDN Gateway manages external connectivity, session control, and network policy. This division of responsibilities supports scalable, modular network design.

 

PDN Gateway vs. MME

The Mobility Management Entity (MME) is another LTE core component but operates on the control plane, unlike the PDN Gateway, which functions mainly on the user plane. The MME manages signaling related to mobility, authentication, and session establishment. It coordinates user attachment to the network, handles handovers, and communicates with both the SGW and PDN Gateway to set up and maintain data sessions.

The PDN Gateway manages data traffic, handling packet routing, filtering, and session management for user data. While the MME manages control-plane signaling for attach, authentication, bearer setup, and mobility. It coordinates with the SGW and selects the appropriate P-GW, while user-plane connectivity to the external PDN is handled through the SGW and P-GW.

 

PDN Gateway in 5G Networks

In 5G networks, the PDN Gateway’s role has evolved to meet new architectural and service demands. The traditional PDN Gateway functions are split between the User Plane Function (UPF) and the Session Management Function (SMF) in the 5G core. 

In 5G SA, user-plane functions associated with the EPC P-GW are primarily handled by the UPF, while session-control functions are handled by the SMF. The SMF selects and controls UPFs, manages PDU sessions, and applies policy decisions from the PCF. This separation allows greater flexibility, scalability, and the ability to deploy network functions closer to users, reducing latency.

Despite these architectural changes, the responsibilities of the PDN Gateway, such as IP address management, policy enforcement, charging, and mobility anchoring, remain relevant. The 5G core’s service-based architecture enables service chaining and granular policy control, building on PDN Gateway functions. As 5G networks develop, the gateway model supports use cases such as low-latency applications and massive IoT deployments.

Related content: Read our guide to core network 5G

Advantages and Limitations of the PDN Gateway

The PDN Gateway plays a central role in LTE and early 5G networks, offering capabilities that enable mobile data services. However, it also has important limitations.

Advantages

  • Centralized policy control: Enables consistent enforcement of QoS, access restrictions, and charging rules across the network through integration with the policy and charging rules function (PCRF).
  • Efficient IP address management: Supports dynamic IP address assignment, reuse, and logging to help manage IPv4 exhaustion and transition to IPv6.
  • Advanced security features: Supports packet filtering, packet screening, and, in some deployments, DPI-based traffic classification or enforcement. Advanced threat detection may require integration with dedicated security systems.
  • Session continuity and mobility anchoring: Maintains user sessions and IP addresses across cell changes and handovers.
  • Scalable charging support: Offers usage tracking and supports billing models, enabling differentiated services and real-time credit enforcement.

Limitations

  • Single point of bottleneck: Can become a throughput bottleneck or failure point if not properly scaled or designed for redundancy.
  • Latency overhead: Routing all traffic through a centralized gateway can add latency, especially for low-response-time services.
  • Complex configuration and management: Managing policy enforcement, routing rules, and integration with other core functions requires operational effort and expertise.
  • Limited flexibility in static deployments: Traditional deployments offer less agility than cloud-native, distributed 5G architectures.
  • Dependency on legacy architecture: In transitioning to 5G, PDN Gateway functions must be decomposed into UPF and SMF, adding complexity to interworking and migration strategies.

PDN Gateway Implementation Best Practices

1. Implement High Availability and Redundancy

Ensuring high availability for the PDN Gateway maintains uninterrupted service delivery. Operators should deploy redundant PDN Gateway instances across multiple physical or virtual locations. This setup allows failover in the event of hardware or software failure. High-availability configurations can include active-active or active-standby modes, with health checks and automated failover mechanisms.

Geographic diversity can protect against site-level outages. Synchronizing configuration and state between redundant gateways ensures session continuity and prevents data loss during failover. Regular testing of failover procedures and monitoring of gateway health validate high-availability strategies.

 

2. Optimize Policy and Charging Configuration

Policy and charging configurations enforce service-level agreements and support accurate billing. Operators should align PDN Gateway settings with real-time PCRF inputs to manage user sessions and apply differentiated services based on subscriber profiles.

Charging rules may support differentiated billing models, including service-based or application-based charging where legally and commercially permitted. Operators should validate zero-rating models against local net-neutrality, regulatory, and commercial requirements.

 

3. Use Efficient IP Address Management

IP address management ensures availability, scalability, and regulatory compliance. Operators should implement dynamic address assignment and support both IPv4 and IPv6, using techniques such as NAT64 or dual-stack deployments to maintain service continuity.

Pooling and reusing IP addresses based on session state reduces address exhaustion. Logging mechanisms should track address-to-subscriber mappings for troubleshooting and lawful interception. Automation of address management reduces operational complexity and configuration errors.

 

4. Ensure Strong Network Security

The PDN Gateway should enforce security at multiple layers. Packet filtering, deep packet inspection, and integration with external threat detection systems help identify and block malicious traffic.

Operators should apply per-user or per-service security policies and limit exposure to external networks through firewalling and segmentation. Rate-limiting, anomaly detection, and blacklisting mechanisms can prevent denial-of-service attacks and abuse. Security policies should be updated to reflect new threats and maintain compliance with standards.

 

5. Optimize Traffic Routing and QoS

Traffic routing should align with service priorities and user profiles to ensure predictable performance. PDN Gateways should support policy-based routing and QoS marking to differentiate traffic types and meet application-specific latency, jitter, and bandwidth requirements.

Load balancing across multiple external interfaces or network paths helps prevent congestion and improve throughput. Routing tables should be updated to reflect changes in topology or service demand. Integration with QoS frameworks helps ensure critical services maintain priority during peak usage or congestion.

 

6. Plan for Scalability and Future Network Evolution

PDN Gateway deployments should be designed with horizontal scalability in mind. Using virtualized or containerized instances enables dynamic resource allocation based on traffic demand.

To support migration to 5G, operators should decompose PDN Gateway functions into SMF and UPF components in line with service-based architecture principles. Interoperability testing between legacy LTE and new 5G core functions supports coexistence and service continuity. Preparing for requirements such as network slicing and edge computing supports long-term viability and performance.

Deploying PDN Gateway Capabilities for Global IoT with FLOLIVE®

For global IoT deployments, the location and behavior of the packet gateway directly affect latency, data routing, cost control, security posture, and compliance. FLOLIVE® local breakout service uses GGSN / PDN-GW / UPF capabilities to let cellular devices access the packet data network locally through low-latency, high-bandwidth connectivity. This means roaming traffic does not always need to be routed back to the home network, helping keep traffic in the relevant region when performance or data-residency requirements demand it.

With Flolive, teams can use distributed packet gateway capabilities to:

  • Improve performance by reducing home-network backhaul and keeping traffic closer to the device.
  • Support compliance by helping traffic remain within the required region where applicable.
  • Enable local IP behavior through local or regional IP allocation.
  • Gain real-time visibility through OCS integration with floLIVE’s CMP.
  • Improve resilience using Active-Active or Active-Passive local breakout configurations.

This makes Flolive especially relevant for IoT providers, MNOs, MVNOs, and enterprises that need scalable global connectivity with localized traffic handling.