CS268: Beyond TCP Congestion Control Kevin Lai February 4, 2003.

Slides:



Advertisements
Similar presentations
Congestion Control and Fairness Models Nick Feamster CS 4251 Computer Networking II Spring 2008.
Advertisements

A Comparison of Mechanisms for Improving TCP Performance over Wireless Links Published In IEEE/ACM TRANSACTIONS ON NETWORKING, VOL.5 NO.6,DECEMBER 1997.
1 Improving TCP Performance over Mobile Networks HALA ELAARAG Stetson University Speaker : Aron ACM Computing Surveys 2002.
Hui Zhang, Fall Computer Networking TCP Enhancements.
Congestion Control Created by M Bateman, A Ruddle & C Allison As part of the TCP View project.
TCP Congestion Control Dina Katabi & Sam Madden nms.csail.mit.edu/~dina 6.033, Spring 2014.
Networking TCP-DCR: Making TCP Robust to Non-Congestion Events Sumitha Bhandarkar A. L. Narasimha Reddy
CS 268: Lecture 7 (Beyond TCP Congestion Control) Ion Stoica Computer Science Division Department of Electrical Engineering and Computer Sciences University.
Router-assisted congestion control Lecture 8 CS 653, Fall 2010.
CS268: Beyond TCP Congestion Control Ion Stoica February 9, 2004.
Advanced Computer Networking Congestion Control for High Bandwidth-Delay Product Environments (XCP Algorithm) 1.
Congestion Control An Overview -Jyothi Guntaka. Congestion  What is congestion ?  The aggregate demand for network resources exceeds the available capacity.
XCP: Congestion Control for High Bandwidth-Delay Product Network Dina Katabi, Mark Handley and Charlie Rohrs Presented by Ao-Jan Su.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Informal Quiz #07 Shivkumar Kalyanaraman: GOOGLE: “Shiv RPI”
Congestion Control for High Bandwidth-Delay Product Networks Dina Katabi, Mark Handley and Charlie Rohrs SIGCOMM2002 Pittsburgh Presenter – Bob Kinicki.
Internet Networking Spring 2003 Tutorial 12 Limited Transmit RFC 3042 Long Thin Networks RFC 2757.
Congestion Control Tanenbaum 5.3, /12/2015Congestion Control (A Loss Based Technique: TCP)2 What? Why? Congestion occurs when –there is no reservation.
CS 268: Wireless Transport Protocols Kevin Lai Feb 13, 2002.
Comparison between TCPWestwood and eXplicit Control Protocol (XCP) Jinsong Yang Shiva Navab CS218 Project - Fall 2003.
Reliable Transport Layers in Wireless Networks Mark Perillo Electrical and Computer Engineering.
L13: Sharing in network systems Dina Katabi Spring Some slides are from lectures by Nick Mckeown, Ion Stoica, Frans.
1 A Comparison of Mechanisms for Improving TCP Performance over Wireless Links Course : CS898T Instructor : Dr.Chang - Swapna Sunkara.
Congestion Control for High Bandwidth-delay Product Networks Dina Katabi, Mark Handley, Charlie Rohrs.
Congestion Control for High Bandwidth-Delay Product Environments Dina Katabi Mark Handley Charlie Rohrs.
CIS 725 Wireless networks. Low bandwidth High error rates.
CS640: Introduction to Computer Networks Aditya Akella Lecture 22 - Wireless Networking.
Spring 2000Nitin BahadurAdvanced Computer Networks A Comparison of Mechanisms for Improving TCP Performance over Wireless Links By: Hari B., Venkata P.
3: Transport Layer3b-1 Principles of Congestion Control Congestion: r informally: “too many sources sending too much data too fast for network to handle”
Transport Layer 4 2: Transport Layer 4.
Network Technologies essentials Week 8: TCP congestion control Compilation made by Tim Moors, UNSW Australia Original slides by David Wetherall, University.
Wireless TCP Prasun Dewan Department of Computer Science University of North Carolina
CSE 461 University of Washington1 Topic How TCP implements AIMD, part 1 – “Slow start” is a component of the AI portion of AIMD Slow-start.
Advance Computer Networking L-6 TCP & Routers Acknowledgments: Lecture slides are from the graduate level Computer Networks course thought by Srinivasan.
Transport over Wireless Networks Myungchul Kim
EE 122: Congestion Control and Avoidance Kevin Lai October 23, 2002.
Congestion Control for High Bandwidth-Delay Product Networks D. Katabi (MIT), M. Handley (UCL), C. Rohrs (MIT) – SIGCOMM’02 Presented by Cheng.
TCP with Variance Control for Multihop IEEE Wireless Networks Jiwei Chen, Mario Gerla, Yeng-zhong Lee.
Wireless TCP. References r Hari Balakrishnan, Venkat Padmanabhan, Srinivasan Seshan and Randy H. Katz, " A Comparison of Mechanisms for Improving TCP.
Analysis of TCP Latency over Wireless Links Supporting FEC/ARQ-SR for Error Recovery Raja Abdelmoumen, Mohammad Malli, Chadi Barakat PLANETE group, INRIA.
TCP-Cognizant Adaptive Forward Error Correction in Wireless Networks
Improving TCP Performance over Wireless Networks
Challenges to Reliable Data Transport Over Heterogeneous Wireless Networks.
15-744: Computer Networking L-18 Mobile Transport and Applications.
1 CS 4396 Computer Networks Lab TCP – Part II. 2 Flow Control Congestion Control Retransmission Timeout TCP:
Transport Layer3-1 Chapter 3 outline r 3.1 Transport-layer services r 3.2 Multiplexing and demultiplexing r 3.3 Connectionless transport: UDP r 3.4 Principles.
Jennifer Rexford Fall 2014 (TTh 3:00-4:20 in CS 105) COS 561: Advanced Computer Networks TCP.
TCP OVER ADHOC NETWORK. TCP Basics TCP (Transmission Control Protocol) was designed to provide reliable end-to-end delivery of data over unreliable networks.
Ασύρματες και Κινητές Επικοινωνίες Ενότητα # 11: Mobile Transport Layer Διδάσκων: Βασίλειος Σύρης Τμήμα: Πληροφορικής.
XCP: eXplicit Control Protocol Dina Katabi MIT Lab for Computer Science
TeXCP: Protecting Providers’ Networks from Unexpected Failures & Traffic Spikes Dina Katabi MIT - CSAIL nms.csail.mit.edu/~dina.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Congestion Control 0.
Peer-to-Peer Networks 13 Internet – The Underlay Network
1 Wireless TCP KAIST CS644 Advanced Topics in Networking Jeonghoon Mo School of Engineering Information and Communications University.
CS 268: Lecture 5 (TCP Congestion Control) Ion Stoica February 4, 2004.
Transmission Control Protocol (TCP) TCP Flow Control and Congestion Control CS 60008: Internet Architecture and Protocols Department of CSE, IIT Kharagpur.
Congestion Control for High Bandwidth-Delay Product Networks Dina Katabi, Mark Handley, Charlie Rohrs Presented by Yufei Chen.
1 Flow & Congestion Control Some slides are from lectures by Nick Mckeown, Ion Stoica, Frans Kaashoek, Hari Balakrishnan, and Sam Madden Prof. Dina Katabi.
TCP over Wireless PROF. MICHAEL TSAI 2016/6/3. TCP Congestion Control (TCP Tahoe) Only ACK correctly received packets Congestion Window Size: Maximum.
Chapter 3 outline 3.1 transport-layer services
Introduction to Congestion Control
CS 268: Lecture 6 Scott Shenker and Ion Stoica
Router-Assisted Congestion Control
Wireless Transport.
TCP Congestion Control
TCP, XCP and Fair Queueing
CS268: Beyond TCP Congestion Control
TCP Congestion Control
Review of Internet Protocols Transport Layer
Lecture 6, Computer Networks (198:552)
Impact of transmission errors on TCP performance
Presentation transcript:

