Question:

With respect to a TCP connection between a client and a server, which one of the
following statements is true?

Show Hint

Remember TCP uses a three-way handshake to connect and is full-duplex, so either endpoint can independently send a FIN, meaning both sides can initiate closing simultaneously.
Updated On: Jul 7, 2026
  • The client and server use a two-way handshake mechanism before the start of data transmission
  • The server cannot initiate closing of the connection before the client initiates closing of the connection
  • The TCP connection is half-duplex
  • The client and server can initiate closing of the connection at the same time
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

Step 1: Recall TCP connection setup. TCP uses a three-way handshake (SYN, SYN-ACK, ACK) to establish a connection, not a two-way handshake, so Option A is false.

Step 2: TCP is a full-duplex protocol: data can flow independently in both directions. Either the client or the server may initiate closing its half of the connection at any time by sending a FIN segment, independent of the other side. This rules out Option C (TCP is not half-duplex) and Option B (the server is not forced to wait for the client to initiate closing).

Step 3: Because either side can send a FIN independently, it is entirely possible for both the client and the server to send their FIN segments at (or around) the same time, each initiating the close of its own direction before receiving the peer's FIN. TCP explicitly supports this scenario, known as a simultaneous close.

Step 4: Conclusion.

\[\boxed{\text{The client and server can initiate closing of the connection at the same time (Option D)}}\]

Was this answer helpful?
0
0

Top GATE CS Computer Science and IT Engineering Questions

View More Questions