Day 15: No Port Numbers Left for Outgoing Calls
Illustrative interview practice. Generic company names and hostnames do not represent any specific organization.
Scenario
Interviewer A service suddenly cannot call other services. The error is "connect: cannot assign requested address". Processor and memory are normal, and a restart helps for a while. What is happening? Why does the TIME_WAIT state exist, and why does it become a danger on a very busy server?
In plain words
The service can still receive requests. What it cannot do is start new calls of its own, to a database or to another service. The error message is the main clue, and it is not about the far side refusing.
The question has three parts: what has run out, what a particular waiting state after a connection closes is for, and why that sensible safeguard causes trouble at high volume.
Words you need
| Word | What it means |
|---|---|
| Port | A number that marks one end of a connection on a computer. Every connection needs one at each end. |
| Ephemeral port | A port number borrowed for one outgoing connection and handed back afterwards. They come from a fixed range. |
| Outbound | Going out from this server to another one. The opposite is inbound. |
| Keep-alive | Leaving a connection open after a request so the next request can use it again. |
| Packet | One small piece of data travelling across the network. Packets can arrive late or be lost. |
Your answer
2:00
Observe → Hypothesise → Investigate → Mitigate → Prevent. The timer is optional; your answer is not auto-submitted.
0 / 20,000 characters · Not saved