What is mobility? Mobile IP. Mobility Impact on Protocol Stack (cont.) Advanced Topics in Computer Networks

Similar documents
Last time. BGP policy. Broadcast / multicast routing. Link virtualization. Spanning trees. Reverse path forwarding, pruning Tunneling

ECS-087: Mobile Computing

Internet Mobility 4x4. Stuart Cheshire and Mary Baker

Mohammad Hossein Manshaei 1393

Computer Networks, Andrew Tannenbaum, Chapter 5.6. Computer Networking: A Top Down Approach Featuring the

LECTURE 8. Mobile IP

CSC 4900 Computer Networks: Mobility

Outline. CS5984 Mobile Computing. Host Mobility Problem 1/2. Host Mobility Problem 2/2. Host Mobility Problem Solutions. Network Layer Solutions Model

Outline. CS6504 Mobile Computing. Host Mobility Problem 1/2. Host Mobility Problem 2/2. Dr. Ayman Abdel-Hamid. Mobile IPv4.

Mobility: vocabulary

Fixed Internetworking Protocols and Networks. IP mobility. Rune Hylsberg Jacobsen Aarhus School of Engineering

Chapter 7. Wireless and Mobile Networks. Computer Networking: A Top Down Approach

CSCI-1680 Wireless Chen Avin

CPSC 826 Internetworking. Wireless and Mobile Networks. Wireless Networks Wireless Hosts

Internet Services & Protocols. Mobile and Wireless Networks

CSE 123A Computer Netwrking

Module 28 Mobile IP: Discovery, Registration and Tunneling

Chapter 4 roadmap. CS555, Spring /14/2005. WMU-CS, Dr. Gupta 1. Multicast Routing: Problem Statement. Approaches for building mcast trees

CSE 123b Communications Software

Quick announcements. CSE 123b Communications Software. Today s issues. Last class. The Mobility Problem. Problems. Spring 2004

CSC 401 Data and Computer Communications Networks

Communications Software. CSE 123b. CSE 123b. Spring Lecture 10: Mobile Networking. Stefan Savage

Quick announcement. CSE 123b Communications Software. Last class. Today s issues. The Mobility Problem. Problems. Spring 2003

More Internet Support Protocols

Mobile IP. Mobile Computing. Mobility versus Portability

11. IP Mobility 최 양 희 서울대학교 컴퓨터공학부

Mobile IP Overview. Based on IP so any media that can support IP can also support Mobile IP

Computer Networks. Wireless and Mobile Networks. László Böszörményi Computer Networks Mobile - 1

Announcements: Assignment 4 due now Lab 4 due next Tuesday Assignment 5 posted, due next Thursday

Mobile Communications Mobility Support in Network Layer

CSE 4215/5431: Mobile Communications Winter Suprakash Datta

Mobile & Wireless Networking. Lecture 9: Mobile IP. [Schiller, Section 8.1]

Data Communication & Networks G Session 5 - Main Theme Wireless Networks. Dr. Jean-Claude Franchitti

CMPE 257: Wireless and Mobile Networking

Addressing: when mobile is moving around. Mobile Registration. Principles of Mobile Routing. Mobility via Indirect Routing

IPv6 Protocols and Networks Hadassah College Spring 2018 Wireless Dr. Martin Land

How Mobile IP Works? Presenter: Ajoy Singh

Charles Perkins Nokia Research Center 2 July Mobility Support in IPv6 <draft-ietf-mobileip-ipv6-14.txt> Status of This Memo

CMPE 257: Wireless and Mobile Networking

SJTU 2018 Fall Computer Networking. Wireless Communication

Mobile IP. rek. Petr Grygárek Petr Grygarek, Advanced Computer Networks Technologies 1

IPv6. IPv4 & IPv6 Header Comparison. Types of IPv6 Addresses. IPv6 Address Scope. IPv6 Header. IPv4 Header. Link-Local

Mobile Communications Chapter 8: Network Protocols/Mobile IP

Mobility Support in IPv6

Mobile IP and Mobile Transport Protocols

Reti degli elaboratori

Mobility Support in Internet and Mobile IP. Gianluca Reali

internet technologies and standards

Wireless Network and Mobility

