How to Enable Google’s TCP BBR on a Linux VPS

How to enable Google's TCP BBR on a Linux VPS

This article was contributed by Dustin B. Cisneros of RackNerd – LowEndBox appreciates your contribution as always! Be sure to check out RackNerd’s latest LowEndBox specials if you are looking for a KVM VPS.

Google’s TCP BBR, or “Bottleneck Bandwidth and Round-trip propagation time,” is a congestion control system based on cutting-edge technology. It is the same system used for traffic through Google.com, as well as YouTube. It was the reason that YouTube’s network throughput was increased by 4% annually. Moreover, Google’s BBR also significantly reduces latency as the querying, and queuing delays are minimized.

We have written this guide for you so that you can enable Google’s BBR on your Linux virtual private server.

There would be two steps in the guide, where step 1 can be optional in some instances. Let us start!

Step 1. Check and upgrade your kernel

We need Linux kernel version 4.9.0 or higher to support Google’s BBR. We will guide you on how to update it for both CentOS 7 and Ubuntu. 

To check your current kernel version, run this command:

uname -r

If this command returns a kernel version higher than 4.9.0, then you can skip step 1.

CentOS 7 Based Systems:
1) Install Elrepo repo

To update the CentOS kernel, we need to install the Elrepo repo via the following commands:

sudo rpm –import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

sudo rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

2) Update your kernel

To install the updated kernel, run the following two commands:

sudo yum –enablerepo=elrepo-kernel install kernel-ml -y

yum list installed kernel

3) Set default boot entry

Run this command to see the list of kernels:

sudo egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d ’

You should find your newly installed kernel at the top of the list. Then run the following command:

sudo grub2-set-default 0

4) Reboot and verify

Now reboot your VPS, and after it turns back on, rerun the following command to verify the install:

uname -r

Ubuntu 18.04 Based Systems

The kernel version should be compatible with Google’s BBR if you are running Ubuntu 18.04. However, you can still upgrade the kernel using the following commands.

cd /tmp/

wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.4.13/linux-headers-5.4.13-050413_5.4.13-050413.202001171431_all.deb

wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.4.13/linux-headers-5.4.13-050413-generic_5.4.13-050413.202001171431_amd64.deb

wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.4.13/linux-headers-5.4.13-050413-lowlatency_5.4.13-050413.202001171431_amd64.deb

wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.4.13/linux-image-unsigned-5.4.13-050413-generic_5.4.13-050413.202001171431_amd64.deb

wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.4.13/linux-image-unsigned-5.4.13-050413-lowlatency_5.4.13-050413.202001171431_amd64.deb

wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.4.13/linux-modules-5.4.13-050413-generic_5.4.13-050413.202001171431_amd64.deb

wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.4.13/linux-modules-5.4.13-050413-lowlatency_5.4.13-050413.202001171431_amd64.deb

sudo dpkg -i *.deb

After running the commands, reboot your VPS by running the “reboot” command.

Step 2. Enable Google’s TCP BBR

The instructions below are the same for both CentOS and Ubuntu.

To start, open “/etc/sysctl.conf” in any text editor, or run the command to open it in vim or nano (your preferred text editor):

sudo vim /etc/sysctl.conf

At the end of the config file, add the following lines:

net.core.default_qdisc=fq

net.ipv4.tcp_congestion_control=bbr

Then save the file, and refresh your configuration using this command:

sudo sysctl -p

Google’s BBR congestion control system has now been enabled on your VPS, to verify this, run this command:

sysctl net.ipv4.tcp_congestion_control

If the enabling process were successful, the output would be:

net.ipv4.tcp_congestion_control = bbr

You have now successfully enabled Google’s TCP BBR on your VPS!

Have you enabled Google’s TCP BBR on your Linux VPS? Have you seen any performance benefits? Please leave your questions or feedback in the comments section below!

The post How to Enable Google’s TCP BBR on a Linux VPS appeared first on Low End Box.

Read more »

Best Asia Optimized VPS and Hosting Providers

