在OpenVZ平台的服务器上安装魔改版的BBR

    BBR算法刚发布的时候,看网上的测评,都说这个拥塞算法比现有的拥塞算法带宽利用率高。
    OpenVZ上使用BBR有很多种版本,例如UML、LKL。这里介绍的是LKL的rinetd版本的。
    项目地址:https://github.com/mixool/rinetd
安装方法:
1、下载二进制执行文件:

wget --no-check-certificate https://raw.githubusercontent.com/mixool/rinetd/master/rinetd_bbr_powered
 -O ./rinetd

2、添加可执行权限

chmod +x ./rinetd

3、设置配置文件:

echo '0.0.0.0 80 0.0.0.0 80
0.0.0.0 443 0.0.0.0 443' > rinetd.conf

说明:每行的 0.0.0.0 port 0.0.0.0 port,其中port为要加速的端口。可以自行添加。
4、启动BBR

./rinetd -f -c ./rinetd.conf raw venet0:0 &

说明:其中venet0:0为网络接口名称,OpenVZ一般为venet0:0,根据实际情况修改。

现在,BBR加速设置好了,你要以测试对比加速前后的效果。

提示:github项目中,作者增加了一键脚本,方便了许多。

curl https://raw.githubusercontent.com/linhua55/lkl_study/master/get-rinetd.sh | bash

只需要按提示设置端口就好了。
说明:该脚本默认只加速一个端口,若要添加端口,修改/etc/rinetd-bbr.conf文件,如上述的步骤3。

评论

  1. 5 年前
    2019-3-19 6:56:27

    These are genuinely impressive ideas in concerning blogging.
    You have touched some fastidious things here. Any way keep up wrinting.

  2. 5 年前
    2019-5-05 18:32:10

    Very descriptive post, I liked that a lot.
    Will there be a part 2?

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