1,424 views
0 votes
0 votes
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. If time-wait state lasts for 60 seconds, then how many TCP connections a second can 'C' make with all available ports? Assume client port are in the range of 1024 to 5119.

A) 70 per sec     B)10 per sec     C) 13 per sec     D) 100 per sec

2 Answers

Best answer
5 votes
5 votes
No. of available ports = 5119 - 1024 + 1 = 4096

Due to time-wait state of 60s, any repeated connection to same port requires an interval of at least 60s.

Now assume a time interval of Ns. Number of TCP connections possible in this time = 4096*N/60 (as after every 60s, a port can be reused for a new connection).

So, average number of connections that can be opened per second = 4096*N/(60 * N) = 4096/60 ≈ 70

 

http://www.isi.edu/touch/pubs/infocomm99/infocomm99-web/
selected by
0 votes
0 votes
Number of avialable port is=5119-1024+1=4096

So number of connection can be opened per second is given s below=4096/60=~70sec

So;

Option A is right.

Related questions

3 votes
3 votes
2 answers
3
srestha asked Mar 15, 2018
872 views
"TCP connection is logical, therefore TCP can be connection oriented protocol"Wha is meaning of logical connection? Can u discuss brief above two lines?