15-744: Computer Networking

Slides:



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

TCP and Congestion Control
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.
CS640: Introduction to Computer Networks Mozafar Bag-Mohammadi Lecture 3 TCP Congestion Control.
Computer Networking Lecture 17 – TCP & Congestion Control Dejian Ye, Liu Xin.
Router Buffer Sizing and Reliability Challenges in Multicast Aditya Akella 02/28.
Computer Networks: TCP Congestion Control 1 TCP Congestion Control Lecture material taken from “Computer Networks A Systems Approach”, Fourth Edition,Peterson.
School of Information Technologies TCP Congestion Control NETS3303/3603 Week 9.
Transport Layer 3-1 Fast Retransmit r time-out period often relatively long: m long delay before resending lost packet r detect lost segments via duplicate.
Computer Networks: TCP Congestion Control 1 TCP Congestion Control Lecture material taken from “Computer Networks A Systems Approach”, Third Ed.,Peterson.
15-744: Computer Networking L-10 Congestion Control.
Lecture 18 – TCP Performance
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
TCP Congestion Control TCP sources change the sending rate by modifying the window size: Window = min {Advertised window, Congestion Window} In other words,
Computer Networking Lecture 16 – TCP & Congestion Control Copyright ©, Carnegie Mellon University.
Computer Networks : TCP Congestion Control1 TCP Congestion Control.
1 Chapter 3 Transport Layer. 2 Chapter 3 outline 3.1 Transport-layer services 3.2 Multiplexing and demultiplexing 3.3 Connectionless transport: UDP 3.4.
Computer Networking Lecture 19 – TCP Performance.
Advanced Computer Networks: TCP Congestion Control 1 TCP Congestion Control Lecture material taken from “Computer Networks A Systems Approach”, Fourth.
TCP Congestion Control
Computer Networking Lecture 17 – TCP Performance Dejian Ye, Liu Xin.
CS540/TE630 Computer Network Architecture Spring 2009 Tu/Th 10:30am-Noon Sue Moon.
Advance Computer Networking
Univ. of TehranComputer Network1 Computer Networks Computer Networks (Graduate level) University of Tehran Dept. of EE and Computer Engineering By: Dr.
Computer Networking TCP (cont.). Lecture 16: Overview TCP congestion control TCP modern loss recovery TCP interactions TCP options TCP.
Lecture 9 – More TCP & Congestion Control
CS640: Introduction to Computer Networks Aditya Akella Lecture 15 TCP – III Reliability and Implementation Issues.
Computer Networking Lecture 18 – More TCP & Congestion Control.
1 CS 4396 Computer Networks Lab TCP – Part II. 2 Flow Control Congestion Control Retransmission Timeout TCP:
CS640: Introduction to Computer Networks Aditya Akella Lecture 15 TCP – III Reliability and Implementation Issues.
TCP Congestion Control 컴퓨터공학과 인공지능 연구실 서 영우. TCP congestion control2 Contents 1. Introduction 2. Slow-start 3. Congestion avoidance 4. Fast retransmit.
CS 268: Computer Networking L-4 TCP. 2 This Lecture: Congestion Control Congestion Control Assigned Reading [Chiu & Jain] Analysis of Increase and Decrease.
CS640: Introduction to Computer Networks Aditya Akella Lecture 15 TCP Congestion Control.
@Yuan Xue A special acknowledge goes to J.F Kurose and K.W. Ross Some of the slides used in this lecture are adapted from their.
Computer Networking Lecture 8 – TCP & Congestion Control.
Other Methods of Dealing with Congestion
Lecture 17 – TCP & Congestion Control
CS450 – Introduction to Networking Lecture 19 – Congestion Control (2)
15-744: Computer Networking
Topics discussed in this section:
Chapter 3 outline 3.1 transport-layer services
Chapter 6 TCP Congestion Control
Introduction to Congestion Control
Transport Layer (Part 3)
Chapter 3 outline 3.1 Transport-layer services
TCP and Congestion Control(2)
Advance Computer Networking
TCP - Part II Relates to Lab 5. This is an extended module that covers TCP flow control, congestion control, and error control in TCP.
Flow and Congestion Control
Lecture 19 – TCP Performance
15-744: Computer Networking
So far, On the networking side, we looked at mechanisms to links hosts using direct linked networks and then forming a network of these networks. We introduced.
15-744: Computer Networking
Other Methods of Dealing with Congestion
15-744: Computer Networking
Other Methods of Dealing with Congestion
Chapter 6 TCP Congestion Control
COMP/ELEC 429/556 Introduction to Computer Networks
CS640: Introduction to Computer Networks
State Transition Diagram
If both sources send full windows, we may get congestion collapse
TCP Congestion Control
EE 122: Lecture 10 (Congestion Control)
15-744: Computer Networking
Transport Layer: Congestion Control
Chapter 3 outline 3.1 Transport-layer services
Computer Networking TCP.
TCP flow and congestion control
TCP: Transmission Control Protocol Part II : Protocol Mechanisms
Presentation transcript:

15-744: Computer Networking L-4 TCP

This Lecture: Congestion Control Assigned Reading [Chiu & Jain] Analysis of Increase and Decrease Algorithms for Congestion Avoidance in Computer Networks [Jacobson and Karels] Congestion Avoidance and Control

Introduction to TCP Communication abstraction: Reliable Ordered Point-to-point Byte-stream Full duplex Flow and congestion controlled Protocol implemented entirely at the ends Fate sharing Sliding window with cumulative acks Ack field contains last in-order packet received Duplicate acks sent when out-of-order packet received

Key Things You Should Know Already Port numbers TCP/UDP checksum Sliding window flow control Sequence numbers TCP connection setup TCP reliability Timeout Data-driven

Van Jacobson’s algorithms Evolution of TCP 1984 Nagel’s algorithm to reduce overhead of small packets; predicts congestion collapse 1975 Three-way handshake Raymond Tomlinson In SIGCOMM 75 1987 Karn’s algorithm to better estimate round-trip time 1990 4.3BSD Reno fast retransmit delayed ACK’s 1983 BSD Unix 4.2 supports TCP/IP 1986 Congestion collapse observed 1988 Van Jacobson’s algorithms congestion avoidance and congestion control (most implemented in 4.3BSD Tahoe) 1974 TCP described by Vint Cerf and Bob Kahn In IEEE Trans Comm 1982 TCP & IP RFC 793 & 791 1975 1980 1985 1990

TCP Through the 1990s 1993 1994 1996 1994 T/TCP (Braden) Transaction SACK TCP (Floyd et al) Selective Acknowledgement 1993 TCP Vegas (Brakmo et al) real congestion avoidance 1994 ECN (Floyd) Explicit Congestion Notification 1996 Hoe Improving TCP startup 1996 FACK TCP (Mathis et al) extension to SACK 1993 1994 1996

Overview Congestion sources and collapse Congestion control basics TCP congestion control TCP modeling

Congestion Different sources compete for resources inside network 10 Mbps 100 Mbps 1.5 Mbps Different sources compete for resources inside network Why is it a problem? Sources are unaware of current state of resource Sources are unaware of each other In many situations will result in < 1.5 Mbps of throughput (congestion collapse)

Causes & Costs of Congestion Four senders – multihop paths Timeout/retransmit Q: What happens as rate increases?

Causes & Costs of Congestion When packet dropped, any “upstream transmission capacity used for that packet was wasted!

Congestion Collapse Definition: Increase in network load results in decrease of useful work done Many possible causes Spurious retransmissions of packets still in flight Classical congestion collapse How can this happen with packet conservation Solution: better timers and TCP congestion control Undelivered packets Packets consume resources and are dropped elsewhere in network Solution: congestion control for ALL traffic

Other Congestion Collapse Causes Fragments Mismatch of transmission and retransmission units Solutions Make network drop all fragments of a packet (early packet discard in ATM) Do path MTU discovery Control traffic Large percentage of traffic is for control Headers, routing messages, DNS, etc. Stale or unwanted packets Packets that are delayed on long queues “Push” data that is never used

Where to Prevent Collapse? Can end hosts prevent problem? Yes, but must trust end hosts to do right thing E.g., sending host must adjust amount of data it puts in the network based on detected congestion Can routers prevent collapse? No, not all forms of collapse Doesn’t mean they can’t help Sending accurate congestion signals Isolating well-behaved from ill-behaved sources

Congestion Control and Avoidance A mechanism which: Uses network resources efficiently Preserves fair network resource allocation Prevents or avoids collapse Congestion collapse is not just a theory Has been frequently observed in many networks

Overview Congestion sources and collapse Congestion control basics TCP congestion control TCP modeling

