LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Internet speed is slower on linux (https://www.linuxquestions.org/questions/linux-newbie-8/internet-speed-is-slower-on-linux-420017/)

b0nd 02-27-2006 07:17 AM

Internet speed is slower on linux
 
hello all,
i've dual boot system for last one year but facing this problem for the first time.
the speed which i'm getting on linux is just half of what i'm getting on windows.
Quote:

root@darkstar:~# cat /etc/resolv.conf
nameserver 202.56.215.6
nameserver 202.56.230.6
root@darkstar:~#
Quote:

root@darkstar:~# ifconfig ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:59.144.132.98 P-t-P:203.101.126.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:5312 errors:0 dropped:0 overruns:0 frame:0
TX packets:5734 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:4953775 (4.7 Mb) TX bytes:788537 (770.0)
default gateway in:
Quote:

root@darkstar:~# cat /etc/rc.d/rc.inet1.conf
# Default gateway IP address:
GATEWAY="203.101.126.1"
regards

b0nd 02-27-2006 10:08 AM

i checked the proxies configuration.........its direct connection and not using any proxy.

Poetics 02-27-2006 10:22 AM

Could you do an FTP speed test from both Windows and Linux and post the results, as well as a traceroute (tracert in windows) to the host? It could show problem areas.

linmix 02-27-2006 10:43 AM

Go with poetics advice, but just on the off chance... are you suer you aren't running any services in the background that are using the network? (cron, apt, ...)

BinJajer 02-27-2006 11:05 AM

If network speed is lower in linux than in windows, this can mean either:
-Proxy, which is not set in windows
-Services running in background
-Crappy client software (eg. Konqueror works faster than firefox for some)
-Wrong /etc/resolv.conf config
-Misconfigured Inetd (Say, you have a static IP adress, but you put DHCP before your config anyways.)

THIS CANNOT BE A KERNEL ISSUE! Take it easy, and don't accuse Linux as an OS.

EDIT: Oh, you have slackware! Then you probably already know wbout what I wrote above...

cs-cam 02-27-2006 06:04 PM

Cause Slackware users know everything right? Trust me, while in general it may have a knowledgable userbase, there are a fair number of threads around here that stand to prove that Slackware has it's quota of idiots as well ;)

Could this problem be as simple as disabling IPv6 support?

rickh 02-27-2006 07:14 PM

Hey cs-cam,
This thread is outside my area of expertise, and it does appear that the originating user is at least sharp enough to ask a coherent question. Nevertheless, I like your attitude (and your signature). In case you haven't run across the 'Demotivators' web site, here's a line for you ... There are no dumb questions, but there are a lot of inquisitive idiots.

MasterC 02-27-2006 07:15 PM

Quote:

Originally Posted by cs-cam
Cause Slackware users know everything right?

:D Absolutely! ;)

I sadly thought the same thing (they run Slack, they must be able to get a few of the things done that I will suggest).

Anyway, my thoughts:

Have you actually done a speed test? Sometimes people confuse how long a page loads with the speed of the connection, the 2 are not completely related. A browser may wait until the entire (or a good portion) of the page is downloaded before displaying it. So, running a FTP transfer is a good way to see if speeds are truly the same or something else is going on.

Cool

Dymitry 02-27-2006 07:31 PM

I have had this exact same problem in the past ( transfer speed being exactly half of what it is now, with the same modem ) twice. The first time, it was fixed by using setserial to change the modem to ttyS4 instead of ttyS3 and then changing the same setting under Kppp; the second time, by switching to a newer kernel.

b0nd 02-27-2006 10:23 PM

hello all,
thanx for the replies.
i checked the FTP transfer (tried downloading "iso" from finland mirror). Its same for both, windows as well as linux.
But why browsing is slow. Earlier it was fast enough.
i'm using mozilla firefox on both o/s.
i tried with konqueror also but again browsing is slow.

and i haven't started any background service.

regards

masand 02-27-2006 10:36 PM

What i think is that there is prblem with the name server

After you have connected in windows

do a

ipconfig /all

this wil show you your "name servers"

see to it that you are using the same ones in the Linux configuraton.

regards

rickh 02-27-2006 10:57 PM

If it was Debian, I'd say check the /etc/resolv.conf file.

There should NOT be any IPs in there that do not belong to a legitimate dns server.

Especially one that looks like 192.168.x.x

masand 02-27-2006 11:06 PM

if it was any Linux distro you wil aslways check the /etc/resolv.conf file

he could have any private IP address like 192.168... if he was running a caching nameserver on that private ip address

cs-cam 02-28-2006 05:12 AM

He's already posted his /etc/resolv.conf and it looks okay. I guess nobody saw the actual suggestion that followed the first part of my post, I don't know enough about how IPv6 is setup, it wouldn't effect transfer speed, only the time to make the connection. Seems to explain the symptoms in my mind, someone wanna back me up or kick me in the balls?

b0nd 02-28-2006 09:06 PM

Quote:

