Suppose a client C repeatedly connects via TCP to a given port on a server S and

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 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?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Computer Networks A Systems Approach

ISBN: 9780128182000

6th Edition

Authors: Larry L. Peterson, Bruce S. Davie

Question Posted: