amazon ec2 enable tcp bbr

How does amazon ec2 enable tcp bbr?

https://aws.amazon.com/cn/amazon-linux-ami/2017.09-release-notes/

New Features

Kernel 4.9.51

The Kernel has been updated to latest 4.9.y stable tree, new ENA driver 1.3.0 as well as support for TCP Bottleneck Bandwidth and RTT (BBR) which improve network performance.

BBR is not enabled by default. You can enable it on your EC2 Instance via:

$ sudo modprobe tcp_bbr

$ sudo modprobe sch_fq

$ sudo sysctl -w net.ipv4.tcp_congestion_control=bbr

Persistent configuration should look like:

$ sudo su -

# cat < /etc/sysconfig/modules/tcpcong.modules

>#!/bin/bash

> exec /sbin/modprobe tcp_bbr >/dev/null 2>&1

> exec /sbin/modprobe sch_fq >/dev/null 2>&1

> EOF

# chmod 755 /etc/sysconfig/modules/tcpcong.modules

# echo "net.ipv4.tcp_congestion_control = bbr" >> /etc/sysctl.d/00-tcpcong.conf

 

 

 

Post: 2017-10-09 15:04:41

Views: 1

Follow me: @twitter @github
Scan QR code and Donate me via alipay:
donate me via alipay
Donate me Bitcoin:136MYemy5QmmBPLBLr1GHZfkES7CsoG4Qh
Powered by GoSense RSS