Catalogue / cloudflare-2024-tcp-port-selection

Cloudflare diagnoses Linux TCP even/odd port-selection slowdown and benchmarks IP_LOCAL_PORT_RANGE fixes for single-IPv4 egress

Cloudflare, 2024. Cache service origin-egress TCP connect() port selection (single-machine benchmark).

Organisation
Cloudflare
Evidence
Experiment
Source
connect() - why are you so slow?

The Cloudflare Blog, published 2024-02-08

Records

Failure#f1

Linux TCP even/odd ephemeral port split causes bimodal connect() latency past half port utilization

Decision#d1

Benchmark IP_LOCAL_PORT_RANGE random windows (< 6.8) and full-range option (>= 6.8) to reclaim egress IPv4 addresses

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free.