GateAI
TCP Flow and Congestion Control

GATE CSE 2021 Set 1 · Q44

MSQ2 marksMedium

Time

A TCP server application is programmed to listen on port number PP on host SS. A TCP client is connected to the TCP server over the network. Consider that while the TCP connection was active, the server machine SS crashed and rebooted. Assume that the client does not use the TCP keepalive timer. Which of the following behaviors is/are possible?

Select all that applyOne or more correct

Pick every correct option

Solution

Step-by-step verified solution

Official answer: A) If the client was waiting to receive a packet, it may wait indefinitely.; B) The TCP server application on S can listen on P after reboot.; C) If the client sends a packet after the server reboot, it will receive a RST segment.

TCP Flow and Congestion Control

Let us analyze each scenario after the server host SS crashes and reboots:

  1. Option (A): If the client is blocked waiting for data from the server and does not send any packets, and keepalive is disabled, the client will never know that the server has crashed. It will wait indefinitely. Hence, (A) is possible and correct.

  2. Option (B): After rebooting, the operating system kernel on SS has cleared all previous connection states. The TCP server application can be restarted and can bind/listen on port PP again. Hence, (B) is possible and correct.

  3. Option (C): If the client transmits a data packet to host SS after the reboot, host SS receives a segment for a connection for which it has no Transmission Control Block (TCB) entry. According to RFC 793, when a TCP endpoint receives an unexpected segment not matching any active connection, it responds with an RST (Reset) segment. Hence, (C) is possible and correct.

  4. Option (D): A FIN segment is only transmitted during an orderly, graceful connection shutdown initiated by an active connection endpoint. Since host SS has lost all connection state across the reboot, it cannot send a FIN; it will instead send an RST. Hence, (D) is incorrect.

Therefore, the correct options are A, B, and C.

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 Q44 of the GATE CSE 2021 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. 2 of them are 2-mark MSQs like this one, and it is the only one in GATE CSE 2021 Set 1.

How GATE tests TCP Flow and Congestion Control

More from GATE CSE 2021 Set 1

Share this solution

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

GateAI solution cardGATE CSE 2021 Set 1 · Q44 · MSQ

A TCP server application is programmed to listen on port number P on host S. A TCP client is connected to the TCP server over the network. Consider that while the TCP connection was active, the server machine S crashed and rebooted. Assume that the client does not use the TCP keepalive timer. Which of the following behaviors is/are possible?

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.