Internetworking Outline Internetworking by IP Routing Global Internet Multicast.
TSIN02 - Internetworking fileTSIN02 - Internetworking 4 Mobile IP - Introduction Wireless...
Transcript of TSIN02 - Internetworking fileTSIN02 - Internetworking 4 Mobile IP - Introduction Wireless...
TSIN02 - Internetworking
© 2004 Image Coding Group, Linköpings Universitet
Lecture 9: Mobile IPLiterature:
● Forouzan ch.27
● Article: Mobile IP by Charles E. Perkins, IEEE Communications Magazine,Vol. 40 , Issue: 5 , May 2002, Pages:66 - 82
● Article: IP multimedia services: analysis of mobile IP and SIP interactions in 3G networks by Faccin, S.M.; Lalwaney, P.; Patil, B.Communications Magazine, IEEE ,Volume: 42 , Issue: 1 , Jan. 2004, Pages:113 - 120
TSIN02 - Internetworking
2
Lecture 9: Mobile IPGoals:
●
●
●
●
●
TSIN02 - Internetworking
3
Lecture 9: Mobile IP
Outline:
● Mobile IP - Introduction
● Addressing
● Agents
● Three Phases
– Agent discovery
– Registration
– Data transfer● Inefficiency
TSIN02 - Internetworking
4
Mobile IP - Introduction
Wireless connections to the Internet are now common.
– 802.x series– Bluetooth– GPRS– 3G
Mobility is sometimes a desired feature. This means that sessions are transferred between network access points “on-the-fly”.
TSIN02 - Internetworking
5
Addressing
The IP addresses are designed The IP addresses are designed to work with stationary to work with stationary
hosts because part of the address hosts because part of the address defines the network to defines the network to
which the host is attached.which the host is attached.
TSIN02 - Internetworking
6
Addressing cont.
Possible solutions:● Keep IP-address and update routing tables.
Not realistic to update all routers every time a host moves to a new network.
● Get a new IP-address. This requires that configuration files are changed, the computer must be rebooted, DNS tables need to be revised and any ongoing transmission will be interrupted.
● Two addresses:
– Home address– Care-of address
TSIN02 - Internetworking
7
Host Routing Example● Host 2 moves from home link to foreign link
– How many routing changes?– How robust?
TSIN02 - Internetworking
8
Host address and Care-of Address
In Mobile IP two addresses are needed to communicate with the mobile host: the In Mobile IP two addresses are needed to communicate with the mobile host: the home address and the care-of address. The home address is permanent; the home address and the care-of address. The home address is permanent; the care-of address is the address of the “closest router” and depends on the network care-of address is the address of the “closest router” and depends on the network to which the mobile node is connected. to which the mobile node is connected.
THIS DIFFERS FROM THE BOOK!!!THIS DIFFERS FROM THE BOOK!!!
TSIN02 - Internetworking
9
Agents
The change of address should be transparent to the rest of the Internet. This is achieved through the use of agents:
● A home agent – acts on behalf of the mobile host.● A foreign agent – handles the connection between the
mobile host and its home agent.
Sometimes the mobile host can act as a foreign agent (co-located care-of address)
TSIN02 - Internetworking
10
Home Agent and Foreign Agent
TSIN02 - Internetworking
11
Three Phases
These three phases describes how to communicate with a remote host:
1) Agent discovery – the mobile host needs to discover the addresses of both home and foreign agent.
2) Registration – update information stored by home and foreign agents
3) Data transfer
TSIN02 - Internetworking
12
Agent Advertisement
TSIN02 - Internetworking
13
Agent Advertisement cont.
Description of the fields:● Type (8 bits) - set to 16
● Length (8 bits) – total length of extention message
● Sequence number
● Lifetime (16 bits) – How frequent the agent sends advertisments
● Code (8 bits)
● List of care-of addresses
Bit Meaning 0 Registration required 1 Agent busy 2 Agent acts as home agent 3 Agent acts as foreign agent 4 Agent uses minimal encapsulation 5 Agent uses generic routing encapsulation 6 Agent supports header compression 7 Unused
TSIN02 - Internetworking
14
Agent Solicitation Message● Sent by mobile nodes● Request for Agent Advertisement messages● Agents are required to respond directly by sending
Agent Advertisements● Used when Agent Advertisement messages are not
transmitted frequently enough, for example if the mobile node is moving quickly between foreign networks.
TSIN02 - Internetworking
15
Movement detection● A mobile node assumes that it has been moved if:
– No Agent Advertisement message is received from the current foreign agent in the last Lifetime seconds (advertisements should be sent approximately three times per Lifetime seconds).
– An Agent Advertisement is received from a foreign agent with a network prefix different from the current foreign agent.
TSIN02 - Internetworking
16
What if no advertisements are found?● If the mobile node is connected but receives no Agent
Advertisements, even after sending repeated Agent Solicitations, it can:
– A: Hope that it is connected to it home network. This can be tested by sending an ICMP Echo Request to its default router.
– B: If A fails, assume connection to a foreign link and try DHCP (Dynamic Host Configuration Protocol)
– C: If A and B fail: Ask user for manual configuration– Otherwise connection has failed (not a mobile IP
problem)
TSIN02 - Internetworking
17
Router Advertisement Message
TSIN02 - Internetworking
18
Registration
There are four aspects of registration. The mobile agent must:
● Register with the foreign agent
● Register with the home agent
● Renew registration if expired
● Cancel registration when returning home
TSIN02 - Internetworking
19
Registration Request and Reply
TSIN02 - Internetworking
20
Registration Request Format
Sent using UDP port 434
TSIN02 - Internetworking
21
Registration reply format
Sent using UDP port 434
TSIN02 - Internetworking
22
When should a mobile node register?● When it has been moved● When foreign agent has rebooted● When current registration is due to expire.
TSIN02 - Internetworking
23
To where is the registration sent?
Finding the correct link layer address for the registration is somewhat difficult.
● Home link: the Address Resolution Protocol is used.● Foreign links: ARP cannot be used. If it is, the mobile
node's home address would be placed in other local nodes' ARP caches. Instead the foreign agents link layer address is taken from the Link Layer Source Address field of the Agent Advertisement
● In the case of collocated c/o-address the same method that gave the c/o-address can be used to find the IP address of default router. Then ARP can be used.
TSIN02 - Internetworking
24
How to find the Home Agent address
Generally the mobile node is configured with its home agent address, home address, network prefix etc.
If it is not, the following procedure can be used:● The mobile node sends a registration request to the
broadcast address of its home network. This is relayed by the foreign agent (if it exists).
● The request is broadcast on the home network, requiring all home agents to respond with a “Unknown home agent address” message.
● The mobile node collects all replies and learns the addresses of all available home agents, allowing normal registration.
TSIN02 - Internetworking
25
Data Transfer
TSIN02 - Internetworking
26
Data Transfer cont.
1) From remote host to home agent
2) From home agent to foreign agent
3) From foreign agent to mobile host
4) From mobile host to remote host
Not very efficient!
TSIN02 - Internetworking
27
Double Crossing
TSIN02 - Internetworking
28
Triangle Routing
TSIN02 - Internetworking
29
Home agent packet interception
The home agent must intercept packets bound for absent mobile nodes
● Proxy ARP is used by the home agent● When the mobile nodes registeres on a foreign link,
the home agent sends gratuitous ARPs to flush local ARP caches
● In the same way, when the mobile node returns home, it must also send gratuitous ARPs.
TSIN02 - Internetworking
30
Mobile IP v6● There is no need for foreign agents in MIPv6 since
there are plenty of addresses available.● MIPv6 supports route optimization
– Both care-of address and home address are sent along with the message so that the remote host can use the care-of address for direct transmission.
● Message overhead have been reduced
TSIN02 - Internetworking
31
Mobile IP in 3G Networks
There are two dominating 3G networks:
GPRS/UMTS (Specified by 3GPP)The mobile host gets IP connectivity through a GGSN which provides the
care-of address.
MIP is not explicitly supported, but can be used to support mobility in multi-access networks.
CDMA2000 (Specified by 3GPP2)Here a PDSN (Packet Data Switching Node) provides the link between the
radio network and the Internet.
MIPv4 is deployed, MIPv6 is only partly supported.
TSIN02 - Internetworking
32
SIP and Mobile IP
The Session Initiation Protocol (SIP) has been chosen for the support of IP multimedia subsystems (IMS) in both 3GPP and 3GPP2 (VoIP, streaming...).
In 3GPP IPv6 is used for IMS.
Both IPv4 and IPv6 are allowed for IMS in 3GPP2 networks.
SIP also supports mobility.
TSIN02 - Internetworking
33
SIP and MIPv4
When a mobile host connects to an IPv4 network, NATs are needed to connect to a IPv6 SIP infrastructure.
With SIP, the packet payload also needs modification by the NAT. This requires an ALG, since NATs normally does not modify the payload.
There are some routing issues that makes IMS services over MIPv4 complex and inefficient.
TSIN02 - Internetworking
34
SIP and MIPv6
At SIP registration an IP address is provided.
When Mobile IP is used, there are two addresses available, home address and care-of address
The home address should be used for SIP communication to make the changes in IP addresses transparent to applications.
The care-of address should be used for SIP signaling to avoid tunneling
TSIN02 - Internetworking
35
Closing remarks● MIPv4 has been a standard for some years● MIPv6 is not yet a standard● The interworking of SIP and MIP has not yet been
standardized.