How To Increase Your Internet Connection Speed in Linux

Write tutorials and howtos in here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please. Before you post please read this

How To Increase Your Internet Connection Speed in Linux

Postby Jay514 on Sun May 16, 2010 5:26 pm

Updated 11-2-11 Please Note =
Since the Ubuntu 11.04 Release update, due to the changes made too the wireless driver's & kernel - this issue has not been present on any of my systems & I HAVE BEEN able to achieve the wireless N -300MBPs Speed too my router & NAS. If this issue still persist with your hardware, You May alternatively try to insert 300M in place of the 54M, "which 54M used to be the max for the driver configuration".I suggest trying both & see what your hardware is able to achieve.

How To Increase Your Internet Connection Speed in Linux

For a very long time ( the past 3 release cycles ) I have noticed that the internet connection speed & Download Speed for All Linux Distros I have Tested (including & Ubuntu & their Editions ,Linux Mint & their CE's, Knoppix,YLMF OS, Ect.All Linux ) were very Slow as Compared to the speed on the same ISP & Hardware as the Win OS. I do not know if something was removed from a source package or what caused this decrease, but it is somewhat Linux Wide.
I have extensively looked for solutions & tested connection Speeds with Win Vs Linux Under the same exact Hardware Platforms from various sources on line The Internet ( Speedtest.net,Pingtest.net & Ect.) & from my hardware & various other computer systems( iwlist, iwconfig, ifconfig ,ect.)
Due to the release of the New LTS of Ubuntu 10 & LTS LinuxMint 9, I was thinking that it may resolve these issues, but it seems that even more Users have This Problem. So I have searched in vain for a solution & today I finally made a breakthrough, that has enabled me to achieve the same speed as my Win OS on the same Hardware, More Than Doubling My Speed in Linux !
Now I cannot guarantee that it will work with all Hardware In all situations, But I will Attempt to recreate the steps taken to achieve the desired results.
Like I said This may (or May Not ) fix Some wireless Hardware & may fix Other connections to give you the same Internet Speed & Download Speed That you get with Win on the Same Hardware.

Just as a test for your own proof, to see if it speeds up your connection, go to one of the on line speed testing sites & run a speed test before ( now ) & after (later) you have made these changes. I use Speedtest.net, but there are many others, just search in google.com.


Basically we are forcing your hardware to connect @ the maximum speed Every Time, rather than choose a lower speed , as is the default.

Ok we are going to open a terminal & find out what your hardware connection Is to the internet.

To open a terminal in Linux you can use the combo keys ( Ctrl )+( Alt )+( T )

Open a terminal for wireless enter iwconfig then hit enter. For wired eithernet enter ifconfig & hit enter.

This should display the hardware & location of =
EX =
Code: Select all
mi@Mint8-KDEX64 ~ $ iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth2      IEEE 802.11  Nickname:""
          Access Point: Not-Associated
          Link Quality:5  Signal level:207  Noise level:166
          Rx invalid nwid:0  invalid crypt:0  invalid misc:0

mi@Mint8-KDEX64 ~ $

So here you can see that my wireless adaptor is located @ ( eth2 )
YOURS MAY BE DIFFERENT SUCH AS Wlan0 OR WLAN1, note the location, keep the terminal open.


Then were going to Navigate Open the file as root user with your text editor(gedit,kate,leafpad,Ect. whatever your text editor may be for the relevant desktop version you are using ),The text file we are Going to open is /etc/rc.local
In the open terminal input, or copy & paste this code:

For Gnome
Code: Select all
sudo gedit /etc/rc.local


For KDE
Code: Select all
sudo kate /etc/rc.local


For LXDE
Code: Select all
sudo leafpad /etc/rc.local


Enter your password.(The cursor will not show you entering your password.) This should open the rc.local file as root in the text editor.

Add this exactly. to the end of the list replacing ( wlan0 ) with whatever is in your connection readout previously in the terminal you opened.
Code: Select all
iwconfig wlan0 rate 54M

At The End your text file should look like this =
...
# By default this script does nothing.
iwconfig wlan0 rate 54M
exit 0


Now save the file ( from the text editor drop down menu ) & close the Text editor. Now Close the Terminal.

By adding this to the end of the rc.local file, every time your computer connects to the Internet,It looks for the maximum speed that your connection offers.

Now You Must Reboot your Computer.

This works on all four of my systems I have modified, so far giving me the same speed that I get in Win.
I hope this works as well for you, Comments & suggestions are welcome, Have a Good Day,
Jay
Last edited by Jay514 on Thu Feb 09, 2012 1:52 am, edited 3 times in total.
Reason: Update
Image
" Do Not Do Wrong Twice,That Which You Could Have Done Right The First Time"

Main = HP Pavilion DV4-1275mx - OS=Mint_CE x64KDE/LXDE,& x64Kubuntu
User avatar
Jay514
Level 5
Level 5
 
Posts: 658
Joined: Wed Mar 25, 2009 2:14 pm
Location: Atlanta GA USA

Linux Mint is funded by ads and donations.
 

Re: How To Increase Your Internet Connection Speed in Linux

Postby GhoS on Sun May 16, 2010 5:47 pm

I'm not going to dispute that it works for you, but I actually find Linux to be slightly faster than my Windows OS on the same connection without any tweaks. Perhaps hardware has something to do with it. Just my two cents.
Image
GhoS
Level 3
Level 3
 
Posts: 138
Joined: Wed Dec 30, 2009 8:41 pm

Re: How To Increase Your Internet Connection Speed in Linux

Postby Jay514 on Sun May 16, 2010 6:06 pm

You are correct, it may limited to only some Hardware & may not work for all. Although Many users are having this issue.
By adding this to the end of the rc.local file, every time your computer connects to the internet,It looks for the maximum speed that your connection offers.

That is all it does, so you do not connect @ a lower rate.
Image
" Do Not Do Wrong Twice,That Which You Could Have Done Right The First Time"

Main = HP Pavilion DV4-1275mx - OS=Mint_CE x64KDE/LXDE,& x64Kubuntu
User avatar
Jay514
Level 5
Level 5
 
Posts: 658
Joined: Wed Mar 25, 2009 2:14 pm
Location: Atlanta GA USA

Re: How To Increase Your Internet Connection Speed in Linux

Postby Jay514 on Sun May 16, 2010 7:09 pm

Exploder PMed me & says it works for him :)
exploder wrote:I appreciate you passing on this information. I tried gnome-look, it normally takes a while to load, it doesn't any more! I pay for the premium service from Comcast, now it actually seems worth it. Thanks again.


