Skip to content
GATEiit

GATE CSE 2021 Set 1 Q54: TCP client behaviour after the server host crashes and reboots

Question

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?

Try it: multiple select: one or more correct options

Select one or more options
Select all correct options. No negative marking, no partial marks.
Show answer and explanation

Answer: A, B, C (official GATE 2021 final answer key)

Concept used: A rebooted host has lost all connection state: it answers segments of unknown connections with RST, and a crashed host sends nothing on its own.

First step: Ask what the rebooted server knows about the old connection when a segment for it arrives.

Full step-by-step solution

Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.

Share this question

WhatsAppDownload image

Source: official GATE 2021 Set 1 CS question paper and final answer key, organised by IIT Bombay. Question paper · Answer key