300 likes | 524 Views
Study of TCP Performance over Mobile Networks. Outline. Problems with TCP Class of solutions Review some of the proposals Snoop – TCP I – TCP End To End Protocols References. Traditional TCP. Assume congestion to be the primary cause for packet losses and unusual delays
E N D
Outline • Problems with TCP • Class of solutions • Review some of the proposals • Snoop – TCP • I – TCP • End To End Protocols • References
Traditional TCP • Assume congestion to be the primary cause for packet losses and unusual delays • Invoke congestion control and avoidance algorithms, resulting in significant degraded end-to-end performance and very high interactive delays
Wireless Networks • Communication characterized by • sporadic high bit-error rates (10-4 to 10-6) • disconnections • intermittent connectivity due to handoffs • low bandwidth
FH BS1 BS2 MH MH Mobile Networks Topology FH – Fixed Host BS – Base Station MH – Mobile Host
TCP Performance with BER “HALA ELAARAG” - “Improving TCP Performance over Mobile Networks” – “ACM Computing Surveys, Vol. 34, N0 3, Sep 2002, pp 357-374”
Classification of Schemes • End-to-End protocols • loss recovery handled by sender • Link-layer solutions • hide link-related losses from sender • TCP sender may not be fully shielded • Split-connection approaches • hide any non-congestion related losses from TCP sender • since the problem is local, solve it locally
End-to-End Protocols • Make the sender realize some losses are due to bit-error, not congestion. • Sender avoid invoking congestion control algorithms if non-congestion related losses occur. • E.g. Reno, New-Reno, SACK
Link-Layer Protocols • Hides the characteristics of the wireless link from the transport layer and tries to solve the problem at the link layer • Uses technique like forward error correction (FEC) • Snoop, AIRMAIL(Asymmetric Reliable Mobile Access In Link-layer)
Link-layer Protocols • Pros: • The wireless link is made more reliable • Doesn’t change the semantics of TCP • Fits naturally into the layered structure of network protocols • Cons: • If the wireless link is very lossy, sender times-out waiting for ACK, and congestion control algorithm starts
antenna Split Connection Proposals • Split the TCP connection into two separate connections. • 1st connection: sender to base station • 2nd connection: base station to receiver • The base station simply copies packets between the connections in both directions.
Split Connection • Pros: • Sender shielded from wireless link. • Better throughput can be achieved by fine tuning the wireless protocol link. • Cons: • Violates the semantics of TCP • Extra copying at the Base station.
Classification of Schemes End to End Split Connection Link layer Reno SACK AIRMAIL Snoop New-Reno I-TCP M-TCP
Improving TCP/IP Performance Over Wireless Networks Authors: Hari Balakrishnan, Srinivasan Seshan, Elan Amir and Randy H. Katz In Proc. 1st ACM Int’l Conf. on Mobile Computing and Networking (Mobicom), November 95.
Snoop-TCP • A (snoop) layer is added to the routing code at BS which keep track of packets in both directions • Packets meant to MH are cached at BS, and if needed, retransmitted in the wireless link • BS suppress DUPACKs sent from MH to FH • BS use shorter local timer for local timeout
Snoop-TCP • Changes are restricted to BS and optionally to MH as well • E2E TCP semantics is preserved
Snoop Performance Poisson Distributed bit error model. Max. Bandwidth – 2Mbps
Snoop connection behavior Error rate: 3.9x10-6 (A bit error every 256 Kbits on Average) Aggregate bandwidth: Snoop – 1Mbps, TCP – 0.25 Mbps Sequence numbers of the received TCP packets versus time
I-TCP: Indirect TCP for Mobile Hosts Ajay Bakre, B.R. Badrinath Proceedings of the 15th International Conference on distributed Computing Systems (ICDCS '95) - 1995 IEEE
I-TCP – LAN Performance Normal and overlapped – effective reaction to high BER.Non-Overlapped – No congestion avoidance algorithm.
I-TCP • Disadvantages • End-to-end semantics is not followed • MSR sends an ack to the correspondent but loses the packet to the mobile host • Copying overhead at MSR • Conclusion • I-TCP particularly suited for applications which are throughput intensive
Slow Start Receiver Sender • Sender starts by transmitting 1 segment • On receiving Ack, congestion window is set to 2. • On receiving Acks, congestion window is doubled. • Continues until Timeout occurs • After ssthresh, the sender increases its window size by 1/[current_window] on receiving Ack. (Congestion Avoidance phase)
Fast Retransmission Uses Duplicate Ack to retransmit Sender Receiver Packet Loss Dup ACK 1 Dup ACK 2 Dup ACK 3 Retransmits without waiting for timeout.
Fast Recovery • After Fast retransmit, perform congestion avoidance instead of slow start. • Why? • Duplicate ACK indicates that there are still data flowing between the two ends → Network resources are still available. • TCP does not want to reduce the flow abruptly by going into slow start.
End to End Protocols • Tahoe: Original TCP • Slow start, Congestion avoidance, Fast retransmit • Reno: TCP Tahoe + Fast Recovery • Significant Improvement - single packet loss. • Suffers when multiple packets are dropped. • New-Reno: Reno + Stay in Fast Recovery • The first non-duplicate ACK but not the expected one. • SACK: Reno + SACK option • When multiple packets are dropped “FALL, K. AND FLOYD, S.” – “Simulation based comparisons of Tahoe, Reno, and SACK TCP” - “ACM Computer Communication Review 1996”
Packet Loss Scenario • Tahoe • Fast Retransmission • ssthresh = 0.5 x current window size • congestion window = 1 • Reno, New-Reno and SACK • Fast Retransmission • Fast Recovery • congestion window = 0.5 x current window size + 3 x segment size • Increase window size by 1 on receiving a dup ACK
References • Ayangolu, Paul, S., LaPorta, T., Sabnani, K., Gitlin, R. “AIRMAIL: A Link Layer Protocol for Wireless Networks,” Wireless Networks, vol. 1, pp. 47-60, 1995. • “BAKRE, A. AND BARDINATH, B. R” – “Implementation and Performance Evaluation of Indirect TCP” – “1997 - IEEE Transactions on Computers 46, 3,260–278” • “BROWN, K. AND SINGH, S” – “M-TCP: TCP for mobile cellular networks” – “1997 - Computer Communication Review, July, 19–43”
References (contd.) • “H. Balakrishnan, V. N. Padmanabhan, S. Seshan, and R. H. Katz” - “A Comparison of Mechanisms for Improving TCP Performance over Wireless links” – “IEEE Trans. on Networking, vol. 5, no. 6, Dec. 1997”. • “Hari Balakrishnan, Srinivasan Seshan, Elan Amir and Randy H. Katz” – “Improving TCP/IP Performance over Wireless Networks” – “In Proc. 1st ACM Int’l Conf. on Mobile Computing and Networking (Mobicom), November 95” • “FALL, K. AND FLOYD, S.” – “Simulation based comparisons of Tahoe, Reno, and SACK TCP” - “ACM Computer Communication Review 1996, 26, 3, 5–21” • “HALA ELAARAG” - “Improving TCP Performance over Mobile Networks” – “ACM Computing Surveys, Vol. 34, N0 3, Sep 2002, pp 357-374”