The details of IP mobility support software that must be included are specified in the Internet document RFC 2002: click here
If a host wants to become nomadic (move around across multiple IP networks), then its home network must implement IP mobility support. One of the routers in its home network must become a home agent
The following is one possible solution that uses a foreign agent to accommodate a nomadic host in a foreign network.
Foreign Agent = router at a foreign network which is also running the special mobile IP software.
Agents (routers) with mobility support will periodically broadcast agent advertising messages (Ethernet broadcast).
This agent is the home agent for the nomadic host:
![]() |
When it receives a agent advertising message, it records the IP address of the agent.
The agent on the foreign network is the nomadic host's foreign agent:
![]() |
When the foreign agent receives a Register message, it sends a CareOf message to the host agent and the CareOf message will contain:
![]() |
Destination | Next --------------+--------------- IP address | (Virtual Tag) of nomadic | IP address of host | foreign agent
![]() |
The effect of this is:
(So you see yet another application of tunnels !)
The figure below depicts the situation after successful registering:
![]() |
(To understand what's going on, you need to understand tunneling: click here)
The message is routed using the network ID towards the home network (10.0.0.xx):
![]() |
The message is then encapsulated inside a new IP message and sent towards the foreign agent (12.0.0.1):
![]() |
The inner message is then extracted
Although the network ID is different from 12.0.0.xx, the CareOf entry in the foreign agent will instruct the agent to sent the message on the LAN towards (10.0.0.4):
![]() |
![]() |
This "feature" is causing a lot of havoc nowadays: denial of service attacks. You can set your IP address of your home computer to any IP address that you want and is able to send messages to Yahoo or other websites (you won't get any replies, but that's not the point of a DoS attack). You can flood the website with senseless messages and they don't know where or who did it....)
It would be nicer if you can do mobile IP using a more common service that is available in most networks.
A more commonly available service is DHCP and the Internet documentation RFC 2002 also documents a mobile IP solution that uses DHCP. This solution do not require the foreign network to provide any additional support (other than DHCP service).