开启BBR 加速小VPS访问速度
🕙 by pyList at 2019-04-23 21:09
TCP BBR 是 Google 开发的新的拥塞控制算法,据说是用在 YouTube 上,后来开源并且已经集成到 Linux 4.9-rc8 之后版本的内核中。它可以极大提高网络速度,大大降低延迟。
加速效果如下图所示:
如果你的 VPS 使用的是 OpenVZ 的虚拟技术,你是不能使用 BBR 的。并且系统要求在 CentOS 6+,Debian 7+,Ubuntu 12+。
对于4.9+的内核,默认编译了 TCP BBR 的内容,可以直接通过参数开启
uname -r 看看是不是内核 >= 4.9
执行 lsmod | grep bbr
,如果结果中没有 tcp_bbr
的话就先执行
modprobe tcp_bbr
echo "tcp_bbr" >> /etc/modules-load.d/modules.conf
执行
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
保存生效
sysctl -p
会有提示:
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr
执行
sysctl net.ipv4.tcp_available_congestion_control
sysctl net.ipv4.tcp_congestion_control
如果结果都有bbr, 则证明你的内核已开启bbr
root@localhost:~# sysctl net.ipv4.tcp_available_congestion_control
net.ipv4.tcp_available_congestion_control = reno cubic bbr
root@localhost:~# sysctl net.ipv4.tcp_congestion_control
net.ipv4.tcp_congestion_control = bbr
看到有 tcp_bbr 模块即说明bbr已启动
再实行 lsmod | grep bbr
,显示以下即启动成功:
lsmod | grep bbr
tcp_bbr 20480 14
本文网址: https://pylist.com/t/1556024954 (转载注明出处)
如果你有任何建议或疑问可以在下面 留言
精彩评论
发表评论
相关推荐
小工具
标签
bbr
openwrt
路由
开启
vps
mysql
nginx
128
tornado
sae
python
gzip
方法
ssh
密钥
登录
ip
ramnode
更换
访问
ssdb
内存
配置
国外
反向
bottle
bjoern
小站
廉价
国内
google
身份验证
authenticator
迁移
手机
格式
转换
常见
时间
xor
解密
加密
u盘
mac
diskutil
格式化
顽固
之坑
files
golang
open
服务
app
store
未知
xmltodict
gbk
xml
编码
usb
上网卡
共享
网络
sqlite
数据库
提速
经验
固件
debian
ubuntu
编译
系统启动
硬件加速
ubnt
er
最新版
wndr4300
升级
访问速度
加速
failed
load
devtools
sourcemap
chrome
自动更新
microsoft
关闭
静音
风扇
主机
笔记本
改造
低功耗
web
爬虫
服务器
组装
微信
尝鲜
视频
体验
cpu
查看
温度
server
浏览
webdriver
微博
selenium
gnu
linux
安装
宅家
坑记
屏幕
动手
quic
抢先
最近发表
- Chrome 控制台 DevTools failed to load SourceMap 警告的消除方法
- Mac 关闭 Microsoft 自动更新
- Mac 登录 App Store 出现“发生了未知错误”的解决方法
- 老笔记本改造为无风扇静音主机方案
- 自己组装21瓦低功耗家庭爬虫、文件、web服务器
- 微信视频号尝鲜体验
- Ubuntu/Debian 查看CPU温度的方法
- 在Ubuntu/debian Server 系统使用Chrome 无头浏览模式
- 换手机后 Google 身份验证器 Google Authenticator 数据迁移的简单方法
- 使用Golang selenium WebDriver 自动登录微博
- 在 Ubuntu 或其它 GNU/Linux 系统下安装 Debian
- Mac 下制作 USB ubuntu/debian 系统启动、安装盘的几种方法
- ubuntu/debian 下自行编译 OpenWRT 固件
- 宅家自己动手换手机屏幕掉坑记
- 路由 UBNT ER-X 官方固件升级及开启硬件加速的方法
- 在 Nginx 和 Golang web 上抢先体验 QUIC
最近浏览
- OpenWrt 国内源
- 换手机后 Google 身份验证器 Google Authenticator 数据迁移的简单方法
- python 常见的时间格式转换
- 用python 实现XOR 加密解密的方法
- 在终端使用Mac diskutil 命令格式化顽固U盘
- Golang 服务之坑:too many open files
- Mac 登录 App Store 出现“发生了未知错误”的解决方法
- python xmltodict 解析xml gbk 编码问题解决
- Openwrt 使用USB 4G 上网卡共享网络
- Openwrt 路由上开启BBR
- python SQLite 数据库提速经验
- ubuntu/debian 下自行编译 OpenWRT 固件
- Mac 下制作 USB ubuntu/debian 系统启动、安装盘的几种方法
- 路由 UBNT ER-X 官方固件升级及开启硬件加速的方法
- WNDR4300 固件升级到 OpenWrt 最新版
- 开启BBR 加速小VPS访问速度
博客不错!