Question: Suppose a client C repeatedly connects via TCP to a given port on a server S and that each time, it is C that initiates
Suppose a client C repeatedly connects via TCP to a given port on a server S and that each time, it is C that initiates the close.
(a) How many TCP connections per second can C make here before it ties up all its available ports in TIME_WAIT state?
Assume that client ephemeral ports are in the range 1024–5119 and that TIME_WAIT lasts 60 seconds.
(b) Berkeley-derived TCP implementations typically allow a socket in TIME_WAIT state to be reopened before TIME_WAIT expires if the highest sequence number used by the old incarnation of the connection is less than the ISN used by the new incarnation. This solves the problem of old data accepted as new;
however, TIME_WAIT also serves the purpose of handling late final FINs. What would such an implementation have to do to address this and still achieve strict compliance with the TCP requirement that a FIN sent anytime before or during a connection’s TIME_WAIT receive the same response?
Step by Step Solution
3.51 Rating (148 Votes )
There are 3 Steps involved in it
This is a great question Lets break it down step by step a The question essentially wants to know the maximum number of connections a client can make ... View full answer
Get step-by-step solutions from verified subject matter experts