Best Asia Optimized Cheap VPS HostsIf you are looking for an Asia Optimized VPS, whether it be because you are located in Asia, or you have your audience/end-users located within the Asia region and want to provide the best network connectivity to your website/server, then you’ve come to the right place.

In this post, we will outline some of the best Asia Optimized VPS providers in 2020. Some of the qualifications we used to determine the providers to cover in this post include: track record/history, customer reviews, community engagement, network quality, providers/carriers in network blend, latency to Asia (tested using ping.pe), and more.

Generally speaking, VPS’s in the West Coast (i.e. Seattle, Los Angeles, San Jose) should provide a decent latency to Asia given the geographic distance, however for those who are ultra-sensitive to latency – you will want to consider a provider with China Telecom, China Mobile, China Unicom, PCCW, etc within their network blend. Before buying, ask the provider for a Looking Glass (or a test IP/test file) to test the speeds from your location before ordering. Your network experience will always vary from that of your friends for example, so always ask for a test IP before buying!

DediPath - VPS and Dedicated Servers in Los Angeles and New JerseyDediPath – Los Angeles VPS (GTT, Cogent, China Telecom & More)

DediPath is owned and managed by industry veterans whom have extensive experience in the IaaS industry. Their Los Angeles location consists of multiple network carriers optimized by Internap Flow Control, providing decent latency and connections to Asia & worldwide.

Test IP: 194.180.179.242

512MB VPS

  • 1 CPU Core
  • 512 MB RAM
  • 10 GB SSD Storage
  • Unmetered Bandwidth
  • 1000Mbps Port
  • 1 Dedicated IPv4 Address
  • SolusVM/OpenVZ Control Panel
  • $20/year
  • [ORDER]
1GB VPS

  • 2 CPU Cores
  • 1 GB RAM
  • 30 GB SSD Storage
  • Unmetered Bandwidth
  • 1000Mbps Port
  • 1 Dedicated IPv4 Address
  • SolusVM/OpenVZ Control Panel
  • $3.50/month
  • [ORDER]

RackNerd VPS HostingRackNerd – Best Asia Optimized VPS (China Telecom, China Mobile, China Unicom, and More)

RackNerd is a VPS provider who provides some of the best network connectivity to Asia because of its optimized network blend, which specifically includes China Telecom, China Mobile, China Unicom and more within the network mix. This translates to low latency, and stable network connectivity to users from Asia even during peak times where internet congestion is high between the US and Asia.

Here’s their Looking Glass: http://lg-lax02.racknerd.com/

Test IP: 204.13.154.3

Their recent Asia Optimized VPS offers are listed below:

2.5 GB KVM Flash Sale

  • 3x vCPU Core
  • 40GB SSD Cached RAID-10 Storage
  • 2.5GB RAM
  • 6000GB Monthly Bandwidth
  • 1Gbps Network Port
  • Full Root Admin Access
  • 1 Dedicated IPv4 Address
  • KVM / SolusVM Control Panel
  • LOCATION: Los Angeles
  • JUST $27.80/YEAR!
  • [ORDER HERE]
LEB Special 4GB

  • 3x vCPU Cores
  • 4GB RAM
  • 45GB SSD RAID-10 Storage
  • 6TB Premium Bandwidth
  • 1 Gbit Port
  • Full Root Access
  • 1 Dedicated IPv4 Address
  • KVM/SolusVM
  • Location: Los Angeles
  • Pricing: $35.68/year
  • [ORDER HERE]

Virmach VPS HostingVirmach – Los Angeles VPS (Cogent, TeliaNet, and More)

Virmach is a very well known and respected provider within the community. While they do not specifically include Asian carriers within the network blend at this time, they offer affordable VPS servers in Los Angeles which naturally provide decent latency to Asia given the geographic distance. This could be a solid option to consider, if you do not require the absolute best latency to Asia but want to obtain an excellent value from a trusted provider that has been time-tested with plenty of good ratings.

Test IP (Virmach Los Angeles): 107.175.180.6