CS268: Beyond TCP Congestion Control Kevin Lai February 4, 2003

2 TCP Problems  When TCP congestion control was originally designed in 1988: -Maximum link bandwidth: 10Mb/s -Users were mostly from academic and government organizations (i.e., well-behaved) -Almost all links were wired (i.e., negligible error rate)  Thus, current problems with TCP: -High bandwidth-delay product paths -Selfish users -Wireless (or any high error links)

3 High Bandwidth-Delay Product Paths  Motivation -10Gb/s links now common in Internet core as a result of Wave Division Multiplexing (WDM), link bandwidth 2x/9 months -Some users have access to and need for 10Gb/s end-to-end e.g., very large scientific, financial databases -Satellite/Interplanetary links have a high delay  Problems -slow start -Additive increase, multiplicative decrease (AIMD)  Congestion Control for High Bandwidth-Delay Product Networks. Dina Katabi, Mark Handley, and Charlie Rohrs. Proceedings on ACM Sigcomm 2002.

4 Slow Start  TCP throughput controlled by congestion window (cwnd) size  In slow start, window increases exponentially, but may not be enough  example: 10Gb/s, 200ms RTT, 1460B payload, assume no loss -Time to fill pipe: 18 round trips = 3.6 seconds -Data transferred until then: 382MB -Throughput at that time: 382MB / 3.6s = 850Mb/s -8.5% utilization  not very good  Loose only one packet  drop out of slow start into AIMD (even worse)

