TCP Connection Establishment: The 3-Way Handshake
In TCP, connection establishment uses a three-way handshake: the client sends a SYN, the server replies with SYN-ACK, and the client sends a final ACK to complete the connection setup.2
So the correct option is (iii) three.
Key terms: SYN , ACK , Initial Sequence Number.
Footnotes
-
TCP connection establishment (Wikipedia) - Describes the SYN, SYN-ACK, ACK three-way handshake. ↩
-
RFC 793: Transmission Control Protocol - Core specification describing TCP states and behavior during connection establishment. ↩
TCP 3-Way Handshake Explained
Why TCP needs three steps
The 3-way handshake ensures both sides agree on:
- That the other side is reachable (each endpoint gets a response from the other).2
- Initial sequence numbers (ISNs) so later data segments can be reliably sequenced and acknowledged.2
- That both endpoints are ready to send/receive data for the new connection state.2
A useful conceptual way to view it:
- Step 1: Client proposes parameters (SYN + ISN)
- Step 2: Server accepts and responds (SYN-ACK + its ISN)
- Step 3: Client confirms (ACK acknowledging server’s ISN)
Footnotes
-
TCP connection establishment (Wikipedia) - Describes the SYN, SYN-ACK, ACK three-way handshake. ↩ ↩2 ↩3
-
RFC 793: Transmission Control Protocol - Core specification describing TCP states and behavior during connection establishment. ↩ ↩2 ↩3
TCP 3-Way Handshake (Connection Establishment)
- 1Step 1
Client sends a SYN segment with its Initial Sequence Number to start the connection.
- 2Step 2
Server replies with SYN-ACK: it acknowledges the client’s SYN and includes its own ISN.
- 3Step 3
Client sends an ACK acknowledging the server’s SYN, completing establishment so data transfer may begin.
Exam tip: Learn the exact sequence
For TCP connection establishment, memorize: SYN → SYN-ACK → ACK. That pattern directly implies a “three-way handshake.”2
Footnotes
-
TCP connection establishment (Wikipedia) - Describes the SYN, SYN-ACK, ACK three-way handshake. ↩
-
RFC 793: Transmission Control Protocol - Core specification describing TCP states and behavior during connection establishment. ↩
Don’t confuse connection establishment with termination
TCP connection termination often uses a “four-step” style (FIN/ACK exchanges), and TLS handshakes are different. The question here is specifically about TCP connection establishment, which is three-way.2
Footnotes
-
RFC 793: Transmission Control Protocol - Core specification describing TCP states and behavior during connection establishment. ↩
-
TCP connection termination (Wikipedia) - Explains that termination involves different exchanges (often discussed as a four-step process). ↩
Handshake Steps in TCP Connection Establishment
Each bar represents one distinct message exchanged during setup.
Common Confusions
Connection Establishment Timeline
SYN from Client
1st messageClient initiates connection and proposes an ISN."
SYN-ACK from Server
2nd messageServer acknowledges client SYN and proposes its own ISN."
ACK from Client
3rd messageClient acknowledges the server SYN; connection is established."
TCP Handshake Quick Review
Knowledge Check
Connection-establishment in TCP involves a ______-way handshake.
Explore Related Topics
UDP Connection Model: Connection-Oriented vs Connectionless
Error Detection Capability from Minimum Hamming Distance
I2C Bus Fundamentals: How Many Lines Does I2C Use?
I2C is a two‑wire serial bus that uses SDA (data) and SCL (clock) lines for communication between multiple devices on a board.
- Only two signal lines are required, making I2C a low‑pin‑count solution.
- SDA carries addresses, acknowledgments and data, while SCL provides the timing clock for each bit.
- Both lines are open‑drain/bidirectional with pull‑up resistors, allowing many devices to share the bus safely.
- Communication starts with a START condition, proceeds with address and data transfer, and ends with a STOP condition.