In a wireless or mobile ad hoc network the routing interworks with the ordinary
Internet routing using the Mobile IP. Mobile IP foreign agents are used as gateways
between the ad hoc network and the Internet. The nodes in the ad hoc network use
their home addresses for all communication and register with a foreign agent in
the network. To send packets to hosts on the Internet either tunnelling or proxying
is used. To receive packets from the Internet the packets are routed to the foreign
agent using the Mobile IP. The foreign agent then routes the packets to the destination
in the ad hoc network. Since the ordinary Mobile IP requires link-layer connectivity
between the foreign agent and a visiting node which is not guaranteed on the ad
hoc network, modifications are accordingly made to the procedures of the Mobile IP.