Site icon Techplayon

How your phone gets an IP address on 5G, and why it keeps changing

When your phone connects to a 5G network, the process is more complicated than your phone getting an IP address from the nearest cell tower.

The actual process involves the 5G radio network, the operator’s 5G Core, and a data connection called a PDU Session. The chain explains why the IP address you see on your phone can differ from the address a website sees.

The reality is more confusing than many people would like, and the question of “What is my IP address and location?” can be difficult to answer on a mobile network.

Your phone can use IPv4, IPv6, or both. When a 5G network provides IPv4v6 connectivity, the phone can use both protocols at the same time. The IP address that a website sees depends on how the connection reaches it, and might not be the same address assigned to the phone within the mobile network.

From the 5G cell to the internet

The phone first establishes a radio connection with a 5G base station – the connection is known as a gNB. That’s the wireless part of the connection.

Then there’s the 5G Core. Among its functions, a Session Management Function (SMF) handles aspects of the PDU Session and IP address management. And the User Plane Function (UPF) carries the user data towards the external network.

During PDU Session establishment, the 5G Core can provide the phone with its IP address.

So a simplified journey is:

Why the address can change

5G supports session continuity, so the radio connection can move between cells, with the underlying data session continuing.

An IP address can change when that data session is released and a new one is established. Network configuration, mobility and the way the operator handles the session can affect this.

Mobile operators usually use Carrier-Grade NAT (CGN) because public IPv4 addresses are limited. A carrier can give a subscriber an address from its internal address space and translate traffic to a public IPv4 address before it reaches the wider internet.

So from the perspective of websites, several phones can appear to come from the same public IPv4 address.

An IP address doesn’t tell the whole story

An IP address is just one part of a mobile data connection. Behind it are the 5G radio network, the 5G Core, the PDU Session, and (in many IPv4 deployments) carrier-side NAT.

That’s why an IP address isn’t necessarily a permanent identifier for your phone. It can change as sessions are established and released, and your phone can also move between cells without changing its underlying data session.

For most people, the main point is that the 5G cell your phone is connected to and the IP address used by your internet connection aren’t the same thing. Your phone can move between cells without changing its IP, and the public IP seen by a website can change for other reasons (including a new data session or the way the operator handles IPv4 traffic).

Exit mobile version