DEV Community

NetEngineerLab
NetEngineerLab

Posted on

Why a 10 Gbps Link Stalls Under 100 Mbps on a Single TCP Stream

A team provisions a 10 Gbps cross-region circuit, starts a single-threaded scp or database backup, and watches throughput flatten out below 100 Mbps. Interface counters show no saturation, CPU is mostly idle, and nobody can explain where the other 9.9 Gbps went.

On wide-area paths, a single TCP connection rarely hits link speed. Two separate mechanisms cap it long before the interface runs out of capacity: the Bandwidth-Delay Product (BDP) and packet-loss congestion backoff. Checking both numbers tells you which knob will actually move throughput.

Ceiling one: how much data fits in flight

TCP cannot keep a pipe full unless the sender is allowed to keep an entire round-trip worth of bytes unacknowledged in transit. That volume is the Bandwidth-Delay Product:

BDP (bytes) = Link bit rate × RTT / 8
Enter fullscreen mode Exit fullscreen mode

Assume a 10 Gbps link (10,000,000,000 bit/s) and a 40 ms round-trip time (0.040 s):

BDP = 10,000,000,000 × 0.040 / 8 = 50,000,000 bytes (50.00 MB / 47.68 MiB)
Enter fullscreen mode Exit fullscreen mode

With a standard 1,460-byte TCP Maximum Segment Size (MSS), filling that pipe takes roughly 34,247 packets in flight at once.

Now look at what happens if either endpoint's TCP receive window or socket buffer is capped at 1 MiB (1,048,576 bytes):

Window-limited throughput = (1,048,576 × 8) / 0.040 = 209.72 Mbps
Enter fullscreen mode Exit fullscreen mode

No matter how fast the underlying optics are, a 1 MiB window at 40 ms RTT cannot exceed ~210 Mbps on a single flow. Raising rmem_max and wmem_max—and ensuring TCP window scaling is active—fixes a buffer cap.

Ceiling two: what 0.001% packet loss does to TCP

Often the buffers are already tuned to tens of megabytes and the transfer still sits under 100 Mbps. At that point, even tiny packet loss is driving congestion avoidance down.

In 1997, Mathis, Semke, Mahdavi, and Ott published a macroscopic upper-bound model for loss-based TCP congestion avoidance:

Rate < (MSS × 8) / (RTT × √p)
Enter fullscreen mode Exit fullscreen mode

Here, MSS is in bytes, RTT is in seconds, and p is the packet loss probability as a decimal (0.01% loss equals p = 0.0001).

Keep the same 40 ms RTT and 1,460-byte MSS, and plug in three realistic WAN loss rates:

Packet loss (%) Loss probability (p) √p Mathis ceiling
0.001% 0.00001 0.003162 92.34 Mbps
0.01% 0.0001 0.01 29.20 Mbps
0.1% 0.001 0.031623 9.23 Mbps

That first row explains the puzzle. A link with 0.001% packet loss—one dropped packet out of every 100,000—looks completely healthy in basic monitoring, yet it imposes a ~92 Mbps ceiling on a single loss-based TCP flow at 40 ms RTT. Raise loss slightly to 0.01%, and the ceiling collapses to 29.20 Mbps.

Notice what is not in the Mathis equation: the 10 Gbps link rate. Once loss limits the congestion window, upgrading a circuit from 1 Gbps to 10 Gbps or 100 Gbps does nothing for a single stream unless RTT or p improves.

Know what the model assumes before acting

The Mathis bound is an engineering approximation built around classic AIMD (Additive Increase, Multiplicative Decrease) Reno-style congestion control, not a guarantee of live throughput. Modern stacks using TCP CUBIC, BBR, pacing, or large offload queues can exceed the classic Mathis curve, while delayed ACKs, bursty drops, or disk/TLS bottlenecks on the sender can push real speed below it.

Use BDP and Mathis together as a diagnostic split:

  • If measured single-stream throughput matches Window / RTT and packet loss is zero, increase TCP socket buffer limits and verify window scaling.
  • If buffers are larger than BDP and throughput still sits near the Mathis curve, look for micro-bursts, dirty fiber, queuing drops, or policers along the path—or split the transfer across multiple parallel TCP streams (rclone, iperf3 -P, multi-part object uploads) so each flow runs its own congestion window.

I maintain NetEngineerLab, where the TCP Mathis Throughput Estimator computes both the Mathis loss ceiling and the RFC 6349 bandwidth-delay product (in bytes and MSS packets) from your MSS, RTT, loss rate, and optional link speed.

Top comments (1)

Collapse
 
dheerajramasahayam profile image
Dheeraj Ramasahayam •

Good breakdown — the BDP math is the part most people skip. On my side of the ticket, before anyone touches TCP tuning, I check the physical layer first: DOM light levels on both optics, clean the end faces, and look at the interface error counters. A dirty connector giving you 0.001% loss looks exactly like this — the link is up, the speed test says 10G, but the single stream never gets there. If the optics are clean and the counters are quiet, then it's the window size and the network team owns it.