Objectives Simple router behavior Distributedness Efficiency: Xknee = Sxi(t) Fairness: (Sxi)2/n(Sxi2) Power: (throughputa/delay) Convergence: control system must be stable

Basic Control Model Let’s assume window-based control Reduce window when congestion is perceived How is congestion signaled? Either mark or drop packets When is a router congested? Drop tail queues – when queue is full Average queue length – at some threshold Increase window otherwise Probe for available bandwidth – how?

Linear Control Many different possibilities for reaction to congestion and probing Examine simple linear controls Window(t + 1) = a + b Window(t) Different ai/bi for increase and ad/bd for decrease Supports various reaction to signals Increase/decrease additively Increased/decrease multiplicatively Which of the four combinations is optimal?

Phase plots Simple way to visualize behavior of competing connections over time Fairness Line User 2’s Allocation x2 Efficiency Line User 1’s Allocation x1

Phase plots What are desirable properties? What if flows are not equal? Fairness Line Overload User 2’s Allocation x2 Optimal point Underutilization Efficiency Line User 1’s Allocation x1

Additive Increase/Decrease Both X1 and X2 increase/decrease by the same amount over time Additive increase improves fairness and additive decrease reduces fairness Fairness Line T1 User 2’s Allocation x2 T0 Efficiency Line User 1’s Allocation x1

Multiplicative Increase/Decrease Both X1 and X2 increase by the same factor over time Extension from origin – constant fairness Fairness Line T1 User 2’s Allocation x2 T0 Efficiency Line User 1’s Allocation x1

Convergence to Efficiency Fairness Line xH User 2’s Allocation x2 Efficiency Line User 1’s Allocation x1

Distributed Convergence to Efficiency xH Efficiency Line Fairness Line User 1’s Allocation x1 User 2’s Allocation x2 a=0 b=1

Convergence to Fairness Fairness Line xH User 2’s Allocation x2 xH’ Efficiency Line User 1’s Allocation x1

Convergence to Efficiency & Fairness Fairness Line xH User 2’s Allocation x2 xH’ Efficiency Line User 1’s Allocation x1

Increase xL Fairness Line User 2’s Allocation x2 Efficiency Line

Constraints Distributed efficiency Must never decrease fairness I.e.,  Window(t+1) >  Window(t) during increase ai > 0 & bi ≥ 1 Similarly, ad < 0 & bd ≤ 1 Must never decrease fairness a & b’s must be ≥ 0 ai/bi > 0 and ad/bd ≥ 0 Full constraints ad = 0, 0 ≤ bd < 1, ai > 0 and bi ≥ 1

What is the Right Choice? Constraints limit us to AIMD Can have multiplicative term in increase (MAIMD) AIMD moves towards optimal point x0 x1 x2 Efficiency Line Fairness Line User 1’s Allocation x1 User 2’s Allocation x2

Overview Congestion sources and collapse Congestion control basics TCP congestion control TCP modeling

TCP Congestion Control Motivated by ARPANET congestion collapse Underlying design principle: packet conservation At equilibrium, inject packet into network only when one is removed Basis for stability of physical systems Why was this not working? Connection doesn’t reach equilibrium Spurious retransmissions Resource limitations prevent equilibrium

TCP Congestion Control - Solutions Reaching equilibrium Slow start Eliminates spurious retransmissions Accurate RTO estimation Fast retransmit Adapting to resource availability Congestion avoidance

TCP Congestion Control Changes to TCP motivated by ARPANET congestion collapse Basic principles AIMD Packet conservation Reaching steady state quickly ACK clocking

AIMD Distributed, fair and efficient Packet loss is seen as sign of congestion and results in a multiplicative rate decrease Factor of 2 TCP periodically probes for available bandwidth by increasing its rate Rate Time

Implementation Issue Operating system timers are very coarse – how to pace packets out smoothly? Implemented using a congestion window that limits how much data can be in the network. TCP also keeps track of how much data is in transit Data can only be sent when the amount of outstanding data is less than the congestion window. The amount of outstanding data is increased on a “send” and decreased on “ack” (last sent – last acked) < congestion window Window limited by both congestion and buffering Sender’s maximum window = Min (advertised window, cwnd)

Congestion Avoidance If loss occurs when cwnd = W Upon receiving ACK Network can handle 0.5W ~ W segments Set cwnd to 0.5W (multiplicative decrease) Upon receiving ACK Increase cwnd by (1 packet)/cwnd What is 1 packet?  1 MSS worth of bytes After cwnd packets have passed by  approximately increase of 1 MSS Implements AIMD

