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

Lessons

  1. 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. 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. 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

Module quiz

1. What does a port number identify?
2. A TCP segment carries bytes 2001 to 2500. What ACK number confirms it?
3. What does a sliding window allow that stop-and-wait does not?
4. Reno sees three duplicate ACKs when cwnd is 20. What is cwnd afterwards?
5. Why do three duplicate ACKs trigger a fast retransmit?
6. Two AIMD flows share a bottleneck. Why do their windows move towards equal shares?

‹ RoutingApplications, sockets and security ›