mobile ip - core• mobile ip offers migration towards global mobility in the internet • mobile ip...

36
Mobile IP Tutorial @ Eunice ‘99 September 1 - 3, 1999 Geert Heijenk Centre for Telematics and Information Technology University of Twente [email protected] * parts of this presentation have been copied with permission from Charlie Perkins

Upload: others

Post on 11-Mar-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

Mobile IP Tutorial @ Eunice ‘99

September 1 - 3, 1999

Geert Heijenk

Centre for Telematics and Information TechnologyUniversity of Twente

[email protected]

* parts of this presentation have been copied with permission from Charlie Perkins

Page 2: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 2

Outline• Why Mobile Internet?• What is the Problem?• Mobile IP

– Advertising Care-of Addresses– Registration– Tunneling

• Mobile IP problems / extensions– triangle routing– smooth handoff

• Mobile IP for IPv6• Conclusions

Page 3: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 3

Why Mobile Internet?• Internet and the WWW are growing exponentially• Many companies use Internet technology for

their internal networks (Intranets)• Increasing support for real-time e.g. voice

communications using Internet technology• Internet technology is the premier candidate for

the core network of future mobile networks

Page 4: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 4

Why Mobile Internet? (2)• Wireless communications technologies suitable

for packet data are becoming available• IRDA• IEEE 802.11• Bluetooth

• Voice oriented wireless communications technologies introduce data capabilities

• DECT• GSM --> GPRS• 2nd generation mobile --> 3rd generation mobile

(IMT2000)

Page 5: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 5

Why Mobile Internet? (3)• Laptops are widely used• Palmtops are becoming sufficiently powerful

• TCP/IP stack running on PalmPilot / Symbian / ..• Communicating applications are available

(email / web-browser / synchronized agenda)• PDA-like functionality is being integrated in

mobile phones

Page 6: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 6

Technological Advances enabling Mobile Internet

Page 7: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 7

What is the Problem?

• Internet Addressing and Routing• The way connections are defined in TCP/IP

Page 8: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 8

What is the Internet?• A large collection of networks

– of various types (e.g. Ethernet, ATM, POS, modem, IEEE 802.11),

– broadcast as well as point-to-point– at various speeds (kbit/s - Gbit/s)

• interconnected by routers– all acting on a common protocol: IP

• with applications running on the end systems (hosts)– using either TCP or UDP as a transport protocol– example applications are WWW (using http), email

(smtp / pop3 / imap), news (nntp), telnet, ftp

Page 9: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 9

The Internet

Page 10: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 10

The Internet

Ethernet

Token Ring

ATM

Modem

ISDN

ATM

OC3

T1 / E1T1 / E1

Page 11: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 11

The Internet

Ethernet

Token Ring

ATM

Modem

ISDN

ATM

R

R

R

R

RR

OC3

T1 / E1T1 / E1

Page 12: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 12

The Internet (2)

IP

Application

TCP / UDP

Subnet Subnet Subnet Subnet Subnet Subnet Subnet

IP

Application

TCP / UDP

IP IP

e.g. Ethernet e.g. E1 e.g. PPP over Modem

Host HostSwitch / Bridge Router Router

Page 13: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 13

Levels of addresses in the InternetDomain name (DNS address)

a location independent identifier of a hostutip145.cs.utwente.nl

Internet address (IP address)the logical location of a host (interface)I.e., (sub)network id followed by host id130.89.16.82

Physical address (MAC address)the hardware address of an interface card00 a4 24 4a 82 07

Page 14: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 14

Routing in the Internet

• Packets flow from link (subnetwork) to link via routers• Packets are routed individually, based on their IP addresses

(not on DNS name)• Routing is based on the (sub)network prefix of the IP address» A mobile host must be assigned a new address when it

moves

Page 15: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 15

Connections between Internet computers

• TCP connections are defined by source and destination IP addresses and port numbers

• Change of host address would cause the connection to break» Host address must be preserved regardless of a hosts

location

Page 16: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 16

The Mobile IP problem

A mobile host must be assigned a new address when it moves«»

Host address must be preserved regardless of a hosts location

Page 17: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 17

Why Mobility at the Network (IP) Layer?• Network layer is present in all Internet nodes• Network layer is responsible for routing packets

to the proper location• Mobility across the entire Internet, even

changing physical medium is possible• Application transparent• Universal solution for all applications

Page 18: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 18

Constraints for Mobile IP• Interoperability with the TCP/IP protocol suite• Existing networking applications should run

unmodified on mobile hosts• System should provide Internet wide mobility• No modifications to existing routing

infrastructure required• No modifications to existing protocols required• Independence of wireless hardware technology• Good scaling properties

Page 19: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 19

Mobile IP: Basics

• A mobile host keeps its home address, but on a foreign network, it borrows a care-of address

• Mobile IP takes care of all issue related to the mapping of the care-of address to the home address