Congestion Avoidance Sequence Plot Sequence No Packets Acks Time

Congestion Avoidance Behavior Window Time Cut Congestion Window and Rate Packet loss + Timeout Grabbing back Bandwidth

Packet Conservation At equilibrium, inject packet into network only when one is removed Sliding window and not rate controlled But still need to avoid sending burst of packets  would overflow links Need to carefully pace out packets Helps provide stability Need to eliminate spurious retransmissions Accurate RTO estimation Better loss recovery techniques (e.g. fast retransmit)

TCP Packet Pacing Congestion window helps to “pace” the transmission of data packets In steady state, a packet is sent when an ack is received Data transmission remains smooth, once it is smooth Self-clocking behavior Pb Pr Sender Receiver As Ar Ab

Reaching Steady State Doing AIMD is fine in steady state but slow… How does TCP know what is a good initial rate to start with? Should work both for a CDPD (10s of Kbps or less) and for supercomputer links (10 Gbps and growing) Quick initial phase to help get up to speed (slow start)

Slow Start Packet Pacing How do we get this clocking behavior to start? Initialize cwnd = 1 Upon receipt of every ack, cwnd = cwnd + 1 Implications Window actually increases to W in RTT * log2(W) Can overshoot window and cause packet loss

Slow Start Example 1 One RTT 0R 2 1R 3 4 2R 5 6 7 8 3R 9 10 11 12 13 One pkt time 0R 2 1R 3 4 2R 5 6 7 8 3R 9 10 11 12 13 14 15

Slow Start Sequence Plot . Sequence No Packets Acks Time

Return to Slow Start If packet is lost we lose our self clocking as well Need to implement slow-start and congestion avoidance together When timeout occurs set ssthresh to 0.5w If cwnd < ssthresh, use slow start Else use congestion avoidance

TCP Saw Tooth Behavior Congestion Window Time Timeouts may still occur Slowstart to pace packets Fast Retransmit and Recovery Initial Slowstart

How to Change Window When a loss occurs have W packets outstanding New cwnd = 0.5 * cwnd How to get to new state?

Fast Recovery Each duplicate ack notifies sender that single packet has cleared network When < cwnd packets are outstanding Allow new packets out with each new duplicate acknowledgement Behavior Sender is idle for some time – waiting for ½ cwnd worth of dupacks Transmits at original rate after wait Ack clocking rate is same as before loss

Sent for each dupack after Fast Recovery Sent for each dupack after W/2 dupacks arrive Sequence No X Time

Overview Congestion sources and collapse Congestion control basics TCP congestion control TCP modeling

TCP Modeling Given the congestion behavior of TCP can we predict what type of performance we should get? What are the important factors Loss rate Affects how often window is reduced RTT Affects increase rate and relates BW to window RTO Affects performance during loss recovery MSS Affects increase rate

Overall TCP Behavior Let’s concentrate on steady state behavior with no timeouts and perfect loss recovery Window Time

Simple TCP Model Some additional assumptions Fixed RTT No delayed ACKs In steady state, TCP losses packet each time window reaches W packets Window drops to W/2 packets Each RTT window increases by 1 packetW/2 * RTT before next loss BW = MSS * avg window/RTT = MSS * (W + W/2)/(2 * RTT) .75 * MSS * W / RTT

Simple Loss Model What was the loss rate? BW = .75 * MSS * W / RTT Packets transferred between losses = Avg BW * time = (.75 W/RTT) * (W/2 * RTT) = 3W2/8 1 packet lost  loss rate = p = 8/3W2 W = sqrt( 8 / (3 * loss rate)) BW = .75 * MSS * W / RTT BW = MSS / (RTT * sqrt (2/3p))

TCP Friendliness What does it mean to be TCP friendly? TCP is not going away Any new congestion control must compete with TCP flows Should not clobber TCP flows and grab bulk of link Should also be able to hold its own, i.e. grab its fair share, or it will never become popular How is this quantified/shown? Has evolved into evaluating loss/throughput behavior If it shows 1/sqrt(p) behavior it is ok But is this really true?

TCP Performance Can TCP saturate a link? Congestion control Increase utilization until… link becomes congested React by decreasing window by 50% Window is proportional to rate * RTT Doesn’t this mean that the network oscillates between 50 and 100% utilization? Average utilization = 75%?? No…this is *not* right!

