Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lecture 9 Mobile Networks: IP Addressing and Mobile IP Wireless Networks and Mobile Systems.

Similar presentations


Presentation on theme: "Lecture 9 Mobile Networks: IP Addressing and Mobile IP Wireless Networks and Mobile Systems."— Presentation transcript:

1 Lecture 9 Mobile Networks: IP Addressing and Mobile IP Wireless Networks and Mobile Systems

2 Mobile Networks: IP Addressing and Mobile IP 2 Lecture Objectives ● Present the basic principles of addressing in IP networks ● Describe the problem of mobility with IP and consider alternative solutions ● Describe the operation of Mobile IP

3 Mobile Networks: IP Addressing and Mobile IP 3 Agenda ● IP addressing ● Node mobility and IP ● Mobile IP ■ Foreign agent discovery ■ Home agent registration ■ Packet delivery through tunneling ■ Route optimization

4 Mobile Networks: IP Addressing and Mobile IP 4 IP Addressing ● IPv4 addresses… ■ Uniquely identify an interface ■ 32 bits long ■ Consist of a network identifier and a host identifier ● Routing outside of the destination host’s subnet is usually based on the network identifier, while the host identifier is only used within the destination’s subnet ● IPv6 uses 128-bit addresses Network IdentifierHost Identifier 031

5 Mobile Networks: IP Addressing and Mobile IP 5 Five Classes of IP Addresses ● IP addressing was originally based on five classes of addresses ■ A router can interpret the network and host fields by examining the first few bits of the IP address Class B 10netidhostid Class C 110hostidnetid Class D 1110multicast address Class E 1111reserved for future use Class A 0netid 012348162431 hostid

6 Mobile Networks: IP Addressing and Mobile IP 6 CIDR ● Classless Inter-Domain Routing (CIDR) was introduced to remedy problems with the rigid classes of IP addresses ■ Defined in RFCs 1517-1520 ● Allows a flexible definition of the boundary between the network identifier and the host identifier ● Example ■ IP address:10.1.9.52 ■ Subnet mask:255.255.252.0(22-bit network identifier) ■ Network:10.1.8.0/22 ■ Packets with address in the range 10.1.8.0-10.1.11.255 will be routed to network 10.1.8.0/22 based on the first 22 bits

7 Mobile Networks: IP Addressing and Mobile IP 7 A Problem With IP Addressing ● An IP address serves two different functions… ■ The name for an interface (host) and ■ The location (subnet) of the interface (host) in the network ● The IP address is the only “name” carried in an IP datagram ■ DNS can be used to map one or more symbolic names to one or more IP addresses, but a symbolic name is not carried in the datagram and has no meaning once the DNS lookup is completed ● The network identifier in the IP address is used by routers to deliver to the destination subnet ■ The IP address is associated with the location or subnet of the destination host

8 Mobile Networks: IP Addressing and Mobile IP 8 IP Routing ● Router uses routing table to direct packets to the appropriate interface a b c 3.0.0.23.0.0.33.0.0.4 4.0.0.54.0.0.6 Router Dest = 3.0.0.4 TargetInterface 2.0.0.0/24 a 3.0.0.0/24 b 4.0.0.0/24 c

9 Mobile Networks: IP Addressing and Mobile IP 9 Traditional Routing for a Mobile Host ● Host moving to another network is unreachable a b c 3.0.0.23.0.0.33.0.0.4 4.0.0.54.0.0.6 Router Dest = 3.0.0.4 3.0.0.4 X Mobile Host TargetInterface 2.0.0.0/24 a 3.0.0.0/24 b 4.0.0.0/24 c

10 Mobile Networks: IP Addressing and Mobile IP 10 Definitions ● Home link – Link assigned the same network prefix as the prefix of the host’s IP address ■ For example, link 3.0.0.0/24 ● Foreign link – Any link where the network prefix differs from the prefix of the host’s IP address ■ For example, link 4.0.0.0/24 ● Mobility – The ability of a host to change its attachment from one link to another while maintaining communications and not changing its IP address (transparently to corresponding host) ■ Host can change from home link to foreign link (or foreign link to another foreign link) without a change in IP address and without a disruption in communication

11 Mobile Networks: IP Addressing and Mobile IP 11 Solutions for Mobile Hosts (1) ● Host-specific routing ■ Add routes for the mobile host to routing tables at routers ■ Solution is not scaleable since updates and unique entries would be needed for every mobile host ● Change IP address ■ Mobile host can change its address to the foreign link’s network prefix ■ Need to register new IP address with DNS (if it is to maintain identity), resulting in added load on the DNS server and network ■ Communications, e.g., TCP connections, would be disrupted ■ Changing host IP address does not enable mobility, but it does enable nomadicity

12 Mobile Networks: IP Addressing and Mobile IP 12 Solutions for Mobile Hosts (2) ● Source routing ■ Use loose source routing to specify a path to the foreign link (router interface) and then to the mobile node’s interface ■ Source host must determine address of foreign link, which is not a standard function for a host ● Use link level (Layer 2) mobility ■ Some Layer 2 protocols support mobility (e.g., between access points in IEEE 802.11 infrastructure networks) ■ Requires that the mobile host not leave the local IP subnet ● Mobile IP ■ Extension to IP routing to support mobile nodes in a scaleable and secure manner

13 Mobile Networks: IP Addressing and Mobile IP 13 Mobile IP ● Mobile IP allows a host to move to a foreign network, but still maintain its home IP address ● References ■ C. E. Perkins, editor, “IP Mobility Support for IPv4, RFC 3344, August 2002. ■ C. E. Perkins, Mobile IP: Design Principles and Practices, Addison-Wesley, Reading, MA, 1998. ■ J. D. Solomon, The Internet Unplugged, Prentice Hall PTR, Upper Saddle River, NJ, 1998. ■ IETF Working Groups ○ Mobility for IPv4: http://www.ietf.org/html.charters/mip4-charter.html ○ Mobility for IPv6: http://www.ietf.org/html.charters/mip6-charter.html

14 Mobile Networks: IP Addressing and Mobile IP 14 Mobile IP Addressing ● Really need two addresses … ■ One address for locating (routing to) the host ■ Another address for identifying (naming) a communications end-point ■ Standard IP uses one address for both functions ● Addresses in Mobile IP ■ Home address – Known IP address for the host ■ Home network (home link) – Destination network associated with the home address ■ Foreign network (foreign link) – Network associated with the visited or foreign link ■ Care-of address – IP address on the foreign link used to locate the host

15 Mobile Networks: IP Addressing and Mobile IP 15 Mobile IP Overview: Data Flow Home Agent Foreign Agent Correspondent Node (Host) 10.0.8.0/24 10.4.5.0/24 10.0.8.5 10.4.5.43 Mobile Host 10.0.8.5 10.92.2.3

16 Mobile Networks: IP Addressing and Mobile IP 16 Mobile IP Elements ● Mobile Host (MH) – Host that changes its attachment point from one network or subnetwork to another ● Home Agent (HA) – Specialized router on mobile node’s home network that tunnels datagrams for delivery to the mobile host and maintains current location information for the mobile node ● Foreign Agent (FA) – Specialized router on foreign network that provides routing services to the mobile host while registered and may serve as default router for registered mobile hosts ● Correspondent Node (CN) – Communicates with mobile host

17 Mobile Networks: IP Addressing and Mobile IP 17 Mobile IP Operation (1) ● Mobile (foreign and home) agents advertise their availability using agent-advertisement messages ■ Mobile host may optionally solicit an agent-advertisement message ● Mobile host receives agent-advertisement message and decides if it is on a foreign or home network ● If the mobile node is returning to its home network, it “deregisters” with its home agent ● If the mobile host is on a foreign network, it obtains a care-of address on the foreign network ■ Foreign agent care-of address ■ Colocated care-of address

18 Mobile Networks: IP Addressing and Mobile IP 18 Mobile IP Operation (2) ● Mobile host registers new care-of address with home agent, possibly via a foreign agent ■ Registration request ■ Registration reply ● Home agent intercepts datagrams sent to the mobile node’s home address and tunnels datagrams to the registered care-of address ● Tunneled datagram received ■ At foreign agent and delivered to mobile node, or ■ Directly at the mobile node (colocated) ● Mobile host can usually send datagrams directly back to the correspondent node

19 Mobile Networks: IP Addressing and Mobile IP 19 Mobile IP Operation (3) ● Datagrams sent by the mobile node are delivered directly to the destination ■ No need to pass through the home agent