Your Welcome, Glad it works for you. :D
Image
" Do Not Do Wrong Twice,That Which You Could Have Done Right The First Time"

Main = HP Pavilion DV4-1275mx - OS=Mint_CE x64KDE/LXDE,& x64Kubuntu
User avatar
Jay514
Level 5
Level 5
 
Posts: 658
Joined: Wed Mar 25, 2009 2:14 pm
Location: Atlanta GA USA

Re: How To Increase Your Internet Connection Speed in Linux

Postby Pilosopong Tasyo on Mon May 17, 2010 12:48 am

Nice tutorial :D

Original reply deleted/edited due to erroneous test results. Sorry about that.

Just to clarify: the rate used in iwconfig refers to the data throughput as far as upstream within the LAN is concerned, based on my observations when playing around with iwconfig.

BTW, my rc.local setting is almost the same as yours, with one additional line added before iwconfig:

Code: Select all
ifconfig wlan0 up
iwconfig wlan0 rate 54M

exit 0
Last edited by Pilosopong Tasyo on Mon May 17, 2010 4:41 am, edited 3 times in total.
Image
o Give a man a fish and he will eat for a day. Teach him how to fish and he will eat for a lifetime!
o If an issue has been fixed, please edit your first post and add the word [SOLVED].
User avatar
Pilosopong Tasyo
Level 6
Level 6
 
Posts: 1151
Joined: Mon Jun 22, 2009 3:26 am
Location: Philippines

Re: How To Increase Your Internet Connection Speed in Linux

Postby DrHu on Mon May 17, 2010 3:15 am

It depends on your wireless connection.
    Whether or not it your ISP or it is an open connection that you make use of..

