Transport Layer: TCP and UDP
The transport layer carries data between two programs, not just two machines. It uses ports to tell programs apart, and it offers two main choices: TCP, which is reliable and ordered, and UDP, which is light and fast but promises nothing. This is the most asked part of networking: TCP against UDP, the three-way handshake, how a connection closes, and how TCP slows down when the network is crowded.
After this section you can compare TCP and UDP, trace the handshake with real sequence numbers, explain flow control against congestion control, and give the common port numbers.
Topics in this section
- Ports and sockets
- TCP against UDP
- Three-way handshake
- Closing a connection
- Reliability, timeout and fast retransmit
- Flow control and congestion control