1 / 13

Other Methods of Dealing with Congestion

This outline discusses alternative methods of dealing with congestion in TCP networks, including New Reno, SACK, TCP Vegas, RED, and CS 640. It covers their motivations, mechanisms, and algorithms.

tjoy
Download Presentation

Other Methods of Dealing with Congestion

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Other Methods of Dealing with Congestion Outline New Reno SACK TCP Vegas RED CS 640

  2. Motivation for improving RENO • In real networks, packets area often transmitted in bursts • Thus, losses also often happen in bursts • Due to FIFO (drop tail) queues in routers • Problem with TCP RENO: Quits recovery even if new ACK after Fast Retransmit is not for ALL data transferred • Another drop triggers another dupack-based detection and fast recovery cycle, along with window-halving • When >2 losses, there may not be enough dupacks for loss detection and/or fast recovery  time out CS 640

  3. TCP New Reno • Simple observation… • Recognized that losses happen in bursts • Upon receipt of a partial ACK (ACK for some but not all outstanding data), retransmit next data packet in sequence • Same congestion control mechanism as RENO • But, do not avoid Fast Recovery on multiple drops • Enables recovery from multiple packet losses in sequence without timeout • Timeouts are still used… CS 640

  4. TCP SACK • Guess what? Losses do not always happen in bursts – sometimes things get a little crazy • How about telling the sender what has arrived (!) • Selective Acknowledgements (SACK) • Same congestion control mechanisms as TCP RENO • Uses TCP options fields • When out of order data arrives, tell sender (via SACK block) which block of data has been received • Enables sender to maintain image of receiver’s queue • Sender then resends all missing segments without waiting to timeout • Doesn’t send beyond CWND • When no old data needs to be resent, then send new data • Timeouts are still used… CS 640

  5. Congestion Avoidance • TCP’s strategy • control congestion once it happens • repeatedly increase load in an effort to find the point at which congestion occurs, and then back off • Alternative strategy • predict when congestion is about to happen • reduce rate before packets start being discarded • call this congestion avoidance, instead of congestion control • Two possibilities • host-centric: TCP Vegas • router-centric: RED Gateways CS 640

  6. TCP Vegas • Idea: source watches for some sign that router’s queue is building up and congestion will happen too; e.g., • RTT grows • sending rate flattens Congestion window Avg. source send rate Buffer space at router In shaded region we expect throughput to increase but it cannot increase beyond available bandwidth CS 640

  7. Vegas Algorithm • Vegas tries not to send at a rate that causes buffers to fill • Let BaseRTT be the minimum of all measured RTTs • If not overflowing the connection, then ExpectRate = CongestionWindow/BaseRTT Assume CWND = number of bytes in transit • Source calculates sending rate (ActualRate) once per RTT • Pick one packet per RTT, timestamp send/ACKreceive time and divides by number of bytes in transit • Source compares ActualRate with ExpectRate • Diff = ExpectedRate – ActualRate • if Diff < a • increase CongestionWindow linearly • else if Diff > b • decrease CongestionWindow linearly • Else • leave CongestionWindow unchanged CS 640

  8. Algorithm (cont) • Parameters • a = 1 buffer • b = 3 buffers Black line = actual rate Green line = expected rate Shaded = region between a and b Note: Linear decrease in Vegas does not violate AIMD since it Happens before packets loss CS 640

  9. Random Early Detection (RED) • Congestion notification is implicit • dropped packets indicate congestion • Could make explicit by marking the packet (ECN) • Current standard proposal for explicit notification (old method: DECbit) • Mark packet as queue gets full, reduce sending rate when marks are seen • Early random drop to force sources to back off • rather than wait for queue to become full, drop each arriving packet with some drop probability whenever the queue length exceeds some drop level CS 640

  10. MaxThreshold MinThreshold A vgLen RED Details • Compute average queue length AvgLen = (1 - Weight) * AvgLen + Weight * SampleLen 0 < Weight < 1 (usually 0.002) SampleLen is queue length each time a packet arrives (Exactly the same as the EWMA calculation for RTT) CS 640

  11. RED Details (cont) • Two queue length thresholds if AvgLen <= MinThreshold then enqueue the packet if MinThreshold < AvgLen < MaxThreshold then calculate probability P drop arriving packet with probability P if Maxhreshold <= AvgLen then drop arriving packet CS 640

  12. RED Details (cont) • Computing probability P TempP = MaxP * (AvgLen - MinThreshold)/ (MaxThreshold - MinThreshold) P = TempP/(1 - count * TempP) count = number of newly arriving packets while AvgLen has been between two thresholds (P increases with count) • Drop probability is a function of both AvgLen and how long it has been since the last drop. • TempP tracks how many newly arriving packets have been queued while AvgLen is between thresholds • Count is number of packets since last drop • This prevents clusters of drops CS 640

  13. P(drop) 1.0 MaxP A vgLen MinThresh MaxThresh RED (contd) • Thresholds are hard to determine • Drop Probability Curve • RED is good at keeping avg. queue size steady CS 640

More Related