20 Mobile Networks: IP Addressing and Mobile IP 20 Mobile IP Details (1) ● Agent discovery ■ ICMP router discovery ■ Mobility agent discovery operation ■ Agent advertisement and solicitation messages ● Registration ■ Registration operation ■ Authentication ■ Registration request and reply messages ■ Security ■ Example 1 2

21 Mobile Networks: IP Addressing and Mobile IP 21 Mobile IP Details (2) ● Datagram delivery ■ Encapsulation principles and schemes ■ ARP issues 3

22 Mobile Networks: IP Addressing and Mobile IP 22 Agent Discovery ● Process by which a mobile host … ■ Determines if it is connected to its home network or to a foreign network ■ Determines when it has moved from one network to another ■ Learns the care-of address provided by a foreign agent ● Based on extensions to Internet Control Message Protocol (ICMP) router discovery mechanism ■ Router advertisement message ■ Router solicitation message ● Mobile IP assumes link level connectivity is established by some other means, e.g., association in IEEE 802.11b 1

23 Mobile Networks: IP Addressing and Mobile IP 23 Router Discovery Operation ● Router discovery message is multicast by routers to hosts on the subnet ■ Normally, the all-systems multicast address (224.0.0.1) is the IP destination address with IP Time-To-Live (TTL) of 1 ■ Can be unicast directly to a host that sent a router solicitation message ● Systems on the subnet receive the discovery message and process 1

24 Mobile Networks: IP Addressing and Mobile IP 24 Router Discovery Message (1) IP Header ICMP Message 08162431 num addrs router address (1)...... addr entr szlifetime preference (1) typecodechecksum ICMP Message ICMP Header 1

25 Mobile Networks: IP Addressing and Mobile IP 25 Router Discovery Message (2) ● Type: Type of ICMP message (9) ● Code: Used by some types to indicate a specific condition (0) ● Checksum: Checksum over full message ● Num addrs: Number of addresses advertised in this message ● Addr entry size: The number of 32-bit words of information for each router address (two words here) ● Lifetime: Maximum number of seconds that the addresses may be considered valid 1

26 Mobile Networks: IP Addressing and Mobile IP 26 Router Discovery Message (3) ● Router address (i), i=1…num addrs: Sending router’s IP address on the interface from which this message is sent ● Preference level (i), i=1…num addrs: Preference of this router address relative to other routers on this subnet (higher values are more preferable) 1

27 Mobile Networks: IP Addressing and Mobile IP 27 Router Solicitation Operation ● Host can send router solicitation message for immediate information ● Solicitation message can be broadcast or multicast ■ Broadcast to the limited-broadcast address (255.255.255.255) ■ Multicast to the all-routers multicast address (224.0.0.2) with TTL = 1 ● Routers reply with a router advertisement ■ Unicast to the host sending the solicitation ● Host processes advertisement in standard way 1

28 Mobile Networks: IP Addressing and Mobile IP 28 Router Solicitation Message ● Type: ICMP type (10) ● Code: code for this type (0) ● Checksum: checksum over full message ● Reserved: sent as 0; ignored by receiver 08162431 reserved typecodechecksum 1

29 Mobile Networks: IP Addressing and Mobile IP 29 Agent Advertisement ● Extend router advertisement messages ■ Mobility agent advertisement extension ■ Prefix-length extension ■ One-byte padding extension ■ Future extensions ● Important fields for … ■ Link layer ■ IP ■ ICMP (router discovery) 1

30 Mobile Networks: IP Addressing and Mobile IP 30 Advertising by Mobility Agents ● If link-layer protocol does not provide agent discovery, mobility agent (HA and FA) must… ■ Send agent advertisement messages (at some maximum rate with 1 second maximum recommended rate) ■ Respond to agent solicitation messages ● If link-layer protocol does provide agent discovery, mobility agent must… ■ Respond to agent solicitation messages ■ Send agent advertisement messages if site policy requires additional registration 1

31 Mobile Networks: IP Addressing and Mobile IP 31 Agent Discovery by Mobile Hosts ● MH sends solicitation only if… ■ There is no agent advertisement message ■ Care-of address not established by link-layer protocol ● Agent advertisement provides… ■ Care-of address ■ Foreign agent address ● Mobile host knows it is on its home link when it sees advertisement messages from its home agent ■ Mobile host reconfigures routing for home network operation ■ Issues gratuitous ARP to update any cached ARP entries ■ Deregisters with home agent 1