The bit rate of the wireless connection will usually go to the max in any case, or at least as fast as the connection will allow; and if you have no control over it (you don't own the router), then it won't make much difference..

Somewhat more useful is determining the MTU frame rate available for your connection and adjusting that to match what is available via the router (AP, Access point), you are connected to.
--to avoid frame fragmentation, which requires re-transmittal of packets received: but again, most of the time the automatic modes (auto), rather than setting the MTU manually are sufficient..

Also, I wouldn't want to depend on my recollection of speed, by assuming something is faster because..
--I would have to see it measured, preferably almost concurrently on the same connection and the same computer while it is active..
User avatar
DrHu
Level 16
Level 16
 
Posts: 6831
Joined: Wed Jun 17, 2009 8:20 pm

Re: How To Increase Your Internet Connection Speed in Linux

Postby Jay514 on Mon May 17, 2010 9:50 pm

Thanks For the feedback Guys, I know that this will not work for all Hardware, but since it seems to help some I made the How To.

@ DrHu = Some good points there, I ran all of my test on 3 Laptops w/ Wireless & 1 Desktop w/ Ethernet connection to my Wireless router, Connected to a aDSL Modem. The modem is ATT's & it presented no issues.
I measured the speed before & after independently on each system, with the tools @ the following pages on-line
HERE = http://speedtest.net/
& HERE = http://www.pingtest.net/
Using the same Hardware, Connection,Same Speed test settings, From to The Nearest Server, Measuring Download & Up Load Speed, Ping, Line Condition, Packet Loss , Rate, ECT.
On Every System, My Speed was increased, Some more than others, but better than Before & Better than Win on the same Hardware ( In All my Laptops Cases ) So for some reason, My Linux was not & has not been connecting @ the Maximum Rate for quite a while now, on any Linux Distro I have been using, Why, I do not know, Maybe some packages were changed, Ect.This fixes my issues,so far. :)
Image
" Do Not Do Wrong Twice,That Which You Could Have Done Right The First Time"

Main = HP Pavilion DV4-1275mx - OS=Mint_CE x64KDE/LXDE,& x64Kubuntu
User avatar
Jay514
Level 5
Level 5
 
Posts: 658
Joined: Wed Mar 25, 2009 2:14 pm
Location: Atlanta GA USA

Re: How To Increase Your Internet Connection Speed in Linux

Postby tdockery97 on Tue May 18, 2010 5:43 am

Hmmm. Didn't work for me on HP laptop. My problems is really kind of weird, though. I use Wifi. I am dual booting Windows 7 and Isadora. When I log in to the Wifi with the sign on code, whichever OS I sign on with has very limited d/l speeds around 30 KB/s. The other OS runs at 160 KB/s (about 1 mbps). So of course normally I sign in with Windows so Isadora has the fast speed. Unfortunately, sometimes I forget and sign on with Isadora, then I have to use Windows for up/downloading files. Anyone ever hear of such a problem before? If so, how to solve?
Image

HP Pavilion 17 Notebook, 8GB DDR3, 2.5GHZ A10-APU, Radeon HD 8650G
User avatar
tdockery97
Level 13
Level 13
 
Posts: 4886
Joined: Sun Jan 10, 2010 8:54 am
Location: Salem, Oregon

Re: How To Increase Your Internet Connection Speed in Linux

Postby Nick_Djinn on Tue May 18, 2010 9:40 am

I thought this was about something else....you know, if you get a "testing router" you can use it in a way that will give you speeds up to 20 mbps compared to the cap of 1 to 12. All you need is a basic cable subscription.

I pay for my internet, but its an interesting tid bit.
Nick_Djinn
Level 5
Level 5
 
Posts: 646
Joined: Sat May 15, 2010 7:12 am

Re: How To Increase Your Internet Connection Speed in Linux

Postby merc1973 on Wed May 19, 2010 11:53 pm

I'm curious if this would help... I'm afraid I could screw it up, lol. Maybe if I do this, my screen wont Fade-out-dark when loading large pages (not sure why it does that.... )
User avatar
merc1973
Level 2
Level 2
 
Posts: 67
Joined: Wed Mar 17, 2010 9:07 pm

Re: How To Increase Your Internet Connection Speed in Linux

Postby GhoS on Thu May 20, 2010 3:05 pm

Finally decided to give it a try. It was actually a touch slower for me. I'm on a 7mbps connection and got 6.84 without the change and 6.54 with it. I didn't think it would matter since I get pretty good speed anyway. Sounds like it does make a change for some.
Image
GhoS
Level 3
Level 3
 
Posts: 138
Joined: Wed Dec 30, 2009 8:41 pm

Re: How To Increase Your Internet Connection Speed in Linux

Postby tinla on Fri Mar 11, 2011 1:38 am

It is a good information about internet speed test!!!
I test my internet speed, through this site www.ip-details.com/internet-speed-test
My speed test results are,
upload speed:0.52 kbps
download speed:1.96 kbps
I check my speed test before and after of the downloading process!!!!!!
tinla
Level 1
Level 1
 
Posts: 2
Joined: Thu Mar 10, 2011 7:58 am

Re: How To Increase Your Internet Connection Speed in Linux

Postby camilomusic71 on Wed Nov 02, 2011 12:47 am

Worked like a charm, went from roughly 2 mps to 7 in just a couple of minutes. Thanks!!
(p.s. very well explained, thanks for that too)
camilomusic71
Level 1
Level 1
 
