LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Slow network speeds (https://www.linuxquestions.org/questions/linux-networking-3/slow-network-speeds-293620/)

pyschomike15 02-22-2005 07:44 PM

Slow network speeds
 
I have been noticing that all programs that go out to the internet have been running slow on my computer. Ping runs incredibly slow and takes well over a minute to give me any results. Also Firefox doesnt look up websites very fast at all, in fact I think it stopped trying alltogether. I am currently posting this message on windows because the request times out in linux. In windows the speeds are great and nuthing is wrong. I have done the command "route add default gw 192.168.1.1" to make the default route. Ip addresses and configured correctly through dhcp on my router, yet still the speeds are very slow. What could cause this slow access time and how do I fix it?

Mike

broch 02-22-2005 08:01 PM

maybe start with disabling ipv6?

pyschomike15 02-22-2005 08:36 PM

Does that require a kernel recompile, and if not how do I do that?
By the way I have 2 network cards an ethernet and a wireless (this is a laptop).

Thanks,
Mike

broch 02-22-2005 09:32 PM

Quote:

Does that require a kernel recompile, and if not how do I do that?
No
open terminal su as root and then enter:
echo "alias net-pf-10 off" >> /etc/modprobe.conf
echo "alias ipv6 off" >> /etc/modprobe.conf

netx open Firefox in the address line enter:
about:config
next in the filter line enter ipv6
and doubleclick on
network.dns.disableIPv6 so the value willchange to "true"

restart network (or computer).
I hope that this will help

pyschomike15 02-23-2005 02:28 PM

Thanks for all your help I think my internet applications are alot quicker now.

Mike

pyschomike15 02-25-2005 01:18 PM

My network still seams to be going slightly slower than when I am windows. What other things can I do to improve proformance?

Mike

fur 02-25-2005 06:31 PM

are your DNS servers set the same on both computers?

Linux..

cat /etc/resolv.conf



Windows...

ipconfig /all

broch 02-25-2005 07:33 PM

can you define slower?
on average I have on SuSe 353 KB/sec and on windows (different machine) 380 KB/sec transfer rate.
For a standard workstation this difference is negligible.

anyway can you post the results about:
1. your NIC
2. /etc/resolv.conf
3. network (direst connect, home LAN behind router)
3. connection type
3. txqueuelen and MTU value
#ifconfig
4. value of window scaling
#sysctl -a | grep scaling
and look for:
net.ipv4.tcp_window_scaling
5. sack value
#sysctl -a | grep sack
and look for
net.ipv4.tcp_sack
6. path MTU discovery
#sysctl -a | grep disc
and look for
net.ipv4.ip_no_pmtu_disc

pyschomike15 02-27-2005 03:19 PM

Both Windows and Linux use different DNS servers:

In Windows its only 192.168.1.1 which is my router, and in Linux it says:

nameserver 24.51.159.130
nameserver 24.51.159.133
search chvlva.adelphia.net

I have 2 network cards 1 wireless and the other is gigabit ethernet. ifconfig shows for the wireless:

eth0 Link encap:Ethernet HWaddr 00:06:25:29:D0:AB
inet addr:192.168.1.205 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14414 errors:0 dropped:0 overruns:0 frame:0
TX packets:13090 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3149720 (3.0 Mb) TX bytes:1592650 (1.5 Mb)
Interrupt:3 Base address:0x100

The I dont use the gigabit much since this is a laptop.

Windows scaling:

error: unknown error 22 reading key 'net.ipv4.route.flush'
net.ipv4.tcp_window_scaling = 1

Sack value:

error: unknown error 22 reading key 'net.ipv4.route.flush'
net.ipv4.tcp_dsack = 1
net.ipv4.tcp_sack = 1

MTU discovery:

error: unknown error 22 reading key 'net.ipv4.route.flush'
net.ipv4.ip_no_pmtu_disc = 0

I have no idea what that error mean however it might be the problem.

Oh and when I say slow it takes about 30-45 seconds to "look up" google.com after it finds the site the pings go normal speed. I believe this is some sort of DNS problem.

Mike

broch 02-27-2005 06:26 PM

don't worry about error
change this to zero
net.ipv4.tcp_window_scaling = 0
edit /etc/sysctl.conf
and add the line above.
save it and run
sysctl -p

configure gateway:
192.168.1.1

That is not the same as nameserver. So you don't need to modify /etc/resolv.conf
(By the way I suggest to change windows settings to:
DNS servers
24.51.159.130
24.51.159.133

gateway
192,168.1.1

Sorry, I don't have any experience with wireless card. I assume that eth0 is an gigabit. So where is a configuration of the wireless card?

It does seem that wireless card is not configured.


All times are GMT -5. The time now is 05:19 AM.