Lecture 17 Extra: The TCP Congestion Game

David Wetherall, CSE/EE 461 Autumn 2001.

These are the rules of the game by which we simulate TCP:

 

Stop and Wait.

Simulate this as a warm-up exercise. Notice the low link utilization (1 out of 4 clock ticks) and negligible queuing at the router. Graph router queuing versus time, with an X on top when there is packet loss. Graph number of acks versus time as a proxy for throughput (since sequence number is too hard to track).

 

Slow-Start

Blow out the queue until there is loss. Graph cwnd versus time too. Notice that many packets can be lost. Notice the bursts in transmission of at most 2x the bottleneck rate and the self-clocking effect in the acks.

 

AIMD

Go through a couple of rounds of the sawtooth with all the graphs as before. Carry a special object to signal each RTT round and hence cwnd increase. Notice the delay between loss and cwnd reduction. Notice the single packet loss. Notice the transmission pause after loss is observed.

 

—END—