MC Lecture 5 &6
MC Lecture 5 &6
Mobile IP
Mobile IP Basics
• A Mobile Node is assigned a visiting, or Care-Of-Address, at the
networks it visits
– Application sessions still use to original Home IP address
– Normal IP Routing forwards packets to the Home Network
– Mobile IP then forwards packets from the Home Network to the
Mobile Nodes current Foreign Network Foreign Network (for X.b)
Home Network (for X.b)
Z.a
X.a Internet
X.b Router
Router
X.z
Z.z
HA
FA HomeIP: X.b
Router: Y.z COA: Z.t
FA
Y.e Y.f
HomeIP: X.b
COA: Y.m
Y.e Y.f
HomeIP: X.b
COA: Y.m
datagram, and send original datagram to MN Src: Z.a Dst: X.b Data
X.b Z.a
Router Tunnel CN
Router
X.z
Z.z
HA
IP datagram tunnelled by HA (X.z) FA
Src: X.z Dst: Y.m Src: Z.a Dst: X.b Data
Router: Y.z
FA
IP datagram received by MN (X.b)
Src: Z.a Dst: X.b Data
HomeIP: X.b
COA: Y.m
• Routing/Encapsulation/Tunneling: consists of the delivery of
the packets to the mobile node at its current care of address.
– Sender does not need to know that the destination is a MN.
– HA intercepts all packets for the MN and passes them along
to MN using a tunnel.
– MN communicates directly with the CN.
– Referred to as Triangle Routing
Mobile IP Route Optimisation
• Routing via the HA all the time can be inefficient
– Triangular Routing Problem
– If CN and MN are “near each other”, but HA is “far away”
• E.g. CN is in Toshiba Bangkadi; MN from Toshiba US is visiting SIIT
– CN (in Bangkadi) sends to HA in US, which then sends to
FA/MN in Bangkadi
• Route Optimisation is an extension of original Mobile IP that allows CN to
send directly to MN’s COA
– MN’s and FA’s may sending Binding Warnings to HA if they see a need
for route optimisation
– HA sends Binding Updates to CN, informing the CN of the MN’s
current COA (a lifetime is associated with this COA)
– CN maintains a Binding Cache, storing the COA of MN’s
• If COA exists in Binding Cache, CN sends with destination set to COA
• If COA does not exist, CN sends with destination set to Home IP
• Reduces delay of triangular routing, but:
– Requires CN to maintain Binding Cache (not supported in some nodes)
– Need to have security association between HA and CN
– Some security techniques that filter packets that “come from the wrong
network” may not allow the packets (ingress filtering)
Mobility approaches
□ Two Main approaches:
♦ indirect routing: communication from
correspondent to mobile goes through home
agent, then forwarded to remote
♦ direct routing: correspondent gets foreign
address of mobile, sends directly to mobile
12-17
Mobility via Indirect Routing
foreign agent
receives packets,
home agent intercepts forwards to mobile
packets, forwards to visited
foreign agent network
home
network
3
wide area
network
2
1
correspondent 4
addresses packets
mobile replies
using home address of
directly to
mobile
correspondent
12-18
Indirect Routing: comments
□ Mobile uses two addresses:
♦ permanent address: used by correspondent (hence mobile
location is transparent to correspondent)
♦ care-of-address: used by home agent to forward datagrams
to mobile
□ Foreign agent functions may be done by mobile itself
□ Triangle routing: correspondent-home-visited
♦ inefficient when correspondent, mobile are in same network
12-19
Indirect Routing: moving between networks
□ Suppose mobile user moves to another network
♦ registers with new foreign agent
♦ new foreign agent registers with home agent
♦ home agent updates care-of-address for mobile
♦ packets continue to be forwarded to mobile (but with new care-of-
address)
12-20
Mobility via Direct Routing
foreign agent
receives packets,
correspondent forwards forwards to mobile
to foreign agent visited
network
home
network 4
wide area
2 network
3 5
correspondent 1
mobile replies
requests, receives
directly to
foreign address of
correspondent
mobile
12-21
Mobility via Direct Routing: comments
□ Overcomes triangle routing problem
□ Non-transparent to correspondent: correspondent must
get care-of-address from home agent
♦ what if mobile changes visited network?
12-22
Accommodating mobility with direct routing
□ anchor foreign agent: FA in first visited network
□ data always routed first to anchor FA
□ when mobile moves: new FA arranges to have data
forwarded from old FA (chaining)