Mohammad Hossein Manshaei 1393

Similar documents
CSE 4215/5431: Mobile Communications Winter Suprakash Datta

Mobile Communications Chapter 8: Network Protocols/Mobile IP

Mobile Communications Mobility Support in Network Layer

Mobile Communications Chapter 9: Network Protocols/Mobile IP

ECS-087: Mobile Computing

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

Mobile IP. Mobile IP 1

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

LECTURE 8. Mobile IP

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

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

SJTU 2018 Fall Computer Networking. Wireless Communication

Mobility Management - Basics

CSC 4900 Computer Networks: Mobility

Mobility Management Basics

Chapter 8 LOCATION SERVICES

Mobility: vocabulary

Module 28 Mobile IP: Discovery, Registration and Tunneling

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

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

This chapter introduces protocols and mechanisms developed for the network

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.

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

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

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. Micro mobility support. Routing protocols. Ad-hoc networks. Problems DHCP.

Mobile IP. Mobile Computing. Mobility versus Portability

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

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

Chapter 6 MOBILE IP AND TCP

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

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

CSC 401 Data and Computer Communications Networks

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

King Fahd University of Petroleum & Minerals Computer Engineering g Dept

Introduction to IPv6. IPv6 addresses

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

Mobile Computing. Chapter 8: Mobile Network Layer

CSCI-1680 Wireless Chen Avin

Internet Services & Protocols. Mobile and Wireless Networks

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

Mobility Support in Internet and Mobile IP. Gianluca Reali

MOBILE IP AND WIRELESS APPLICATION PROTOCOL

How Mobile IP Works? Presenter: Ajoy Singh

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

Introduction to IPv6. IPv6 addresses

Mobile Communications Chapter 8: Network Protocols/Mobile IP

Introduction to IPv6. IPv6 addresses

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

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

CSE 123A Computer Netwrking

Advanced Computer Networks. IP Mobility

Mobility Chapter 5 Ad Hoc a Hoc nd S ensor Net r works rks Roger W r a W ttenhofer fe r 5/1

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.

Mobile IPv6 Overview

Mobility Support in Internet and Mobile IP

Mobile IP and Mobile Transport Protocols

CSE 123b Communications Software

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

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

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

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

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

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

Aalborg University Institute of Electronic Systems - Communication Networks - 6th Semester

Wireless Transmission and Mobility

CMPE 257: Wireless and Mobile Networking

Obsoletes: 2002 January 2002 Category: Standards Track

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

On using Mobile IP Protocols

P A R T T W O MOBILE IPv6

Mobile Communications Chapter 8: Network Protocols/Mobile IP

Mobile IP Support for RFC 3519 NAT Traversal

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

CMPE 257: Wireless and Mobile Networking

Reti degli elaboratori

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6

Telecom Systems Chae Y. Lee. Contents. Overview. Issues. Addressing ARP. Adapting Datagram Size Notes

IPv6: An Introduction

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

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

Network Layer. Mobile IP. Slides adapted from Prof. Dr.-Ing. Jochen H. Schiller and W. Stallings

Chapter 09 Network Protocols

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

Security Issues In Mobile IP

Chapter 6 Wireless and Mobile Networks

internet technologies and standards

IPv6 Next generation IP

Chapter 6 Wireless and Mobile Networks (Wireless and Mobility)

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

OSI Network Layer. Network Fundamentals Chapter 5. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

Internet Control Message Protocol (ICMP)

Use of IPSec in Mobile IP

Network layer: Overview. Network Layer Functions

CMPE 257: Wireless and Mobile Networking

LOGICAL ADDRESSING. Faisal Karim Shaikh.

Mobile Application Protocols

Transcription:

Mohammad Hossein Manshaei manshaei@gmail.com 1393

Mobile IP 2

Mobile Network Layer: Problems and Concerns Entities and Terminology in Mobile IP Mobile Indirect Routing Mobile IP Agent Advertisement Registration Tunneling and Encapsulation Optimization: Direct Routing and Handoff Reverse Tunneling IPv6 3

