CS FundamentalsVery hardProduct-company placement · networking

A load-test client makes 500 short TCP connections per second to one server IP and port, and the client closes each first. Its TIME_WAIT lasts 60 s, and its ephemeral port range is 32768–60999. Which statement is correct?

  1. A. It can sustain about 546 per second, so 500 per second is safe
  2. B. It can sustain about 941 per second, since TIME_WAIT counts once per 30 s
  3. C. It runs out of ports, since only about 470 new connections per second can be sustained
  4. D. Ports are never a limit, because each connection has its own server-side socket

Correct answer: C. It runs out of ports, since only about 470 new connections per second can be sustained

To the same server IP and port, each new connection needs a distinct local port, and each stays in TIME_WAIT for 60 s. 28,232 ports / 60 s ≈ 470 per second, below 500. 546 per second assumes the range runs to 65535.

More Computer Networks questions

Exams that ask this topic