Documente Academic
Documente Profesional
Documente Cultură
Virendra S Shekhawat
Department of Computer Science and Information Systems
BITS Pilani
Pilani Campus
Agenda
TCP Performance Over Wireless Links
[CH-30]
Reading
A Comparison of Mechanisms for Improving TCP Performance over
Wireless Links by H Balakrishnan
Web Reference
http://daedalus.cs.berkeley.edu/publications/sigcomm96.pdf
[CH-31, Ch-32]
Reading
3
First Sem 2015-16
Performance Degradation
Sequence number (bytes)
2.0E+06
Best possible
TCP with no errors
(1.30 Mbps)
1.5E+06
TCP Reno
(280 Kbps)
1.0E+06
5.0E+05
0.0E+00
0
10
20
30
40
50
60
Time (s)
2 MB wide-area TCP transfer over 2 Mbps Lucent WaveLAN
First Sem 2015-16
Proposed Solutions
End-to-End protocols
Selective ACKs, Explicit Loss Notification (ELN),
Selective Acknowledgement
Split-connection protocols
Separate connections for wired path and wireless hop
Trick TCP into doing right thing e.g. send extra dupacks
Wired link
Wireless link
7
First Sem 2015-16
Wireless link
8
First Sem 2015-16
Split-Connection Congestion
Window
60000
Wired connection
Wireless connection
50000
40000
30000
20000
10000
0
20
40
60
80
100
120
Time (sec)
Wired connection does not shrink congestion window
But wireless connection times out often, causing sender to stall
9
First Sem 2015-16
Wireless link
ARQ/FEC
10
First Sem 2015-16
Key ideas
No transport level code in base station
When node moves to different base station, state
eventually recreated there
Snoop Protocol: CH to MH
4
6
Correspondent
Host
Snoop Agent
Base Station
Mobile Host
12
BITS Pilani, Pilani Campus
Snoop Protocol: CH to MH
6
Snoop Agent
3
5
21
4
Correspondent
Host
Base Station
Mobile Host
Snoop Protocol: CH to MH
6
Snoop Agent
5
4
Correspondent
Host
Base Station
Mobile Host
Transfer begins
14
First Sem 2015-16
Snoop Protocol: CH to MH
4
6
Correspondent
Host
Snoop Agent
Base Station
Mobile Host
15
First Sem 2015-16
Snoop Protocol: CH to MH
4
6
Correspondent
Host
Snoop Agent
3
Base Station
Mobile Host
1
Lost Packets
Packet 1 is Lost
16
First Sem 2015-16
Snoop Protocol: CH to MH
5
Snoop Agent
4
3
2
ack 0
Correspondent
Host
Base Station
Mobile Host
1
Lost Packets
Packet 1 is Lost
Duplicate ACKs generated
17
First Sem 2015-16
Snoop Protocol: CH to MH
6
Snoop Agent
6
4
3
2
ack 0
Correspondent
Host
Base Station
ack 0
Mobile Host
1
Lost Packets
Packet 1 is Lost
Duplicate ACKs generated
Snoop Protocol: CH to MH
6
Snoop Agent
6
1
4
3
2
ack 4
Correspondent
Host
Base Station
ack 0
Mobile Host
19
First Sem 2015-16
Snoop Protocol: CH to MH
6
Snoop Agent
6
1
4
3
2
ack 5
Correspondent
Host
Base Station
Mobile Host
ack 4
20
First Sem 2015-16
Snoop Protocol: CH to MH
6
ack 4
Correspondent
Host
Snoop Agent
6 5
1
4
3
2
ack 6
Base Station
Mobile Host
ack 5
21
First Sem 2015-16
Snoop Protocol: CH to MH
9
Snoop Agent
8
Correspondent
Host ack 5
Base Station
ack 6
6 5
1
4
3
2
Mobile Host
Performance: FH to MH
1.6
1.4
Throughput (Mbps)
Snoop+SACK
1.2
Snoop
SPLIT-SACK
TCP SACK
0.8
SPLIT
0.6
Snoop+SACK
and Snoop
perform best
TCP SACK
performance
disappointing
TCP Reno
0.4
0.2
0
0
500
1000
1500
2000
2500
23
Summary
End-to-end schemes, while not as effective as local
techniques in handling wireless losses
But no extra support is required
Next
What is Mobility?
Why we need Mobility?
IP Mobility Solutions (Routing Solutions)
Ethernet
IP Routing
Mobile IP
25
First Sem 2015-16
Introduction
Mobility in wireless networks refers to a node, Mobile Node
(MN), changing its point of attachment to the network while
its communication to the network remains uninterrupted
Host Mobility
Movement of a node
Network Mobility
Movement of a network
Personal Mobility
Movement of users rather than devices
Session Mobility
Mobility between two terminals
26
First Sem 2015-16
Multi-homing
Devices starts using different attachment point
e.g. 3G, WiFi
Migration
VM migration
Fail-over
Backup -Primary
27
First Sem 2015-16
Requirements of Mobility
Efficient Handoff
Location management
Security
Efficient Routing
A mobility scheme is said to be scalable if its performance does not drop as the number of nodes
(MNs and CNs) increases.
Fault Tolerance
Simultaneous Mobility
Compatibility with IP Routing
Link layer Independence
Transparency
Packets should be routed with the latency as low as possible, optimally close to the shortest path
provided by IP routing.
Scalability
If a mobile host offers services to other nodes, it must be able to be located by these nodes as it
moves as well as keeping the privacy of its topological location.
29
QoS
Handling Mobility
Change Address of Mobile Node
Change the mapping of name to address
Mobility is a directory problem
30
First Sem 2015-16
Interface addresses
Addresses refer to interfaces (adaptors)
Not the host, or the service
31
First Sem 2015-16
IP Mobility
IP address changes as the mobile device moves
and changes its point of attachment
Problem:
Active TCP connections break
Can DNS solve it?
Too slow: new IP address might be unknown to clients that
want to access the mobile node
32
First Sem 2015-16
Routing Solutions
Ethernet
MAC learning of the new location
IP routing
Inject IP address(es) at new location
Mobile IP
Stationary home agent directs traffic to new
location
33
First Sem 2015-16
Ethernet
Ethernet handles mobility
IP address and MAC address stay the same
Switches learn to route to the new location
Disadvantages
Ethernet does not scale
Long paths, state per MAC address, flooding,
IP Routing
Node has a persistent address (e.g., 15.30.40.7)
Injected into routing protocol (e.g., OSPF)
15.30.40.0/24
15.30.40.7
36
Disadvantages
Does not scale to large number of mobile hosts
More routing-protocol messages
Larger routing tables to store smaller address
blocks
First Sem 2015-16
37
Advanced Computer Networks CS G525
37
Mobile IP[1]
MN
HA
Home Subnet
Foreign Subnet
MN
CN
FA
38
Mobile IP[2]: MN to CN
Communication
MN
HA
Home Subnet
Foreign Subnet
MN
CN
FA
39
24
checksum
=9
code = 0
=9
16
standard
ICMP fields
router address
type = 16
length
registration lifetime
sequence #
RBHFMGV
bits
reserved
0 or more care-ofaddresses
mobility agent
advertisement
extension
40
Advanced Computer Networks CS G525
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
.
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
.
registration reply
time
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
.
41
First Sem 2015-16
Problem: MN to CN
Communication
The IP address of the MN is topologically incorrect
inside the foreign network (remember MN keeps
fixed IP)
Firewall in foreign network may prevent packets
from being transmitted with topologically incorrect
source address
Solution: Reverse tunneling
Establish a topologically correct reverse tunnel from CoA
to HA
Outgoing packets tunneled to the HN and then routed to
the CN
42
First Sem 2015-16
MN
HA
Home Subnet
Foreign Subnet
MN
CN
FA
43
Mobile IP[3]
Advantages
Seamless to the remote end-point
No routing-protocol overhead
Disadvantages
Overhead of running home and foreign agents
Inefficient triangle routing (high stretch)
Foreign agent sends spoofed IP source address
44
First Sem 2015-16
Enhancements-Efficient Routing
Problem: Triangular Routing in Mobile IPv4
Solution:
HA informs the CN about the location of MN
CN caches the current COA of the MN for some time
CN directly tunnels packets to COA, instead of using HA
Problem: Security issues
45
First Sem 2015-16
Smooth Handover
Problem: MN moves from one FA to another
Cached COA (at CN or HA) is outdated
Solution:
The new FA sends a binding update to the old FA
The old FA forwards remaining packets to new FA and releases
resources for the MN
If the old FA receives packets for an MN, but it is not its
current FA, it can send a binding warning to the sender of the
packet
46
First Sem 2015-16
47
Mobile IPv6
No FA needed
IPv6 has auto configuration (a node can assign itself
a topologically valid IPv6 address composed from
the network address and its MAC address)
Use auto configuration to get a topologically correct
COA
Packets are sent with COA as source address
COA is the current source address of the MN in the
foreign network
No firewall problems
48
First Sem 2015-16
Need of Mobility
Increasing demand for seamless IP mobility
E.g., continue a VoIP call while on the train
E.g., virtual machine migration within and between
data centers
Mobile IP in practice
50
First Sem 2015-16
Thank You!
51
First Sem 2015-16