32 Mobile Networks: IP Addressing and Mobile IP 32 Advertisement Features (1) ● Link layer ■ Destination address should match link layer source address for agent solicitation ● IP ■ TTL = 1 (local subnet only) ■ Destination address is … ○ All-systems multicast address (224.0.0.1), or ○ Limited-broadcast address (225.225.225.225) 1

33 Mobile Networks: IP Addressing and Mobile IP 33 Advertisement Features (2) ● ICMP ■ Type = 9 (router advertisement message) ■ Code ○ Code = 0 if mobility agent handles common traffic, i.e. it is a router for general IP traffic ○ Code = 16 if mobility agent does not route common traffic (but it must route datagrams from a registered mobile host) ■ Lifetime is maximum time this advertisement is considered valid ■ Router addresses are usual router addresses that are advertised (preference may be low) ■ Num addrs is the number of advertised router addresses 1

34 Mobile Networks: IP Addressing and Mobile IP 34 Agent Advertisement Extension (1) 08162431 registration lifetime typelengthsequence number reservedRBHFMGV zero or more care-of addresses ● Type: 16 ● Length: 6 + 4N, where N is the number of advertised care-of addresses (4 bytes each) ● Sequence number: Count of advertisement messages since agent was initialized (follows ICMP router discovery) 1

35 Mobile Networks: IP Addressing and Mobile IP 35 Agent Advertisement Extension (2) ● Registration lifetime: Lifetime in seconds that this agent is willing to accept a registration request (65,535  infinity) ● Bit fields ■ R: Foreign agent requires registration rather than using colocated care-of address (e.g., for accounting or other policies) ■ B: Busy -- foreign agent will not accept registrations from new mobile hosts if set ■ H: Home agent -- agent offers home agent services on this link ■ F: Foreign agent -- agent offers foreign agent services on this link 1

36 Mobile Networks: IP Addressing and Mobile IP 36 Agent Advertisement Extension (3) ● Bit fields (continued) ■ M: Minimal encapsulation -- agent can receive datagrams that contain minimal encapsulation ■ G: Generic routing encapsulation (GRE) -- agent can receive datagrams that use GRE ■ V: Van Jacobson header compression -- agent supports use of header compression ● Reserved: sent as 0; ignored by receiver ● Care-of addresses: care-of addresses provided by this agent ■ Must provide at least one if F = 1 ■ Number of addresses determined by length field 1

37 Mobile Networks: IP Addressing and Mobile IP 37 Agent Solicitation Message ● Same as ICMP router solicitation message ■ TTL = 1 required ● Used in a slightly different way ■ Frequency ■ Number of attempts 1

38 Mobile Networks: IP Addressing and Mobile IP 38 Registration ● Mobile IP registration allows mobile hosts to communicate their location (reachability) information to their home agent ■ Request forwarding services on a foreign network ■ Inform home agent of care-of address ■ Renew a binding that is due to expire ■ Deregister upon return to the home network ● Creates or modifies a mobility binding at home agent and allows foreign agent to begin or renew service for the mobile host ■ Binds mobile host’s care-off address to its home address ■ Binding is valid for a registration lifetime 2

39 Mobile Networks: IP Addressing and Mobile IP 39 Registration Preliminaries (1) ● Preconfigured in mobile host… ■ Home IP address and subnet mask ■ Mobility security association for each home agent (for authentication) ■ Optionally, IP address of one or more home agents ● Two forms of registration ■ Foreign agent acts as an intermediary ■ Mobile host registers directly with home agent ● Both procedures consist of exchange of registration request and reply messages 2

40 Mobile Networks: IP Addressing and Mobile IP 40 Registration Preliminaries (2) ● Registration via foreign agent if … ■ Mobile host registers foreign agent care-off address ■ Foreign agent registration is required (R = 1 in advertisement) ● Registration directly with home agent if … ■ Mobile host is using a colocated care-of address ■ Mobile host returns home and deregisters 2

41 Mobile Networks: IP Addressing and Mobile IP 41 Registration Via Foreign Agent (2) (5) (1) (3) (4) 1.FA advertises service 2.MH requests service 3.FA relays request to HA 4.HA accepts (or denies) request and replies 5.FA relays reply to MH MHFAHA Mobile Host Home Agent Foreign Agent 2

