LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 03-02-2005, 03:46 PM   #1
mattz40
LQ Newbie
 
Registered: Mar 2005
Location: Chalottte NC
Distribution: Debian Sarge 2.4.17-1-386
Posts: 16

Rep: Reputation: 0
Very slow network response; Debian 3.0


My weekend project is turning into a career so I'm throwing in the towel and asking the experts. I've googled this extensively and searched these forums. Checked everything I found mentioned and tried a lot of different things but nothing seems to make any difference.

I have a VIA EPIA system board on which I've installed the latest stable release of Debian, compact flavor. The problem is with network speed, both internet and local net. ftp downloads are at a speed of 0.3 Kb/sec, most of the time the connection times out and closes. Pinging yahoo will result in between 5% to 15% packet loss. It doesn't start out slow and speed up, it starts out slow, stays slow, eventually gives up. This problem occurs when connected to a machine across the country over the internet or across the room through the router. Same problem with telnet from another machine in the same room - it takes a minute to get a signon screen.

Clues to finding the solution are these:
If I bypass the router (Linksys BEFW11S4, wired connection) and go direct into the cable modem it works fine, so I don't suspect the embedded ethernet support. There is only eth0 on the machine.
Two other Win machines work fine through the router, so I don't suspect a problem with it.

netstat -i lists eth0 and lo, and doesn't show any rx or tx errors, drops, or overs. Flags are BMRU for eth0 and LRU for lo.

netstat -nr shows what I believe are the correct settings, for the most part: First line shows Destination 192.168.1.0, Gateway 0.0.0.0, Genmask 255.255.255.0, Flag U, MSS 0, Window 0, irtt 0, Iface eth0.
2nd line shows Destination 0.0.0.0, Gateway 192.168.1.1, Flag UG, 3 zeros and Iface eth0.
Here's an odd point: There is no lo listed. I've added it several times using '/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo' but when I reboot it's gone. When it's there I see a minor improvement although I may have imagined it. At any rate it's not enough of an improvement to keep ftp connections from timing out.

ifconfig lists eth0 and lo, no errors, no loss, no overruns.

resolv.conv lists 3 nameservers at my isp. I can ping them.

I don't know what else to add. Sorry I couldn't cut and paste, but that machine's too slow.

Thanks in advance.

Matt
 
Old 03-02-2005, 05:52 PM   #2
ErcoupeBaby
LQ Newbie
 
Registered: Jan 2005
Location: Johnstown, Ohio
Distribution: Slack 10.1
Posts: 10

Rep: Reputation: 0
do you have ipv6 enabled in the kernel?
you could try this, it seemed to work well for me
echo "alias net-pf-10 off" >> /etc/modprobe.conf
echo "alias IPv6 off" >> /etc/modprobe.conf
This will turn off IPv6 without having to recompile.
 
Old 03-02-2005, 08:23 PM   #3
mattz40
LQ Newbie
 
Registered: Mar 2005
Location: Chalottte NC
Distribution: Debian Sarge 2.4.17-1-386
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for the tip, I really appreciate it. I've seen the suggestion regarding ipv6 in other posts and have wanted to try it, but have been scared off by the dire warnings against editing in the modules.conf file, and wasn't quite confident enough to run update-modules.
Let me apoligize in advance for being so dense, but the last time I used an *X OS it was with pine for email and uucp for a connection... if you can call that a connection.
In your post is that the command exactly as it should be entered? I checked the man page for echo and found it too brief to be much help. Then I checked 'info echo' and found more info than my simple mind coud absorb in a week... It's feast or famine in this neck of the woods.
Should I just edit the file, or will echo or update-modules do the trick?

aTdHvAaNnKcSe

Matt
 
Old 03-03-2005, 09:55 AM   #4
mattz40
LQ Newbie
 
Registered: Mar 2005
Location: Chalottte NC
Distribution: Debian Sarge 2.4.17-1-386
Posts: 16