Mobile Routing : Computer Networking. Overview. How to Handle Mobile Nodes? Mobile IP Ad-hoc network routing Assigned reading

A Mobile Host Protocol Supporting Route Optimization and Authentication

Security Issues In Mobile IP

Mobile Communications Chapter 9: Network Protocols/Mobile IP

MOBILE IP AND WIRELESS APPLICATION PROTOCOL

CMPE 257: Wireless and Mobile Networking

No lecture on Thurs. Last homework will be out this week (not due, covers wireless) Extra office hours for next week and the week after.

Introduction Mobility Support Handover Management Conclutions. Mobility in IPv6. Thomas Liske. Dresden University of Technology

Network Security. Security of Mobile Internet Communications. Chapter 17. Network Security (WS 2002): 17 Mobile Internet Security 1 Dr.-Ing G.

Mobility Management - Basics

King Fahd University of Petroleum & Minerals Computer Engineering g Dept

Introduction to IPv6. IPv6 addresses

Chapter 6 Wireless and Mobile Networks

COSC : mobility within same subnet. Lecture 26. H1 remains in same IP subnet: IP address can remain same

Chapter 6 Wireless and Mobile Networks (Wireless and Mobility)

On using Mobile IP Protocols

Network Layer: Routing. Routing. Routing protocol. Graph abstraction for routing algorithms: graph nodes are routers graph edges are physical links

Mobile IP. Mobile IP 1

Chapter 09 Network Protocols

Chapter 6 Wireless and Mobile Networks

Communication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

Mobility Support in Internet and Mobile IP

Chapter 12 Network Protocols

Mobile IPv6 Overview

Wireless and Mobile Networks Reading: Sections 2.8 and 4.2.5

Chapter 6 Wireless and Mobile Networks

EEC-684/584 Computer Networks

Wireless Challenges : Computer Networking. Overview. Routing to Mobile Nodes. Lecture 25: Wireless Networking

Smooth Handoff in Mobile IP Master s Thesis by Babak Ayani

IPv6: An Introduction

T Computer Networks II. Mobility Issues Contents. Mobility. Mobility. Classifying Mobility Protocols. Routing vs.

Student ID: CS457: Computer Networking Date: 5/8/2007 Name:

Obsoletes: 2002 January 2002 Category: Standards Track

Techological Advantages of Mobile IPv6

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane

Wireless Challenges : Computer Networking. Overview. Routing to Mobile Nodes. Lecture 24: Mobile and Wireless

Slide 1. Slide 2. Slide 3. Technological Advantages of Mobile IPv6. Outline of Presentation. Earth with 2 Billion Mobile devices

TSIN02 - Internetworking

P A R T T W O MOBILE IPv6

Mobile host protocols support host

Extending or Interconnecting LANS. Physical LAN segment. Virtual LAN. Forwarding Algorithm 11/9/15. segments. VLAN2, Port3. VLAN1, Port1.

Internet. 1) Internet basic technology (overview) 3) Quality of Service (QoS) aspects

Daedalus/GloMop Architectural Walkthrough

Mobile IP. Page 1. 10/5/98 Mohamed Khalil IP10 MKIPM001

Chapter 5 Wireless and Mobile Networks

Mobility Management. Advanced Mobile Communication Networks. Integrated Communication Systems Group Ilmenau University of Technology

Mobility Management Basics

Network Layer (4): ICMP

Fundamental Questions to Answer About Computer Networking, Jan 2009 Prof. Ying-Dar Lin,

OPTIMIZING MOBILITY MANAGEMENT IN FUTURE IPv6 MOBILE NETWORKS

Transcription:

Advanced Topics in Computer Networks What is mobility? spectrum of mobility, from the perspective: Mobile IP no mobility high mobility Chalermek Intanagonwiwat Slides courtesy of James F. Kurose, Keith W. Ross, Golden G. Richard III, Mary Baker, Olaf Meyer, and Charles Perkins mobile user, using same access point mobile user, connecting/ disconnecting from using DHCP. mobile user, passing through multiple access point while maintaining ongoing connections (like cell phone) Mobility Impact on Protocol Stack Mobility Impact on Protocol Stack (cont.) Top layer (application layer) Automatic configuration Service discovery Link awareness adaptability Environment awareness Layer 4 (transport layer) Congestion control is based on packet loss However, packet loss congestion? Other reasons for packet loss Noisy wireless channel, During handoff process