42 Mobile Networks: IP Addressing and Mobile IP 42 Authentication (1) ● Without security, a “bad guy” host on any network (with a FA) could issue a registration request for a host on any network (with a HA) ■ HA would begin to forward datagrams to the bad guy host ● So, registration messages between a mobile host and its home agent must be authenticated ■ Uses mobile-home authentication extension ● Mobile hosts, home agents, and foreign agents must maintain a mobility security association for mobile hosts, indexed by… ■ Security Parameter Index (SPI) ■ IP address (home address for mobile host) 2

43 Mobile Networks: IP Addressing and Mobile IP 43 Authentication (2) ● Identification field in registration request changes with each new registration to prevent malicious snooping agent from replaying request ■ Provides replay protection ● Identification field in reply based on identification field in request 2

44 Mobile Networks: IP Addressing and Mobile IP 44 Registration Message Format ● Carried in UDP datagrams ● Non-zero checksum in UDP header (receiver should check) ● Mobile IP implements its own retransmission scheme ● TCP overhead not needed, especially beneficial for high packet loss rates ● Include a lifetime value IP Header UDP Header Mobile IP Message Header Extensions … 2

45 Mobile Networks: IP Addressing and Mobile IP 45 extensions... Registration Request Message (1) 08162431 typeSBDMGVrsvlifetime home address home agent care-of address identification 2

46 Mobile Networks: IP Addressing and Mobile IP 46 Registration Request Message (2) ● Type: 1 (indicates registration request) ● Bit fields ■ S: Simultaneous bindings -- set if mobile host wants home agent to keep its current bindings ■ B: Broadcast datagrams -- set if mobile host wants to receive broadcasts on its home network ■ D: Decapsulation -- set to indicate that mobile host will decapsulate datagrams sent to care-of address (mobile node is using colocated care-of address) 2

47 Mobile Networks: IP Addressing and Mobile IP 47 Registration Request Message (3) ● Bit fields (continued) ■ M: Minimal encapsulation -- set to request home agent use minimal encapsulation for tunneled datagrams ■ G: Generic routing encapsulation -- set to request home agent use GRE for tunneled datagrams ■ V: Van Jacobson header compression -- set to request that mobility agent use of this header compression scheme over its link with mobile host ■ rsv: Two reserved bits -- sent as 0; ignored on reception 2

48 Mobile Networks: IP Addressing and Mobile IP 48 Registration Request Message (4) ● Lifetime: Number of seconds before registration should be considered to expire ■ Should not exceed that advertised by the foreign agent ■ Set to 0 to delete the registration ● Home address: Home IP address of the mobile host ● Home agent: IP address of the mobile host’s home agent 2

49 Mobile Networks: IP Addressing and Mobile IP 49 Registration Request Message (5) ● Care-of address: IP address of the tunnel endpoint ■ Colocated (e.g., obtained using DHCP) ■ Foreign agent (e.g., obtained through agent discovery) ■ Home address to deregister all (return to home) ● Identification: 64-bit identification number constructed by mobile host ■ Associates registration requests with registration replies ■ Protects against replay attacks of registration messages 2

50 Mobile Networks: IP Addressing and Mobile IP 50 IP for Registration Requests ● Source address ■ Care-of address if colocated care-of address ■ Otherwise, mobile host’s home address ● Destination address ■ IP address of foreign agent learned through advertisement message if registering through foreign agent ■ If IP address not known, all-mobility-agents multicast address (224.0.0.11) with TTL = 1 and link-layer address set to agent’s address ■ IP address of home agent if registering directly with home agent ■ Subnet-directed broadcast of home agent if IP address not known 2

51 Mobile Networks: IP Addressing and Mobile IP 51 UDP for Registration Requests ● Source port: Variable (dynamically assigned by operating system, for example) ● Destination port: 434 (well-known port number) 2

52 Mobile Networks: IP Addressing and Mobile IP 52 Registration Reply Message (1) extensions... 08162431 typecodelifetime home address home agent identification 2

53 Mobile Networks: IP Addressing and Mobile IP 53 Registration Reply Message (2) ● Type: 3 (indicates registration reply) ● Code: Indicates result of registration request (defined in Assigned Numbers) ■ Registration successful ○ 0:Registration accepted ○ 1:Registration accepted, simultaneous registration not supported ■ Registration denied by foreign agent ○ Codes 64-88 ■ Registration denied by home agent ○ Codes 128-136 2