Originally Posted by cs-cam
He's already posted his /etc/resolv.conf and it looks okay. I guess nobody saw the actual suggestion that followed the first part of my post, I don't know enough about how IPv6 is setup, it wouldn't effect transfer speed, only the time to make the connection. Seems to explain the symptoms in my mind, someone wanna back me up or kick me in the balls?

How IPv6 could be the culprit ???
if its there then it was already there b'coz i didn't compiled the kernel and on the same kernel i'm facing the problem.

and the DNS setting in windows is the same as in linux.
FTP transfer is same as it was earlier but browsing is slower.
any further suggestions ???

regards

masand 02-28-2006 11:31 PM

Well it might not be right to compare FTP transfer for the problem of Browsing

rudraa,can you clarify on this.

Do you have problem in visiting/browsing new sites or with the download speed.

The former can be caused due to problem with DNS server , while once the DNS Server is queried then the downlaod speed will not matter for DNS server

regards

nx5000 03-01-2006 04:04 AM

Sure it can be a kernel misconfiguration problem, but NOT a kernel problem if its a recent one.
Things to also check:
->PPP : PPP echoes, PMTU discovery, bad MTU
->TCP : Bad rwin (default is OK and browser little page doesn't care), Window scaling (default is OK), Select ACKnowledgment (default is OK)
->Check the differences of this webpage in windows/linux : http://www.dslreports.com/stest/0
->Incorrect routing table (route -n)
->IRQ conflict (cat /proc/interrupts), wrong driver for your Ethernet card
->Bad network (this should be the case if windows is ok, but who knows. try ping -n <ipofgateway>, try ping -n <ipofgoogle>, try ping -n <ip of dns>)
->What constantly the logs (tail -f /var/log/message)
->Try to use wget on Linux and try also on windows, print the complete header + timing ( is the page cached only if using IE?)
->Launch tcpdump or ethereal. you will need some knowledge but this step can replace all others
I've always found linux network faster or same as windows.

b0nd 03-01-2006 11:49 AM

Quote:

Originally Posted by masand
Well it might not be right to compare FTP transfer for the problem of Browsing

rudraa,can you clarify on this.

Do you have problem in visiting/browsing new sites or with the download speed.

The former can be caused due to problem with DNS server , while once the DNS Server is queried then the downlaod speed will not matter for DNS server

regards

ya i've problem in visting/browsing the new sites and once the site is open the browsing within the site is good enough.
But as i stated earlier that in windows (#ipconfig/all) i found the same DNS server settings as i'm using on linux.
or should i ask my ISP about the DNS server ?

regards

masand 03-01-2006 10:18 PM

Well I can be sure that your ISP won't know much about that too.

Do you specify the DNS manually or automatically

what do you in your resolv.conf and what do you get when u do

dig yahoo.com

dig google.com

b0nd 03-03-2006 11:34 AM

Quote:

Originally Posted by masand
Well I can be sure that your ISP won't know much about that too.

Do you specify the DNS manually or automatically

what do you in your resolv.conf and what do you get when u do

dig yahoo.com

dig google.com

today i asked my ISP about the DNS servers. They said that all are working fine.
and yes i specified DNS manually..........u can check my earlier posts.
the entries in resolv.conf has also been posted earlier.


Quote:

root@bond:~# dig yahoo.com

; <<>> DiG 9.2.3 <<>> yahoo.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56672
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 5, ADDITIONAL: 1

;; QUESTION SECTION:
;yahoo.com. IN A

;; ANSWER SECTION:
yahoo.com. 106 IN A 66.94.234.13
yahoo.com. 106 IN A 216.109.112.135

;; AUTHORITY SECTION:
yahoo.com. 172799 IN NS ns3.yahoo.com.
yahoo.com. 172799 IN NS ns4.yahoo.com.
yahoo.com. 172799 IN NS ns5.yahoo.com.
yahoo.com. 172799 IN NS ns1.yahoo.com.
yahoo.com. 172799 IN NS ns2.yahoo.com.

;; ADDITIONAL SECTION:
ns1.yahoo.com. 172239 IN A 66.218.71.63

;; Query time: 110 msec
;; SERVER: 202.56.230.6#53(202.56.230.6)
;; WHEN: Fri Mar 3 23:00:59 2006
;; MSG SIZE rcvd: 165

root@bond:~#
the IP in bold is the entry in /etc/resolv.conf.

one more thing i found. This linux system is a gateway for my laptop to access internet. and browsing as well as downloading on laptop is perfect.

any further suggestions ?

regards

b0nd 03-03-2006 11:46 AM

Thanks Mr. masand.
your "dig" command gave me the idea.
after running dig twice, once for yahoo and second time for google, i found that only 202.56.230.6 was in use and not the 202.56.215.6.
and the entry of 202.56.215.6 was first in /etc/resolv.conf. I commented the 202.56.215.6 for a while........and now everything is fine.
so this DNS was the culprit.

Thanks to all the concerned guys too.

regards

masand 03-05-2006 10:35 PM

great :)

so you see ,go by the basics and you will spot the probllem.

But are u still sure that the primary DNS and secondary DNS were same in windows OS as well

or you just did not notice about the 1st and the second choice

regards


All times are GMT -5. The time now is 03:00 AM.