Mobility Impact on Protocol Stack (cont.) Layer 3 ( layer) Changing the routing of datagrams destined for the mobile nodes Layer 2 (data link layer) Collision detection collision avoidance Dynamic range of the signals is very large, so that a transmitting station cannot effectively distinguish incoming weak signals from noise and the effects of its own transmissions Cell size (frequency reuse) Internet Protocol (IP) Review Network layer, "best-effort" packet delivery Supports UDP and TCP (transport layer protocols) IP host/interface addresses consist of two parts id + host id By design, IP host address is tied to home address Hosts are assumed to be wired, immobile Intermediate routers look only at address Mobility without a change in IP address results in un-route-able packets Domains versus interfaces IP Routing Breaks Under Mobility Switching domains & switching interfaces are the same problem at the routing level.50.52.53 router Network interfaces: Administrative domains: 137.30.2.* Mobile host ether 171.64.14.X radio 42.13.0.X Stanford.edu 171.64.X.X Berkeley.edu 128.32.X.X.200 139.20.3.* router Why this hierarchical approach? Answer: Scalability! Millions of addresses, billions of hosts!

Mobility: Vocabulary Mobility: more vocabulary home : permanent home of mobile (e.g., 128.119.40/24) home agent: entity that will perform mobility functions on behalf of mobile, when mobile is remote Permanent address: remains constant (e.g., 128.119.40.186) Care-of-address: address in visited. (e.g., 79,129.13.2) visited : in which mobile currently resides (e.g., 79.129.13/24) Permanent address: address in home, can always be used to reach mobile e.g., 128.119.40.186 wide area correspondent correspondent: wants to communicate with mobile wide area foreign agent: entity in visited that performs mobility functions on behalf of mobile. How do you contact a mobile friend: Mobility: approaches Consider friend frequently changing addresses, how do you find her? search all phone books? call her parents? expect her to let you know where he/she is? I wonder where Alice moved to? Let routing handle it: routers advertise permanent address of mobile-nodes-inresidence via usual routing table exchange. routing tables indicate where each mobile located no changes to end-systems

Mobility: approaches (cont.) Let routing handle it: routers advertise not permanent address of mobile-nodes-inresidence via usual to millions routing of table exchange. scalable mobiles routing tables indicate where each mobile located no changes to end-systems Mobility: approaches (cont.) Let end-systems handle it: indirect routing: communication from correspondent to mobile goes through home agent, then forwarded to remote direct routing: correspondent gets foreign address of mobile, sends directly to mobile Mobility: registration home 2 wide area foreign agent contacts home agent home: this mobile is resident in my visited End result: Foreign agent knows about mobile Home agent knows location of mobile 1 mobile contacts foreign agent on entering visited home Mobility via Indirect Routing correspondent addresses packets using home address of mobile home agent intercepts packets, forwards to foreign agent 1 wide area 2 foreign agent receives packets, forwards to mobile 4 3 visited mobile replies directly to correspondent

Indirect Routing: comments Mobile uses two addresses: permanent address: used by correspondent (hence mobile location is transparent to correspondent) care-of-address: used by home agent to forward datagrams to mobile foreign agent functions may be done by mobile itself Indirect Routing: comments (cont.) triangle routing: correspondent-home-mobile inefficient when correspondent, mobile are in same Forwarding datagrams to remote mobile packet sent by home agent to foreign agent: a packet within a packet dest: 79.129.13.2 dest: 128.119.40.186 foreign-agent-to-mobile packet dest: 128.119.40.186 Packet addressing Packet from CH to MH Source address = address of CH Destination address = home IP address of MH Payload Permanent address: 128.119.40.186 dest: 128.119.40.186 packet sent by correspondent Care-of address: 79.129.13.2 Home agent intercepts above packet and tunnels it Source address = address of HA Destination address = care-of address of MH Source address = address of CH Destination address = home IP address of MH Original payload

