GateAI
TCP Flow and Congestion Control

GATE CSE 2017 Set 1 · Q14

MCQ1 markEasy

Time

Consider a TCP client and a TCP server running on two different machines. After completing data transfer, the TCP client calls close to terminate the connection and a FIN segment is sent to the TCP server. Server-side TCP responds by sending an ACK, which is received by the client-side TCP. As per the TCP connection state diagram (RFC 793), in which state does the client-side TCP connection wait for the FIN from the server-side TCP?

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: D) FIN-WAIT-2

TCP Flow and Congestion Control

According to the TCP connection state transition diagram (RFC 793):

  1. ESTABLISHED →close / send FIN\xrightarrow{\text{close / send FIN}} FIN-WAIT-1: The active closer (client) sends a FIN and enters the FIN-WAIT-1 state, waiting for an ACK of its FIN (or a FIN from the remote side).

  2. FIN-WAIT-1 →receive ACK\xrightarrow{\text{receive ACK}} FIN-WAIT-2: Upon receiving the ACK for its FIN segment from the server, the client transitions to the FIN-WAIT-2 state.

  3. FIN-WAIT-2: In this state, the client waits for the connection termination request (FIN segment) from the server.

  4. FIN-WAIT-2 →receive FIN / send ACK\xrightarrow{\text{receive FIN / send ACK}} TIME-WAIT: When the server's FIN is received, the client sends an ACK and enters the TIME-WAIT state.

Therefore, the client-side TCP waits for the server's FIN in the FIN-WAIT-2 state (Option D).

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This TCP Flow and Congestion Control previous year question is Q14 of the GATE CSE 2017 Set 1 paper. Find more GATE CSE PYQs on TCP Flow and Congestion Control in Computer Networks, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related TCP Flow and Congestion Control PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

TCP Flow and Congestion Control in GATE CSE

TCP Flow and Congestion Control has 23 GATE CSE PYQs across 21 papers from 2012 to 2026. 10 of them are 1-mark MCQs like this one, and it is the only one in GATE CSE 2017 Set 1.

How GATE tests TCP Flow and Congestion Control

More from GATE CSE 2017 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2017 Set 1 · Q14 · MCQ

Consider a TCP client and a TCP server running on two different machines. After completing data transfer, the TCP client calls close to terminate the connection and a FIN segment is sent to the TCP server. Server-side TCP responds by sending an ACK, which is received by the client-side TCP. As per the TCP connection state diagram (RFC 793), in which state does the client-side TCP connection wait for the FIN from the server-side TCP?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.