Lecture 3a Mobile IP 1. Outline How to support Internet mobility? – by Mobile IP. Our discussion will be based on IPv4 (the current version). 2.

Slides:



Advertisements
Similar presentations
Mobile Networking through Mobile IP
Advertisements

Mobile and Wireless Computing Institute for Computer Science, University of Freiburg Western Australian Interactive Virtual Environments Centre (IVEC)
CPSC Network Layer4-1 IP addresses: how to get one? Q: How does a host get IP address? r hard-coded by system admin in a file m Windows: control-panel->network->configuration-
資 管 Lee Lesson 12 IPv6 Mobility. 資 管 Lee Lesson Objectives Components of IPv6 mobility IPv6 mobility messages and options IPv6 mobility data structures.
8-1 Last time □ Network layer ♦ Introduction forwarding vs. routing ♦ Virtual circuit vs. datagram details connection setup, teardown VC# switching forwarding.
1 Mobile IP Why mobile IP? How mobile IP works –Introduction –Agent discovery/Advertisement –Registration –Routing considerations –Security Mobility management.
1 Mobile IP Myungchul Kim Tel:
System Configuration: DHCP and Autoconfiguration Chapter 6.
IP Address 1. 2 Network layer r Network layer protocols in every host, router r Router examines IP address field in all IP datagrams passing through it.
Mobile IP Overview: Standard IP Standard IP Evolution of Mobile IP Evolution of Mobile IP How it works How it works Problems Assoc. with it Problems Assoc.
MOBILITY SUPPORT IN IPv6
Chapter 13 Mobile IP. Outline  ADDRESSING  AGENTS  THREE PHASES  AGENT DISCOVERY  REGISTRATION  DATA TRANSFER  INEFFICIENCY IN MOBILE IP.
A Study of Mobile IP Kunal Ganguly Wichita State University CS843 – Distributed Computing.
Network Layer4-1 IP: Internet Protocol r Datagram format r IPv4 addressing r DHCP: Dynamic Host Configuration Protocol r NAT: Network Address Translation.
IP Addressing: introduction
ICMP: Internet Control Message Protocol used by hosts, routers, gateways to communication network-level information –error reporting: unreachable host,
IP Address 1. 2 Network layer r Network layer protocols in every host, router r Router examines IP address field in all IP datagrams passing through it.
IPv6 Mobility David Bush. Correspondent Node Operation DEF: Correspondent node is any node that is trying to communicate with a mobile node. This node.
Mobile IP.
Network Layer4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side,
Network Layer4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side,
Mobile IP Polytechnic University Anthony Scalera Heine Nzumafo Duminda Wickramasinghe Edited by: Malathi Veeraraghavan 12/05/01.
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
DHCP: Dynamic Host Configuration Protocol
Mobile IP: Introduction Reference: “Mobile networking through Mobile IP”; Perkins, C.E.; IEEE Internet Computing, Volume: 2 Issue: 1, Jan.- Feb. 1998;
1 Chapter06 Mobile IP. 2 Outline What is the problem at the routing layer when Internet hosts move?! Can the problem be solved? What is the standard solution?
Golden G. Richard III, Ph.D. University of New Orleans (With thanks to Sumi U of F ) Introduction to Mobile IP.
2002 년 2 학기이동인터넷프로토콜 1 Mobile IP:Overview 년 2 학기이동인터넷프로토콜 2 Mobile IP overview Is Mobile IP an official standard? What problems does Mobile IP solve?
Adapted from: Computer Networking, Kurose/Ross 1DT066 Distributed Information Systems Chapter 4 Network Layer.
12 – IP, NAT, ICMP, IPv6 Network Layer.
Mobile IP Overview and Discussion. 2 Spectrum of Mobility – from network perspective no mobility high mobility mobile user, using same access point mobile.
National Institute Of Science & Technology Mobile IP Jiten Mishra (EC ) [1] MOBILE IP Under the guidance of Mr. N. Srinivasu By Jiten Mishra EC
Network Layer4-1 DHCP: Dynamic Host Configuration Protocol Goal: allow host to dynamically obtain its IP address from network server when it joins network.
Mobile IP Most of the slides borrowed from Prof. Sridhar Iyer
Mobile IP Chapter 19. Introduction Mobile IP is designed to allow portable computers to move from one network to another Associated with wireless technologies.
Transport Layer 3-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012  CPSC.
1 Can DHCP support mobility across LANs (on different subnets?)  On its own, the answer is NO; for reasons cited in DHCP talk on slide 9.  However,
CIS 3360: Internet: Network Layer Introduction Cliff Zou Spring 2012.
Network Layer4-1 Subnets How many?
1 Chapter 4: Network Layer r 4.4 IP: Internet Protocol m Datagram format m IPv4 addressing m ICMP m IPv6 r 4.5 Routing algorithms m Hierarchical routing.
1 Network Layer Lecture 16 Imran Ahmed University of Management & Technology.
Mobile IP Outline Intro to mobile IP Operation Problems with mobility.
Lectu re 1 Recap: “Operational” view of Internet r Internet: “network of networks” m Requires sending, receiving of messages r protocols control sending,
Understanding IPv6 Slide: 1 Lesson 12 IPv6 Mobility.
Spring 2004 Mobile IP School of Electronics and Information Kyung Hee University Choong Seon HONG
Ασύρματες και Κινητές Επικοινωνίες Ενότητα # 10: Mobile Network Layer: Mobile IP Διδάσκων: Βασίλειος Σύρης Τμήμα: Πληροφορικής.
An Introduction to Mobile IPv4
Mobile IP 순천향대학교 전산학과 문종식
Network Layer4-1 Chapter 4 Network Layer All material copyright J.F Kurose and K.W. Ross, All Rights Reserved Computer Networking: A Top Down.
BAI513 - PROTOCOLS DHCP BAIST – Network Management.
Mobility support in IP v4. Internet Computing (CS-413) 2.
Mobility With IP, implicit assumption that there is no mobility. Addresses -- network part, host part -- so routers determine how to get to correct network.
Mobile IP THE 12 TH MEETING. Mobile IP  Incorporation of mobile users in the network.  Cellular system (e.g., GSM) started with mobility in mind. 
12 – IP, NAT, ICMP, IPv6 Network Layer.
Mobile IP Lecture 5.
Introduction Wireless devices offering IP connectivity
Chapter 4: Network Layer
Mobile IP.
EA C451 Vishal Gupta.
Mobility And IP Addressing
Unit 3 Mobile IP Network Layer
Wide Area Networks and Internet CT1403
DHCP and NAT.
Mobile IP Outline Homework #4 Solutions Intro to mobile IP Operation
Mobile IP Outline Intro to mobile IP Operation Problems with mobility.
DHCP: Dynamic Host Configuration Protocol
Lecture 4a Mobile IP 1.
Computer Networks Protocols
Mobile IP-2 CS441 – Mobile & Wireless Computing
Chapter 5: Link Layer 5.1 Introduction and services
Presentation transcript:

