Mobile & Wireless Networking: Mobile IP (Schiller, Section 8.1)
Mobile & Wireless Networking: Mobile IP (Schiller, Section 8.1)
Lecture 9:
Mobile IP
Geert Heijenk
q Mobile IP Basics
q 3 parts of Mobile IP:
q Advertising Care-of Addresses
q Registration
q Tunneling
q Mobile IPv6
q Mobile IPv6 extensions
q Hierarchical Mobile IPv6
q Fast Handover for Mobile IPv6
q Proxy Mobile IPv6
2
Mobile and Wireless Networking
2013 / 2014
Motivation for Mobile IP RFC 5944
q Routing
q based on IP destination address, network prefix (e.g. 129.13.42)
determines physical subnet
q change of physical subnet implies change of IP address to have a
topological correct address (standard IP) or needs special entries in
the routing tables
q Specific routes to end-systems?
q change of all routing table entries to forward packets to the right
destination
q does not scale with the number of mobile hosts and frequent
changes in the location, security problems
q Changing the IP-address?
q adjust the host IP address depending on the current location
q almost impossible to find a mobile system, DNS updates take too
long time
q TCP connections break, security problems
3
Mobile and Wireless Networking
2013 / 2014
Example network
HA
(Home Agent) MN
(Mobile Node)
router
home network
Internet foreign
(physical home network network
for the MN)
FA
(Foreign Agent)
router
(current physical network
for the MN)
CN
(Correspondent
router
Node)
4
Mobile and Wireless Networking
2013 / 2014
Data transfer to the mobile system
HA
2
MN
FA foreign
network
5
Mobile and Wireless Networking
2013 / 2014
Data transfer from the mobile system
HA
1 MN
FA foreign
network
receiver
6
Mobile and Wireless Networking
2013 / 2014
Types of Home Networks
7
Mobile and Wireless Networking
2013 / 2014
Co-located Care-of Address
HA
MN
CN
sender
8
Mobile and Wireless Networking
2013 / 2014
Outline of Lecture 11
q Mobile IP Basics
q 3 parts of Mobile IP:
q Advertising Care-of Addresses
q Registration
q Tunneling
q Mobile IPv6
q Mobile IPv6 extensions
q Hierarchical Mobile IPv6
q Fast Handover for Mobile IPv6
q Proxy Mobile IPv6
9
Mobile and Wireless Networking
2013 / 2014
Agent advertisement
0 7 8 15 16 23 24 31
type code checksum
#addresses addr. size lifetime
router address 1
preference level 1
router address 2
type = 16 preference level 2
length = 6 + 4 * #COAs ...
R: registration required
B: busy, no more registrations
H: home agent type = 16 length sequence number
registration lifetime R B H F M G r T U X I rsv
F: foreign agent
COA 1
M: minimal encapsulation
COA 2
G: GRE encapsulation
r: =0, ignored ...
T: FA supports reverse tunneling
U: UDP tunneling (firewall traversal)
X: support for registration revocation
I: support for regional registration by foreign agent
rsv: =0, ignored
10
Mobile and Wireless Networking
2013 / 2014
Home Network & Move Detection
11
Mobile and Wireless Networking
2013 / 2014
Registration
Registration Request
Registration Reply
Registration Request
Mobile Home
Node Agent
Registration Reply
Registration Request
Home Mobile
Agent Node
Registration Reply
12
Mobile and Wireless Networking
2013 / 2014
Mobile IP registration request
0 7 8 15 16 23 24 31
type = 1 S B DM G r T x lifetime
home address
home agent
COA
identification
extensions . . .
S: simultaneous bindings
B: broadcast datagrams
D: decapsulation by MN
M mininal encapsulation
G: GRE encapsulation
r: =0, ignored
T: reverse tunneling requested
x: =0, ignored
13
Mobile and Wireless Networking
2013 / 2014
Mobile IP registration reply
0 7 8 15 16 31
type = 3 code lifetime
home address
home agent
identification
Example codes: extensions . . .
registration successful
0 registration accepted
1 registration accepted, but simultaneous mobility bindings unsupported
registration denied by FA
65 administratively prohibited
66 insufficient resources
67 mobile node failed authentication
68 home agent failed authentication
69 requested Lifetime too long
registration denied by HA
129 administratively prohibited
131 mobile node failed authentication
133 registration Identification mismatch
135 too many simultaneous mobility bindings
14
Mobile and Wireless Networking
2013 / 2014
Simultaneous Bindings
15
Mobile and Wireless Networking
2013 / 2014
Tunneling
16
Mobile and Wireless Networking
2013 / 2014
Packet Interception by Home Agent
17
Mobile and Wireless Networking
2013 / 2014
Encapsulation
18
Mobile and Wireless Networking
2013 / 2014
Encapsulation I
19
Mobile and Wireless Networking
2013 / 2014
Encapsulation II
20
Mobile and Wireless Networking
2013 / 2014
Generic Routing Encapsulation
original
original data
header
GRE original
outer header original data
header header
21
Mobile and Wireless Networking
2013 / 2014
Mobile IP with reverse tunneling
22
Mobile and Wireless Networking
2013 / 2014
Reverse tunneling (RFC 3024)
HA
2
MN
FA foreign
network
1. MN sends to FA
3 2. FA tunnels packets to HA
CN by encapsulation
3. HA forwards the packet to the
receiver (standard case)
receiver
23
Mobile and Wireless Networking
2013 / 2014
Outline of Lecture 11
q Mobile IP Basics
q 3 parts of Mobile IP:
q Advertising Care-of Addresses
q Registration
q Tunneling
q Mobile IPv6
q Mobile IPv6 extensions
q Hierarchical Mobile IPv6
q Fast Handover for Mobile IPv6
q Proxy Mobile IPv6
24
Mobile and Wireless Networking
2013 / 2014
Mobile IPv6 (RFC 6275)
Mobile IP was developed for IPv4, but IPv6 simplifies the protocols
q security is integrated and not an add-on, authentication of
registration is included
q COA can be assigned via auto-configuration (DHCPv6 is one
candidate), every node has address autoconfiguration
q no need for a separate FA, all routers perform router advertisement
which can be used instead of the special agent advertisement;
addresses are always co-located
q MN can signal a sender directly the COA, sending via HA not
needed in this case (automatic route optimization)
q soft hand-over, i.e. without packet loss, between two subnets is
supported
l MN sends the new COA to its old router
l the old router encapsulates all incoming packets for the MN and
forwards them to the new COA
l authentication is always granted
25
Mobile and Wireless Networking
2013 / 2014
Outline of Lecture 11
q Mobile IP Basics
q 3 parts of Mobile IP:
q Advertising Care-of Addresses
q Registration
q Tunneling
q Mobile IPv6
q Mobile IPv6 extensions
q Hierarchical Mobile IPv6
q Fast Handover for Mobile IPv6
q Proxy Mobile IPv6
26
Mobile and Wireless Networking
2013 / 2014
IP Micro-mobility support
q Micro-mobility support:
q Efficient local handover inside a foreign domain
without involving a home agent
q Reduces control traffic on backbone
q Especially needed in case of route optimization
q Important criteria:
Security Efficiency, Scalability, Transparency, Manageability
27
Mobile and Wireless Networking
2013 / 2014
Hierarchical Mobile IPv6 (HMIPv6) (RFC 5380)
Operation:
q Network contains mobility anchor point
(MAP) Internet
HA
l mapping of regional COA (RCOA) to link
COA (LCOA)
RCOA
q Upon handover, MN informs
MAP only MAP
l gets new LCOA, keeps RCOA
q HA is only contacted if MAP
binding AR AR
changes update
LCOAnew LCOAold
MN MN
28
Mobile and Wireless Networking
2013 / 2014
Hierarchical Mobile IPv6 (2)
Advantages:
q Handover requires minimum number
of overall changes to routing tables
q Integration with firewalls / private address support possible
Potential problems:
q Not transparent to MNs
q Handover efficiency in wireless mobile scenarios:
l Complex MN operations
l All routing reconfiguration messages
sent over wireless link
29
Mobile and Wireless Networking
2013 / 2014
Mobile IPv6 Fast Handovers (1)
30
Mobile and Wireless Networking
2013 / 2014
Mobile IPv6 Fast Handovers (2)
31
Mobile and Wireless Networking
2013 / 2014
Mobile IPv6 Fast Handovers: predictive handover
MN PAR NAR
| | |
|------RtSolPr------->| |
|<-----PrRtAdv--------| |
| | |
|------FBU----------->|--------HI--------->|
| |<------HAck---------|
| <--FBack---|--FBack---> |
| | |
disconnect forward |
| packets===============>|
| | |
| | |
connect | |
| | |
|--------- UNA --------------------------->|
|<=================================== deliver packets
| |
RtSolPr - Router Solicitation for Proxy Advertisement
PrRtAdv - Proxy Router Advertisement
FBU Fast Binding Update
HI - Handover Initiate
HAck - Handover Acknowledge
FBack - Fast Binding Acknowledgment
UNA Unsollicited Neighbor Advertisement
32
Mobile and Wireless Networking
2013 / 2014
Mobile IPv6 Fast Handovers: reactive handover
MN PAR NAR
| | |
|------RtSolPr------->| |
|<-----PrRtAdv--------| |
| | |
disconnect | |
| | |
| | |
connect | |
|-------UNA-----------|--------------------->|
|-------FBU-----------|---------------------)|
| |<-------FBU----------)|
| |----------HI--------->|
| |<-------HAck----------|
| |(HI/HAck if necessary)|
| forward |
| packets(including FBAck)=====>|
| | |
|<=================================== deliver packets
| |
RtSolPr - Router Solicitation for Proxy Advertisement
PrRtAdv - Proxy Router Advertisement
UNA Unsollicited Neighbor Advertisement
FBU Fast Binding Update
HI - Handover Initiate
HAck - Handover Acknowledge
FBack - Fast Binding Acknowledgment
33
Mobile and Wireless Networking
2013 / 2014
Proxy Mobile IP (PMIPv6)
34
Mobile and Wireless Networking
2013 / 2014
PMIPv6 domain
35
Mobile and Wireless Networking
2013 / 2014
PMIPv6 message exchange
Disconnect Disconnect
Connect Connect
Rtr Sol
PBU
PBAck
Rtr Adv
36
Mobile and Wireless Networking
2013 / 2014