spectrum of mobility, from the network perspective: mobile wireless user, using same access point mobile user, connecting/ disconnecting from network using DHCP. mobile user, passing through multiple access point while maintaining ongoing connections (like cell phone) 4

Mobile end systems Laptops PDAs Smart-phones Wireless technologies Wireless LANs (IEEE 802.11) Bluetooth (www.bluetooth.com) Improved batteries (longer lifetime) 5

IP1 WLAN 802.11 mail.iut.ac.ir IP2 WLAN 802.11 Need to establish a new TCP connection, old connection broken Assign a new IP address via DHCP 6

GSM Network 2G GPRS (or EDGE or UMTS) tunnel IP link Assign IP address Tunnel IP packets Always in the path IP1 BTS BSC SGSN GPRS Access GGSN IP1 Core Network IP1 BTS BSC mail.iut.ac.ir WLAN 802.11 Internet CN IP2 Assign a new IP address via DHCP Possible solution: http://www.smart-wi-fi.com 7

² Change of IP address means disconnection of the application ² TCP interprets dropped packets (channel errors, disconnections) as congestion ² Limitations due to a fundamental design problem The IP address (network layer) has a dual role Ø Network locator (topological point of attachment) for routing purposes Ø Host identifier (unique for a host and TCP/IP stack) 8

² Routing is based on the destination IP address o Network prefix (e.g. 129.13.42) determines physical subnet ² Change of physical subnet implies change of IP address (standard IP) o The new IP address needs to be topologically correct (belong to the new subnet) to be routable ² Changing the IP address according to the current location o DHCP provides plug-and-play address update o Number of drawbacks: Almost impossible to locate a mobile system; long delays for DNS updates TCP connections break Security problems 9

Consider friend frequently changing addresses, how do you find her? I wonder where Alice moved to? Ø search all phone books? Ø call her parents? Ø expect her to let you know where he/she is? 6-10

Let routing handle it: routers not advertise permanent address of mobile-nodes-in-residence scalable via usual routing table exchange. to millions of routing tables indicate mobiles 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 11

Transparency Mobile end-systems (hosts) keep their IP address Maintain communication in spite of link breakage Enable change of point of connection to the fixed network Compatibility Support the same Layer 2 protocols as IP No changes to current end-systems and routers Mobile end-systems can communicate with fixed systems Security Authentication of all registration messages Efficiency and scalability Only little additional messages to the mobile system required (connection may be over a low-bandwidth radio link) World-wide support of a large number of mobile systems 12

1. Mobile IP Support mobility transparently to TCP and applications Rely on existing protocols 2. Host Identity Protocol (HIP) A new layer between IP and transport layers Architectural change to TCP/IP structure 13

Mobile Network Layer: Problems and Concerns Entities and Terminology in Mobile IP Mobile Indirect Routing Mobile IP Agent Advertisement Registration Tunneling and Encapsulation Optimization: Direct Routing and Handoff Reverse Tunneling IPv6 14

Mobile Node (MN) Entity (node) that can change its point of connection to the network without changing its IP address Home Agent (HA) Entity in the home network of the MN, typically a router Registers the MN location, encapsulates and tunnels IP packets to the COA Foreign Agent (FA) System in the current foreign network of the MN, typically a router Decapsulates and forwards the tunneled packets to the MN Care-of Address (COA) Address of the current tunnel end-point for the MN è Foreign Agent COA or è Co-located COA (no FA, MN performs decapsulation) Actual location of the MN from an IP point of view Co-located COA typically acquired via DHCP Correspondent Node (CN) Communication partner 15

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 16

permanent address: remains constant (e.g., 128.119.40.186) care-of-address: address in visited network. (e.g., 79,129.13.2) visited network: network in which mobile currently resides (e.g., 79.129.13/24) wide area network correspondent: wants to communicate with mobile foreign agent: entity in visited network that performs mobility functions on behalf of mobile. 17

Mobile Network Layer: Problems and Concerns Entities and Terminology in Mobile IP Mobile Indirect Routing Mobile IP Agent Advertisement Registration Tunneling and Encapsulation Optimization: Direct Routing and Handoff Reverse Tunneling IPv6 18

home network visited network wide 2 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 19

