静看光阴荏苒
不管不顾不问不说也不念

BBR v2 Alpha/Preview 一键安装

Google前几天发布了一个BBRv2的测试版本,我闲来无事把它编译出来了,然后随便撸了个一键安装脚本,有想尝鲜的可以试试。

提醒:给Linux换内核是有一定风险的,生产机器请勿随意换内核。

使用:

git clone https://github.com/xiya233/bbr2.git
cd bbr2
chmod +x bbr2.sh
./bbr2.sh

昨晚我随便测试了下,好像BBR2带了个什么ECN啥的,开了感觉比BBRv1快一些,也不知道是不是心理作用:

echo 1 > /sys/module/tcp_bbr2/parameters/ecn_enable

溜了溜了。。

赞(7)
未经允许不得转载:荒岛 » BBR v2 Alpha/Preview 一键安装
分享到: 更多 (0)

评论 28

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #1

    lala,我有个问题,就是阿里云的oss支持同一地域服务器访问不计流量,我想有没有什么办法通过我的服务器来对oss做个转接?

    JiuDe4个月前 (08-09) MIUI Browser 10.9.2 MIUI Browser 10.9.2 Android 9 Android 9回复
    • 抱歉,我没有用过阿里云的对象存储,不是很了解这块。

      LALA4个月前 (08-10) Google Chrome 74.0.3729.169 Google Chrome 74.0.3729.169 Windows 10 x64 Edition Windows 10 x64 Edition回复
    • 这玩意我会,最简单的用https://github.com/cloudreve/Cloudreve这个可以直接挂载。

      南黎4个月前 (08-11) Google Chrome 76.0.3809.89 Google Chrome 76.0.3809.89 Android 9 Android 9回复
  2. #2

    ubuntu 16.04 安装重启后会自动消失,也没提示你的系统不支持 :sad:

    阿乐乐·4个月前 (08-10) Google Chrome 76.0.3809.100 Google Chrome 76.0.3809.100 Windows 10 x64 Edition Windows 10 x64 Edition回复
    • 是安装内核了重启之后内核没更换还是压根没安装上,我刚在16.04上测试了一下发现这个版本的bash不支持apt -y install *这种命令,你可以自己cd到debian的目录然后dpkg -i安装试试看。

      LALA4个月前 (08-10) Google Chrome 74.0.3729.169 Google Chrome 74.0.3729.169 Windows 10 x64 Edition Windows 10 x64 Edition回复
  3. #3

    用上了,体验还不错 :mrgreen:

    ixuner4个月前 (08-10) Google Chrome 74.0.3729.169 Google Chrome 74.0.3729.169 Windows 10 x64 Edition Windows 10 x64 Edition回复
  4. #4

    拉拉越来越短了 :neutral:

    橘子4个月前 (08-10) Google Chrome 76.0.3809.86 Google Chrome 76.0.3809.86 Windows 8.1 x64 Edition Windows 8.1 x64 Edition回复
  5. #5

    请问楼主,杜班8、9、10都出现E: Couldn’t find any package的错误。dpkg -i也不行。

    Cloning into ‘bbr2’…
    remote: Enumerating objects: 6, done.
    remote: Counting objects: 100% (6/6), done.
    remote: Compressing objects: 100% (6/6), done.
    remote: Total 28 (delta 2), reused 0 (delta 0), pack-reused 22
    Unpacking objects: 100% (28/28), done.
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Unable to locate package Initial commit
    E: Unable to locate package linux-headers-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb
    E: Couldn’t find any package by glob ‘linux-headers-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb’
    E: Couldn’t find any package by regex ‘linux-headers-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb’
    E: Unable to locate package linux-image-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb
    E: Couldn’t find any package by glob ‘linux-image-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb’
    E: Couldn’t find any package by regex ‘linux-image-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb’
    sysctl: setting key “net.ipv4.tcp_congestion_control”: No such file or directory
    net.ipv4.tcp_congestion_control = bbr2
    net.ipv4.tcp_ecn = 1
    内核安装完成,重启生效,是否现在重启?[Y/n] :y
    正在重启

    nick4个月前 (08-11) Google Chrome 70.0.3538.110 Google Chrome 70.0.3538.110 Windows 10 x64 Edition Windows 10 x64 Edition回复
    • 我这个脚本只在CentOS7和Debian10上试过,写的也很粗糙,不能用的话,那手动安装试试吧,也就几条命令的事情:
      git clone https://github.com/xiya233/bbr2.git
      cd bbr2/debian
      dpkg -i linux-image-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb
      dpkg -i linux-headers-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb
      echo “net.ipv4.tcp_congestion_control = bbr2” >> /etc/sysctl.conf
      echo “net.ipv4.tcp_ecn = 1” >> /etc/sysctl.conf
      sysctl -p
      reboot
      echo 1 > /sys/module/tcp_bbr2/parameters/ecn_enable

      LALA4个月前 (08-11) Google Chrome 74.0.3729.169 Google Chrome 74.0.3729.169 Windows 10 x64 Edition Windows 10 x64 Edition回复
  6. #6

    v2 alpha和bbrplus哪个更好呢?

    Alpha4个月前 (08-13) Safari 13.0 Safari 13.0 iPhone iOS 13.0 iPhone iOS 13.0回复
    • 没测试过,你可以自己装了试试看。但如果从长远方向去看,我觉得v2会更好。

      LALA4个月前 (08-14) Google Chrome 74.0.3729.169 Google Chrome 74.0.3729.169 Windows 10 x64 Edition Windows 10 x64 Edition回复
  7. #7

    我把SELINUX关了然后换了内核无法启动了,然后开机速度太快vnc连上已经加载了23333 :cry:

    橘子4个月前 (08-15) Google Chrome 76.0.3809.91 Google Chrome 76.0.3809.91 Windows 10 x64 Edition Windows 10 x64 Edition回复
    • 快拿出你那强壮的右手光速连接VNC233

      LALA4个月前 (08-16) Google Chrome 74.0.3729.169 Google Chrome 74.0.3729.169 Windows 10 x64 Edition Windows 10 x64 Edition回复
      • 我是强壮的左手2333 :mrgreen: :?:

        MintTang4个月前 (08-16) Google Chrome 78.0.3872.0 Google Chrome 78.0.3872.0 Windows 10 x64 Edition Windows 10 x64 Edition回复
  8. #8

    你好一定要Ubuntu 19.04嗎 謝謝 :cry: :eek:

    SamPI-Death4个月前 (08-19) Google Chrome 76.0.3809.100 Google Chrome 76.0.3809.100 Windows 10 x64 Edition Windows 10 x64 Edition回复
    • CentOS7/Debian8/Debian9/Ubuntu16.04+都可以啊。。

      LALA4个月前 (08-19) Google Chrome 74.0.3729.169 Google Chrome 74.0.3729.169 Windows 10 x64 Edition Windows 10 x64 Edition回复
      • 好吧謝啦 :mrgreen: 我去研究研究 :evil:

        SamPI-Death4个月前 (08-20) Google Chrome 76.0.3809.100 Google Chrome 76.0.3809.100 Windows 10 x64 Edition Windows 10 x64 Edition回复
  9. #9

    请输入数字(1/2/3) 1:安装BBRv2 2:开启ECN 3:我是咸鱼我退出:1
    Hit:1 http://mirror.init7.net/ubuntu disco InRelease
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    All packages are up to date.
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    git is already the newest version (1:2.20.1-2ubuntu1).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Cloning into ‘bbr2’…
    remote: Enumerating objects: 6, done.
    remote: Counting objects: 100% (6/6), done.
    remote: Compressing objects: 100% (6/6), done.
    remote: Total 28 (delta 2), reused 0 (delta 0), pack-reused 22
    Unpacking objects: 100% (28/28), done.
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Unable to locate package Initial commit
    E: Unable to locate package linux-headers-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb
    E: Couldn’t find any package by glob ‘linux-headers-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb’
    E: Couldn’t find any package by regex ‘linux-headers-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb’
    E: Unable to locate package linux-image-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb
    E: Couldn’t find any package by glob ‘linux-image-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb’
    E: Couldn’t find any package by regex ‘linux-image-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb’

    小白兔3个月前 (09-20) Google Chrome 77.0.3865.75 Google Chrome 77.0.3865.75 Windows 10 x64 Edition Windows 10 x64 Edition回复
  10. #10

    安装遇到错误

    小白兔3个月前 (09-20) Google Chrome 77.0.3865.75 Google Chrome 77.0.3865.75 Windows 10 x64 Edition Windows 10 x64 Edition回复
    • 用这个命令装试试,应该不是错误而是根本没装。。
      dpkg -i linux-image-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb
      dpkg -i linux-headers-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb

      LALA3个月前 (09-24) Google Chrome 74.0.3729.169 Google Chrome 74.0.3729.169 Windows 10 x64 Edition Windows 10 x64 Edition回复
  11. #11

    能否编译一个5.3内核的? 我使用ubuntu 19.0.4

    小白兔3个月前 (09-20) Google Chrome 77.0.3865.75 Google Chrome 77.0.3865.75 Windows 10 x64 Edition Windows 10 x64 Edition回复
  12. #12

    比bbr慢好多

    aaaRRR3个月前 (09-29) Google Chrome 77.0.3865.90 Google Chrome 77.0.3865.90 Windows 10 x64 Edition Windows 10 x64 Edition回复
  13. #13

    最后一步的开启ECN的时候,显示-bash: /sys/module/tcp_bbr2/parameters/ecn_enable: No such file or directory
    请问大佬如何解决呢? :cry:

    乙津梦2个月前 (10-02) Google Chrome 77.0.3865.90 Google Chrome 77.0.3865.90 Windows 7 x64 Edition Windows 7 x64 Edition回复
    • uname -a看看内核换成功了吗,没成功的话才会报这个错误。

      LALA2个月前 (10-02) Google Chrome 74.0.3729.169 Google Chrome 74.0.3729.169 Windows 10 x64 Edition Windows 10 x64 Edition回复
  14. #14

    你好,看了下你的一键脚本里面似乎没有加net.core.default_qdisc = fq
    bbr2是不需要这个了吗?

    Jack2个月前 (10-23) Google Chrome 69.0.3497.100 Google Chrome 69.0.3497.100 Android 6.0.1 Android 6.0.1回复
    • 不需要,你如果不确定的话,可以执行:lsmod | grep bbr2验证。

      LALA2个月前 (10-24) Google Chrome 74.0.3729.169 Google Chrome 74.0.3729.169 Windows 10 x64 Edition Windows 10 x64 Edition回复
  15. #15

    怎么卸载呢,用了速度反而变慢了,后续版本都不支持cent的了 哎

    会议1周前 (12-05) Google Chrome 74.0.3729.169 Google Chrome 74.0.3729.169 Windows 10 x64 Edition Windows 10 x64 Edition回复
    • grub把启动项改为之前的内核然后重启就行了。后续版本?centos8的内核默认是4.19可以直接开bbr。

      LALA1周前 (12-05) Google Chrome 74.0.3729.169 Google Chrome 74.0.3729.169 Windows 10 x64 Edition Windows 10 x64 Edition回复

分享创造快乐

广告合作资源投稿