GATE / CS ARCHIVE

GATE CSE 2021 SET 1 / QUESTION 44

GATE CSE 2021 Set 1 Q44

Computer Networks · Transport, Congestion Control & Traffic Shaping · Full GATE CSE 2021 Set 1 paper

GATE 2021 Set 1, Q44 2 marks · MSQ
Report issue

Transport, Congestion Control & Traffic Shaping

Question 44, GATE 2021: A TCP server listens on port P of host S and has an active client connection. S crashes and reboots. The client uses no TCP keepalive timer. Select possible behaviors: A a client waiting for a packet may wait indefinitely; B the restarted server can listen again on P; C a client packet after reboot receives RST; D a client packet after reboot receives FIN.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A; B; C

A passive client with no keepalive, no pending retransmission and no application timeout can wait indefinitely after a silent server crash, so A is possible. After reboot the server can bind and listen on the same port again, so B is possible. The old established connection state is gone; a segment from that old connection can elicit a reset, not an orderly FIN, giving C rather than D. This is the standard reachable-server TCP response model; actual delivery can still be affected by packet loss or filtering, and a listening socket does not restore the lost connection.

A crash does not perform an orderly TCP close, so no reliable FIN is sent merely because the old connection disappeared. After reboot the endpoint has no matching established-connection state. A valid arriving old-connection segment is therefore rejected/reset in the standard reachable-host model rather than resuming that connection. Waiting indefinitely is a possibility, not a promise: an application timeout, retransmission timeout, keepalive, or network error could instead terminate a particular client's wait.

Original paper, page 36 · Answer key