54 Mobile Networks: IP Addressing and Mobile IP 54 Registration Reply Message (3) ● Lifetime: Duration for which binding is valid ● Home address: IP address of the mobile host ● Home agent: IP address of mobile host’s home agent ● Identification: 64-bit identification field ■ Low 32 bits matched to identification sent in request ■ Used for authentication 2

55 Mobile Networks: IP Addressing and Mobile IP 55 IP for Registration Replies ● Source address ■ Typically copied from the destination address of associated registration request ■ If request sent to a multicast or broadcast address, source address is set to home agent’s preferred unicast address ● Destination address: Copied from the source address of the associated registration request 2

56 Mobile Networks: IP Addressing and Mobile IP 56 UDP for Registration Replies ● Source port: Variable ● Destination port: Copied from the source port of the associated registration request 2

57 Mobile Networks: IP Addressing and Mobile IP 57 Security Parameter Index ● SPI defines the security context used to compute the authenticator value ■ Authentication algorithm ■ Mode ■ Shared secret ● Shared secret ■ Shared private key, or ■ Public/private key pair 2

58 Mobile Networks: IP Addressing and Mobile IP 58 Authentication Extension 08162431 authenticator … typecodeSPI (first two bytes) SPI (second two bytes) ● Type:32Mobile-home authentication 33Mobile-foreign authentication 34Foreign-home authentication ● Length: 4 plus length of authenticator ● SPI: 4-byte SPI ● Authenticator: Variable length (SPI) 2

59 Mobile Networks: IP Addressing and Mobile IP 59 Order of Extensions IP header UDP header Fixed part of registration request Nonauthentication extensions for home agent Mobile-home authentication extension Nonauthentication extensions for foreign agent Mobile-foreign authentication extension ● Example -- registration request from mobile host to home agent via foreign agent 2

60 Mobile Networks: IP Addressing and Mobile IP 60 Registration Information (1) ● Maintained at the mobile host for each pending registration ■ Link-layer address of foreign agent (if applicable) ■ IP destination address of the registration request ■ Care-of address used in registration ■ Identification value sent in registration ■ Originally requested lifetime ■ Remaining lifetime of pending registration 2

61 Mobile Networks: IP Addressing and Mobile IP 61 Registration Information (2) ● Information in visitor’s log at foreign agent ■ Link-layer source address of mobile host ■ IP source address (the mobile host’s home address) ■ IP destination address (the foreign agent address used by the mobile host) ■ UDP source port (UDP port used at the mobile host) ■ Home agent address ■ Identification field (for authentication) ■ Requested registration lifetime ■ Remaining lifetime of the pending or current registration 2

62 Mobile Networks: IP Addressing and Mobile IP 62 Registration Information (3) ● Information in mobility binding (indexed by home address of mobile host) at home agent ■ Mobile host’s care-of address ■ Identification field from registration reply ■ Remaining lifetime of the registration 2

63 Mobile Networks: IP Addressing and Mobile IP 63 FA Care-of Address Example ● Example values ■ Mobile host’s home address129.34.78.5 ■ Mobile host’s home agent129.34.78.254 ■ Foreign agent’s link address137.0.0.11 ■ Foreign agent’s care-of address9.2.20.11 ■ Mobile node’s source port1094 ■ Foreign agent’s source port1105 ■ Care-of registration lifetime60,000 s ■ Home agent-granted lifetime35,000 s ■ SPI (mobile node/home agent)302/303 From C. E. Perkins, Mobile IP: Design Principles and Practices, Addison-Wesley, Reading, MA, 1998. 2

64 Mobile Networks: IP Addressing and Mobile IP 64 Example: 1) Agent Advertisement IP HeaderICMP HeaderRouter AdvMobile Ext S=137.0.0.11 D=255.255.255.255 F=1 Type=9 Code=16 Life=60,000 COA=9.2.20.11 ● Foreign agent discovery 2

65 Mobile Networks: IP Addressing and Mobile IP 65 Example: 2) Mobile to Foreign IP HeaderUDP HeaderMobile IPAuth Ext S=129.34.78.5 D=137.0.0.11 TTL=64 S=1094 D=434 SPI=302 Type=1 Life=60,000 COA=9.2.20.11 HA=129.34.78.254 MH=129.34.78.5 ● Registration using the foreign agent 2

