{{ summaryTitle }} {{ summaryValue }} {{ summaryLine }} {{ badge.label }}{{ badge.value }}

SourcesPort windowHot tuple
Ephemeral port pressure assumptions
Choose the closest source-port allocator, then override the visible values when your host or gateway differs.
Count the local source IPs, NAT public IPs, or gateway addresses that actually share this workload.
addresses
Enter the inclusive low and high port numbers reported by the host or platform.
AWS and Azure presets load their documented per-address same-destination limits; use 0 for range-only host math.
slots/address
Use measured peak connection churn, not requests per second when connections are pooled or multiplexed.
conn/s
{{ formatPercent(hottest_destination_share_pct, 1) }}
Concentration matters because a source port can be reused concurrently for different destinations but not the same tuple.
Long-lived connections occupy their source ports before any reuse hold begins.
seconds
Confirm the transport and close path; Azure, for example, documents different timers for FIN, RST, and half-open flows.
seconds
{{ formatPercent(safety_reserve_pct, 0) }}
The physical ceiling remains visible separately; use the planned pool for operating decisions.
{{ workflowFeedback }}
Zero is neutral. Enter only exclusions that overlap the selected ephemeral range.
ports/address
This adds comparison context; hottest-destination share remains the controlling pressure input.
tuples
{{ formatPercent(alert_threshold_pct, 0) }}
Use 80% unless your burst profile or monitoring policy requires earlier review.
{{ tableExportStatus.capacity }}
MeasureValuePlanning meaningCopy
{{ row.metric }}{{ row.value }}{{ row.note }}
{{ tableExportStatus.mitigation }}
MoveTargetWhy it helpsCopy
{{ row.metric }}{{ row.value }}{{ row.note }}
{{ chartExportStatus }}
{{ formulaExportStatus }}
{{ formulaText }}

Source-port shortages often appear as intermittent outbound connection failures while CPU, bandwidth, DNS, and the remote service still look normal. Each new flow needs a source address and temporary source port, and that choice can remain occupied while the connection is active and during a post-close reuse delay.

The scarce capacity is tied to a destination tuple: destination address, destination port, and protocol. A source port may be reused at the same time for different destinations, but repeated flows from one source address to one busy destination need distinct available ports. Network address translation can concentrate thousands of private clients behind only a few public source addresses.

Factors that change ephemeral port capacity and demand
Raises available inventoryRaises occupied inventoryOften mismeasured as
More source addressesMore new connections per secondRequests per second
Wider usable port rangeHigher share sent to one destination tupleAverage traffic across all services
Lower provider cap or reservation loss avoidedLonger active lifetime and reuse holdApplication response time alone

Connection churn is the rate of newly opened connections, not the number of requests. Pooling, keep-alive, and multiplexed protocols can serve many requests over a small set of flows. Retry storms do the opposite: they can multiply new connections precisely when the destination is slow or unavailable.

A planning reserve holds back part of the physical pool for bursts, timer variation, and measurement error. Crossing that reserve is an operating warning, while reaching the physical pool means the modeled hot destination needs as many or more slots than the source inventory can provide.

Platform defaults are starting assumptions rather than permanent facts. Host port ranges, reserved ports, NAT limits, close behavior, and reuse timers vary by operating system, provider, protocol, and live configuration. Measurements from the source hosts or gateways should replace presets before a production decision.

A capacity model can show that port pressure is plausible, but it cannot diagnose an incident by itself. Socket tables, NAT metrics, flow logs, connection errors, retry rates, and destination distribution are needed to confirm the cause.

How to Use This Tool:

Model the busiest destination tuple during a peak connection-churn window, using the source addresses that actually share its outbound traffic.

  1. Choose Platform preset, then verify the loaded port range, reuse hold, and any same-destination cap against the live host or gateway.
  2. Enter Source addresses as the local or translated addresses contributing independent port inventory to the workload.
  3. Set the inclusive Ephemeral port range and Reserved ports. The highest port must not be lower than the lowest, and at least one usable port must remain per address.
  4. Enter measured peak New connections and the Hottest destination share. Use connection creation, not request throughput.
  5. Add average Connection lifetime, post-close Reuse hold, and a planning reserve that reflects burst and measurement uncertainty.
  6. Read Capacity ledger for the current pressure status and use Mitigation plan to compare source count, hot-share, and hold-time targets.