Lecture 3a Mobile IP 1

Outline How to support Internet mobility? – by Mobile IP. Our discussion will be based on IPv4 (the current version). 2

IP Address IP address is a 32-bit number assigned to each network interface of a node. Nodes (such as routers) with multiple network interfaces have multiple IP addresses. IP Address in Dotted-Decimal Notation 3

Network Prefix; Host Portion An IP address has two components – Network prefix Identifying a link Identical for all nodes attached to the same link – Host portion Identifying a specific host or router connected to that link Example: , prefix length = 24 – Network prefix = – Host portion = 26 4

Routing Table Host 1 Router B Router A Router C a Host 1 wants to forward a packet to Rules for Routing: Host 1’s routing table 1. Compare the left-most Prefix-Length bits of Target / Prefix-NextInterface each Target with the IP LengthHop destination address / 32router 1a 2. Choose the matching / 24router 2a route with the largest / 0router 3a Prefix-Length. Default route 5

 Ethernet B Network Prefix = Host 4 Host 3 High-Speed Fiber Backbone Ethernet A Network Prefix = Network Prefix = Router B b b Host 2 Host 1 b c Router A a a c a Host c b b Router C Host 1’s routing table Target/Prefix-LengthNext HopInterface Ethernet C / 24“direct”a Network Prefix = / a 6

 Ethernet B Network Prefix = Host 4 Host 3 High-Speed Fiber Backbone Ethernet A Network Prefix = Network Prefix = Router B b b Host 2 Host 1 b c Router A a a c a Host c b b Router A’s routing table Router C Target/Prefix-LengthNext HopInterface / 24“direct”a Ethernet C / 24“direct”c Network Prefix = / c / c

 Ethernet B Network Prefix = Host 4 Host 3 High-Speed Fiber Backbone Ethernet A Network Prefix = Network Prefix = Router B b b Host 2 Host 1 b c Router A a a c a Host c b b Router B’s routing table Router C Target/Prefix-LengthNext HopInterface / c Ethernet C / 24“direct”b Network Prefix = / 24“direct”c 8

 Ethernet B Network Prefix = Host 3 High-Speed Fiber Backbone Ethernet A ? Network Prefix = Network Prefix = Router B b Host 2 Host 1 b c Router A a a c a Host 5 Host c b b b Router B’s routing table Router C Target/Prefix-LengthNext HopInterface / c Ethernet C / 24“direct”b Network Prefix = / 24“direct”c 9

