Search Linux Info on Web

Custom Search

Saturday, November 8, 2008

Broadband Speed Hack

My system is a dual boot of Windows Vista and KUbuntu 3.5
I am using BSNL Broadband connection (India). During the speedTest which i took in both the operating systems, i found that Vista was showing a speed of 144 kbps and Kubuntu was showing 52 kbps. The downloads were pathetic in Kubuntu which made me switch to Vista for all internet activities.
Well, i was on a hunt to find an answer which i found was this :-
Open /etc/sysctl.conf as root user.
At the end of the file paste the following lines :-
# Tweaks for faster broadband...
net.core.rmem_default = 32768
net.core.rmem_max = 32768
net.core.wmem_default = 32768
net.core.wmem_max = 32768
net.ipv4.tcp_wmem = 4096 32768 32768
net.ipv4.tcp_rmem = 4096 32768 32768
net.ipv4.tcp_mem = 32768 32768 32768
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
Save the file and fire up the Terminal to type sudo sysctl.conf -p to reload the above kernel parameters OR just restart the system for the tweak to take effect.

To my surprise when i retook the speed tests, it showed an amazing result of 1.47 Mbps !!!!
I checked my previous google search time which showed google took 0.29 seconds. I just refreshed the same page. Google showed up the same data in 0.08 seconds. Impressive speed!!!!

/etc/sysctl.conf - is a Configuration file for setting system variables. Hence open with care!
You might have to tweak the value 32768 (all occurrences in the following) to any power of 2 that works perfectly fine for you.Although this fix was tried out in KUbuntu it is possible that this might work for other distros with comparable kernels. It looks like the DSL routers and connections are optimized for the default values used in windows. So just tweak the values used in GNU/Linux to match the router - simple.

1 comment:

Anonymous said...

I dint understand the process. Plz make it clear