SME
Computer Networks · Problem type
The TCP handshake
Use this for “Put the segments that open, use and close a TCP connection in order.”
Put in order
Put the steps of a TCP connection, from opening to closing, in order.
1
?
2
?
3
?
4
?
5
?
6
?
Assumptions
•
x and y are the client’s and the server’s starting sequence numbers, each picked at random.
•
SYN and FIN each use up one sequence number, so the reply acknowledges x + 1 or y + 1.
•
Each side closes its own direction, so closing takes a FIN and an ACK each way.
Topic check
See what you know: 5 questions on this topic
New questions each time. Pass to mark it complete.
Related lessons
TCP/IP
Main lesson
Split a block into subnets
Use this for “Split a /24 block into 5 equal subnets. What is their prefix, and how many hosts does each hold?”
Throughput limited by the window
Use this for “A TCP connection has a 64 KiB window and a 50 ms round-trip time. What is its highest throughput?”
Sequence and acknowledgment numbers
Use this for “A segment with sequence number 1000 carries 500 bytes. What acknowledgment number does the receiver send?”