Problem The packet is undeliverable – Host 4 is not connected to Ethernet B. Router B will then send a Host Unreachable error message back to Host 1. Q: How to solve it? 10

Solution 1: Host-Specific Route Place host-specific routes in the routing tables of Router A, B, and C as follows: Is this a Target/Prefix-LengthNext HopInterface Router A good / c solution? Target/Prefix-LengthNext HopInterface Router B / c Router C Target/Prefix-LengthNext HopInterface / 32“direct”b 11

Solution 2: Change IP Address Simply change the IP address of host 4, as it moves from Ethernet B to Ethernet C. For example, Dynamic Host Configuration Protocol (DHCP) can be used to acquire a new IP address. Q: Is this a good solution? 12

Solution 3: Mobile IP A standard proposed to solve the problem of Internet mobility. It allows the mobile node to use two IP addresses: – a fixed home address – a care-of address that changes at each new point of attachment 13

Entities and Relationships Mobile Node “visiting” a Mobile Node foreign link “at home” Foreign Link Foreign Agent – the – a link having the router on the same network mobile node’s prefix as the home link. Foreign Link Foreign node’s IP address Agent 14

Care-of Address Two conceptual types of care-of addresses – Foreign agent care-of address – Collocated care-of address 15

Foreign Agent Care-of Address IP address of a foreign agent which has an interface on the foreign link. – The foreign agent may have more than one IP address; hence, the network-prefix need not equal the network prefix of the foreign link The same address can be shared by many mobile nodes simultaneously. 16

Collocated Care-of Address An IP address temporarily assigned to a mobile node. – It can be used by only one mobile node at a time. The network prefix must equal the network prefix of the foreign link. It might be used by a mobile node in situations where no foreign agents are available. 17

Three Mechanisms 1. Agent Discovery 2. Registration 3. Routing 18

1. Agent Discovery Home Agents and Foreign Agents periodically broadcasts Agent Advertisements. – e.g. once every few seconds – If the mobile node does not want to wait for the periodic advertisement, it can broadcast Agent Solicitations that will be answered by any foreign agent that receives it. Mobile nodes determine whether they have moved from one link to another. (How?) 19

Move Detection Agent Advertisement has a Lifetime field. – specify how soon a mobile node should expect to hear another advertisement from that same agent. If the mobile node fails to hear an advertisement from that agent within the specified Lifetime, then it assumes that it has moved to a different link. 20

Care-of Address A mobile node connected to a foreign link acquire a foreign agent care-of-address from the Agent Advertisements. – If multiple care-of-addresses are listed, any one of them can be used. If a foreign agent is unavailable, the mobile node obtain a collocated care-of address by Dynamic Host Configuration Protocol (DHCP). 21

