tcp throughput
tcp_throughputCalculate maximum TCP throughput using the Bandwidth-Delay Product (BDP) formula. Given link bandwidth and round-trip latency, computes the BDP (maximum in-flight data), achievable throughput with a given TCP window size, link utilization percentage, and recommended window size for full utilization. Critical for diagnosing slow transfers over high-latency links (WAN, VPN, satellite), tuning TCP buffers, and understanding why a 1Gbps link may only deliver 25Mbps with default 64KB windows. Applies to iperf testing, WAN optimization, and network capacity planning.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rtt_ms | Yes | Round-trip time (latency) in milliseconds | |
| mss_bytes | No | Maximum Segment Size in bytes (typically 1460 for Ethernet) | |
| bandwidth_mbps | Yes | Available link bandwidth in megabits per second | |
| window_size_kb | No | TCP receive window size in kilobytes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bdp_kb | Yes | Bandwidth-Delay Product in kilobytes | |
| bdp_bytes | Yes | Bandwidth-Delay Product in bytes: maximum data in flight | |
| utilization_pct | Yes | Percentage of available bandwidth that can actually be used | |
| window_sufficient | Yes | Whether the current window size is large enough to fill the pipe | |
| max_throughput_mbps | Yes | Maximum achievable TCP throughput in megabits per second given the window size | |
| recommended_window_kb | Yes | Minimum window size in kilobytes needed to fully utilize the link |