Skip to content

Avoid network traffic jam with BBR

Linux
  • From time to time, here or there, we see subjects flourish on an abnormally limited speed in FTP.
    To overcome this kind of slowdown, simply activate the TCP BBR protocol

    Without going into details, this protocol makes it possible to make better use of the bandwidth available during the exchange of TCP packets. Created by Google, you can find more information here.

    Integrated into the Linux Kernel since version 4.9, all you have to do to activate it is to edit the kernel parameters (/etc/sysctl.conf) and add :

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

    A TCP command acting in both IPv4 and v6,

    save and load with :

    sudo sysctl -p
    

    And we go from a restricted FTP speed
    crazy 🙂

    If you are under Proxmox or ESXi, this must be done both on the host and in the VM/CT.

  • DownPWundefined DownPW marked this topic as a regular topic on
  • From time to time, here or there, we see subjects flourish on an abnormally limited speed in FTP.
    To overcome this kind of slowdown, simply activate the TCP BBR protocol

    Without going into details, this protocol makes it possible to make better use of the bandwidth available during the exchange of TCP packets. Created by Google, you can find more information here.

    Integrated into the Linux Kernel since version 4.9, all you have to do to activate it is to edit the kernel parameters (/etc/sysctl.conf) and add :

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

    A TCP command acting in both IPv4 and v6,

    save and load with :

    sudo sysctl -p
    

    And we go from a restricted FTP speed
    crazy 🙂

    If you are under Proxmox or ESXi, this must be done both on the host and in the VM/CT.

    @DownPW interesting. Does this have any effect on data transfers over SCP


Related Topics
  • Arch Linux | Reflector

    Linux
    2
    2 Votes
    2 Posts
    104 Views
    I would like to add that if you type reflector --help in the console you can see the different options you can add to the configuration file. I changed the sort to rate, so the fastest mirrors get used first. I also changed my country to US, because that is where I live and everything else I left default. While doing some research, the Reflector service should fire up about once a week or at boot. It is hooked into pacman so it may refresh when you run the update command above. Location of the config file: /etc/xdg/reflector/reflector.conf
  • Linux on a Stick

    Linux
    17
    10 Votes
    17 Posts
    349 Views
    @Madchatthew said in Linux on a Stick: I wish I would have thought of doing it that way instead. I think it would have been easier and faster to be honest. I’m old… Been there, done it
  • Linux Certification

    Linux
    4
    2 Votes
    4 Posts
    162 Views
    @Madchatthew You might be sorry you asked This is the mentoring category below. Presently, it’s unused, but we have a dedicated area for it. https://sudonix.org/category/8/mentoring Other services https://sudonix.org/services
  • Arch Linux + Me = Crazy

    Linux
    10
    0 Votes
    10 Posts
    233 Views
    @Madchatthew hmm, yes, that might be problematic.
  • 3 Votes
    30 Posts
    2k Views
    @DownPW any update?
  • Ubuntu Upgrade All Packages

    Solved Linux
    3
    3 Votes
    3 Posts
    401 Views
    @phenomlab Upgraded, everything works
  • what is docker?

    Solved Linux
    3
    1 Votes
    3 Posts
    493 Views
    @Hari sort of, but not in the sense of a full blown system In simple terms, Docker is a software platform that simplifies the process of building, running, managing and distributing applications. It does this by virtualizing the operating system of the computer on which it is installed and running.
  • Testing out Webdock.io

    Moved Announcements
    2
    5
    5 Votes
    2 Posts
    597 Views
    Just coming back to this thread for review (as I often do), and it looks like Webdock have increased their available offerings - some are extremely powerful, yet very competitive from the pricing perspective. [image: 1692559685163-7cf9a928-ac21-44fe-99c6-90439030d631-image.png] 10 CPU cores, plus 20Gb RAM? Well worth a look (and the asking price) - there’s also a fixed IP which is hugely beneficial. Clearly, this is well beyond what most people will want to spend - it’s more of an example (but interestingly, Sudonix runs on something not too different from the above). However, not all that glitters is gold - just have a walk through the benchmark report I found below and you’ll see a huge difference between Heztner and Webdock https://www.vpsbenchmarks.com/compare/hetzner_vs_webdock That being said, the amount of HTTP requests that Webdock handles in relation to Hetzner is superior - @DownPW you might want to have a look at this - there’s a free 24 hour trial… [image: 1692560710486-5203639b-2f62-47e6-b87b-37580ce5deae-image.png]