Computer Networking › Section G · Wireless and mobile networks › Topic G.6

Mobility management in practice

Cellular networks put the principles of home networks, tunnels and indirect routing to work billions of times a day. Following one phone through attachment, roaming and handover shows how, and Mobile IP shows the same ideas built for the internet.

One phone, four stages

Picture a passenger whose phone is roaming on a visited operator's 4G network and who starts streaming a video in a moving car. Four things happen. First, the phone attaches to one of the visited operator's cells. Second, the visited and home networks set up control-plane state recording where the phone is and what it may use. Third, they build data-plane tunnels for its traffic. Fourth, as the car moves, the phone is passed from cell to cell while the video keeps playing. The elements involved are the ones met in "Cellular networks: 4G and 5G": base stations, the MME, the HSS and the two gateways.

Association and control-plane set-up

The phone finds a base station from its broadcast synchronisation signals and opens a signalling channel, giving its IMSI, which identifies both the subscriber and the home operator. The base station contacts the visited network's MME. The MME obtains authentication data and service details for this subscriber, from its own cache, from another MME the phone used recently, or from the HSS in the home network. Phone and network then authenticate each other. The MME tells the home HSS that the phone is now in this visited network, and the HSS updates its record. Finally, the base station and phone agree the parameters of the radio data channel.

Data-plane tunnels: home routing

The MME next sets up two GTP tunnels: one from the base station to a Serving Gateway in the visited network, and one from that Serving Gateway to the PDN Gateway in the phone's home network. All traffic to and from the phone flows through its home P-GW, a symmetric form of indirect routing; the internet sees the phone at an address belonging to its home operator. The alternative, local breakout, connects to a P-GW in the visited network for a shorter path, but home routing has long been the usual choice for roaming data. 5G keeps both options, with the SMF choosing the User Plane Functions that play the gateways' roles.

Why and when to hand over

A handover moves a phone's connection from a source base station to a target. The usual reason is a weakening signal, but an overloaded cell may also hand phones to a quieter neighbour. The phone measures the signal from its own base station and from neighbouring ones it can hear, and reports these measurements to its current base station. Weighing those reports against how busy neighbouring cells are, the current (source) base station decides whether to hand over and to which target. The 3GPP standards define the messages but not the decision algorithm, which vendors and operators choose themselves.

The handover, step by step

In the simple case, both base stations are in the same network and talk directly, over the X2 interface in 4G or Xn in 5G. 1. The source sends a handover request to the target. 2. The target checks it can serve the phone, reserves radio resources in advance and returns the details in an acknowledgement. 3. The source passes these to the phone, which switches to the target without repeating the slow association procedure. 4. The source forwards any datagrams still arriving for the phone to the target. 5. The target tells the MME, which has the Serving Gateway move its tunnel end to the target. 6. The target confirms, and the source releases its resources. 7. Traffic now flows through the target in both directions.

Worked example: what changes in a handover

Before a handover, downlink datagrams for a phone run P-GW → S-GW → base station A → phone, with the S-GW to A tunnel labelled by tunnel endpoint identifier 0x1001. The phone moves into base station B's cell. Which pieces change? 1. The radio link: the phone now sends and receives through B. 2. The S-GW's tunnel to the radio side: it now ends at B, with a new identifier, say 0x2002. 3. Briefly, a forwarding path from A to B, so datagrams already sent to A are not lost. 4. Unchanged: the S-GW to P-GW tunnel, the phone's IP address and the server's TCP connection. Check: the P-GW, and everything beyond it, never learns that the phone moved.

Worked example: how often a train hands over

A train runs at 300 km/h, and its line is covered by 4G cells spaced 2 km apart. How often does a phone hand over, and what changes with 5G small cells 200 m apart? 1. Speed: 300 ÷ 3.6 ≈ 83.3 m/s. 2. 4G: 2,000 ÷ 83.3 = 24 s between handovers. 3. 5G small cells: 200 ÷ 83.3 = 2.4 s. 4. If each handover interrupted data for an assumed 30 ms, the small-cell phone would lose 0.03 ÷ 2.4 ≈ 1.25% of its time. Check: ten times the cell density gives ten times the handovers, which is why denser 5G networks need fast, well-prepared handovers.

Mobile IP: the internet's version

Mobile IP, standardised by the IETF in RFC 5944 for IPv4 and RFC 6275 for IPv6, applies the same principles without cellular operators. A mobile host keeps a permanent home address. In a foreign network it obtains a care-of address. A home agent in the home network plays the HSS's role, tracking each mobile's current care-of address. In the IPv4 version, a foreign agent, comparable to the visited MME, serves visitors; Mobile IPv6 hosts manage without one. Mobile IP has three parts: agent discovery, where agents advertise their services; registration, where the mobile's care-of address is recorded with its home agent; and indirect routing, where the home agent tunnels datagrams to the care-of address.

Why Mobile IP saw little use

Despite being standardised for over twenty years, Mobile IP was never widely deployed. Cellular networks already gave truly mobile users seamless service, and stationary users simply reconnect to Wi-Fi or a wired network wherever they are. Applications adapted instead: they reconnect when an address changes, and newer transport designs can survive address changes. Within a single Wi-Fi network, mobility is handled at the link layer, as described in "Wireless LANs: 802.11", and federations such as eduroam let visitors authenticate on other campuses' networks without changing the internet's routing.

Common mistakes to avoid

First, thinking a roaming phone's traffic always leaves through the visited network; with home routing it is tunnelled to the home P-GW. Second, believing the MME carries user data during handover; it signals the tunnel change, while base stations forward the data. Third, assuming the phone re-associates from scratch at each handover; the target has already reserved resources. Fourth, thinking a handover changes the phone's IP address. Fifth, equating Mobile IP's home agent with a base station: it plays the role of the HSS. Sixth, forgetting that denser cells mean more frequent handovers.

Key takeaways

A roaming phone associates with a base station, the visited MME authenticates it with data from the home HSS and records its location there, and GTP tunnels run base station → visited S-GW → home P-GW, a symmetric indirect route. Local breakout is the shorter alternative. Handovers are decided by the source base station from the phone's measurements; the target reserves resources, the source forwards data in flight, and the MME moves the S-GW tunnel's end. The P-GW and IP address never change. Mobile IP mirrors this with home agents, foreign agents and care-of addresses, but saw little deployment.

Flashcards

Flashcard

Four stages

Associate, set up control plane, build tunnels, hand over

A roaming phone streaming video.

Test your understanding

Question 1 of 5

A phone is roaming on a visited 4G network using home routing. Where does its traffic enter the internet?

Question 2 of 5

Who decides that a phone should be handed over, and to which base station?

Question 3 of 5

After a successful handover between two base stations in the same network, what has changed in the core network?

Question 4 of 5

A car travels at 108 km/h along a road with cells every 1.5 km. About how often does a phone in the car hand over?

Question 5 of 5

In Mobile IP, which element plays the role that the HSS plays in a 4G network?

← Previous topicNext topic →