Docsity

Congestion Control - Networking - Lecture Slides, Slides of Computer Networks

Partial preview of the text

Download Congestion Control - Networking - Lecture Slides and more Slides Computer Networks in PDF only on Docsity!

TCP: Congestion Control

Last Lecture

  • TCP Congestion control: the gory details

Today

  • Critically examining TCP
  • Advanced techniques

TCP State Machine

slow

start

congstn.

avoid.

fast

recovery

cwnd > ssthresh timeout dupACK= timeout dupACK= new ACK dupACK new ACK timeout new ACK

TCP State Machine

slow

start

congstn.

avoid.

fast

recovery

cwnd > ssthresh timeout dupACK= timeout dupACK= new ACK dupACK new ACK timeout new ACK

TCP Flavors

  • TCP-Tahoe
    • CWND =1 on triple dupACK
  • TCP-Reno
    • CWND =1 on timeout
    • CWND = CWND/2 on triple dupack
  • TCP-newReno
    • TCP-Reno + improved fast recovery
  • TCP-SACK
    • incorporates selective acknowledgements Our default assumption

Interoperability

  • How can all these algorithms coexist? Don’t we need a single,

uniform standard?

  • What happens if I’m using Reno and you are using Tahoe, and we try

to communicate?

TCP Throughput Equation

A A Simple Model for TCP Throughput

Loss

t

cwnd

RTT

W max 2 W max ½ Wmax RTTs between drops Avg. ¾ Wmax packets per RTTs

Implications (1): Different RTTs

  • Flows get throughput inversely proportional to RTT
  • TCP unfair in the face of heterogeneous RTTs! Throughput = 3 2 1 RTT p A A B B bottleneck link 100ms 200ms

Implications (2): High Speed TCP

  • Assume RTT = 100ms, MSS=1500bytes
  • What value of p is required to reach 100Gbps throughput
    • ~ 2 x 10-^12
  • How long between drops?
    • ~ 16.6 hours
  • How much data has been sent in this time?
    • ~ 6 petabits
  • These are not practical numbers! Throughput = 3 2 1 RTT p

Implications (3): Rate - based CC

  • TCP throughput is “choppy”
    • repeated swings between W/2 to W
  • Some apps would prefer sending at a steady rate
    • e.g., streaming apps
  • A solution: “Equation-Based Congestion Control”
    • ditch TCP’s increase/decrease rules and just follow the equation
    • measure drop percentage p , and set rate accordingly
  • Following the TCP equation ensures we’re “TCP friendly”
    • i.e., use no more than TCP does in similar setting Throughput = 3 2 1 RTT p

Other Limitations of TCP Congestion Control

(5) How do short flows fare?

  • 50% of flows have < 1500B to send; 80% < 100KB
  • Implication (1): short flows never leave slow start!
    • short flows never attain their fair share
  • Implication (2): too few packets to trigger dupACKs
    • Isolated loss may lead to timeouts
    • At typical timeout values of ~500ms, might severely impact

flow completion time

(6) TCP fills up queues  long delays

  • A flow deliberately overshoots capacity, until it experiences a drop
  • Means that delays are large for everyone
    • Consider a flow transferring a 10GB file sharing a bottleneck link with 10 flows transferring 100B