ECS-087: Mobile Computing

Similar documents
Mohammad Hossein Manshaei 1393

SJTU 2018 Fall Computer Networking. Wireless Communication

Mobile IP. Mobile IP 1

CSE 4215/5431: Mobile Communications Winter Suprakash Datta

LECTURE 8. Mobile IP

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

Mobile Communications Chapter 8: Network Protocols/Mobile IP

Mobile Communications Mobility Support in Network Layer

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

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

Mobile Communications Chapter 9: Network Protocols/Mobile IP

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

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

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

Chapter 8 LOCATION SERVICES

Mobility Management - Basics

Mobility Management Basics

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

Internet Services & Protocols. Mobile and Wireless Networks

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

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

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

Module 28 Mobile IP: Discovery, Registration and Tunneling

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

CSCI-1680 Wireless Chen Avin

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

CSC 4900 Computer Networks: Mobility

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

Mobile IP and Mobile Transport Protocols

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

How Mobile IP Works? Presenter: Ajoy Singh

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

Mobile IP. Mobile Computing. Mobility versus Portability

Mobility: vocabulary

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

On using Mobile IP Protocols

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

Lecture 7: Mobile IP (Part 1) Dr. Reynold Cheng

MESSAGES error-reporting messages and query messages. problems processes IP packet specific information

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

Introduction to Communication Networks Spring Unit 15 Internetworking (cont) Routing

Wireless Transmission and Mobility

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

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

Introduction to IPv6. IPv6 addresses

CSE 123A Computer Netwrking

Advanced Computer Networks. IP Mobility

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

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

CSE 123b Communications Software

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

CMPE 257: Wireless and Mobile Networking

This chapter introduces protocols and mechanisms developed for the network

ECS-087: Mobile Computing

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

CMPE 257: Wireless and Mobile Networking

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

King Fahd University of Petroleum & Minerals Computer Engineering g Dept

MOBILE IP. Under the guidance of Mr. N. Srinivasu

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

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

Reti degli elaboratori

Chapter 6 Wireless and Mobile Networks

Chapter 6 MOBILE IP AND TCP

Chapter 6 Wireless and Mobile Networks

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

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

CSC 401 Data and Computer Communications Networks

Module 6: Wireless Mobile Networks

Mobile IP Support for RFC 3519 NAT Traversal

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)

Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme. Auxiliary Protocols

Introduction to IPv6. IPv6 addresses

Mobile Communications Chapter 8: Network Protocols/Mobile IP. Micro mobility support. Routing protocols. Ad-hoc networks. Problems DHCP.

Introduction to Mobile Computing

Introduction to IPv6. IPv6 addresses

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

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

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

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

P A R T T W O MOBILE IPv6

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.

Chapter 6 Wireless and Mobile Networks

Mobility Support in IPv6

Mobile IPv6 Overview

Mobile Computing. Chapter 8: Mobile Network Layer

Wireless Network and Mobility

Chapter 5 Wireless and Mobile Networks

Mobility Support in Internet and Mobile IP. Gianluca Reali

CMPE 257: Wireless and Mobile Networking

MOBILE IP AND WIRELESS APPLICATION PROTOCOL

Mobile IPv6. Raj Jain. Washington University in St. Louis

PMIPv6 PROXY MOBILE IPV6 OVERVIEW OF PMIPV6, A PROXY-BASED MOBILITY PROTOCOL FOR IPV6 HOSTS. Proxy Mobile IPv6. Peter R. Egli INDIGOO.COM. indigoo.

IPv6: An Introduction

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

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

OPTIMIZING MOBILITY MANAGEMENT IN FUTURE IPv6 MOBILE NETWORKS

internet technologies and standards

Transcription:

ECS-087: Mobile Computing Mobile IP Most of the slides borrowed from Prof. Sridhar Iyer Diwakar Yagyasen.1

Effect of Mobility on Protocol Stack Application: new applications and adaptations Transport: congestion and flow control Network: addressing and routing Link: media access and handoff Physical: transmission errors and interference Diwakar Yagyasen.2

Routing and Mobility Finding a path from a source to a destination Issues Frequent route changes Route changes may be related to host movement Low bandwidth links Diwakar Yagyasen.3

Routing and Mobility (contd) Goal of routing protocols decrease routing-related overhead find short routes find stable routes (despite mobility) Diwakar Yagyasen.4

Mobile IP (RFC 3344): Motivation Traditional routing based on IP address; network prefix determines the subnet change of physical subnet implies change of IP address (conform to new subnet), or special routing table entries to forward packets to new subnet Diwakar Yagyasen.5