TCP Congestion Control Rule for adjusting W If an ACK is received: W ← W+1/W If a packet is lost: W ← W/2 Only W packets may be outstanding Source Dest t Window size

Single TCP Flow Router without buffers

Summary Unbuffered Link W Minimum window for full utilization t The router can’t fully utilize the link If the window is too small, link is not full If the link is full, next window increase causes drop With no buffer it still achieves 75% utilization

TCP Performance In the real world, router queues play important role Window is proportional to rate * RTT But, RTT changes as well the window Window to fill links = propagation RTT * bottleneck bandwidth If window is larger, packets sit in queue on bottleneck link

TCP Performance If we have a large router queue  can get 100% utilization But, router queues can cause large delays How big does the queue need to be? Windows vary from W  W/2 Must make sure that link is always full W/2 > RTT * BW W = RTT * BW + Qsize Therefore, Qsize > RTT * BW Ensures 100% utilization Delay? Varies between RTT and 2 * RTT

Single TCP Flow Router with large enough buffers for full link utilization

Summary Buffered Link W Minimum window for full utilization Buffer t With sufficient buffering we achieve full link utilization The window is always above the critical threshold Buffer absorbs changes in window size Buffer Size = Height of TCP Sawtooth Minimum buffer size needed is 2T*C This is the origin of the rule-of-thumb

Example 10Gb/s linecard Memory technologies Requires 300Mbytes of buffering. Read and write 40 byte packet every 32ns. Memory technologies DRAM: require 4 devices, but too slow. SRAM: require 80 devices, 1kW, $2000. Problem gets harder at 40Gb/s Hence RLDRAM, FCRAM, etc.

Rule-of-thumb Rule-of-thumb makes sense for one flow Typical backbone link has > 20,000 flows Does the rule-of-thumb still hold?

If flows are synchronized t Aggregate window has same dynamics Therefore buffer occupancy has same dynamics Rule-of-thumb still holds.

If flows are not synchronized Probability Distribution B Buffer Size

Central Limit Theorem CLT tells us that the more variables (Congestion Windows of Flows) we have, the narrower the Gaussian (Fluctuation of sum of windows) Width of Gaussian decreases with Buffer size should also decreases with

Required buffer size Simulation

Important Lessons How does TCP implement AIMD? Sliding window, slow start & ack clocking How to maintain ack clocking during loss recovery  fast recovery Modern TCP loss recovery Why are timeouts bad? How to avoid them?  fast retransmit, SACK How does TCP fully utilize a link? Role of router buffers

Next Lecture Fair-queueing Assigned reading [Demers, Keshav, Shenker] Analysis and Simulation of a Fair Queueing Algorithm [Stoica, Shenker, Zhang] Core-Stateless Fair Queueing: Achieving Approximately Fair Bandwidth Allocations in High Speed Networks*

TCP Vegas Slow Start ssthresh estimation via packet pair Only increase every other RTT Tests new window size before increasing © Srinivasan Seshan, 2004 L -5; 10-15-04

Packet Pair What would happen if a source transmitted a pair of packets back-to-back? Spacing of these packets would be determined by bottleneck link Basis for ack clocking in TCP What type of bottleneck router behavior would affect this spacing Queuing scheduling © Srinivasan Seshan, 2004 L -5; 10-15-04

Packet Pair FIFO scheduling Fair queuing Unlikely that another flows packet will get inserted in-between Packets sent back-to-back are likely to be queued/forwarded back-to-back Spacing will reflect link bandwidth Fair queuing Router alternates between different flows Bottleneck router will separate packet pair at exactly fair share rate © Srinivasan Seshan, 2004 L -5; 10-15-04

Packet Pair in Practice Most Internet routers are FIFO/Drop-Tail Easy to measure link bandwidths Bprobe, pathchar, pchar, nettimer, etc. How can this be used? NewReno and Vegas use it to initialize ssthresh Prevents large overshoot of available bandwidth Want a high estimate – otherwise will take a long time in linear growth to reach desired bandwidth © Srinivasan Seshan, 2004 L -5; 10-15-04

TCP Vegas Congestion Avoidance Only reduce cwnd if packet sent after last such action Reaction per congestion episode not per loss Congestion avoidance vs. control Use change in observed end-to-end delay to detect onset of congestion Compare expected to actual throughput Expected = window size / round trip time Actual = acks / round trip time © Srinivasan Seshan, 2004 L -5; 10-15-04