home network home agent intercepts packets, forwards to foreign agent foreign agent receives packets, forwards to mobile 3 visited network correspondent addresses packets using home address of mobile 1 wide area network 2 4 mobile replies directly to correspondent 20

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-networkmobile inefficient when correspondent, mobile are in same network 21

HA 2 MN home network Internet receiver 3 foreign network CN sender 1 1. Sender sends to the IP address of MN, HA intercepts packet (proxy ARP) 2. HA tunnels packet to co-located COA (MN) by encapsulation 3. MN decapsulates and (internally) delivers packet to home address 22

HA 2 MN home network Internet 3 receiver FA foreign network CN sender 1 1. Sender sends to the IP address of MN, HA intercepts packet (proxy ARP) 2. HA tunnels packet to COA, here FA, by encapsulation 3. FA forwards the packet to the MN 23

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! 24

Mobile Network Layer: Problems and Concerns Entities and Terminology in Mobile IP Mobile Indirect Routing Mobile IP Agent Advertisement Registration Tunneling and Encapsulation Optimization: Direct Routing and Handoff Reverse Tunneling IPv6 25

RFC 3344 and 5944 for IPv4 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: indirect routing of datagrams agent discovery registration with home agent 26

Ø Agent Discovery ² MN discovers its location (home network, foreign network) ² MN learns a COA Ø Registration ² MN securely signals the COA to the HA (via the FA) Ø Tunneling ² HA encapsulates IP packets from CN and sends them to the COA ² FA (or MN) decapsulates these packets and sends them to the MN 27

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 28

Agent Advertisement HA and FA periodically send advertisement messages into their physical subnets MN listens to these messages and detects, if it is in the home or a foreign network (standard case for home network) MN reads a COA from the FA advertisement messages Agent Solicitation MN can request an Agent Advertisement message with a Agent Solicatation message è Helps decrease disconnection time Simple extension of ICMP Router Discovery (ICMP: Internet Control Message Protocol) Other mechanisms can be used to discover the network and the COA (e.g. DHCP) 29

RFC 1256 0 7 8 15 16 23 24 31 Type = 9 Code = 0 checksum #addresses addr. size lifecme router address 1 preference level 1 router address 2 preference level 2... type = 16 length type = 16 registracon lifecme COA 1 length = 6 + 4 * #COAs COA 2 R: registration required (even for co-located) B: busy, no more registrations H: home agent F: foreign agent M: minimal encapsulation G: GRE (Generic Routing Encapsulation) r: =0, ignored (former Van Jacobson compression) T: FA supports reverse tunneling reserved: =0, ignored... sequence number R B H F M G r T reserved 30

Mobility Binding Home address COA RegistraCon lifecme Note: with co-located COA, MN sends registation request directly to HA Foreign Agent 2. RegistraCon request 4. RegistraCon reply Home Agent 3. If OK, sets up the binding 1. RegistraCon request Mobile Node (COA) 5. RegistraCon reply Note: HA can allow for multiple simultanous mobilty bindings. In that case, a packet from CN is forwarded to all active COAs 31

UDP message 0 7 8 15 16 23 24 31 type = 1 S B D M G r T x lifecme home address home agent COA idencficacon extensions... S: simultaneous bindings B: broadcast datagrams D: decapsulation by MN M: mininal encapsulation G: GRE encapsulation r: =0, ignored T: reverse tunneling requested x: =0, ignored identification: generated by MN, used for matching requests with replies and preventing replay attacks (must contain a timestamp and/or a nonce) extensions: mobile-home authentication extension (mandatory) mobile-foreign authentication extension (optional) foreign-home authentication extension (optional) 32

UDP message 0 7 8 15 16 31 type = 3 code lifecme home address home agent idencficacon extensions... 33

home agent HA: 128.119.40.7 visited network: 79.129.13/24 foreign agent COA: 79.129.13.2 ICMP agent adv. COA: 79.129.13.2. mobile agent MA: 128.119.40.186 time 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. 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. 34

Correspondent Node Src Dest Payload CN MN abcdefghij 1 Binding Foreign Agent Src Dest 2 Src Dest Payload Home Agent HA COA CN MN abcdefghij 3 Src Dest Payload CN MN abcdefghij Encapsulated datagram Mobile Node 35

