
In Mobile IP, packet delivery ensures that a Mobile Node (MN) can communicate while moving between different networks without changing its permanent IP address. This process relies on two main agents: the Home Agent (HA) in the MN's original network and the Foreign Agent (FA) in the visited network.
1. IP Packet Delivery to the Mobile Node (CN to MN) When a Correspondent Node (CN) sends data to the MN, the path involves a process called triangular routing:
• Step 1: Standard Transmission: The CN sends an IP packet to the MN using its permanent home IP address. The CN is unaware that the MN has moved.
• Step 2: Interception by HA: The packet is routed to the MN's home network. The Home Agent (HA) intercepts the packet because it knows the MN is currently away.
• Step 3: Tunneling and Encapsulation: The HA wraps (encapsulates) the original packet into a new packet. It adds a new header where the destination is the Care-of Address (COA). This "virtual pipe" is known as a tunnel.
• Step 4: Decapsulation by FA: The packet reaches the Foreign Agent (FA) in the visited network. The FA removes the outer header (decapsulation) and delivers the original packet to the MN.
2. IP Packet Delivery from the Mobile Node (MN to CN) The path from the MN back to the CN is more direct and typically follows standard IP routing:
• Step 1: Sending to Default Router: The MN sends the packet to the default router in its current foreign network (usually the FA). The source address is the MN's permanent IP, and the destination is the CN's IP.
• Step 2: Standard Forwarding: The FA or local router forwards the packet normally through the internet.
• Step 3: Direct Delivery: The packet reaches the CN using standard routing protocols without the need for tunneling through the HA.
The agent registration process in Mobile IP allows a mobile node (MN) to inform its home agent (HA) of its current care-of address (COA) while visiting a foreign network.
It involves four main steps: agent discovery, request (MN to FA to HA), registration reply (HA to FA to MN), and connection setup.
(A) Registration via Foreign Agent (FA)
This method is used when the MN acquires a Care-of Address (COA) belonging to a Foreign Agent (FA). The FA acts as an intermediary, facilitating communication between the MN and the HA.
(B) Direct Registration (Co-located COA)
If the MN acquires a "co-located" care-of address—meaning it uses a temporary IP address obtained via mechanisms like DHCP directly on its own network interface—it can skip the FA and register directly with the Home Agent.