Interpreting Results:

Planned utilization compares required hot-destination slots with the pool left after reserve. Physical utilization compares the same demand with the hard modeled inventory before reserve.

Ephemeral port pressure status boundaries
StatusExact conditionMeaning
Within planPlanned utilization < watch thresholdModeled demand remains inside the selected reserve and watch level.
WatchPlanned utilization ≥ watch threshold and < 100%Headroom remains, but the selected warning point has been crossed.
Reserve exhaustedPlanned utilization ≥ 100% and physical utilization < 100%The workload fits only by consuming the held reserve.
Physical exhaustionPhysical utilization ≥ 100%Modeled demand meets or exceeds the physical source-port inventory.

Connection-rate headroom is positive below the planned ceiling and negative above it. Additional sources for plan rounds up to whole source addresses. Targets for hot share and reuse hold show the maximum values that would bring the current churn back within the planned pool.

Do not accept a comfortable percentage until hot-destination share and hold time are measured under stress. Averages can hide short retry bursts or one destination that dominates connection creation.

Technical Details:

The model treats each usable source port on each source address as one same-destination slot. A provider cap can reduce the raw inclusive range, reserved ports are then removed, and the planning reserve reduces the remaining physical inventory.

Formula Core:

Demand equals the hot connection rate multiplied by the total time each slot stays unavailable.

R = phigh-plow+1 Psource = min(R,C)-X Pplanned = Psource×S×(1-q100) D = λ×h100×(t+u) U = DPplanned×100%

R is inclusive range size, C is a positive provider cap or the full range when no cap applies, X is reserved ports per source, S is source addresses, q is reserve percent, λ is total new connections per second, h is hottest-destination share, t is active lifetime, and u is reuse hold. D is required slots and U is planned utilization.

Lookup Core:

Presets load a documented starting point. Every value remains editable because live configurations and provider behavior can differ.

Ephemeral port platform preset values
PresetPort rangeReuse holdSame-destination cap per source
Linux default32768 to 6099960 sRange only
IANA / modern Windows49152 to 65535240 sRange only
AWS NAT Gateway1024 to 6553560 s55,000
Azure NAT Gateway1024 to 6553565 s50,000 planning cap

Rule Core:

The raw range is inclusive. A positive provider cap uses the smaller of the cap and range; zero means range-only math. Reserved ports must leave at least one port per source, and active lifetime plus reuse hold must be greater than zero. Physical exhaustion is tested first, so exactly 100% physical utilization receives the physical-exhaustion status.

The average-per-destination value is total churn divided by destination count, but it does not control capacity. Required slots always use the hottest-destination share because concentration is the limiting case.

Worked Example:

Exact physical boundary

One source address with ports 50000 through 50099 has 100 physical slots. At 10 new connections per second, 100% hot share, 1 second active lifetime, and 9 seconds of reuse hold, demand is 100 slots. A 20% reserve leaves 80 planned slots, so planned utilization is 125% and physical utilization is exactly 100%. The status is physical exhaustion. Adding a second identical source creates 200 physical and 160 planned slots, reducing planned utilization to 62.5%.

Accuracy Notes:

  • Use peak connection creation and the busiest destination tuple; long-window averages can understate bursts.
  • Confirm port ranges, reservations, provider caps, close paths, and reuse timers from live configuration and current vendor documentation.
  • The occupancy estimate does not model allocator collisions, every protocol state, firewall tables, packet limits, bandwidth, CPU, DNS, or remote-service capacity.
  • Validate the conclusion with host socket data, NAT allocation errors, flow logs, and retry metrics before changing production networking.

References: