Level 1: Bronze
A memorized definition. Not wrong, but it stops there.
TCP opens a connection by exchanging SYN, SYN-ACK and ACK.
3 stars If you are short on time, start with this one.
In one or two sentences
Before a connection opens, the client sends SYN, the server answers SYN and ACK, and the client sends ACK. Both sides confirm each other's starting sequence number and readiness.
Say it out loud, or type it below. What you type never leaves this device.
A memorized definition. Not wrong, but it stops there.
TCP opens a connection by exchanging SYN, SYN-ACK and ACK.
Correct, but too broad or missing context.
The client sends SYN, the server replies with SYN and ACK, and the client sends ACK to open the connection. That confirms both sides are ready to talk.
Reaches principle, use and trade-off, with words that invite the next question.
The point is to exchange the initial sequence number in each direction and confirm that the other side received it. With only two steps the server could not tell whether the client got its SYN and ACK, and an old delayed SYN could be mistaken for a new connection. The third ACK prevents that. The cost is one round trip before any data. Because the server holds a half open connection after SYN, a SYN flood is possible, and defenses such as SYN cookies exist.
These are likely next questions from an interviewer. Think of your answer first, then press the button.
1 / 3
Why does closing take four steps?
TCP closes each direction separately. One side sends FIN, but the other may still have data to send, so it sends its ACK and its own FIN separately.
2 / 3
Why does TIME_WAIT exist?
If the last ACK is lost, the side that closed first can still answer a retransmitted FIN. The wait also keeps late packets from an old connection from mixing into a new one.
3 / 3
What is a SYN cookie?
The server does not store the half open connection. It encodes the state in the sequence number of its SYN and ACK and checks the returning ACK to confirm the request was real.