![](https://cv01.studmed.ru/view/4480c03a0ef/bg241.png)
The TCP/IP Guide - Version 3.0 (Contents) ` 577 _ © 2001-2005 Charles M. Kozierok. All Rights Reserved.
The solution to this dilemma of course is mail forwarding. Let's say that you leave London
for Tokyo for a couple of months. You tell the London post office (PO) that you will be in
Tokyo. They intercept mail headed for your normal London address, relabel it, and forward
it to Tokyo. Depending on where you are staying, this mail might be redirected either
straight to a new address in Tokyo, or to a Tokyo PO where you can pick it up. If you leave
Tokyo to go to another city, you just call the London PO and tell them your new location.
When you come home, you cancel the forwarding and get your mail as always. (Yes, I'm
assuming London and Tokyo each have only one post office. You mean they don't? Yeah,
whatever. ☺)
The advantages of this system are many. It is relatively simple to understand and
implement. It is also transparent to everyone who sends you mail; they still send to you in
London and it gets wherever it needs to go. And handling of the forwarding mechanism is
done only by the London PO and possibly the PO where you are presently located; the rest
of the postal system doesn't even know anything out of the ordinary is going on.
There are some disadvantages of course too. The London PO may allow occasional
forwarding for free, but would probably charge you if you did this on a regular basis. You
might also need a special arrangement in the city you travel to. You have to keep communi-
cating with your home PO each time you move. And perhaps most importantly, every piece
of mail has to be sent through the system twice—first to London and then to wherever you
are located—which is inefficient.
Mobile IP works in a manner very similar to the mail forwarding system I just described. The
“traveling consultant” is the device that goes from network to network. Each network can be
considered like a different “city”, and the internetwork of routers is like the postal system.
The router that connects any network to the Internet is like that network's “post office”, from
an IP perspective.
The mobile node is normally resident on its home network, which is the one that is indicated
by the network ID in its IP address. Devices on the internetwork always route using this
address, so the pieces of “mail” (datagrams) always arrive at a router at the device's
“home”. When the device “travels” to another network, the home router (“post office”) inter-
cepts these datagrams and forwards them to the device's current address. It may send
them straight to the device using a new, temporary address, or it may send them to a router
on the device's current network (the “other post office”, Tokyo in our analogy) for final
delivery. An overview of Mobile IP operation can be seen in Figure 128
.
Mobile IP Device Roles
As you can see, just as mail forwarding requires support from one or more post offices,
Mobile IP requires the help of two routers. In fact, special names are given to the three main
players that implement the protocol (also shown in Figure 128):
☯ Mobile Node: This is the mobile device, the one moving around the internetwork.
☯ Home Agent: This is a router on the home network that is responsible for catching
datagrams intended for the mobile node and forwarding them to it when it is traveling.
It also implements other support functions necessary to run the protocol.