要检查服务器是否开启了 BBR (Bottleneck Bandwidth and Round-trip propagation time),可以用以下方法:
在 Linux 系统(内核 4.9+)上执行:
sysctl net.ipv4.tcp_congestion_control 输出如果是:
bbr 说明已经启用了 BBR;如果是 cubic 或 reno,则不是 BBR。
sysctl net.ipv4.tcp_available_congestion_control 常见输出示例:
cubic reno bbr 如果里面有 bbr,说明内核已经支持,只是可能没启用。
lsmod | grep bbr 输出类似:
tcp_bbr 20480 1 说明 BBR 模块已加载。
可以通过 ss -ti 查看 TCP 连接状态,里头会有 bbr 标记,例如:
ss -ti dst 8.8.8.8 输出示例里可能包含:
cwnd:10 ssthresh:7 bytes_acked:5000 ... bbr ... ⚡ 总结:
最直接的方法:sysctl net.ipv4.tcp_congestion_control,看是否输出 bbr。
进一步确认:用 ss -ti 查看某个 TCP 连接实际是否在用 BBR。