Mobile IPv6: Complete Guide to Seamless Network Mobility
Understand Mobile IPv6 protocols, Home Agents, Care-of Addresses, Binding Updates, Route Optimization, Mobility Headers, Mobile Node operations, and Hierarchical Mobile IPv6 for enterprise and carrier networks
Table of Contents
Why Mobile IPv6?
The Evolution of Connectivity
In the past, we were used to making phone calls from home or from the office. Public pay phones allowed us to make phone calls while on the road. Today, the use of mobile phones is common and we make phone calls from almost anywhere and in any life situation.
- Notebook computers, wireless networks, and portable devices expanding rapidly
- Smart devices used from wherever we are
- Devices need to remain connected while moving
- Seamless roaming between access points and networks
- IP as the universal transport protocol
The Mobility Challenge
If these devices are to use IP as a transport protocol, we need Mobile IP to make this work. We expect our device to remain connected when we move around and change our point of attachment to the network, just as we are used to roaming from one cell to the next with our mobile phones today.
With IPv4 and IPv6 alike, the prefix (subnet address) changes depending on the network to which we are attached. When a mobile node changes its point of access to the network, it needs to get a new IP address, which disrupts its TCP or UDP connections.
Application Scenarios
Real-World Example: The Mobile Professional
Suppose you have a tablet with:
- 802.11 (wireless) interface
- Mobile network interface (5G)
In your hotel room:
✓ Connected via wireless interface
✓ Running Teams session
✓ Voice call active
You leave and go to the street:
✓ Automatically switch to 5G
✓ No connection loss
✓ Teams session continues
✓ Voice call doesn't drop
Result: Seamless mobility without application disruption!
Use Cases for Mobile IPv6
- Enterprise mobility: Employees moving between office buildings and remote locations
- Healthcare: Medical devices and tablets moving through hospital facilities
- Transportation: Connected vehicles, trains, planes with continuous connectivity
- IoT devices: Wearables, sensors, smart devices changing network attachment
- Public safety: First responders maintaining connections while mobile
- Remote work: Seamless transitions between home, office, and mobile networks
Reasons for IPv6 vs IPv4
Why Mobile IPv4 Falls Short
RFC 5944, "IP Mobility Support for IPv4," describes Mobile IP concepts and specifications for IPv4. However, using Mobile IP with IPv4 has certain limitations that make it unsuitable for requirements in a global network.
- Limited address space: Global number of mobile devices far exceeds IPv4 address space available
- No routing optimization: Lacks efficient routing mechanisms for mobile traffic
- ARP dependency: Tied to Link layer through ARP protocol
- Scalability issues: Cannot support massive global device deployment
- Triangle routing: All traffic must go through home agent (inefficient)
Why Mobile IPv6 is Superior
- Vast address space: 2¹²⁸ addresses support unlimited global mobile devices
- Extension headers: Enable routing optimization in mobile environments
- Neighbor Discovery: More independent of Link layer than ARP
- Route optimization: Direct communication between mobile and correspondent nodes
- Built-in security: IPsec mandatory for Mobile IPv6
- Better performance: Optimized for global-scale mobility
- Lessons learned: Takes experience from Mobile IPv4 and improves upon it
Mobile IPv6 Overview
What is Mobile IPv6?
Mobile IPv6 is a protocol that allows a mobile node to move from one network to another without losing its connections. It is specified in RFC 6275.
Most Internet traffic uses TCP connections. A TCP connection is defined by the combination of:
- Source IP address + Source port number
- Destination IP address + Destination port number
If any of these four numbers changes, the communication is disrupted and has to be reestablished.
The Mobile IPv6 Solution
Mobile IP addresses the challenge of moving a node to a different connection point without changing its IP address by assigning the interface of the mobile node a new additional IP address.
1. Home Address (HoA):
- Static, does not change
- Used to identify TCP connections
- Permanent address for the mobile node
2. Care-of Address (CoA):
- Dynamic, changes with network
- Current location address
- Used for actual packet routing
Homogeneous and Heterogeneous Networks
Mobile IPv6 works seamlessly across different network types:
| Network Type | Example | Mobile IPv6 Support |
|---|---|---|
| Homogeneous | Ethernet segment → Ethernet segment | ✓ Supported |
| Heterogeneous | Ethernet → Wireless LAN | ✓ Supported |
| Heterogeneous | WiFi → 5G/LTE | ✓ Supported |
| Heterogeneous | Wired → Satellite | ✓ Supported |
Layer 2 vs Layer 3 Handover
Layer 2 Handover (Link Layer):
- Device moves from one access point to another
- Same subnet, same IP address
- WiFi roaming within the same network
- Fast, handled by wireless protocols
Layer 3 Handover (Network Layer):
- Device moves to different subnet/network
- Requires new IP address
- Mobile IPv6 maintains application connections
- Slower, but preserves session state
Care-of Addresses
What is a Care-of Address?
The Care-of Address (CoA) is the temporary address that changes depending on the network to which the mobile node is currently attached.
- Dynamic: Changes with each network attachment
- Topologically correct: Valid for current network prefix
- Routable: Can receive packets directly
- Temporary: Only valid while on that network
- Multiple possible: Device may have multiple interfaces/addresses
Home Address vs Care-of Address
| Aspect | Home Address (HoA) | Care-of Address (CoA) |
|---|---|---|
| Lifetime | Permanent | Temporary |
| Purpose | Connection identification | Packet routing |
| Changes | Never (or rarely) | Every network change |
| Used by | Applications, TCP/UDP | IP routing |
| Visibility | Known to correspondent nodes | Transparent to applications |
The Mobile IPv6 Protocol
Mobility Header and Messages
The Mobility Header (MH) has been defined specifically for Mobile IPv6.
Type: Extension header (Next Header value = 135)
Used by: Mobile node, Correspondent node, Home agent
Purpose: Establishing and maintaining bindings
Position: Between IPv6 header and upper layer protocol
Key Mobile IPv6 Messages
| Message Type | Purpose | Direction |
|---|---|---|
| Binding Update (BU) | Inform HA/CN of current CoA | MN → HA/CN |
| Binding Acknowledgment (BA) | Confirm Binding Update receipt | HA/CN → MN |
| Binding Refresh Request (BRR) | Request MN to update binding | CN → MN |
| Home Test Init (HoTI) | Initiate return routability test | MN → CN (via HA) |
| Care-of Test Init (CoTI) | Test direct path to CoA | MN → CN (direct) |
| Home Test (HoT) | Response to HoTI | CN → MN (via HA) |
| Care-of Test (CoT) | Response to CoTI | CN → MN (direct) |
Home Agent Role and Functions
What is a Home Agent?
The Home Agent (HA) is a router on the mobile node's home network that provides critical mobility services.
- Maintains Current Care-of Address (CoA): Stores where the mobile node is currently located
- Forwards Incoming Packets: Routes packets to MN's current location
- Preserves Home Address (HoA): MN stays reachable via same permanent address
- Supports Return Routability: Enables secure binding updates
- Proxy Neighbor Discovery: Responds to ND messages for MN's HoA
Packet Forwarding Methods
1. IPv6-in-IPv6 Tunneling (Default):
[Outer IPv6 Header: HA → CoA] [Inner IPv6 Header: CN → HoA] [Payload]
- Outer header routes to current location
- Inner header preserves original addressing
2. Routing Header Type 2:
[IPv6 Header: HA → CoA] [Routing Header: HoA] [Payload]
- More efficient than tunneling
- Mobile IPv6 specific extension header
Home Agent Discovery
Mobile nodes need to discover and communicate with their Home Agent:
- Pre-configured: MN knows HA address before leaving home
- Dynamic Discovery: ICMPv6 Home Agent Address Discovery (HAAD)
- Anycast address: MN can use Mobile IPv6 Home-Agents anycast address
- DNS: Home Agent addresses published in DNS
Mobile Prefix Solicitation
Purpose and Function
The Mobile Prefix Solicitation message is sent by a mobile node away from home to determine changes in the prefix configuration of its home link (i.e., home network renumbering).
Networks can renumber their prefixes. If the home network changes its prefix while the MN is away, the MN's Home Address becomes invalid. Prefix Solicitation allows the MN to discover these changes and adjust its Home Address accordingly.
Mobile Prefix Solicitation Process
1. Mobile Node Sends Solicitation:
Message: ICMPv6 Mobile Prefix Solicitation
Source: Care-of Address (current location)
Destination: Home Agent
Contains: Home Address Destination option
Security: IPsec headers (should be used)
2. Home Agent Replies with Advertisement:
Message: ICMPv6 Mobile Prefix Advertisement
Type: 147
Destination: MN's Care-of Address
Contains: Routing Header Type 2
Payload: All prefixes for home address configuration
3. Unsolicited Advertisements (Optional):
HA sends periodic advertisements
Sent to all registered mobile nodes
Proactive prefix update mechanism
Routing Header Type 2
Purpose:
- Used ONLY by Mobile IPv6
- Allows CN to send packets directly to MN at CoA
- Preserves original Home Address (HoA) inside header
Structure:
Next Header | Hdr Ext Len | Routing Type=2 | Segments Left
Reserved | Home Address (128 bits)
Benefit:
Direct routing to CoA while maintaining HoA for application layer
Mobile Node Operation
At Home vs Away from Home
| Scenario | Behavior | Addresses Used |
|---|---|---|
| MN at Home | No Mobile IPv6 mechanisms needed | Home Address only |
| MN Away from Home | Uses both addresses, maintains bindings | Home Address + Care-of Address |
Address Selection by Mobile Node
When the MN is away from home, it must choose which address to use for each communication:
Use Home Address (HoA) when:
- Applications above IP layer communicate
- Connection must survive network changes
- Binding exists with correspondent node (enables route optimization)
- No binding exists (tunneled through home agent)
Use Care-of Address (CoA) when:
- Communicating with local nodes in foreign network
- Neighbor Discovery on local link
- New communications not requiring mobility
- Using CoA as regular unicast address without Mobile IPv6 functionality
Communication Paths
1. With Binding (Route Optimized):
MN ←→ CN (direct communication)
- Most efficient
- Requires successful binding update
2. Without Binding (Tunneled):
MN ←→ HA ←→ CN
- All data tunneled through home agent
- Less efficient but always works
3. Local Communication:
MN ←→ Local Node (foreign network)
- Uses CoA directly
- No Home Address Destination option
- Standard IPv6 communication
Decision Responsibility
The choice of the best communication path and corresponding address depends on the requirements of the application. The decision should be made at the application layer. This definition is not part of the Mobile IPv6 specification itself.
Hierarchical Mobile IPv6
Overview and Purpose
RFC 5380, "Hierarchical Mobile IPv6," extends the scalability of Mobile IPv6. It is designed to significantly enhance performance and reduce signaling overhead.
- Reduce signaling: Fewer Binding Update messages
- Improve performance: Local mobility handled locally
- Hide location: Correspondent nodes don't see micro-mobility
- Scalability: Better support for large-scale deployments
Mobility Anchor Point (MAP)
Hierarchical Mobile IPv6 introduces a new node type: the Mobility Anchor Point (MAP).
Function: Local home agent in geographical region
Location: Anywhere in hierarchical network of routers
Role: Anchor point for local mobility
Benefit: MN sends updates to MAP instead of HA/CN
Transparency: HA and CN operation unchanged
How Hierarchical Mobile IPv6 Works
Macro-Mobility (Between MAP Domains):
- MN sends Binding Update to HA and CN
- RCoA (Regional Care-of Address) used
- Infrequent updates (only when changing regions)
Micro-Mobility (Within MAP Domain):
- MN sends Binding Update only to MAP
- LCoA (Link-local Care-of Address) changes
- Frequent updates (every access router change)
- HA and CN unaware of micro-mobility
Hierarchical Mobile IPv6 Operation
Initial Setup:
1. MN enters MAP domain, gets RCoA from MAP
2. MN sends BU to HA with RCoA
3. MN sends BU to CN with RCoA
4. MN gets LCoA from local access router
5. MN sends BU to MAP with LCoA
Movement Within Domain:
1. MN moves to new access router
2. MN gets new LCoA
3. MN sends BU ONLY to MAP (not HA/CN)
4. MAP forwards traffic to new LCoA
5. HA and CN continue using RCoA (unchanged)
Result: By sending one BU to MAP, all traffic from HA and CN
is rerouted without global signaling overhead!
Benefits Comparison
| Aspect | Standard Mobile IPv6 | Hierarchical Mobile IPv6 |
|---|---|---|
| Local Movement | BU to HA + all CNs | BU only to MAP |
| Signaling Load | High | Low (local only) |
| Location Privacy | CN knows exact location | CN only knows region |
| Handover Delay | Higher (global updates) | Lower (local updates) |
| Scalability | Limited | Better |
| HA/CN Changes | N/A | None required |
Key Takeaways
- ✅ Mobile IPv6 enables seamless mobility without connection loss
- ✅ Two-address system: Home Address (permanent) + Care-of Address (temporary)
- ✅ Works across homogeneous and heterogeneous networks
- ✅ Home Agent maintains bindings and forwards packets
- ✅ Route optimization allows direct MN-CN communication
- ✅ Mobility Header (Next Header=135) used for signaling
- ✅ Prefix Solicitation handles home network renumbering
- ✅ Mobile nodes intelligently choose HoA vs CoA based on context
- ✅ Hierarchical Mobile IPv6 reduces signaling for local mobility
- ✅ MAP provides regional anchor point for micro-mobility
- ✅ Superior to Mobile IPv4: vast address space, routing optimization, better scalability
Deployment Considerations
- Home Agent deployment: High availability, redundancy required
- Security: IPsec for Binding Updates mandatory
- DNS integration: Dynamic DNS updates for HoA
- Application support: Apps must use HoA for connections
- Network design: Consider MAP placement for Hierarchical MIPv6
- Monitoring: Track binding lifetimes, handover success rates
- Performance: Test route optimization paths
What's Next?
With Mobile IPv6 fundamentals mastered, explore:
- Network Mobility (NEMO): Mobile networks (vehicles, planes)
- Proxy Mobile IPv6 (PMIPv6): Network-based mobility (no MN changes)
- Fast Handovers: Reduce latency during movement (RFC 5568)
- Mobile IPv6 Security: Return routability, IPsec integration
- Dual-Stack Mobile IPv6 (DSMIPv6): IPv4/IPv6 mobility
- Performance Optimization: Tunneling overhead reduction
- 5G Integration: Mobile IPv6 in modern cellular networks
Master Mobile IPv6! Understanding mobility protocols is essential for modern network infrastructure supporting smartphones, IoT devices, and enterprise mobility requirements. Mobile IPv6 provides the foundation for seamless connectivity in an increasingly mobile world.