Care-of Address Home Address

Page 20: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 20

Mobility Model

Sending Host Mobile Host

Home Network

Foreign Network

g Foreign Agent

fLD Home Agent

f : encapsulation and re-addressingg : decapsulation and forwardingLD : Location Directory

Page 21: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 21

Mobility Model

Sending Host gMobile Hostusing DHCP

Home Network

fLD Home Agent

f : encapsulation and re-addressingg : decapsulation and forwardingLD : Location Directory

Page 22: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 22

Three Parts of Mobile IP

• Advertising Care-of Addresses• Registration• Tunneling

Page 23: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 23

Advertising Care-of AddressesA mobility agent is either a foreign agent or a home agent

or both• Mobility agents broadcast agent advertisements

(ICMP messages)• Mobile hosts can solicit for an advertisement• Advertisements contain:

– mobility agent address– care-of addresses– lifetime– flags

Page 24: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 24

Registration

• binding : (home address, care-of address, lifetime)• registration is needed to update the binding• registration requires authentication• registration uses UDP

Page 25: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 25

Tunneling• Home agent tunnels (encapsulates) packets to care-of

address• Tunnel source is the home agent’s address• Tunnel destination is the care-of address

• IP within IP (other ways exist):

Page 26: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 26

Types of Home Networks• Home agent as a

separate system on the home network

• Home agent integrated with a router on the home network

• A virtual home network

Page 27: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 27

ARP• ARP: Address Resolution Protocol• Used to find (Physical) MAC address if IP address is

known• ARP Request is a broadcast• ARP Reply is returned to requester

Page 28: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 28

Proxy ARP and Gratuitous ARP• Proxy ARP: Home Agent Replies to ARP requests for the

Mobile Host• Gratuitous ARP: The Home Agent or Mobile Host

Broadcast a not requested ARP after a change has accurred (Mobile Host has roamed in or out)

Page 29: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 29

Triangle Routing

Triangle routing is undesirable because• home agent is the bottleneck• more network load, and sensitivity to network partitionIn case of reverse tunneling, the situation is even worse⇒ Route optimization: Get binding to the correspondent host

Page 30: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 30

(Smooth) Handoff• Mobile host moves along subnetworks, from FA to FA.• Packets already in flight to old FA are lost after handoff

to new FA• Route optimization allows old FA to forward packets to

new care-of address

Page 31: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 31

Route Optimization (1)Get binding to relevant correspondent hosts for

optimal routing:• binding warning (mobility agent → correspondent host)• binding request (correspondent host → home agent)• binding update (home agent → correspondent host)• binding acknowledge (optional)security association between correspondent host and

home agent is needed for authentication

Page 32: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 32

Route Optimization (2)Get binding to old Foreign Agent for smooth

handoff:• previous foreign agent notification extension (mobile

host → new FA)• binding update (new FA → old FA)• binding acknowledge (old FA → mobile host)mobile host and foreign agent need to exchange

registration key for authenticationlast resort: special tunnel (old FA tunnels packet back to

the HA)

Page 33: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 33

Mobility for IPv6• All nodes can handle bindings

– No triangular routing• Binding updates are carried in Destination Option

– Small overhead for distributing bindings• Mobile host can create its own care-of address using

link-local address and automatic address configuration(combine advertised subnet prefix with own hardware address)

– No need for foreign agent

Page 34: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 34

Conclusions• Mobile IP offers migration towards global mobility in

the Internet• Mobile IP is not optimal (e.g., triangular routing,

seamless handover), but it is being improved• Mobility in IPv6 is easier, because all nodes have

suitable functionality, and no foreign agent is required• Improvements to be made:

– Support for real-time applications» seamless hand-over» resource reservation

– Operation in secure environments

Page 35: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 35

Status of Mobile IPInternet Proposed Standard Protocols:

• RFC2002: IP Mobility Support, October 1996• RFC2005: Applicability Statement for IP Mobility

Support, October 1996• RFC2006: The Definitions of Managed Objects for IP

Mobility Support using SMIv2, October 1996• RFC2290: Mobile-IPv4 Configuration Option for PPP

IPCP, February 1998• RFC2344: Reverse Tunneling for Mobile IP, May 1998

Page 36: Mobile IP - CORE• Mobile IP offers migration towards global mobility in the Internet • Mobile IP is not optimal (e.g., triangular routing, seamless handover), but it is being improved

3-9-99 Geert Heijenk 36

Further Reading• This Presentation:

http://www.ctit.utwente.nl/~heijenk/Eunice99• “Mobile Networking Through Mobile IP”

Tutorial by Charlie Perkins: http://computer.org/internet/v2n1/perkins.htM

• “Mobile IP, Design Principles and Practices”Book by Charles E. Perkins

• “Mobile IP, The Internet Unplugged”Book by James D. Solomon

• IETF Mobile IP WG:http://www.ietf.org/html.charters/mobileip-charter.html