IP within IP Encapsulation Minimal Encapsulation IP header IP payload Modified IP header Old IP header IP payload IP header Modified IP header Minimal fwd header IP payload IP payload New header fields destination Address: care-of address source Address: address of encapsulating host protocol number: 4 Modified header destination Address: care-of address source Address: address of encapsulating host (opt.) protocol number: 55 adds less overhead but needs a complete IP packet before encapsulation Indirect Routing: moving between s suppose mobile user moves to another registers with new foreign agent new foreign agent registers with home agent home agent update care-of-address for mobile packets continue to be forwarded to mobile (but with new care-of-address) Indirect Routing: moving between s (cont.) Mobility, changing foreign s transparent: on going connections can be maintained!

When mobile host moves again Mobility via Direct Routing HA CH Home Foreign #1 FA #1 MH Foreign #2 FA #2 MH MH registers new address (FA #2) with HA & FA #1 HA tunnels packets to FA #2, which delivers them to MH Packets in flight can be forwarded from FA #1 to FA #2 home correspondent requests, receives foreign address of mobile correspondent forwards to foreign agent 2 1 wide area foreign agent receives packets, forwards to mobile 3 4 4 visited mobile replies directly to correspondent Mobility via Direct Routing: comments overcome triangle routing problem non-transparent to correspondent: correspondent must get care-ofaddress from home agent What happens if mobile changes s? Mobile IP RFC 3220 has many features we ve seen: home agents, foreign agents, foreign-agent registration, care-of-addresses, encapsulation (packet-within-a-packet) three components to standard: agent discovery registration with home agent indirect routing of datagrams

Why Mobile IP? Need a protocol which allows connectivity across host movement Protocol to enable mobility must not require massive changes to router software, etc. Must be compatible with large installed base of IPv4 s/hosts Confine changes to mobile hosts and a few support hosts which enable mobility Why Mobile IP? (cont.) Just hacking DNS won t work DNS updates take time Hooks for normal users to update DNS won t be accepted by administrators After DNS lookup, raw IP address is used by TCP, UDP, Mobile IP: agent discovery agent advertisement: foreign/home agents advertise service by broadcasting ICMP messages (type field = 9) H,F bits: home and/or foreign agent R bit: registration required 0 8 16 24 type = 9 code = 0 checksum router address type = 16 length sequence # RBHFMGV registration lifetime reserved bits 0 or more care-ofaddresses standard ICMP fields mobility agent advertisement extension Mobile IP: registration Registration Request Sent to home agent New IP address Flags to indicate whether broadcast traffic should be delivered Security information to prevent remote redirects/replay attacks (more soon) Registration Reply ACK or an error

Registration Request Registration Reply Mobile-Host authentication extension required Identification used for replay protection Uses UDP messages Code field describes status information, e.g. why the registration failed. These include authentication failed ID mismatch (resynchronization needed) unknown HA home agent HA: 128.119.40.7 Mobile IP: registration example time foreign agent COA: 79.129.13.2 registration req. COA: 79.129.13.2 HA: 128.119.40.7 MA: 128.119.40.186 Lifetime: 9999 identification: 714 encapsulation format. registration reply HA: 128.119.40.7 MA: 128.119.40.186 Lifetime: 4999 Identification: 714 encapsulation format. ICMP agent adv. COA: 79.129.13.2. registration req. COA: 79.129.13.2 HA: 128.119.40.7 MA: 128.119.40.186 Lifetime: 9999 identification:714. registration reply HA: 128.119.40.7 MA: 128.119.40.186 Lifetime: 4999 Identification: 714. visited : 79.129.13/24 Mobile agent MA: 128.119.40.186 Problem: Security Bogus registration (denial of service) attacks Malicious host sends fake registration messages to home agent "on behalf" of the mobile host Packets could be forwarded to malicious host

Bogus Registration Attack Authentication Madame Evil???? Hehehehe!! registration request Send packets to me!! home agent To fix this problem, authenticate registration attempts Use keyed message hashing to generate a message digest MD5: see RFC 1321 Home agent generates hash using shared private key to message to see if message digest is identical Authentication (cont.) Authentication Extension care-of address private key??? digest home agent Type field determines the entities involved in the authentication Mobile-Home (required for all registration requests and replies) Mobile-Foreign Foreign-Home

