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?
- A. It can sustain about 546 per second, so 500 per second is safe
- B. It can sustain about 941 per second, since TIME_WAIT counts once per 30 s
- C. It runs out of ports, since only about 470 new connections per second can be sustained
- 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
- A SEC-DED memory code adds one overall parity bit to a Hamming code. On a read, the Hamming syndrome is non-zero but the overall parity…
- On an office LAN, users suddenly receive addresses with an unknown gateway, while the real DHCP server logs that its pool is exhausted…
- An attacker floods a switch with frames from thousands of random source MAC addresses. What happens, and which feature limits the damage?
- An NTP client sends a request at t1 = 100 ms (client clock); the server receives it at t2 = 150 ms and replies at t3 = 152 ms (server…
- An IPv6-only phone uses DNS64 and NAT64 with the well-known prefix 64:ff9b::/96 to reach an IPv4-only server at 192.0.2.33. What AAAA…
- Which split of the 16-bit port space matches IANA's registry?