Android Developers Blog
Follow
Simplifying advanced networking with DHCPv6 Prefix Delegation
IPv4's limited address space necessitates Network Address Translation (NAT), complicating app development and draining battery life. NAT requires apps to implement complex protocols and send keep-alive packets, hindering advanced features like video calls and VPNs. While IPv6 offers a vast address space, current assignment methods have limitations. Existing IPv6 assignment methods require networks to track each address, making it difficult to assign addresses to multiple devices connected to a single Android device. Furthermore, Android's previous reliance on SLAAC prevented networks from assigning predictable IPv6 addresses, limiting adoption. To address these issues, Android now supports DHCPv6 Prefix Delegation (PD). This allows Android devices to request and manage a dedicated IPv6 prefix from the network. In the future, this prefix can be shared with connected devices, enabling them to have global IPv6 connectivity without NAT. This new support, rolling out via Google Play System Updates, will transparently improve IPv6 connectivity on compatible networks. App developers can now leverage IPv6 for better reliability, battery life, and simplified code.