Our Linux images are tuned for good network throughput out of the box. Here's what's configured, how to change it and how to measure your speed.
BBR congestion control
BBR is a TCP congestion control algorithm that usually keeps throughput high on long-distance or slightly lossy connections. It's enabled by default on our Linux images through the file /etc/sysctl.d/90-coaihost-bbr.conf. To check:
sysctl net.ipv4.tcp_congestion_control
cat /etc/sysctl.d/90-coaihost-bbr.conf
The first command should print net.ipv4.tcp_congestion_control = bbr.
Switching back to the distribution default
Delete the file and reboot. The kernel then uses your distribution's default algorithm (usually CUBIC):
rm /etc/sysctl.d/90-coaihost-bbr.conf
reboot
A reinstall restores the file.
What speed to expect
- Each plan has a rate limit: NAT-S1 up to 200 Mbps, NAT-S2 up to 300 Mbps, NAT-S4 up to 500 Mbps and NAT-S8 up to 1 Gbps.
- These are maximums, not guarantees.
- Our datacenter is in Dallas, Texas, USA. The farther away the other end is, the higher the latency, and a single TCP connection may not reach the full rate.
- After your monthly traffic allowance is used, the speed is limited to 10 Mbps until the next reset.
Measuring throughput
iperf3 between your server and another machine you control gives the most useful numbers. On the server, run iperf3 -s -p 10201 on one of your forwarded ports (and allow that port in your firewall while testing). On the other machine:
iperf3 -c 203.0.113.10 -p 10201 -P 4 # upload to your server
iperf3 -c 203.0.113.10 -p 10201 -P 4 -R # download from your server
Stop iperf3 -s and close the port when you're done. Tests count toward your traffic allowance.
If speeds are lower than expected
- Check traffic usage on your service page to see whether you've hit the allowance.
- Test to and from more than one location. The bottleneck may be your own connection or a network in between.
- Check CPU load with
top; a busy CPU can slow encrypted transfers. - If the problem persists, open a support ticket with your iperf3 and
mtrresults.