惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
罗磊的独立博客
T
The Blog of Author Tim Ferriss
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
Last Week in AI
Last Week in AI
美团技术团队
Google Online Security Blog
Google Online Security Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
D
Docker
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件
月光博客
月光博客
L
LINUX DO - 最新话题
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
W
WeLiveSecurity
H
Heimdal Security Blog
Vercel News
Vercel News
SecWiki News
SecWiki News
Forbes - Security
Forbes - Security
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
TaoSecurity Blog
TaoSecurity Blog
T
Troy Hunt's Blog
A
About on SuperTechFans
C
Check Point Blog
S
Security Affairs
Hacker News - Newest:
Hacker News - Newest: "LLM"
AI
AI
WordPress大学
WordPress大学
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Help Net Security
Help Net Security
博客园_首页
The Last Watchdog
The Last Watchdog
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Engineering at Meta
Engineering at Meta
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
I
Intezer
K
Kaspersky official blog
M
MIT News - Artificial intelligence
J
Java Code Geeks
G
GRAHAM CLULEY
P
Palo Alto Networks Blog

Rat's Blog - BBR

Ubuntu 18.04/18.10快速开启Google BBR的方法 - Rat's Blog CentOS 6/7手动安装BBR和魔改BBR教程 - Rat's Blog 超级暴力版魔改BBR一键脚本 for Debian - Rat's Blog OpenVZ平台魔改BBR一键脚本之Rinetd方式 - Rat's Blog OpenVZ平台安装魔改BBR:LKL一键安装脚本 - Rat's Blog BBR+BBR魔改+Lotsever(锐速)一键脚本 for Centos/Debian/Ubuntu - Rat's Blog 魔改BBR一键安装脚本 for Debian/CentOS - Rat's Blog Debian 9/10快速开启Google BBR的方法,实现高效单边加速 - Rat's Blog OpenVZ平台Google BBR加速TCP之Rinetd方式 - Rat's Blog
Debian/Ubuntu开启超级暴力版魔改BBR教程 - Rat's Blog
博主: Rat's · 2018-02-26 · via Rat's Blog - BBR

说明:超级暴力版魔改BBR源码由南琴浪大佬提供,具体有多暴力博主暂时没怎么测试,这里只说下安装教程。

安装

系统要求:Debian/Ubuntu系统,内核版本v4.9.3-v4.12.x。得安装gccMakefile默认只支持gcc 6,你可以修改它(例如)gcc-4.9

1、更换内核并开启BBR
这里手动安装,方法从BBR刚出来时就在博客说过,这里再说一次。内核下载地址:http://kernel.ubuntu.com/~kernel-ppa/mainline/。且魔改BBR需要3个内核linux-imagelinux-headers-alllinux-headers-$bit,这里以v4.10.1为例。

内核下载

#64位系统
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1/linux-headers-4.10.1-041001-generic_4.10.1-041001.201702260735_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1/linux-headers-4.10.1-041001_4.10.1-041001.201702260735_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1/linux-image-4.10.1-041001-generic_4.10.1-041001.201702260735_amd64.deb

#32位系统
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1/linux-headers-4.10.1-041001-generic_4.10.1-041001.201702260735_i386.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1/linux-headers-4.10.1-041001_4.10.1-041001.201702260735_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1/linux-image-4.10.1-041001-generic_4.10.1-041001.201702260735_i386.deb

内核安装,且安装顺序不要变,依次imageheaders_allheaders,不然会出错。

dpkg -i linux-image-4.10.1-041001-generic_4.10.1-041001.201702260735_i386.deb
dpkg -i linux-headers-4.10.1-041001_4.10.1-041001.201702260735_all.deb
dpkg -i linux-headers-4.10.1-041001-generic_4.10.1-041001.201702260735_i386.deb

查看内核

dpkg -l|grep linux-image
dpkg -l|grep linux-headers

删除旧内核

apt-get purge (旧内核名称)

内核更新

update-grub

重启

reboot

保存生效

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p

查看内核是否已开启BBR

sysctl net.ipv4.tcp_available_congestion_control

显示以下即启动成功

# lsmod | grep bbr
tcp_bbr                20480  14

2、安装超级暴力版魔改BBR
安装环境

apt install -y gcc git make

下载暴力魔改BBR源码

git clone https://github.com/nanqinlang/tcp_nanqinlang-test.git

查看/usr/bin文件夹gcc文件。

find /usr/bin/gcc*

此时可以看到几个文件,找到gcc-5,也可以是6,具体自己看着办。如果没看到gcc-6,则需要编辑Makefile文件。

cd tcp_nanqinlang*
nano Makefile

modules CC=/usr/bin/gcc-6后面的gcc修改成刚刚看到的gcc版本文件,如gcc-5

安装暴力魔改BBR

make
make install

有问题请咨询大佬,南琴浪博客:https://sometimesnaive.org/


版权声明:本文为原创文章,版权归 Rat's Blog 所有,转载请注明出处!

本文链接:https://www.moerats.com/archives/522/

如教程需要更新,或者相关链接出现404,可以在文章下面评论留言。