Authentication using MD5 Ooops. Replay Attacks! MD5 algorithm computes a one-way cryptographic hash code (128-bit fingerprint) communicating parties share a secret key secret key is not sent as part of the communication Mobile IP draft requires default support of keyed MD5 digest " mooohahahahahahahaha!!!!!" home agent captured registration is retransmitted Avoiding Replay Attacks Random Number Avoids Replay Avoid replay attacks by making registration requests unique Add time or a pseudo-random number to registration request/reply If time or random number is out of sync, provide info to resync in rejection Insufficient information to help malicious host Counter instead of time/random number not as good Would allow storing a set of registration requests care-of address + random number...??? digest private key home agent

ARP Problem: On the Home Network If the HA is the gateway host then picking up packets destined for the MH is trivial If the HA is not the gateway host then the proxy ARP must be used The HA pretends to be MH and responds to requests for MH s physical address (e.g. Ethernet address) with its own physical address ARP caches on all hosts have to be updated upon registration of the MH (gratuitous ARP) ARP Problem: On the Foreign Network The care-of address used for encapsulation may belong to the FA or may be a temporary address acquired by the Mobile Host (e.g. via DHCP) The MH must never send ARP frames on a foreign The MH can obtain the FAs link-layer address from the agent advertisement messages Problems with Foreign Agents Assumption of support from foreign s A foreign agent exists in all s you visit? The foreign agent is robust and up and running? The foreign agent is trustworthy? Problems with Foreign Agents (cont.) Correctness in security-conscious s We ll see that triangle route has problems MH under its own control can eliminate this problem Other undesirable features Some performance improvements are harder with FAs We want end-to-end solution that allows flexibility

Home HA Solution Mobile host is responsible for itself -(With help from infrastructure in its home ) -Mobile host decapsulates packets -Mobile host sends its own packets - Co-located FA on MH CH Foreign MH MH must acquire its own IP address in foreign This address is its new care-of address Mobile IP spec allows for this option Obtaining a foreign IP address Can we expect to obtain an IP address? DHCP becoming more common Dynamic IP address binding like some dial-up services Your friend can reserve an IP address for you More support for dynamic IP address binding in IPv6 This assumes less than getting others to run a FA Design implications New issues: the mobile host now has two roles: Home role Local role More complex mobile host Loss of in-flight packets? This can happen anyway Problems with ingress filtering Mobile host uses its home IP address as source address Security-conscious boundary routers will drop this packet Routers which see packets coming from a direction from which they would not have routed the source address are dropped

Packets Dropped: "Ingress" Filtering Correspondent, home agent on same. Packet from mobile host is deemed "topologically incorrect Solution: bi-directional tunnel Provide choice of safe route through home agent both ways Home CH HA Foreign MH correspondent host home agent This is the slowest but most conservative option At the other extreme Problem: performance Example: short-lived communication When accessing a web server, why pay for mobility? Do without location-transparency Unlikely to move during transfer; can reload page Works when CH keeps no state about MH Solution: yet more flexibility Home HA CH Foreign MH Use current care-of address and send packet directly -This is regular IP! More generally: -MH should have flexibility to adapt to circumstances -A range of options: from slow-but-safe to regular IP -Should be an end-to-end packet delivery decision (no FA)

Routing options Allow MH to choose from among all routing options Options: Encapsulate packet or not? Use home address or care-of address as source address? Tunnel packet through home agent or send directly? Routing options (cont.) Choice determined by: Performance Desire for transparent mobility Mobile-awareness of correspondent host Security concerns of s traversed Equivalent choices for CH sending packets to MH Mobility 4x4 Figuring out which to use Incoming Indirect, Encapsulated Incoming Direct, Encapsulated Incoming Direct, Home Address Outgoing Indirect, Encapsulated Most reliable, least efficient Outgoing Direct, Encapsulated Requires decapsulation on CH Requires fully mobile-aware CH Outgoing Direct, Home Address No securityconscious routers on path No securityconscious routers on path Requires both hosts to be on same net. seg. Outgoing Direct, Temp. Address With bidirectional tunneling Probe destination using triangle route If it works, switch to that option With triangle route If packets aren t getting through after some number of tries, switch to bidirectional tunneling Incoming Direct, Temp. Address Most efficient, no mobility support

Mobile IP: Conclusions... Great potential for mobile application deployment using Mobile IP Minimizes impact on existing Internet infrastructure Security issues are important Several working implementations (e.g., Monarch project at CMU)