5 AIMD  In AIMD, cwnd increases by 1 packet/ RTT  Available bandwidth could be large -e.g., 2 flows share a 10Gb/s link, one flow finishes  available bandwidth is 5Gb/s -e.g., suffer loss during slow start  drop into AIMD at probably much less than 10Gb/s  time to reach 100% utilization is proportional to available bandwidth -e.g., 5Gb/s available, 200ms RTT, 1460B payload  17,000s

6 Simulation Results Round Trip Delay (sec) Avg. TCP Utilization Bottleneck Bandwidth (Mb/s) Avg. TCP Utilization Shown analytically in [Low01] and via simulations 50 flows in both directions Buffer = BW x Delay RTT = 80 ms 50 flows in both directions Buffer = BW x Delay BW = 155 Mb/s

7 Proposed Solution: Decouple Congestion Control from Fairness Example: In TCP, Additive-Increase Multiplicative- Decrease (AIMD) controls both Coupled because a single mechanism controls both How does decoupling solve the problem? 1.To control congestion: use MIMD which shows fast response 2.To control fairness: use AIMD which converges to fairness

8 Characteristics of Solution 1.Improved Congestion Control (in high bandwidth-delay & conventional environments): Small queues Almost no drops 2.Improved Fairness 3.Scalable (no per-flow state) 4.Flexible bandwidth allocation: min-max fairness, proportional fairness, differential bandwidth allocation,…

9 XCP: An eXplicit Control Protocol 1. Congestion Controller 2. Fairness Controller

10 Feedback Round Trip Time Congestion Window Congestion Header Feedback Round Trip Time Congestion Window How does XCP Work? Feedback = packet

11 Feedback = packet Round Trip Time Congestion Window Feedback = packet How does XCP Work?

12 Congestion Window = Congestion Window + Feedback Routers compute feedback without any per-flow state How does XCP Work? XCP extends ECN and CSFQ

13 How Does an XCP Router Compute the Feedback? Congestion Controller Fairness Controller Goal: Divides  between flows to converge to fairness Looks at a flow’s state in Congestion Header Algorithm: If  > 0  Divide  equally between flows If  < 0  Divide  between flows proportionally to their current rates MIMD AIMD Goal: Matches input traffic to link capacity & drains the queue Looks at aggregate traffic & queue Algorithm: Aggregate traffic changes by   ~ Spare Bandwidth  ~ - Queue Size So,  =  d avg Spare -  Queue

14  =  d avg Spare -  Queue Theorem: System converges to optimal utilization (i.e., stable) for any link bandwidth, delay, number of sources if: (Proof based on Nyquist Criterion) Details Congestion Controller Fairness Controller No Parameter Tuning No Parameter Tuning Algorithm: If  > 0  Divide  equally between flows If  < 0  Divide  between flows proportionally to their current rates Need to estimate number of flows N RTT pkt : Round Trip Time in header Cwnd pkt : Congestion Window in header T: Counting Interval No Per-Flow State No Per-Flow State

15 Bottleneck S1S1 S2S2 R 1, R 2, …, R n SnSn Subset of Results Similar behavior over:

16 Avg. Utilization XCP Remains Efficient as Bandwidth or Delay Increases Bottleneck Bandwidth (Mb/s)Round Trip Delay (sec) Utilization as a function of Delay XCP increases proportionally to spare bandwidth  and  chosen to make XCP robust to delay Utilization as a function of Bandwidth

17 XCP Shows Faster Response than TCP XCP shows fast response! Start 40 Flows Stop the 40 Flows

18 XCP is Fairer than TCP Flow ID Different RTT Same RTT Avg. Throughput Flow ID Avg. Throughput (RTT is 40 ms 330 ms )

19 XCP Summary  XCP -Outperforms TCP -Efficient for any bandwidth -Efficient for any delay -Scalable (no per flow state)  Benefits of Decoupling -Use MIMD for congestion control which can grab/release large bandwidth quickly -Use AIMD for fairness which converges to fair bandwidth allocation

20 Selfish Users  Motivation -Many users would sacrifice overall system efficiency for more performance -Even more users would sacrifice fairness for more performance -Users can modify their TCP stacks so that they can receive data from a normal server at an un-congestion controlled rate.  Problem -How to prevent users from doing this? -General problem: How to design protocols that deal with lack of trust?  TCP Congestion Control with a Misbehaving Receiver. Stefan Savage, Neal Cardwell, David Wetherall and Tom Anderson. ACM Computer Communications Review, pp , v 29, no 5, October,  Robust Congestion Signaling. David Wetherall, David Ely, Neil Spring, Stefan Savage and Tom Anderson. IEEE International Conference on Network Protocols, November 2001

