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

1 Expert Approved Answer
Step: 1 Unlock

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

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Networking Questions!