chapter 2
chapter 2
Use CoCoA when you don’t have access to a Foreign Agent, or if you
want to simplify the network setup without relying on Mobile IP
infrastructure.
9
• Situations for triggering Handoff
• Handoffs are triggered in any of the following
situations:−
12
Handoff process
13
Therefore, mobile IP operates on top of IP
14
Requirement to Mobile IP Implementation
,Including by preserving
CIA
15
Mobile IP basic issues
• Mobile IP was developed as a means for transparently
dealing with problems of mobile users.
– It enables hosts to stay connected to the internet
regardless of their location
– It enables hosts to be tracked without needing to
change their ip address
– It requires no changes to software of non-mobile
hosts/routers
– It requires addition of some infrastructure
– It has no geographical limitations
– It requires no modifications to ip addresses or ip
address format
– It supports security
• Could be even more important than physically 16
connected routing
• IETF standardization process is still underway
Terminology
You should have to be familiar with the following
terminology.
Mobile node
Correspondent node
Home network
Home agent
Foreign network
Foreign agent
Home addresses
Care of addresses
Collocated- care-of-addresses
Manual Configuration by the Mobile Node
Direct Configuration from the Mobile Node’s Own Network
17
To make a change of addresses transparent to
the Internet we use two agents. FA and HA.
Mobile IP Entities
Mobile Node (MN)
– The entity that may change its point of attachment from
network to network in the Internet without changing its IP
address
• Detects it has moved and registers with “best” FA
– Assigned a permanent IP called its home address to which other
hosts send packets regardless of MN’s location
• Since this IP doesn’t change it can be used by long-lived
applications as MN’s location changes.
Home Agent (HA)---
– System/device in the home network of the MN, typically a router
– Registers the location of the MN, it tunnels IP datagrams to the
COA or packet delivery towards the MN is done via a tunnel.
– Located on home network of MN
– Does mobility binding of MN’s IP with its COA
– Forwards packets to appropriate network when MN is away 18
• Does this through encapsulation
• The encapsulated packet is then forwarded to the Care-of
Address (CoA), which is the location of the mobile node in
Mobile IP Entities contd.
• Foreign Agent (FA)
– Another router with enhanced functionality
– If MN is away from HA then it uses FA to send/receive data
to/from HA
– Advertises itself periodically
– Forward’s MN’s registration request
– Decapsulates messages for delivery to MN
– If the mobile node is using a Foreign Agent (FA), the Foreign Agent
receives the encapsulated packet and decapsulates it. It then forwards
the original packet to the mobile node's Care-of Address (CoA).
– If the mobile node is using a colocated Care-of Address, the mobile
node itself receives the encapsulated packet, decapsulates it, and
processes the original packet.
• Care-of-address (COA)--The Foreign Agent (FA) provides (CoA) for
MNs.
– Address which identifies MN’s current location
– Sent by FA to HA when MN attaches 19
23
How Mobile IP Works
Mobile IP has three main phases, to communicate with remote host to mobile node. Or it
needs the 3 steps for network integration
1. Agent discovery:- A mobile node has to find a foreign agent when it moves away from
home network during discovery. To solve this problem mobile IP uses two methods:
agent advertisement and agent solicitation which are in fact router discovery methods
plus extensions.
Type=explains type of message formats =>1 for registration request; 3 for replay; and 16 for agent
26
advertisement
2. Registration:-purpose to inform HA, the current location
of MN.
‐ MN requests the forwarding service by sending a registration
request to the foreign agent (FA) that it wants to use
‐ FA conveys this request (with CoA) to the mobile node’s home agent
(HA)
‐ HA either accepts or denies the request and sends a registration
reply to the FA and FA relays this reply to the MN
‐ Registration operation uses two types of messages carried in UDP
segments:
‐ Registration request message and Registration reply message
27
2. Registration request message format:-
29
30
31
Mobile IP Registration …
32
Mobile IP Registration ….
33
3. Tunneling (data transfer):-
‐ Tunneling:- routing the packets to the mobile node where ever it is
located. Or Delivery of packets to the mobile node. A reciprocal tunnel is set up by
the Home Agent to the care-of address (current location of the Mobile Node on the
foreign network) to route packets to the Mobile Node as it roams.
34
Tunneling…….
35
36
Here’s a step-by-step breakdown of how indirect routing works in Mobile IP:
1. Home Agent (HA): When a mobile device connects to a foreign network, it
registers its new care-of address (CoA) with a Home Agent, which is a server
located in the device’s home network.
2. Correspondent Node (CN): The device's Correspondent Node, which wants to
communicate with the mobile device, sends data to the mobile device's
permanent IP address (home address).
3. Tunneling: The Home Agent intercepts the data intended for the mobile
device at its home address. The HA then encapsulates or tunnels the packets
and forwards them to the device’s current CoA in the foreign network.
4. Foreign Agent (FA): In some Mobile IP implementations, the Foreign Agent in
the foreign network assists by decapsulating the packets and delivering them
to the mobile device.
5. Return Path: When the mobile device replies to the Correspondent Node, it
usually sends the reply directly to the CN, not through the Home Agent (to
optimize routing).
37
Key Characteristics of Indirect Routing:
Inefficient routing (Triangle routing): Packets take a
bypass through the Home Agent, which may cause longer
delays.
Encapsulation).
Encapsulation and Decapsulation in Mobile IP...
• Steps in Decapsulation:
• The encapsulated packet arrives at the Care-of Address
(CoA) in the foreign network.
• The Foreign Agent (or the mobile device itself if it has
its own CoA) receives the packet.
• The outer IP header (containing the Home Agent as the
source and the CoA as the destination) is removed.
• The inner, original packet (which has the Correspondent
Node as the source and the mobile device’s home IP as
the destination) is extracted.
• The mobile device processes the original packet as if it
had been directly sent to its home address.
– Encapsulation: Done by the Home Agent, where the original
packet is wrapped with an additional IP header to tunnel it to
the mobile device’s Care-of Address. 42
Disadvantage of Mobile IP
• There is a routing inefficiency problem caused by the
“triangle routing” formed by the home agent,
correspondent host, and the foreign agent.
• Security risks are the most important problem facing
Mobile IP. Besides the traditional security risks with IP,
one has to worry about faked care‐of addresses. 44
• Another issue related to the security is how to make
Mobile IP coexist with the security features coming in use
within the Internet.
THANK YOU
45