- Before it leaves its home network, the nomadic host listens for
agent advertising messages on its own network and
record the IP address of the agent on its home network.
This agent is the home agent for the nomadic host
- When the nomadic host leaves its home network and enters a foreign
network, it acquires a new IP address using the DHCP protocol
and this new IP address will be one pertaining to the foreign network.
After acquiring a new IP address, the nomadic host sends a
CareOf message to its home agent, containing:
- IP address of the nomadic host
- new IP address acquired for the foreign network
- Upon receiving the CareOf message, the home agent
creates an IP tunnel for the nomadic host.
The tunnel will have:
Destination | Next
--------------+---------------
IP address | (Virtual Tag)
of nomadic | IP address of
host | nomadic host
| on foreign network
The effect of this is:
- When the home agent (a router) receives a message destined for
the nomadic host, it will tunnel the message
directly to the nomadic home on the foreign network !
The figure below depicts the situation after successful registering:
- NOTE: Again, the tunnel is unidirectional
(only from home agent to nomadic host).
- You already have seen before that you don't have to tunnel
back to allow the nomadic host to send messages