Transport: TCP, reliability and congestion
Ports and the choice between UDP and TCP, the three-way handshake, sliding windows with Go-Back-N and Selective Repeat, and how TCP slows down on congestion.
About 6 hours of study
Learning objectives
- Choose between UDP and TCP and read sequence and ACK numbers
- Compare Go-Back-N and Selective Repeat
- Follow slow start, congestion avoidance and AIMD
Lessons
- 1
UDP and TCP: ports and connections
How the transport layer reaches the right program with port numbers, what UDP leaves out, and how TCP builds a reliable byte stream with a three-way handshake.
- 2
Reliable delivery: Go-Back-N and Selective Repeat Advanced
Sequence numbers, ACKs and timeouts make delivery reliable; sliding windows make it fast. Compare how Go-Back-N and Selective Repeat recover from a loss.
- 3
TCP congestion control Advanced
How TCP senders share a busy network: the congestion window, slow start, additive increase and multiplicative decrease, and how Tahoe and Reno react to a loss.
Module practice
- Write the handshakeEasy
- Cut a message into segmentsMedium
- Duplicate ACKs and fast retransmitHard
- Stop-and-wait utilisationEasy
- Stop-and-wait with lossesMedium
- Counting Go-Back-N transmissionsHard
- Rounds of slow startEasy
- The congestion windowMedium
- Two flows share a linkHard