Posts: 1
Joined: Wed Oct 19, 2011 10:42 pm

Re: How To Increase Your Internet Connection Speed in Linux

Postby ramartz on Fri Nov 11, 2011 3:04 pm

works for me as well.. thanks for the tips m8! 8)
ramartz
Level 1
Level 1
 
Posts: 14
Joined: Thu Nov 03, 2011 10:36 am

Re: How To Increase Your Internet Connection Speed in Linux

Postby Jay514 on Mon Nov 14, 2011 8:52 pm

Evidently, It seems that some of you users still have this issue. I am curious as what settings you guys changed too = ( 54M or 300M ) in order too achieve the increase. :?: Do any of you guys use an NAS, or have a router with storage, drives attached, as I do, & have you measured your speed too the attached drive over the wireless network. Just curious, Thanks for posting.

Glad to know it is still working for you guys,
Jay :mrgreen:
Image
" Do Not Do Wrong Twice,That Which You Could Have Done Right The First Time"

Main = HP Pavilion DV4-1275mx - OS=Mint_CE x64KDE/LXDE,& x64Kubuntu
User avatar
Jay514
Level 5
Level 5
 
Posts: 658
Joined: Wed Mar 25, 2009 2:14 pm
Location: Atlanta GA USA

Re: How To Increase Your Internet Connection Speed in Linux

Postby chowanec on Sat Nov 26, 2011 1:01 am

If on a wired connection, do you just replace all iwconfig with ifconfig? And for max speed, do I use 300 or 1000 (gigabit)?

Thanks!

-Chow
chowanec
Level 3
Level 3
 
Posts: 107
Joined: Fri Dec 14, 2007 11:59 am

Re: How To Increase Your Internet Connection Speed in Linux

Postby z06gal on Sat Nov 26, 2011 4:55 pm

I use dnsmasq. It is usually one of the first things I install after a fresh install. :wink:
z06gal
Level 5
Level 5
 
Posts: 668
Joined: Sat Jun 13, 2009 7:16 pm

Re: How To Increase Your Internet Connection Speed in Linux

Postby Jay514 on Mon Nov 28, 2011 4:07 pm

@chowanec ,
It may work for your wired network adapter, but only if your hardware supports 1gbps speed. I have not tried it , but theoretically; you can use ifconfig & either setting( 300M & 1000M ) too obtain the desired maximum. If it does not change then you can always revert the settings to the original config.
You can test your speed too & from your NAS or Wireless Router & it will tell you the speed.
Do not be confused, but This will not change the speed up of your maximum cap from your ISP, but will allow your computer to connect too the Internet @ the maximum speed allowed by your hardware , up too the maximum cap. It is most helpful when greater speed is desired for transfers Too & From a NAS or another machine on a network.

@z06gal,
I can see where this could be helpful for DNS servers & changing the DNS can be helpful in certain configurations.However This How Too has nothing too do with DNS & would therefore require a completely separate thread. Thanks for the input guys,

Have a great Day :P ,
Jay
Image
" Do Not Do Wrong Twice,That Which You Could Have Done Right The First Time"

Main = HP Pavilion DV4-1275mx - OS=Mint_CE x64KDE/LXDE,& x64Kubuntu
User avatar
Jay514
Level 5
Level 5
 
Posts: 658
Joined: Wed Mar 25, 2009 2:14 pm
Location: Atlanta GA USA

Re: How To Increase Your Internet Connection Speed in Linux

Postby mrjoeyman on Tue Nov 29, 2011 12:32 am

screwed my shyte up, but it was fun trying :) Speed was the same but loading time was longer between pages. I put it back and all is well. :mrgreen:
mrjoeyman
Level 2
Level 2
 
Posts: 90
Joined: Sat Oct 01, 2011 10:17 pm

Re: How To Increase Your Internet Connection Speed in Linux

Postby podagee on Fri Dec 02, 2011 6:42 am

didnt work for me either it was a nice try though.
Say it with me,"podagee,....(poh-duh-gee),"
got it?GOOD!

Toshiba Satellite P755-S5393 Intel i7
octo-core @ 2.20ghz
750gb hdd
8gb ram
Windows 8 PRO w/WMC 64bit
User avatar
podagee
Level 5
Level 5
 
Posts: 801
Joined: Mon Sep 26, 2011 1:45 pm
Location: hawaii

Linux Mint is funded by ads and donations.
 
Next

Return to Tutorials / Howtos

Who is online

Users browsing this forum: No registered users and 9 guests