Network & Transit 3 min read Last updated: 2026-10-23

Cross-Pacific Bandwidth Benchmarking with iPerf3 & TCP Window (BDP) Analysis

Master trans-Pacific throughput testing using iPerf3: forward vs. reverse (-R) streaming, Bandwidth-Delay Product (BDP) physics, parallel streams, and ss -ti kernel socket inspection.

When testing a 1Gbps2.5Gbps cloud server in Los Angeles from Asia-Pacific (where Round-Trip Time is 135ms165ms), running a naive browser speed test often yields inconsistent results due to browser WebSocket bottlenecks or mismatched test nodes. In professional network engineering, iPerf3 paired with Bandwidth-Delay Product (BDP) analysis is the gold standard for measuring true transport-layer throughput across AS4837, AS9929, and AS60068.

1. The Physics of Long Fat Networks: Bandwidth-Delay Product (BDP)

Before running a throughput test, it is crucial to understand why a link with 0% packet loss can still fail to reach full gigabit speed on a single TCP connection.

In TCP networking, a sender can only transmit as much unacknowledged data (“in-flight bytes”) as the Receive Window (rwnd) and Congestion Window (cwnd) allow. The exact amount of data required in flight to saturate a link is governed by the Bandwidth-Delay Product (BDP):

BDP (Bytes) = Link Bandwidth (bps) × Round-Trip Time (Seconds) ÷ 8

Real-World BDP Comparison Table (1 Gbps Port):

Route Scenario Typical RTT Required In-Flight Buffer (BDP) Default Un-tuned Linux Socket Buffer Un-tuned Single-Thread Speed Cap
Intra-Datacenter (LAX to LAX) 1 ms ~125 KB 4 MB 1,000 Mbps (Full Speed)
US West to US East (LAX to NYC) 65 ms ~8.1 MB 4 MB ~490 Mbps (Window Starved)
LAX to China / APAC (AS4837 / AS9929) 150 ms ~18.75 MB 4 MB ~210 Mbps (Window Starved)

[!IMPORTANT] If either your server’s TCP send buffer (tcp_wmem) or your local client’s TCP receive buffer (tcp_rmem) is capped at 4MB, a single TCP stream over a 150ms transpacific link mathematically cannot exceed ~210 Mbps, regardless of how clean the fiber is! Always complete the TCP BBR & Kernel Buffer Tuning guide before benchmarking single-stream throughput.


2. Installing and Running iPerf3

Install iperf3 on both your FlawlessNode cloud server and your local Linux/macOS/Windows machine:

# Ubuntu / Debian
sudo apt update && sudo apt install -y iperf3

# Rocky Linux / AlmaLinux
sudo dnf install -y iperf3

2.1 Starting the iPerf3 Server on Your VPS

Temporarily open port 5201 in your firewall and launch iperf3 in server mode (-s):

# Start iPerf3 listening on default port 5201
iperf3 -s -p 5201

3. Forward vs. Reverse (-R) Testing Methodology

In cross-border scenarios, Download (Server $\rightarrow$ Local Client, using FlawlessNode’s outbound AS4837/AS9929/AS60068 return route) is usually the primary metric of interest.

3.1 Testing Return Download Speed (Server $\rightarrow$ Local Client): Use -R

Run this command on your local machine with the -R (Reverse) flag so the LAX server sends data to you:

# Single-stream TCP download test for 15 seconds (-R = Server sends to Client)
iperf3 -c your_server_ip -p 5201 -R -t 15

# Multi-stream (4 parallel threads) download test to saturate local ISP queues
iperf3 -c your_server_ip -p 5201 -R -P 4 -t 15

3.2 Testing Upload Speed (Local Client $\rightarrow$ Server)

Omit -R to test your local ISP’s uplink capacity toward Los Angeles:

iperf3 -c your_server_ip -p 5201 -P 4 -t 15

3.3 Testing UDP Jitter and Packet Loss

To evaluate real-time voice, gaming, or QUIC transport stability at a fixed 100 Mbps rate without TCP retransmissions:

iperf3 -c your_server_ip -p 5201 -u -b 100M -R -t 15

4. Reading iPerf3 Output (Retr & Cwnd)

[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  28.5 MBytes   239 Mbits/sec    0   4.82 MBytes
[  5]   1.00-2.00   sec  64.2 MBytes   539 Mbits/sec    2   11.4 MBytes
[  5]   2.00-3.00   sec  88.0 MBytes   738 Mbits/sec    0   16.8 MBytes
  • Bitrate: Actual application-layer throughput achieved during that 1-second interval.
  • Retr (Retransmissions): Number of TCP segments retransmitted. Under BBR, occasional low Retr numbers during startup probing are normal; sustained high retransmissions alongside collapsing Cwnd point to physical congestion.
  • Cwnd (Congestion Window): The amount of data the kernel currently keeps in flight. Watching Cwnd ramp up from 1 MB to 16+ MB over the first 2–3 seconds is classic TCP Slow Start and BBR bandwidth probing over a 150ms link.

5. Deep Kernel Socket Inspection (ss -ti)

While an iperf3 test or large file transfer is actively running, open a second SSH terminal on your FlawlessNode server and inspect the live kernel BBR state machine:

ss -tin dst your_local_public_ip

Sample kernel telemetry output:

ESTAB 0      12582912   154.xxx.xxx.xxx:5201   your_local_ip:58412
     bbr wscale:9,7 rto:348 rtt:146.2/1.8 ato:40 mss:1460 pmtu:1500
     rcvmss:1460 advmss:1460 cwnd:8920 bytes_sent:648192000 bytes_acked:635609088
     segs_out:444120 segs_in:28910 data_segs_out:444118
     bbr:(bw:612.4Mbps,mrtt:144.1,pacing_gain:1,cwnd_gain:2)
     send 598.2Mbps lastsnd:2 lastrcv:4 lastack:2 pacing_rate 605.8Mbps delivery_rate 589.4Mbps
  • bbr:(bw:612.4Mbps,mrtt:144.1,...): Shows BBR’s exact measured bottleneck bandwidth (612.4 Mbps) and minimum RTT (144.1 ms).
  • wscale:9,7: Confirms RFC 1323 TCP Window Scaling is active in both directions.
  • mss:1460 pmtu:1500: Confirms optimal Path MTU without fragmentation overhead.
Was this page helpful?