Quick Solution Changing of IP address Use DHCP to have a new IP address when mobile device moves to a new subnet but then the new address may not be known to anyone Take help of DNS to update the entry DNS updates take long time TCP connections break security problems Changing entries in routing tables change routing table entries as the MN moves from one network to another does not scale with the number of mobile hosts and frequent changes in the location security problems Diwakar Yagyasen.6

Mobile IP requirements Solution requirements Compatibility The new standard cannot introduce changes to applications and network protocols in use Should be compatible with lower layers use same layer 2 protocols Transparency New protocol should be transparent to higher layer For TCP it means the MN should retain same IP address Scalability Enhancing IP for mobility should not generate too many messages Should scale when there are a large number of MNs Security Management messages should be authenticated Diwakar Yagyasen.7

Mobile IP: Terminology Mobile Node (MN) node that moves across networks without changing its IP address Correspondent Node (CN) host with which MN is corresponding (TCP) Home Agent (HA) host in the home network of the MN, typically a router registers the location of the MN, tunnels IP packets to the COA Diwakar Yagyasen.8

Terminology (contd.) Foreign Agent (FA) host in the current foreign network of the MN, typically a router forwards tunneled packets to the MN, typically the default router for MN Care-of Address (COA) address of the current tunnel end-point for the MN (at FA or MN) actual location of the MN from an IP point of view Diwakar Yagyasen.9

Mobility: Vocabulary home network: 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: address in home network, can always be used to reach mobile e.g., 128.119.40.186 wide area network Correspondent node: Source: Jim Kurose s slides Diwakar Yagyasen.10 Network Layer 4-10

Mobility: more vocabulary Permanent address: remains constant (e.g., 128.119.40.186) visited network: network in which mobile currently resides (e.g., 79.129.13/24) Care-of-address: address in visited network. (e.g., 79,129.13.2) wide area network correspondent: wants to communicate with mobile Foreign agent: entity in visited network that performs mobility functions on behalf of mobile. Diwakar Yagyasen.11 Network Layer 4-11 Source: Jim Kurose s slides

Mobility: approaches Let routing handle it: routers advertise permanent address of mobile-nodes-in-residence via usual routing table exchange. routing tables indicate where each mobile located no changes to end-systems 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 Source: Jim Kurose s slides Diwakar Yagyasen.12 Network Layer 4-12

Mobility: registration home network visited network 2 wide area network foreign agent contacts home agent home: this mobile is resident in my network 1 mobile contacts foreign agent on entering visited network End result: Foreign agent knows about mobile Home agent knows location of mobile Source: Jim Kurose s slides Diwakar Yagyasen.13 Network Layer 4-13

Mobility via Indirect Routing home network correspondent addresses packets using home address of mobile home agent intercepts packets, forwards to foreign agent 1 wide area network 2 foreign agent receives packets, forwards to mobile visited network Diwakar Yagyasen.14 Network Layer 4-14 4 3 mobile replies directly to correspondent Source: Jim Kurose s slides

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 triangle routing: correspondent-home-network-mobile inefficient when correspondent, mobile are in same network Diwakar Yagyasen.15 Network Layer 4-15 Source: Jim Kurose s slides

Forwarding datagrams to remote mobile foreign-agent-to-mobile packet packet sent by home agent to foreign agent: a packet within a packet dest: 128.119.40.186 dest: 79.129.13.2 dest: 128.119.40.186 Permanent address: 128.119.40.186 dest: 128.119.40.186 packet sent by correspondent Care-of address: 79.129.13.2 Source: Jim Kurose s slides Diwakar Yagyasen.16 Network Layer 4-16

Indirect Routing: moving between networks suppose mobile user moves to another network 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) Mobility, changing foreign networks transparent: on going connections can be maintained! Source: Jim Kurose s slides Diwakar Yagyasen.17 Network Layer 4-17

Mobility via Direct Routing home network correspondent forwards to foreign agent foreign agent receives packets, forwards to mobile 4 visited network correspondent requests, receives foreign address of mobile 2 1 wide area network 3 Diwakar Yagyasen.18 Network Layer 4-18 4 mobile replies directly to correspondent Source: Jim Kurose s slides

Mobility via Direct Routing: comments overcome triangle routing problem non-transparent to correspondent: correspondent must get care-of-address from home agent What happens if mobile changes networks? Source: Jim Kurose s slides Diwakar Yagyasen.19 Network Layer 4-19

RFC 3344 Mobile IP 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 Source: Jim Kurose s slides Diwakar Yagyasen.20 Network Layer 4-20

Mobile IP: agent discovery agent advertisement: foreign/home agents advertise service by broadcasting ICMP messages (typefield = 9) 0 8 16 24 H,F bits: home and/or foreign agent type = 9 code = 0 = 9 router address checksum = 9 standard ICMP fields R bit: registration required type = 16 registration lifetime length sequence # RBHFMGV bits 0 or more care-ofaddresses reserved mobility agent advertisement extension Source: Jim Kurose s slides Diwakar Yagyasen.21 Network Layer 4-21

Agent Advertisement HA/FA periodically send advertisement messages into their physical subnets MN listens to these messages and detects, if it is in home/foreign network MN reads a COA from the FA advertisement messages Diwakar Yagyasen.22

Mobile IP: registration example home agent HA: 128.119.40.7 foreign agent COA: 79.129.13.2 ICMP agent adv. COA: 79.129.13.2. visited network: 79.129.13/24 Mobile agent MA: 128.119.40.186 registration req. COA: 79.129.13.2 HA: 128.119.40.7 MA: 128.119.40.186 Lifetime: 9999 identification: 714 encapsulation format. registration req. COA: 79.129.13.2 HA: 128.119.40.7 MA: 128.119.40.186 Lifetime: 9999 identification:714. time Source: Jim Kurose s slides registration reply HA: 128.119.40.7 MA: 128.119.40.186 Lifetime: 4999 Identification: 714 encapsulation format. registration reply HA: 128.119.40.7 MA: 128.119.40.186 Lifetime: 4999 Identification: 714. Diwakar Yagyasen.23 Network Layer 4-23

MN Registration MN signals COA to the HA via the FA HA acknowledges via FA to MN limited lifetime, need to be secured by authentication Diwakar Yagyasen.24

ICMP messages from the tunnel Encapsulator may receive ICMP messages from any intermediate router in the tunnel other than exit Network unreachable: Return dest unreachable message to org sender Host unreachable: Return host unreachable message Datagram too big: Relay ICMP datagram too big to org sender Diwakar Yagyasen.25

ICMP error messages (contd.) Source route failed: Handled by encapsulator itself and MUST NOT relay message to orginal sender Source quench: SHOULD NOT relay message to original sender, SHOULD activate congestion control mechanism Time exceeded: MUST be reported to original sender as host unreachable message Diwakar Yagyasen.26

Mobile IP: Other Issues Reverse Tunneling firewalls permit only topological correct addresses Optimizations Triangular Routing: HA informs sender the current location of MN Change of FA: new FA informs old FA to avoid packet loss Diwakar Yagyasen.27

Reverse tunneling (RFC 3024) FA tunnels packets to HA by encapsulation MN sends packet to FA home network HA forwards the packet to the CN 3 wide area network 2 1 Adapted from Kurose s slide Diwakar Yagyasen.28

Mobile IP: Reverse tunneling Router accept often only topological correct addresses (firewall!) a packet from the MN encapsulated by the FA is now topologically correct Diwakar Yagyasen.29

Reverse tunneling Reverse tunneling does not solve problems with firewalls, the reverse tunnel can be abused to circumvent security mechanisms (tunnel hijacking) optimization of data paths, i.e. packets will be forwarded through the tunnel via the HA to a sender (double triangular routing) Diwakar Yagyasen.30

Optimization of forwarding Triangular Routing sender sends all packets via HA to MN higher latency and network load Solutions sender learns the current location of MN direct tunneling to this location HA informs a sender about the location of MN Diwakar Yagyasen.31

Binding Registration: When node acquires a new care-of address Intimation: Node must intimate to HA Correspondent node Binding Ack: Node may expect an Ack Life-time: Node should know its likely time of association. Diwakar Yagyasen.32

Mobile Node Operation IP decapsulation Send Binding updates Receive Binding Ack Keep track of Nodes (because of Life-time) Send Binding Updates using Routing Header Diwakar Yagyasen.33

Correspondent Node Operations Process received Binding Updates Send Binding-Ack Maintain Binding-Cache Maintain Security Association Diwakar Yagyasen.34

Packet Delivery at CN No Entries in Binding- Cache Yes Send Directly to Care-of Addr Send to HA Using Normal Procedure ICMP Error Message Recd Yes Delete entry in Binding -Cache Wait for fresh Binding Diwakar Yagyasen.35

Home Agent Operations Send Binding-Ack to Binding Updates Encapsulate Packets for tunneling Home Agent Discovery Handle returned ICMP errors Diwakar Yagyasen.36

Change of FA packets on-the-fly during the change can be lost new FA informs old FA to avoid packet loss, old FA now forwards remaining packets to new FA this information also enables the old FA to release resources for the MN Diwakar Yagyasen.37

Change of foreign agent CN HA FA old FA new MN request update ACK data registration data registration MN changes location update data warning data ACK data update ACK data data Diwakar Yagyasen.38 t

Mobile IP Summary Mobile node moves to new location Agent Advertisement by foreign agent Registration of mobile node with home agent Proxying by home agent for mobile node Encapsulation of packets Tunneling by home agent to mobile node via foreign agent Diwakar Yagyasen.39