66 Mobile Networks: IP Addressing and Mobile IP 66 Example: 3) Foreign to Home IP HeaderUDP HeaderMobile IPAuth Ext S=9.2.20.11 D=129.34.78.254 TTL=64 S=1105 D=434 SPI=302 Type=1 Life=60,000 COA=9.2.20.11 HA=129.34.78.254 MH=129.34.78.5 2

67 Mobile Networks: IP Addressing and Mobile IP 67 Example: 4) Home to Foreign IP HeaderUDP HeaderMobile IPAuth Ext S=129.34.78.254 D=9.2.20.11 TTL=64 S=434 D=1105 SPI=303 Type=3 Code=0 Life=35,000 HA=129.34.78.254 MH=129.34.78.5 2

68 Mobile Networks: IP Addressing and Mobile IP 68 Example: 5) Foreign to Mobile IP HeaderUDP HeaderMobile IPAuth Ext S=137.0.0.11 D=129.34.78.5 TTL=1 S=434 D=1094 SPI=303 Type=3 Code=0 Life=35,000 HA=129.34.78.254 MH=129.34.78.5 ● Successful registration is complete 2

69 Mobile Networks: IP Addressing and Mobile IP 69 Datagram Delivery ● Mobile IP uses encapsulation to deliver datagrams from the home network to the current care-of address of the mobile host ■ IP-in-IP encapsulation (must be supported) ■ Minimal encapsulation (may be supported) ■ Generic record encapsulation (may be supported) 3

70 Mobile Networks: IP Addressing and Mobile IP 70 Tunneling Basics SourceDestination 3 EncapsulationDecapsulation Tunnel

71 Mobile Networks: IP Addressing and Mobile IP 71 IP-in-IP Encapsulation (1) Original IP Header Original IP Payload Original IP Header Original IP Payload Outer IP Header Other Optional Headers Tunnel Endpoints Original Endpoints 3

72 Mobile Networks: IP Addressing and Mobile IP 72 IP-in-IP Encapsulation (2) ● Encapsulation makes almost no change to original (or “inner”) IP header ■ TTL is decremented by 1 (as in a router) ● Outer IP header ■ Total length is length of entire encapsulated datagram ■ TOS (DSCP) copied from inner header ■ If DF flag is set in inner header, also set in outer ■ Protocol = 4 (IP) ■ Source address is address of encapsulator ■ Destination address is address of decapsulator ■ Optional header fields are generally not copied; others may be added 3

73 Mobile Networks: IP Addressing and Mobile IP 73 Special Forms of ARP ● Proxy ARP ■ An ARP reply sent by one node on behalf of another node ■ ARP reply includes proxy’s link-layer address ■ Future transmissions will be sent to the proxy ■ Home agent can proxy ARP for mobile node ● Gratuitous ARP ■ ARP request or reply sent in order to update ARP caches at other nodes ■ Nodes are required to update their caches ■ Home agent does gratuitous ARP to update ARP caches on local network after change in registration or deregistration ■ Mobile host does gratuitous ARP when it returns home 3

74 Mobile Networks: IP Addressing and Mobile IP 74 Route Optimization (1) ● “Triangle routing” in basic Mobile IP is inefficient ■ Traffic from correspondent host to mobile host traverses the network twice ● Route optimization allows home agent to notify correspondent node of new location of the mobile host ■ Requires enhanced capabilities at each correspondent node ■ Requires security association between home agent and correspondent node ● Route optimization approach is the only technique supported in IPv6 ■ IPv6 also uses only colocated care-of addresses

75 Mobile Networks: IP Addressing and Mobile IP 75 Tunnel Binding update Route Optimization (2) ACK Datagram 1 Mobile Host Datagram 2 Home Agent Foreign Agent Corresponding Host Binding Cache     

76 Mobile Networks: IP Addressing and Mobile IP 76 Summary ● IP addressing presents problems for mobile hosts ● Mobile IP is a solution for truly mobile operation ■ Home agents and foreign agents provide mobility support ■ Dynamic Host Configuration Protocol (DHCP), Network Address Translation (NAT), etc. can be used for nomadic operation ● Major operations ■ Agent discover ■ Registration ■ Datagram delivery through tunneling ● Route optimization and IPv6 offer improvements on basic Mobile IP


Download ppt "Lecture 9 Mobile Networks: IP Addressing and Mobile IP Wireless Networks and Mobile Systems."

Similar presentations


Ads by Google