How to maximize internet connection speed in Ubuntu

I bet you want to tweak your system to its limits, and you want a faster browsing speed. This is a bit technical, newbies are not generally advised to do such things without supervision of an adult 😛

Disabling IPV6 can improve your connection. Most applications (still) use the IPV4 protocol, and IPV6 is still on the works anyhow.

sudo gedit /etc/modprobe.d/bad_list

insert this line:

alias net-pf-10 off

save and close the file.

Speed up Broadband Internet by modifying the default configuration

sudo gedit /etc/sysctl.conf

You can use these numbers in the first four lines of the configuration:

Now, add this to the end of the configuration file:

net.core.rmem_default = 524288
net.core.rmem_max = 524288
net.core.wmem_default = 524288
net.core.wmem_max = 524288
net.ipv4.tcp_wmem = 4096 87380 524288
net.ipv4.tcp_rmem = 4096 87380 524288
net.ipv4.tcp_mem = 524288 524288 524288
net.ipv4.tcp_rfc1337 = 1
net.ipv4.ip_no_pmtu_disc = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_fack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_ecn = 0
net.ipv4.route.flush = 1

Reboot to see the changes, or perform

sudo sysctl -p

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.