Original Poster
Rep: Reputation: 0
Well that didn't do it.
There is no modprobe.conf There is a file named modprobe but it's binary. There is a modules.conf that has the alias statements you described.
I entered the commands
echo "alias net-pf-10 off" >> /etc/modules.conf
echo "alias IPv6 off" >> /etc/modules.conf
and the statements were added at the bottom of the file. Reboot and there was no improvement.
Afterwards I made changes to /etc/modutils/aliases, ran update-modules, checked modules.conf and that had the same effect of uncommenting 'alias net-pf-10 off'. I also made a change that was supposed to prevent loading char-major-10-135, since I've been getting an error all along that it can't be found. It made the proper change to modules.conf, but I still get the error. Because of that I wonder if ipv6 and net-pf-10 are really off. Is there a way to check? I haven't been able to find one. Or, are there any other suggestions on how to make this machine communicate at an acceptable speed?
Thanks again.
 
Old 03-04-2005, 06:17 AM   #5
ErcoupeBaby
LQ Newbie
 
Registered: Jan 2005
Location: Johnstown, Ohio
Distribution: Slack 10.1
Posts: 10

Rep: Reputation: 0
hmmmm, that is strange, for me the change was almost instantaneous.
Here is how to check for IPv6 in the running kernel
Check to see if if_inet6 exists it will be in
/proc/net/if_inet6

You can also test this way:

# test -f /proc/net/if_inet6 && echo "Running kernel is IPv6 ready"

If this fails, it is quite likely, that the IPv6 module is not loaded.

What is the output of ifconfig?
 
Old 03-04-2005, 10:07 AM   #6
mattz40
LQ Newbie
 
Registered: Mar 2005
Location: Chalottte NC
Distribution: Debian Sarge 2.4.17-1-386
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks again for your help ErcoupeBaby. I'm making progress on other parts of this project, but this particular problem is a zinger.
There's no mention of if_inet6 in /proc/net :

debian:/proc/net# dir
arp dev_mcast netlink raw rpc snmp tcp unix
dev dev_stat netstat route rt_cache sockstat udp

Here is ifconfig, netstat, resolv.conf, etc. I know posting these details is a security violation, but what I'm trying to make is a digital picture frame. If someone reading this is so bored they want to hack into my machine to see my vacation pictures then so be it. Plus I'm desparate to get this working. I hope the formatting comes out OK.



debian:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:40:XX:XX:XX:XX
inet addr:192.168.XX.XXX Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2926 errors:0 dropped:0 overruns:0 frame:1096
TX packets:2620 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1229290 (1.1 MiB) TX bytes:288712 (281.9 KiB)
Interrupt:11 Base address:0xec00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:428 errors:0 dropped:0 overruns:0 frame:0
TX packets:428 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:23120 (22.5 KiB) TX bytes:23120 (22.5 KiB)


debian:~# netstat -i
Kernel Interface table
eth0
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR
TX-OK TX-ERR TX-DRP TX-OVR Flg
1500 0 3305 0 0 0 2957 0 0 0 BMRU
lo 3924 0 428 0 0 0 428 0 0 0 LRU

debian:~# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0


debian:/etc# vi resolv.conf
search carolina.rr.com\000
nameserver 24.93.68.64
nameserver 24.93.68.65
nameserver 24.93.68.63
~
~

Thanks again for your help, let me know if you see anything fishy.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow SSH response fr0zen Linux - General 7 11-19-2011 12:50 PM
Q3: Slow network response mattz40 Debian 9 04-05-2005 09:07 AM
Slow konsole response taarnak Linux - General 2 12-16-2003 05:43 PM
Slow response when network connection is down Stoic Mandriva 5 10-18-2003 05:36 AM
Slow response as ..... umok Linux - Newbie 4 07-11-2003 12:54 PM


All times are GMT -5. The time now is 09:17 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration