Skip to content

IPv6 - Mobility

In traditional IP networking, when a device moves from one network to another, its IP address typically changes. This change can disrupt ongoing connections. Mobile IPv6 (MIPv6) is a standard protocol (RFC 6275) that allows an IPv6 device (Mobile Node) to maintain a stable IP address and active communication sessions as it roams between different IP networks.

MIPv6 enables this by introducing a few key concepts and entities:

  • Mobile Node (MN): The IPv6 device that changes its point of attachment from one link/network to another while wanting to maintain connectivity.
  • Home Link: The network segment to which the Mobile Node is originally attached and where it obtains its permanent IP address (Home Address).
  • Home Address (HoA): The permanent IPv6 address assigned to the Mobile Node on its Home Link. Applications on the MN use this address, and external devices (Correspondent Nodes) use this address to reach the MN.
  • Home Agent (HA): A router located on the Mobile Node’s Home Link. The HA maintains registration information for the MN, including its current location (Care-of Address). It intercepts packets destined for the MN’s Home Address and tunnels them to the MN’s current location.
  • Foreign Link: Any network segment other than the Mobile Node’s Home Link.
  • Care-of Address (CoA): A temporary, topologically correct IPv6 address that the Mobile Node acquires when it attaches to a Foreign Link. This address reflects the MN’s current point of attachment. An MN can have multiple CoAs, but usually, one primary CoA is registered with the HA.
  • Correspondent Node (CN): Any IPv6 device (fixed or mobile) communicating with the Mobile Node.

The operation of MIPv6 can be described in two main scenarios:

When the Mobile Node is connected to its Home Link, it functions like any other fixed IPv6 device. It uses its Home Address for all communications. Packets to and from Correspondent Nodes are routed directly without any MIPv6-specific mechanisms.

Textual Description: The Mobile Node (MN) is on its Home Link. It communicates using its Home Address (HoA). If a Correspondent Node (CN) sends a packet to MN’s HoA, the packet is routed directly to the MN on the Home Link. Similarly, packets from MN to CN are sent directly.

When the Mobile Node moves to a Foreign Link:

  1. Movement Detection and CoA Acquisition: The MN detects it has moved to a new link. It then acquires a Care-of Address (CoA) on this Foreign Link, typically through SLAAC or DHCPv6.
  2. Binding Update (BU): The MN sends a Binding Update message to its Home Agent. This message informs the HA of the MN’s new CoA, creating a binding between the MN’s Home Address and its current CoA.
  3. Tunneling by Home Agent: When a Correspondent Node sends a packet to the MN’s Home Address, the Home Agent intercepts this packet. The HA encapsulates the original packet within a new IPv6 packet (forming a tunnel) and forwards it to the MN’s Care-of Address.
  4. Receiving Tunneled Packets: The MN receives the encapsulated packet at its CoA, decapsulates it, and processes the original packet as if it arrived at its HoA.

Textual Description: The Mobile Node (MN) moves to a Foreign Link and obtains a Care-of Address (CoA). MN sends a Binding Update to its Home Agent (HA), linking its HoA with its CoA. When a Correspondent Node (CN) sends a packet to MN’s HoA, the HA intercepts it, encapsulates it (tunnels it), and forwards it to MN’s CoA. The MN decapsulates and processes the packet. For packets from MN to CN, initially, they might be reverse-tunneled through the HA or, with route optimization, sent directly.

The basic MIPv6 operation described above involves triangle routing for packets from the CN to the MN (CN -> HA -> MN). This can be inefficient. Route Optimization (RO) allows for more direct communication:

  • Return Routability Procedure: Before direct communication, the MN and CN perform a ‘return routability’ procedure to securely exchange information and authorize direct path.
  • Binding Update to CN: After successful return routability, the MN can send a Binding Update directly to the CN, informing it of its current CoA.
  • Direct Path: The CN can then cache this binding and send packets directly to the MN’s CoA, using a special IPv6 Home Address Option in the Destination Options Extension Header to carry the MN’s HoA. The MN can also send packets directly to the CN using its HoA as the source address (with a Home Address Option if necessary to pass ingress filtering).
  • Benefits: Route Optimization reduces latency and overhead on the Home Agent.

While MIPv6 provides a robust solution for IP mobility, its deployment varies. In cellular networks (3G, 4G, 5G), specific mobility management protocols (like GPRS Tunneling Protocol - GTP) are often used. However, MIPv6 concepts are influential and can be found in various scenarios, including enterprise networks, ad-hoc networks, and specialized IoT applications requiring session persistence across different network attachments. Understanding MIPv6 is valuable for a comprehensive grasp of IPv6 capabilities.

For deeper understanding, refer to RFC 6275 (Mobility Support in IPv6) and related RFCs on MIPv6 security and optimizations.