Question Details

Which of the following is correct about the TCP connection?

Options

A

Two-way handshaking.

B

TCP is half duplex.

C

The server can’t initiate closing of connection before client.

D

Client and server initiate closing connection at same time.

Show Answer

Correct Answer :

Option D

Client and server initiate closing connection at same time.

Solution :

The correct option is: Client and server initiate closing connection at same time.

To understand why this option is correct, let's analyze how TCP connection release operates and evaluate the given choices:

1. Connection Establishment vs. Connection Release:
Unlike connection establishment, which uses a three-way handshake (not a two-way handshake, making the first option incorrect), connection release is typically a symmetric process where each direction of the connection is closed independently.

2. Full-Duplex Nature of TCP:
TCP is a full-duplex protocol, not half-duplex (making the second option incorrect). This means data can flow in both directions simultaneously. Because of this, both the client and the server must close their respective directions of the channel.

3. Initiating the Connection Close:
Either the client or the server can initiate the closing of a connection first (the server can indeed initiate the close, which makes the third option incorrect). Alternatively, they can both initiate the closing of the connection at the same time (known as simultaneous close). In a simultaneous close scenario, both endpoints send active FIN segments to each other at the same time to tear down their respective sending halves of the connection.

Therefore, client and server initiating the closing of the connection at the same time is a valid state/behavior in TCP connection teardown.

Unlock Our Free Library

Access expert-curated educational resources and study materials—completely free.

Ask AI Tutor
5 left
Q1 View Question & Options
AI Tutor is solving this question...
Reading question context & options...