TCP Vegas Fine grain timers Allows packets to be retransmitted earlier Check RTO every time a dupack is received or for “partial ack” If RTO expired, then re-xmit packet Standard Reno only checks at 500ms Allows packets to be retransmitted earlier Not the real source of performance gain Allows retransmission of packet that would have timed-out Small windows/loss of most of window Real source of performance gain Shouldn’t comparison be against NewReno/SACK © Srinivasan Seshan, 2004 L -5; 10-15-04

TCP Vegas Flaws Sensitivity to delay variation Paper did not do great job of explaining where performance gains came from Some ideas have been incorporated into more recent implementations Overall Some very intriguing ideas Controversies killed it © Srinivasan Seshan, 2004 L -5; 10-15-04

Changing Workloads New applications are changing the way TCP is used 1980’s Internet Telnet & FTP  long lived flows Well behaved end hosts Homogenous end host capabilities Simple symmetric routing 2000’s Internet Web & more Web  large number of short xfers Wild west – everyone is playing games to get bandwidth Cell phones and toasters on the Internet Policy routing How to accommodate new applications? © Srinivasan Seshan, 2004 L -5; 10-15-04

Binomial Congestion Control In AIMD Increase: Wn+1 = Wn +  Decrease: Wn+1 = (1- ) Wn In Binomial Increase: Wn+1 = Wn + /Wnk Decrease: Wn+1 = Wn -  Wnl k=0 & l=1  AIMD l < 1 results in less than multiplicative decrease Good for multimedia applications © Srinivasan Seshan, 2004 L -5; 10-15-04

Binomial Congestion Control Rate ~ 1/ (loss rate)1/(k+l+1) If k+l=1  rate ~ 1/p0.5 TCP friendly if l ≤ 1 AIMD (k=0, l=1) is the most aggressive of this class Good for applications that want to probe quickly and can use any available bandwidth © Srinivasan Seshan, 2004 L -5; 10-15-04

TCP Friendly Rate Control (TFRC) Equation 1 – real TCP response 1st term corresponds to simple derivation 2nd term corresponds to more complicated timeout behavior Is critical in situations with > 5% loss rates  where timeouts occur frequently Key parameters RTO RTT Loss rate © Srinivasan Seshan, 2004 L -5; 10-15-04

RTO/RTT Estimation Not used to actually determine retransmissions Used to model TCP’s extremely slow transmission rate in this mode Only important when loss rate is high Accuracy is not as critical Different TCP’s have different RTO calculation Clock granularity critical 500ms typical, 100ms, 200ms, 1s also common RTO = 4 * RTT is close enough for reasonable operation EWMA RTT RTTn+1 = (1-)RTTn + RTTSAMP © Srinivasan Seshan, 2004 L -5; 10-15-04

Loss Estimation Loss event rate vs. loss rate Characteristics Should work well in steady loss rate Should weight recent samples more Should increase only with a new loss Should decrease only with long period without loss Possible choices Dynamic window – loss rate over last X packets EWMA of interval between losses Weighted average of last n intervals Last n/2 have equal weight © Srinivasan Seshan, 2004 L -5; 10-15-04

Loss Estimation Dynamic windows has many flaws Difficult to chose weight for EWMA Solution WMA Choose simple linear decrease in weight for last n/2 samples in weighted average What about the last interval? Include it when it actually increases WMA value What if there is a long period of no losses? Special case (history discounting) when current interval > 2 * avg © Srinivasan Seshan, 2004 L -5; 10-15-04

Congestion Avoidance Loss interval increases in order to increase rate Primarily due to the transmission of new packets in current interval History discounting increases interval by removing old intervals .14 packets per RTT without history discounting .22 packets per RTT with discounting Much slower increase than TCP Decrease is also slower 4 – 8 RTTs to halve speed © Srinivasan Seshan, 2004 L -5; 10-15-04

NewReno Changes Send a new packet out for each pair of dupacks Adapt more gradually to new window Will not halve congestion window again until recovery is completed Identifies congestion events vs. congestion signals Initial estimation for ssthresh

Rate Halving Recovery Sent after every other dupack Sequence No X Time

Delayed Ack Impact TCP congestion control triggered by acks If receive half as many acks  window grows half as fast Slow start with window = 1 Will trigger delayed ack timer First exchange will take at least 200ms Start with > 1 initial window Bug in BSD, now a “feature”/standard