DHCP

Dynamic Host Configuration Protocol

Protocol
Introduced in R99
DHCP is a network management protocol used to dynamically assign IP addresses and other network configuration parameters to devices. In 3GPP networks, it automates IP address allocation for User Equipment (UE) and network functions, enabling efficient resource management and seamless connectivity.

Description

The Dynamic Host Configuration Protocol (DHCP) is a client-server protocol standardized by the IETF (RFC 2131) and adopted within 3GPP architectures to automate the assignment of IP configuration to network endpoints. Within a 3GPP system, DHCP operates primarily in the packet-switched domain, often facilitated by network elements like the Packet Data Network Gateway (PGW) in EPS or the User Plane Function (UPF) in 5GC. The protocol's primary role is to provide a UE with an IP address, subnet mask, default gateway, and DNS server addresses upon network attachment or during a PDN connection establishment, eliminating the need for manual configuration.

The protocol operates through a four-message exchange known as DORA: Discover, Offer, Request, and Acknowledge. When a UE initiates a PDN connection, its DHCP client broadcasts a DHCPDISCOVER message. A DHCP server, which may be co-located with a gateway or be a separate network entity, responds with a DHCPOFFER containing a proposed IP address and configuration. The UE then sends a DHCPREQUEST to formally request the offered parameters, and the server confirms with a DHCPACK, finalizing the lease. This lease has a defined lifetime, after which the address can be reclaimed and reassigned, managed through renewal and rebinding processes.

Key architectural components include the DHCP client (residing in the UE), the DHCP server, and optionally, DHCP relay agents. Relay agents are crucial in large-scale 3GPP deployments as they forward DHCP messages between clients on different IP subnets (e.g., the mobile access network) and centralized servers. The protocol supports various message types for different operations, including lease renewal (DHCPREQUEST), release (DHCPRELEASE), and informational queries (DHCPINFORM). In 3GPP, DHCP is integral to IP address management (IPAM) and is used not only for initial UE configuration but also for provisioning parameters in scenarios like Wireless Local Area Network (WLAN) interworking and fixed-mobile convergence.

Beyond basic IP assignment, DHCP in 3GPP networks can deliver a wide array of configuration options defined in RFCs, such as SIP server addresses, P-CSCF discovery information for IMS, and specific routing policies. Its integration is specified across multiple 3GPP technical specifications, detailing its use within the GTP-based S5/S8 interfaces, the Packet Data Protocol (PDP) context activation procedures, and service-based interfaces in 5GC. The protocol's stateless and stateful modes provide flexibility, with stateless DHCPv6 being used for parameter provisioning when addresses are configured via other means like SLAAC.

Purpose & Motivation

DHCP was created to solve the administrative burden and scalability limitations of manual IP address configuration (static assignment) in IP networks. Prior to DHCP, network administrators had to manually configure each device with a unique IP address, subnet mask, and gateway, a process prone to human error, address conflicts, and inefficiency, especially in large or dynamic environments like mobile networks where devices frequently connect and disconnect.

In the context of 3GPP, the adoption of DHCP was motivated by the transition to all-IP core networks starting with GPRS and UMTS. As mobile networks evolved to support packet-switched data services for a massive number of User Equipment, a dynamic, automated method for IP address management became essential. DHCP enables efficient pooling and reuse of scarce IPv4 addresses, supports the mobility of devices across network points of attachment, and allows for centralized management of network policies. It solves the problem of providing consistent, error-free network configuration to millions of devices without manual intervention.

Furthermore, DHCP facilitates advanced services and network architectures. It is a foundational enabler for IP Multimedia Subsystem (IMS) by providing UEs with the addresses of critical call session control functions (P-CSCF). It also supports network evolution, including the integration of non-3GPP access (like WLAN) and the deployment of dual-stack IPv4/IPv6. By automating configuration, DHCP reduces operational costs, minimizes service provisioning time, and enhances the user experience through seamless 'always-on' connectivity.

Key Features

  • Dynamic IP address allocation and lease management
  • Provision of additional network parameters (DNS, gateway, SIP servers)
  • Support for both stateful and stateless address configuration modes
  • Relay agent functionality for centralized server deployment across subnets
  • Integration with 3GPP attachment and PDN connection procedures
  • Support for IPv4 (DHCPv4) and IPv6 (DHCPv6) as per IETF RFCs

Evolution Across Releases

R99 Initial

Introduced DHCP as the primary mechanism for dynamic IP address allocation within the GPRS/UMTS packet core. It was integrated into the PDP context activation procedure, allowing the Gateway GPRS Support Node (GGSN) to act as or interface with a DHCP server to provide the UE with an IP address and essential configuration parameters, establishing the foundation for automated IP management in 3GPP networks.

Defining Specifications

SpecificationTitle
TS 21.905 3GPP TS 21.905
TS 23.057 3GPP TS 23.057
TS 23.060 3GPP TS 23.060
TS 23.221 3GPP TS 23.221
TS 23.228 3GPP TS 23.228
TS 23.234 3GPP TS 23.234
TS 23.327 3GPP TS 23.327
TS 23.804 3GPP TS 23.804
TS 23.868 3GPP TS 23.868
TS 23.976 3GPP TS 23.976
TS 23.981 3GPP TS 23.981
TS 24.228 3GPP TS 24.228
TS 24.229 3GPP TS 24.229
TS 24.302 3GPP TS 24.302
TS 24.502 3GPP TS 24.502
TS 24.523 3GPP TS 24.523
TS 26.944 3GPP TS 26.944
TS 28.314 3GPP TS 28.314
TS 29.061 3GPP TS 29.061
TS 29.161 3GPP TS 29.161
TS 29.201 3GPP TS 29.201
TS 29.890 3GPP TS 29.890
TS 32.101 3GPP TR 32.101
TS 32.501 3GPP TR 32.501
TS 33.812 3GPP TR 33.812