TCP BBR是一种TCP冲突控制算法,由Google开发。BBR科夫了传统的TCP冲突控制算法(Beno或GUBIC)的缺点,实现了较高的带宽和较低的延迟。TCP BBR已经在Google.com、YouTube和Google Cloud Platform得到了使用。IETF组织已经在2017年7月确立该算法标准。
sysctl net.ipv4.tcp_available_congestion_control
net.ipv4.tcp_available_congestion_control = cubic reno
sysctl net.ipv4.tcp_congestion_control
net.ipv4.tcp_congestion_control = cubic
sudo apt update
sudo apt install --install-recommends linux-generic-hwe-18.04
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
sysctl net.ipv4.tcp_congestion_control
net.ipv4.tcp_congestion_control = bbr
iperf3 -c 192.168.101.1 -t 60 -l 8k -i 10 -p 5201 -R
Reverse mode, remote host 192.168.101.1 is sending
[ 5] local 192.168.101.81 port 62551 connected to 192.168.101.1 port 5201
[ ID] Interval Transfer Bitrate
[ 5] 0.00-10.00 sec 41.0 MBytes 34.4 Mbits/sec
[ 5] 10.00-20.00 sec 17.7 MBytes 14.9 Mbits/sec
[ 5] 20.00-30.00 sec 12.7 MBytes 10.7 Mbits/sec
[ 5] 30.00-40.00 sec 3.13 MBytes 2.63 Mbits/sec
[ 5] 40.00-50.00 sec 3.61 MBytes 3.03 Mbits/sec
[ 5] 50.00-60.00 sec 7.83 MBytes 6.56 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-60.00 sec 88.2 MBytes 12.3 Mbits/sec 2015 sender
[ 5] 0.00-60.00 sec 86.0 MBytes 12.0 Mbits/sec receiver
[ 5] local 192.168.101.81 port 62600 connected to 192.168.101.1 port 5201
[ ID] Interval Transfer Bitrate
[ 5] 0.00-10.00 sec 11.3 MBytes 9.45 Mbits/sec
[ 5] 10.00-20.00 sec 4.35 MBytes 3.65 Mbits/sec
[ 5] 20.00-30.00 sec 19.4 MBytes 16.2 Mbits/sec
[ 5] 30.00-40.00 sec 25.6 MBytes 21.5 Mbits/sec
[ 5] 40.00-50.00 sec 20.6 MBytes 17.3 Mbits/sec
[ 5] 50.00-60.00 sec 19.5 MBytes 16.3 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-60.00 sec 103 MBytes 14.4 Mbits/sec 3443 sender
[ 5] 0.00-60.00 sec 101 MBytes 14.1 Mbits/sec receiver