Lecture 4a Mobile IP 1.

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-
Transitioning to IPv6 April 15,2005 Presented By: Richard Moore PBS Enterprise Technology.
IP Mobility Support Basic idea of IP mobility management
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.
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.
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?
2002 년 2 학기이동인터넷프로토콜 1 Mobile IP:Overview 년 2 학기이동인터넷프로토콜 2 Mobile IP overview Is Mobile IP an official standard? What problems does Mobile IP solve?
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.
Adapted from: Computer Networking, Kurose/Ross 1DT066 Distributed Information Systems Chapter 4 Network Layer.
12 – IP, NAT, ICMP, IPv6 Network Layer.
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 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.
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.
Ασύρματες και Κινητές Επικοινωνίες Ενότητα # 10: Mobile Network Layer: Mobile IP Διδάσκων: Βασίλειος Σύρης Τμήμα: Πληροφορικής.
An Introduction to Mobile IPv4
Network Layer by peterl. forwarding table routing protocols path selection RIP, OSPF, BGP IP protocol addressing conventions datagram format packet handling.
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.
Mobility support in IP v4. Internet Computing (CS-413) 2.
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. 
Host Configuration: BOOTP and DHCP
Introduction to Networks
12 – IP, NAT, ICMP, IPv6 Network Layer.
Mobile IP Lecture 5.
Scaling the Network Chapters 3-4 Part 2
Introduction Wireless devices offering IP connectivity
Chapter 4: Network Layer
Mobile Networking (I) CS 395T - Mobile Computing and Wireless Networks
Mobile IP.
EA C451 Vishal Gupta.
Introduction to Wireless Networking
Mobility And IP Addressing
Proposal for IEEE 802.1CQ-LAAP
Unit 3 Mobile IP Network Layer
Wide Area Networks and Internet CT1403
Proposal for IEEE 802.1CQ-LAAP
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
Computer Networks Protocols
Mobile IP Outline Intro to mobile IP Operation Problems with mobility.
Mobile IP-2 CS441 – Mobile & Wireless Computing
Chapter 5: Link Layer 5.1 Introduction and services
Presentation transcript:

Lecture 4a 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: 129.61.18.26, prefix length = 24 Network prefix = 129.61.18 Host portion = 26 4

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

Target/Prefix-Length A Routing Example: 1.0.0.1  2.0.0.4 Ethernet B Network Prefix = 2.0.0 Host 3 Host 4 High-Speed Fiber Backbone Network Prefix = 3.0.0 Router B Ethernet A Network Prefix = 1.0.0 b b Host 1 Host 2 b 2.0.0.3 2.0.0.4 2.0.0.253 3.0.0.253 c Router A a a a c Host 5 1.0.0.1 1.0.0.2 c b b 1.0.0.254 3.0.0.254 3.0.0.252 4.0.0.5 4.0.0.252 Ethernet C Network Prefix = 4.0.0 6 Router C Host 1’s routing table Target/Prefix-Length Next Hop Interface 1.0.0.0 / 24 “direct” a 0.0.0.0 / 0 1.0.0.254

Target/Prefix-Length A Routing Example: 1.0.0.1  2.0.0.4 Ethernet B Network Prefix = 2.0.0 Host 3 Host 4 High-Speed Fiber Backbone Network Prefix = 3.0.0 Router B Ethernet A Network Prefix = 1.0.0 b b Host 1 Host 2 b 2.0.0.3 2.0.0.4 2.0.0.253 3.0.0.253 c Router A a a a c Host 5 1.0.0.1 1.0.0.2 c b 1.0.0.254 Router A’s routing table 3.0.0.254 b 3.0.0.252 Target/Prefix-Length Next Hop Interface 1.0.0.0 / 24 “direct” a 3.0.0.0 / 24 c 2.0.0.0 / 24 3.0.0.253 4.0.0.0 / 24 3.0.0.252 4.0.0.5 Router C 4.0.0.252 Ethernet C Network Prefix = 4.0.0 7

Target/Prefix-Length A Routing Example: 1.0.0.1  2.0.0.4 Ethernet B Network Prefix = 2.0.0 Host 3 Host 4 High-Speed Fiber Backbone Network Prefix = 3.0.0 Router B Ethernet A Network Prefix = 1.0.0 b b Host 1 Host 2 b 2.0.0.3 2.0.0.4 2.0.0.253 3.0.0.253 c Router A a a a c Host 5 1.0.0.1 1.0.0.2 1.0.0.254 Router B’s routing table c b 3.0.0.254 b 3.0.0.252 4.0.0.5 Router C Target/Prefix-Length Next Hop Interface 1.0.0.0 / 24 3.0.0.254 c 2.0.0.0 / 24 “direct” b 3.0.0.0 / 24 4.0.0.252 Ethernet C Network Prefix = 4.0.0 8

Target/Prefix-Length A Routing Example: 1.0.0.1  2.0.0.4 Ethernet B Network Prefix = 2.0.0 Host 3 High-Speed Fiber Backbone Network Prefix = 3.0.0 Router B Ethernet A Network Prefix = 1.0.0 ? b b Host 1 Host 2 2.0.0.3 2.0.0.253 3.0.0.253 c Router A a a a c Host 5 Host 4 1.0.0.1 1.0.0.2 1.0.0.254 Router B’s routing table c b b 3.0.0.254 b 3.0.0.252 4.0.0.5 4.0.0.252 2.0.0.4 Router C Target/Prefix-Length Next Hop Interface 1.0.0.0 / 24 3.0.0.254 c 2.0.0.0 / 24 “direct” b 3.0.0.0 / 24 Ethernet C Network Prefix = 4.0.0

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?

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

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?

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

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

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

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.

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.

Three Mechanisms Agent Discovery Registration Routing

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?)

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.

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).

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

DHCP Client-Server Scenario 223.1.2.1 223.1.1.1 223.1.1.2 223.1.1.4 223.1.2.9 223.1.2.2 E 223.1.3.2 arriving DHCP client needs address in this network 223.1.1.3 223.1.3.27 223.1.3.1 DHCP relay agent (typically a router) for 223.1.1 and 223.1.3. It knows the address of a DHCP server for these networks.

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

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.

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 Agent 4 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.

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

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

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.

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

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

How to Send Packets to a Mobile Node? Foreign Agent Home Agent Source address Correspondent’s IP address Destination address Mobile’s IP address Correspondent

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 link Foreign Agent Tunnel Home Agent Foreign Agent removes original packet from the tunnel and delivers the original packet to the mobile node over the foreign link.

IP in IP Encapsulation Original IP packet Ipsrc = Original Sender Ipdes = Destination’s Home Address Original IP packet Header Payload 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 Outer Header Encapsulating IP packet Header Payload Outer Payload

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

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

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

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