35% OFF – SSD512 to SSD32G Packages

  • 512MB to 32GB RAM
  • 1x vCPU @ 2GHz to 8x vCPU @ 3GHz
  • 15GB to 500B SSD (RAID 10)
  • 1TB to 10TB Bandwidth
  • 1Gbps to 10Gbps Available
  • 1x Dedicated IPv4 (More Available)
  • KVM/SolusVM
  • Windows & Linux (Windows +$2)
  • Up to 50Gbps DDoS Protection in Buffalo, NY
  • Coupon: LEB35LOSANGELES
  • Starting from $1.62/mo (After 35% Savings)
  • [ORDER]

LosAngeles VPS HostingLosAngelesVPS – Los Angeles VPS (Internap, NTT, Comcast, Cogent, and more)

LosAngelesVPS is a provider who leverages Internap’s network blend – which consists of NTT, Comcast, Cogent, and more. For users in Japan, the connectivity to NTT is a big plus. They were recently featured on LowEndBox with decent reviews. One noteworthy feature to point out is every VPS package of theirs includes unmetered bandwidth, this can be a good option if you’re looking to transfer a lot of bandwidth without having to worry about a bandwidth meter.

Test IP: 83.136.180.112

Unmetered 2.5GB KVM

  • 2 CPU Core
  • 2.5 GB RAM
  • 35 GB SSD Storage
  • Unmetered Bandwidth
  • 1000Mbps Port
  • 1 Dedicated IPv4 Address
  • Virtualizor Control Panel
  • KVM Virtualization
  • Linux OS Choices
  • 10Gbps DDoS Protection – Now Included Free
  • $27.99/year
  • [ORDER]
Unmetered 4GB KVM

  • 3 CPU Cores
  • 4 GB RAM
  • 60 GB SSD Storage
  • Unmetered Bandwidth
  • 1000Mbps Port
  • 1 Dedicated IPv4 Address
  • Virtualizor Control Panel
  • KVM Virtualization
  • Linux OS Choices
  • 10Gbps DDoS Protection – Now Included Free
  • $52.75/year
  • [ORDER]

RamNode VPS HostingRamNode – Los Angeles VPS (PCCW, Verizon, NTT, and more)

RamNode’s Los Angeles location consists of PCCW, Verizon, NTT & more within their network blend, providing decent latency and network connectivity to Asia. RamNode was founded in 2012, with consistently good reviews from customers.

Test IP: 168.235.72.22

512MB VPS

  • 1 CPU Core
  • 512 MB RAM
  • 15 GB SSD Storage
  • 1 TB Transfer
  • 1000Mbps Port
  • 1 Dedicated IPv4 Address
  • Fleio Control Panel
  • $3/month
  • [ORDER]
1GB VPS

  • 2 CPU Cores
  • 1 GB RAM
  • 35 GB SSD Storage
  • 2 TB Transfer
  • 1000Mbps Port
  • 1 Dedicated IPv4 Address
  • Fleio Control Panel
  • $5/month
  • [ORDER]

Phonton VPS HostingPhotonVPS – Los Angeles VPS (China Mobile, ChinaNet, GTT & More)

PhotonVPS is a SSD Cloud VPS provider that is owned by Psychz Networks/Profuse Solutions, which has been in business since 1999. Their Los Angeles location is notable for its network blend, which consists of China Mobile, ChinaNet, GTT and more. These carriers, combined with the geographic location, provide decent latency to most areas of Asia. 

Test IP: 104.149.18.203

SSD 512MB VPS

  • 1GB RAM
  • 20GB SSD Disk Space
  • 2000GB Bandwidth
  • 100Mbit Port
  • 1 IP Address
  • KVM Virtualization
  • 10Gbps DDoS Mitigation!
  • $5.95/month
  • Order Now

 

Also consider checking our our Frequently Asked Questions Article about Los Angeles VPS Hosting.

What Asia Optimized VPS provider do you use? Any others that we should add to the list above? Let us know your feedback in the comments section below!

The post Best Asia Optimized VPS and Hosting Providers appeared first on Low End Box.

Read more »