Network Layer Mobile IP
1
Slides adapted from Prof. Dr.-Ing. Jochen H. Schiller and W. Stallings
Network Layer Mobile IP Slides adapted from Prof. Dr.-Ing. Jochen - - PowerPoint PPT Presentation
Network Layer Mobile IP Slides adapted from Prof. Dr.-Ing. Jochen H. Schiller and W. Stallings 1 Mobile IP - Definition Mobile IP (MIP) is a modification to IP that allows nodes to continue to receive datagrams no matter where they
1
Slides adapted from Prof. Dr.-Ing. Jochen H. Schiller and W. Stallings
“Mobile IP (MIP) is a modification to IP that
2
Mobile IP adds mobility support to the Internet network
mobile computers.
users traveling through the world. – IP is the common base for thousands of applications and runs
supporting mobility at the IP layer.
Motivation for Mobile IP:
physical subnet
have a topological correct address (standard IP) or needs special entries in the routing tables
to the right destination
frequent changes in the location
location
been built for frequent updates
(connection typically via a low bandwidth radio link)
whole Internet
Take up the analogy of you moving from one
6
CNP
7/50
MIPv4 Nodes
MIPv4 Address
Home Agent (HA) & Foreign Agent (FA)
CNP
8/50
CNP
9/50
CNP
10/50
Agent Discovery Registration Data Transfer
CNP
11/50
Agent Discovery
Registration to HA (via FA)
Data Tunneling
12
CN
MN HA 1 2 3
4 5
8 7
8a Detunnelled Data
6a 6a
FA 8a 6 10
9 9 10a
CN
MN HA 1 2 3
4 5
8 7
6a 6a
FA 6 10
9 9
MIPv4 MIPv6
Discovery process built on top of an existing standard
Router advertisements extended to carry available care-of
Foreign agents (and home agents) send agent
A mobile host can choose not to wait for an
13
Foreign agents send advertisements to advertise available
Home agents send advertisements to make themselves
Mobile hosts can issue agent solicitations to actively seek
If mobile host has not heard from a foreign agent its
14
CNP
15/50
MIP does not use a new packet type for agent
Once mobile host receives care-of address, it registers it
A registration request is first sent to the home agent
Home agent then approves the request and sends a
Security?
16
17
If the mobile host is unable to communicate with
The message is sent as a broadcast to the home
18
When home agent receives packets addressed to mobile
How does it forward it? - encapsulation The default encapsulation mechanism that must be
Using IP-within-IP, home agent inserts a new IP header in
19
Destination address set to the care-of address Source address set to the home agent’s address After stripping out the first header, IP processes
20
21
new data new IP header
inner header
Encapsulation of one packet into another as payload
Encapsulation)
IP-in-IP-encapsulation (mandatory, RFC 2003)
Care-of address COA IP address of HA TTL IP identification IP-in-IP IP checksum flags fragment offset length DS (TOS) ver. IHL IP address of MN IP address of CN TTL IP identification
IP checksum flags fragment offset length DS (TOS) ver. IHL TCP/UDP/ ... payload
Minimal encapsulation (optional)
care-of address COA IP address of HA TTL IP identification
IP checksum flags fragment offset length DS (TOS) ver. IHL IP address of MN
S
IP checksum TCP/UDP/ ... payload reserved
CNP
25/50
MIPv6 = MIPv4 + IPv6 Major Differences from MIPv4
CNP
26/50
CNP
27/50
CNP
28/50
Binding Update to HA
Binding Update to CN
CNP
29/50
CNP
30/50
CNP
31/50
New IPv6 Protocol (Header)
New ICMP Messages
CNP
32/50
CNP
33/50
A New Extension Header of IPv6
CNP
34/50
Mobile IPv4 (MIPv4)
Mobile IPv6 (MIPv6)
CNP
35/50
MN PAR NAR CN signaling signaling
CNP
36/50
Handover Initiation
Tunnel Establishment
Packet Forwarding
CNP
37/50
CNP
38/50
Motivations
– MAP: Mobility Anchor Point
IP Address (CoA)
CNP
39/50
RCoA Movement
LCoA_1 LCoA_2
CNP
40/50
MN
MAP (Acting as a local HA)
CNP
41/50
LCoA MAP RCoA CN Home Addr Outer header Inner header
42
HMIPv6 HMIPv4
HA/CN
MN MA 1 2 3
4 5
5 4 7
6
6 7
HA/CN
MN RFA1 1 2 3
FA1 GFA
4a 4b 4c 4d 5a 5b 5c 5d
FA2 RFA2
6 7 8 9 10 11 10a 11a 12
COS
CNP
43/50
CNP
44/50
CNP
46/50
Host-based MIPv4/v6 has not been yet deployed
– RFC 3344 (MIPv4): 99 pages – RFC 3775 (MIPv6): 165 pages
CNP
47/50
IETF NETLMM WG Internet Draft
GOAL
CNP
48/50
Host-based vs. Network-based Mobility
Host-based Mobility Network-based Mobility
AR HA Route Update
Movement Movement
HA Route Update AR
CNP
49/50
LMM (Localized Mobility Management) Domain
MAG1
Host B Host A
LMA
Proxy Binding Update (PBU)
Control message sent out by MAG to LMA to register its correct location
Home Network
MN’s Home Network (Topological Anchor Point)
Proxy Care of Address (Proxy-CoA)
The address of MAG. That will be the tunnel end-point.
IP Tunnel
A IPinIP tunnel LMA and MAG.
MAG2
LMA: Localized Mobility Agent MAG: Mobile Access Gateway LMA Address (LMAA)
That will be the tunnel entry- point.
MN’s Home Network Prefix (MN-HNP) CAFE:2:/64 MN’s Home Network Prefix (MN-HNP) CAFE:1:/64
MN Home Address (MN-HoA)
MN continues to use it as long as it roams within a same domain
CNP
50/50
No host stack change for IP mobility Avoiding tunneling overhead over the air Re-use of Mobile IPv6
Only supports Per-MN-Prefix model
51/50
1. MN moves and attaches to an access router 2. After authentication, MAG (access router) identifies MN 3. MAG obtains MN’s profile containing the Home Address ..etc 4. MAG sends the Proxy Binding Update to LMA on behalf of MN 5. MAG receives the Proxy Binding Ack. from LMA 6. MAG sends Router Advertisements containing MN’s home network prefix
same as its home address.
its home address.
52/50
MN MAG
MN-Identifier
AAA Server (Policy Store)
AAA Request AAA Reply + Policy Profile
DHCP Relay Agent DHCP Server
MN-Identifier Access to a new IP link
LMA
Router Advertisement Proxy Binding Update Proxy Binding Ack. (MN Home Prefix) DHCP Request DHCP Response DHCP Request DHCP Response
Tunnel Setup
This can be omitted when stateless configuration is used. MAG emulates the MN’s home link In case that profile store does not have MN Home Prefix
53/50
Proxy Registration
Proxy Binding Update Proxy Binding Acknowledgement
CNP
54/50
Tunnel Management
Caches.
life time of any single BCE.
LMA’s Prefix-based Routing
CNP
55/50
MAG Operation
LMA
Router Advertisement should be UNICASTed to
CNP
56/50
MN Operation
change.
CNP
57/50
Data Transport
MN LMA MAG CN
MN sends a packet to CN MAG forwards to LMA LMA sends to CN CN sends packet to MN LMA forwards to MAG MAG sends to MN
IPv6 header (src=MAG_ADDR, dst=LMA_ADDR) IPv6 header (src=MN_ADDR, dst=CN_ADDR) Payload IPv6 header (src=LMA_ADDR, dst=MAG_ADDR) IPv6 header (src=CN_ADDR, dst=MN_ADDR) Paylaod
58
Binding update Binding Acknowledgement Home Test Init Home Test Care-of Test Init Care-of Test Binding update Binding Acknowledgement Mobile Node Foreign Agent Home Agent Corespondent Node L2 Latency Router Advertisement DAD Neighbor Solicitation L3 Movement Detection Registration Delay Router Solicitation Neighbor Advertisement
Signaling
Link Layer Establishment Delay (DL2): The time required by the
physical interface to establish a new association. This is the L2 handover between access routers.
Movement Detection (DRD): The time required for the mobile node
to receive beacons from the new access router, after disconnecting from the old AR.
Duplicate Address Detection (DDAD): The time required to
recognize the uniqueness of an IPv6 address.
BU/Registration Delay (DREG): The time elapsed between the
sending of the BU from the MN to the HA and the arrival/transmission of the first packet through the new access router.
L2 Trigger Optimistic Duplicate Address Detection Fast Beacons Fast Solicited Router Advertisements
IPv6 Network Home subnet Visited subnet
MN HA MN
Correspondent subnet
CN FA 2001:1a18:1:9:: 2001:1a18:1:10:: 2001:1a18:1:2::
Mobile Node Home Agent Foreign Agent Corresponded Node
IBM ThinkPad T42p Acer Veriton 9100 Dell Optiplex GX1 Dell Optiplex GX1 Intel Pentium M 1.86GHz Intel Pentium 4 1500MHZ Intel Pentium III 50OMHz Intel Pentium III 500MHz 2048 cache 256 cache 512 cache 512 cache Atheros AR5212 802.11abg NIC D-Link, PCI IEEE802.11b card, GWL-520, Atheros chipset Auto channel Channel 1 Channel 6 LINUX, Fedora Core 5, kernel 2.6.16 MIPL v2.02
mtu 1500 MinRouterAdv 0.03 - 1s (0.5) autoconf 1 MaxRouterAdv 0.07 - 1.5s (1.5) forwarding 1 (MN=0) DAD On / Off (On) Home / Co Test Init 1 Beacon Interval 50-100 ms (100)
1 BU 1.5
We forced the MN to perform hard handoff with
We measured the handoff time as follows:
With default values of RA=0.5-1.5, DAD on, Beacon
DL2+RD=0.612s, DDAD = 1.414s and DREG= 1.651s The major share in the handover latency goes to DREG.
reduced by almost 1sec which is the default timer value for this
duplicate addresses is negligible, then we can discard the DAD function and achieve a decrease in the total MIPv6 delay of at most
Handoff Latency RA=0.5-1.5 1=DAD on+Beacon Interval=100ms 2=DAD on+Beacon Interval=60ms 3=DAD off+Beacon Interval=100ms 4=DAD off+Beacon Interval=60ms
0.5 1 1.5 2 2.5 3 3.5 4
1 2 3 4
Total Handoff Latency(sec) REG-CN REG-HA DAD L2+RD
Handoff Latency RA Interval 1=0.03-0.07, 2=0.04-0.08, 3=0.07=0.11, 4=0.1-0.5, 5=0.5-1.5
0.648477 0.30285 0.162878 0.16558 0.1512074 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8
1 2 3 4 5 Latency(sec)
REG-CN REG-HA DAD L2+RD
0.5 sec.
which do not provide any insight to their importance.
L2 and RD Delays 1=0.1-0.3RA, 2=0.2-0.6RA, 3=0.3-0.9RA, 4=0.4-1.2RA, 5=0.5-1.5RA 0,1 0,2 0,3 0,4 0,5 0,6 0,7 1 2 3 4 5 L2 and RD Delays Beacon Interval=100 Beacon Interval=80 Beacon Interval=60
0.3 0.6 0.9 1.2 1.5 1.5 60 80 100 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 Max Router Advertisement L2 Handoff (Beacon Interval-Router Adv) Beacon Interval L2 Handoff 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6