Questions: TCP Connection Establishment (Three-Way Handshake)

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

Consider replacing TCP's three-way handshake with a two-way handshake: the client sends SYN, and the server responds with SYN-ACK — after which the connection is considered established. What critical problem would this create?

AThe server would not receive the client's initial sequence number
BThe client would have no way to send data without a third message
CThe server's initial sequence number would be unacknowledged — the server has no confirmation that the client received the SYN-ACK and is ready to communicate
DTwo-way handshakes require more retransmissions and are therefore slower
Question 2 Multiple Choice

A server receives a SYN segment, sends SYN-ACK, and then receives RST from the client instead of ACK. What most likely happened?

AThe client intentionally aborted a new connection request
BA stale SYN segment from a previous, long-closed connection arrived at the server after a network delay
CThe server's SYN-ACK contained an incorrect sequence number
DThe client ran out of ports before completing the connection
Question 3 True / False

The third message in TCP's three-way handshake — the client's final ACK — can carry application data at the same time.

TTrue
FFalse
Question 4 True / False

TCP uses a three-way handshake (rather than two) primarily because it is a full-duplex protocol and each direction of communication requires a separate setup phase.

TTrue
FFalse
Question 5 Short Answer

Why must TCP's connection setup use exactly three messages rather than two? What would go wrong with a two-way handshake?

Think about your answer, then reveal below.