21 Ack Division  Receiver sends multiple, distinct acks for the same data  Max: one for each byte in payload  Smart sender can determine this is wrong

22 Optimistic Acking  Receiver acks data it hasn’t received yet  No robust way for sender to detect this on its own

23 Solution: Cumulative Nonce  Sender sends random number (nonce) with each packet  Receiver sends cumulative sum of nonces  if receiver detects loss, it sends back the last nonce it received  Why cumulative?

24 ECN  Explicit Congestion Notification -Router sets bit for congestion -Receiver should copy bit from packet to ack -Sender reduces cwnd when it receives ack  Problem: Receiver can clear ECN bit -or increase XCP feedback  Solution: Multiple unmarked packet states -Sender uses multiple unmarked packet states -Router sets ECN mark, clearing original unmarked state -Receiver returns packet state in ack receiver must guess original state to unmark packet

25 ECN  Receiver must either return ECN bit or guess nonce  More nonce bits  less likelihood of cheating -1 bit is sufficient

26 Selfish Users Summary  TCP allows selfish users to subvert congestion control  Adding a nonce solves problem efficiently -must modify sender and receiver  Many other protocols not designed with selfish users in mind, allow selfish users to lower overall system efficiency and/or fairness -e.g., BGP

27 Wireless  Wireless connectivity proliferating -Satellite, line-of-sight microwave, line-of-sight laser, cellular data (CDMA, GPRS, 3G), wireless LAN (802.11a/b), Bluetooth -More cell phones than currently allocated IP addresses  Wireless  non-congestion related loss -signal fading: distance, buildings, rain, lightning, microwave ovens, etc.  Non-congestion related loss  -reduced efficiency for transport protocols that depend on loss as implicit congestion signal (e.g. TCP)

28 Problem Time (s) Sequence number (bytes) TCP Reno (280 Kbps) Best possible TCP with no errors (1.30 Mbps) 2 MB wide-area TCP transfer over 2 Mbps Lucent WaveLAN (from Hari Balakrishnan)

29 Solutions  Modify transport protocol  Modify link layer protocol  Hybrid

30 Modify Transport Protocol  Explicit Loss Signal -Distinguish non-congestion losses -Explicit Loss Notification (ELN) [BK98] -If packet lost due to interference, set header bit -Only needs to be deployed at wireless router -Need to modify end hosts -How to determine loss cause? -What if ELN gets lost?

31 Modify Transport Protocol  TCP SACK -TCP sends cumulative ack only  cannot distinguish multiple losses in a window -Selective acknowledgement: indicate exactly which packets have not been received -Allows filling multiple “holes” in window in one RTT -Quick recovery from a burst of wireless losses -Still causes TCP to reduce window

32 Modify Link Layer  How does IP convey reliability requirements to link layer? -not all protocols are willing to pay for reliability -Read IP TOS header bits(8)? must modify hosts -TCP = 100% reliability, UDP = doesn’t matter? what about other degrees? -consequence of lowest common denominator IP architecture  Link layer retransmissions -Wireless link adds seq. numbers and acks below the IP layer -If packet lost, retransmit it -May cause reordering -Causes at least one additional link RTT delay -Some applications need low delay more than reliability e.g. IP telephony -easy to deploy

33 Modify Link Layer  Forward Error Correction (FEC) codes -k data blocks, use code to generate n>k coded blocks -can recover original k blocks from any k of the n blocks -n-k blocks of overhead -trade bandwidth for loss -can recover from loss in time independent of link RTT useful for links that have long RTT (e.g. satellite) -pay n-k overhead whether loss or not need to adapt n, k depending on current channel conditions

34 Hybrid  Indirect TCP [BB95] -Split TCP connection into two parts -regular TCP from fixed host (FH) to base station -modified TCP from base station to mobile host (MH) -base station fails? -wired path faster than wireless path?  TCP Snoop [BSK95] -Base station snoops TCP packets, infers flow -cache data packets going to wireless side -If dup acks from wireless side, suppress ack and retransmit from cache -soft state -what about non-TCP protocols? -what if wireless not last hop?

35 Conclusion  Transport protocol modifications not deployed -SACK was deployed because of general utility  Cellular, b -link level retransmissions b: acks necessary anyway in MAC for collision avoidance -additional delay is only a few link RTTs (<5ms)  Satellite -FEC because of long RTT issues  Link layer solutions give adequate, predictable performance, easily deployable