Question Bank - Computer Networks

Here's the question bank on all the computer networks topics.

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

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

Solution:

Answer: Option 1, Option 2 and Option 4Option 1:If the client sends a packet after the server reboot, it will receive an RST segment.This Option is correct.Because in Absence of Keepalive timer, after reboot TCP server does not remember info regarding previous connections and If it receives a packet from the client, it may generate reset segment.Option 2:If the client was waiting to receive a packet, it may wait indefinitely.This Option is also correct.There is no Keepalive timer exists, then there is a possibility that the Client may keep waiting Indefinitely for the packet from the server.Option 3: If the client sends a packet after the server reboot, it will receive a FIN segment.This Option is not correct.Fin Segment is not possible in the given scenario.Option 4:The TCP server application on S can listen on P after reboot.Thi Option is correct.Suppose that TCP Server dedicated to only one process then it is possible that it will start listening to the process at client even after reboot.

For more questions,

Click Here

Download Gyanm App

free current affairs for competitive exams

Scan QR code to download our App for
more exam-oriented questions

free current affairs for competitive exams

OR
To get link to download app

Thank you! Your submission has been received. You will get the pdf soon. Call us if you have any question: 9117343434
Oops! Something went wrong while submitting the form.