Skip to content

Instantly share code, notes, and snippets.

@ekarad1um
Last active October 30, 2019 05:54
Show Gist options
  • Select an option

  • Save ekarad1um/45be36d75558362a911232df9e7fe035 to your computer and use it in GitHub Desktop.

Select an option

Save ekarad1um/45be36d75558362a911232df9e7fe035 to your computer and use it in GitHub Desktop.
Simple network optimization on Linux

It is required to edit /etc/sysctl.conf by sudo nano /etc/sysctl.conf and add the configuration below to the end of the file.

net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr
net.ipv4.tcp_fastopen = 3

This means to config Google BBR and TCP fastopen support on your operation system. Want another choice or check if the Google BBR supported by default, type sysctl net.ipv4.tcp_available_congestion_control to show all supported congestion control modules.

Use sudo sysctl -p to apply the changes to your operation system. Check if BBR module is installed in kernelvuse lsmod | grep bbr and find if string bbr is in outputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment