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

推荐订阅源

博客园 - 【当耐特】
Help Net Security
Help Net Security
P
Proofpoint News Feed
J
Java Code Geeks
爱范儿
爱范儿
Last Week in AI
Last Week in AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
F
Full Disclosure
Google DeepMind News
Google DeepMind News
H
Help Net Security
G
Google Developers Blog
Jina AI
Jina AI
Vercel News
Vercel News
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
L
Lohrmann on Cybersecurity
S
Schneier on Security
Microsoft Azure Blog
Microsoft Azure Blog
IT之家
IT之家
Security Archives - TechRepublic
Security Archives - TechRepublic
阮一峰的网络日志
阮一峰的网络日志
N
News and Events Feed by Topic
GbyAI
GbyAI
B
Blog
O
OpenAI News
博客园_首页
Cisco Talos Blog
Cisco Talos Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Hacker News: Ask HN
Hacker News: Ask HN
TaoSecurity Blog
TaoSecurity Blog
腾讯CDC
MongoDB | Blog
MongoDB | Blog
M
MIT News - Artificial intelligence
C
Cybersecurity and Infrastructure Security Agency CISA
Cyberwarzone
Cyberwarzone
Webroot Blog
Webroot Blog
Simon Willison's Weblog
Simon Willison's Weblog
Y
Y Combinator Blog
C
Cisco Blogs
A
Arctic Wolf
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Exploit Database - CXSecurity.com
Security Latest
Security Latest
AI
AI
W
WeLiveSecurity
aimingoo的专栏
aimingoo的专栏
The Register - Security
The Register - Security
Project Zero
Project Zero
H
Hackread – Cybersecurity News, Data Breaches, AI and More
N
Netflix TechBlog - Medium
Blog — PlanetScale
Blog — PlanetScale

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,可以在文章下面评论留言。