启用BBR拥塞算法

Submitted by lepton on Fri, 11/22/2019 - 12:11

Tags

检查内核版本

通过uname -r命令检查内核版本是否大于4.9

# uname -r

启用BBR拥塞算法

  • 加载内核模块

# modprobe tcp_bbr

# echo "tcp_bbr" >> /etc/modules-load.d/modules.conf

  • 修改内核参数

# echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf

# echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf # sysctl -p

  • 检查BBR是否已经开启

# lsmod | grep bbr

# sysctl net.ipv4.tcp_available_congestion_control

# sysctl net.ipv4.tcp_congestion_control

如结果都有bbr,则表示已经开启BBR算法

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.