TCP handshake, sequence numbers and orderly closing

Follow one connection from its opening numbers to its orderly close, and see why a random starting number and a waiting closer both protect the data. Transport protocols · Computer networks.

Two computers must agree where their byte streams start, and the one that hangs up first has to linger afterwards. Follow the numbers through a connection's opening, a message and its closing to find out why.

What you will learn

  • Say why each end picks its own starting number and how the handshake exchanges them
  • Compute the SEQ and ACK of a segment from the bytes already sent
  • Explain which end waits after an orderly close, and what the wait protects against

Lesson outline

  1. Agreeing where to start
  2. The handshake
  3. Numbering the data
  4. Closing one direction at a time
  5. Why the closer waits
  6. Who closes first

17 minutes · 5 scenes · 0 predict checks · 10 quiz questions

The full lesson is available with Premium.