DHCP Goal – allow host to dynamically obtain its IP address from network server when it joins a network A client-server protocol Four-way handshake 22

DHCP Client-Server Scenario DHCP server arriving DHCP E client needs address in this network DHCP relay agent (typically a router) for and It knows the address of a DHCP server for these networks. 23

Broadcast arriving Address: DHCP server: client DHCP discover src : , 68 UDP port 67 Allocates an IP dest.: ,67 yiaddr: address and What is source transaction ID: 654 set the time address? DHCP offer for which the src: , 67 address will be dest: , 68 valid. yiaddrr: transaction ID: 654 Choose an Lifetime: 3600 secs offer if more DHCP request than one src: , 68 dest:: , 67 server replies. yiaddrr: transaction ID: 655 time Lifetime: 3600 secs DHCP ACK src: , 67 dest: , 68 yiaddrr: transaction ID: 655 Lifetime: 3600 secs 24

2. Registration Registration is the process by which a mobile node – requests routing services from a foreign agent; – informs its home agent of its current care-of address; – renews a registration which is due to expire; – deregisters when it returns to its home link. 25

Scenario 1: Registering Foreign Agent Care-of Address The mobile node, with the assistance of a foreign agent, sends a Registration Request with the care-of address information. 2 1 Mobile Node “visiting” a foreign link Home Agent Foreign 4 Agent 3 When the home agent receives this request, it adds the necessary information to its routing table, and sends a Registration Reply back to the mobile node. 26

Scenario 2: Registering Collocated Care-of Address 1. Registration Request Mobile Node “visiting” a foreign link Home Agent 2. Registration Reply 27

Scenario 3: Deregistration Mobile Node 1. (de-)Registration Request returns to its home link Home Agent 2. (de-)Registration Reply 28

Authentication The home agent must be certain that registration was originated by the mobile node and not by some other malicious node. Registration of the care-of address requires authentication. – The mobile node needs to prove its identity to its home agent. – It is done by making use of a secret key known only to the mobile node and its home agent. 29

3. Routing Different Scenarios: → Correspondent Node → Mobile Node – With a foreign agent – Without a foreign agent 30

How to Send Packets to a Correspondent Node? Foreign Home Mobile Agent Node Simply use the Correspondent’s IP Correspondent address as the destination address. How about the source address? Original IP address? Care-of Address? 31

How to Send Packets to a Mobile Node? Foreign Home Mobile Agent Node Correspondent SourceCorrespondent’s IP address DestinationMobile’s IP address address 32

Tunneling to the Care-of Address Home Agent intercepts packets destined to the mobile node’s home address and tunnels them to the mobile node’s care-of address. Mobile Node “visiting” a Foreign Home Tunnel foreign link Agent Foreign Agent removes original packet from the tunnel and delivers the original packet to the mobile node over the foreign link. 33

IP in IP Encapsulation Ipsrc = Original Sender Ipdes = Destination’s Home Address Original IP Payload Header packet The home agent inserts a new IP header, or tunnel header, in front of the IP header of any datagram addressed to the mobile node’s home address. Ipsrc = Home Agent Ipdes = Mobile node’s Care-of Address Encapsulating Outer Payload Header IP packet Header Outer Payload 34

Triangle Routing Mobile Node “visiting” a foreign link Foreign Home Agent Why doesn’t the mobile node inform the correspondent of Correspondent its care-of address and have it tunnel directly to the mobile node? 35

Optimized Routing Mobile Node “visiting” a foreign link Foreign Home Agent This is potentially more Correspondent efficient in terms of delay and resource consumption. Why is it not used? 36

Main Obstacle: Security A bad guy sends a fake registration to Mobile Node the correspondent “visiting” a foreign link Foreign Home Agent Correspondent It is impractical to distribute keys between a mobile node and every other node with which it might correspond. 37

References J. D. Solomon, Mobile IP: the Internet unplugged, Prentice Hall, C. E. Perkins, “Mobile networking through mobile IP,” IEEE Internet Computing, pp , Jan/Feb,