GATE 2021 CS (CS1) – Question 54
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?
Practise this question in The GATE Grind →
Show answer and explanation
Correct 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.
Explanation
Without keepalive, a receive-waiting client is never told of the crash. The server can re-listen on P after reboot. A packet sent to the rebooted host, which has no connection state, elicits a RST, not a FIN.
More TCP: Flow Control, Congestion Control, Socket API questions
- GATE 2020 CS Q65
- GATE 2018 CS Q24
- GATE 2018 CS Q35
- GATE 2015 CS (CS1) Q23
- GATE 2016 CS (CS1) Q64
- GATE 2017 CS (CS1) Q24
All TCP: Flow Control, Congestion Control, Socket API questions →