IP-in-IP-encapsulation (RFC 2003, updated by RFCs 3168, 4301, 6040) ver. IHL DS (TOS) IP idencficacon TTL IP- in- IP IP address of HA Care- of address COA ver. IHL DS (TOS) IP idencficacon TTL lay. 4 prot. IP address of CN IP address of MN length flags fragment offset IP checksum length flags fragment offset IP checksum TCP/UDP/... payload IHL: Internet Header Length TTL: Time To Live DS: Differentiated Service TOS: Type of Service 36

Minimal encapsulation (optional) avoids repetition of identical fields e.g. TTL, IHL, version, DS (RFC 2474, old: TOS) only applicable for non fragmented packets, no space left for fragment identification ver. IHL DS (TOS) length IP idencficacon flags fragment offset TTL min. encap. IP checksum IP address of HA care- of address COA lay. 4 protoc. S reserved IP checksum IP address of MN original sender IP address (if S=1) TCP/UDP/... payload 37

original header original data outer header GRE header original header original data RFC 1701 new header new data ver. IHL DS (TOS) IP idencficacon TTL GRE IP address of HA Care- of address COA C R K S s rec. rsv. ver. checksum (opconal) key (opconal) sequence number (opconal) roucng (opconal) ver. IHL DS (TOS) IP idencficacon TTL lay. 4 prot. IP address of CN IP address of MN length flags fragment offset IP checksum protocol offset (opconal) length flags fragment offset IP checksum C reserved0 checksum (opconal) RFC 2784 (updated by 2890) ver. protocol reserved1 (=0) TCP/UDP/... payload 38

Route optimization HA provides the CN with the current location of MN (FA) CN sends tunneled traffic directly to FA Optimization of FA handover Packets on-the-fly during FA 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 39

home network correspondent forwards to foreign agent foreign agent receives packets, forwards to mobile visited network correspondent requests, receives foreign address of mobile 1 2 4 3 mobile replies directly to correspondent 40

Overcome triangle routing problem Non-transparent to correspondent: correspondent must get care-of-address from home agent what if mobile changes visited network? 1 2 4 3 41

Anchor foreign agent: FA in first visited network Data always routed first to anchor FA When mobile moves: new FA arranges to have data forwarded from old FA (chaining) correspondent wide area network 1 correspondent agent anchor foreign agent 5 4 3 new foreign agent foreign net visited at session start 2 new foreign network 42

CN HA FA MN Request Update ACK FA new Data Data Warning Data Warning Update ACK Data Registration Data MN changes location Data Data New request Request Update ACK Data Data 43

Correspondent Node Correspondent Domain Filtering of incoming packets: Discard packets that seem to emanate from an address internal to the domain (even if they are tunneled) FW Home Domain Global Internet FW Home Agent Foreign Domain FW Foreign Agent Filtering of outgoing packets: discard packets that seem to emanate from an address external to the domain (even if they are tunneled) Mobile Node Possible solucons: Manual configuracon IsolaCon of Mobile Nodes (pockets) 44

HA 2 MN home network Internet 1 sender FA foreign network CN receiver 3 1. MN sends to FA 2. FA tunnels packets to HA by encapsulation 3. HA forwards the packet to the receiver (standard case) 45

Reverse tunneling solves ingress filtering problem A packet from the MN encapsulated by the FA is now topological correct Can cope with mobile routers Protects MN location privacy Multicast and TTL problems solved Reverse tunneling does not solve Optimization of data paths è Double triangular routing Problems with firewalls è The reverse tunnel can be abused to circumvent security mechanisms (tunnel hijacking) 46

Mobile IPv6 introduces several modifications based on new IPv6 functionality and experiences with Mobile IPv4 No FA, COA is always co-located Two modes of operation: è Bidirectional tunnel (between HA and COA) è Route optimization (MN informs CN about the COA) Security integrated with IPsec (mandatory support in IPv6) Soft hand-over, i.e. without packet loss, between two subnets is supported è MN sends the new COA to its old router è The old router encapsulates all incoming packets for the MN and forwards them to the new COA 47