transfers between LAN machines is slow - I've got ethereal output!
I'm a linux junkie, but not really good with networking. This problem has been killing me for MONTHS. I try to transfer a file between two linuxes boxes on my lan. I use NFS, Samba, FTP, you name it. I can't get more the 500KB/s. That's getting or putting. I've tried wired and wireless. What finally knocked me for a loop was when I booted into Windows XP under Vmware, and tried to transfer a file via Samba to the other linux box. I got 5MB/sec of blistering speed! That file was done in SECONDS! So, I'm figuring that the problem is how the linux boxes are talking to each other.
So, I got off my rear end and installed ethereal. The text file for the transfer (a few seconds of it) is below. I see a ton of TCP out-of-orders and retransmissions. Again, I'm not a network expert, but I think this may be the problem.
I've heard full and half duplex tossed around here in relation to problems similar to this. How do I force full duplex on a wifi card? Ethtool won't work on it.
Thanks for any and all help on this!
********Wow, that ethereal file is 83MB. I can't even open it. Notable quotes in black and yellow are:
Over and over again, every few lines. Is that enough info?
check out your nic multi is on: ifconfig
check your host.conf multi on
Recompile your kernel and check out Network Options TCP/IP multicasting
Hmmm, multicast seems to be enabled in hosts.conf, as well as in ifconfig:
Link encap:Ethernet HWaddr 00:D0:B7:54:3F:CB
inet addr:192.168.0.7 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2626 errors:0 dropped:0 overruns:0 frame:0
TX packets:2113 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:3073242 (2.9 MiB) TX bytes:257335 (251.3 KiB)
So why would I be recompiling my kernel? I'm not sure I understand where you're going. Thanks for the reply, though...
You've tried in a wired network and it's still that slow? What does the output of 'mii-tool -v' say?
My desktop is wireless right now, so mii-tool won't work. At least it says no interfaces found. The other box IS wired, though, so I'll post the output tomorrow.
Yes, I've gotten the slow speeds both wirelessly AND wired. Makes no difference. But, again, when I use WinXP on VMware, I'm blazing. It's using the SAME hardware (the wifi pci card) at the SAME time! I'm BAFFLED!!!
Thanks for the reply!
Here's what mii-tool has to say:
eth0: negotiated 100baseTx-FD flow-control, link ok
product info: Intel 82555 rev 4
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
It looks like everything is okay on this end. Any suggestions?
And here's my ethtool output:
root[akshunj]# ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
Advertised auto-negotiation: Yes
Current message level: 0x000020c1 (8385)
Link detected: yes
Wow, that's interesting. Hmmm, any services running on both of your linux boxes? Any services having connections being established? You can check with netstat -an.
Hmmm. No extra services. These are really just desktop boxes. Upon further investigation, I believe my routers may be part of the issue. Here's my setup:
Cable Modem --> Linksys Wired router/phone adapter (Vonage VOIP) --> Netgear wireless G router/printserver --> All desktops and laptops
Somehow I think the Netgear router is not routing the packets correctly along the lan. Perhaps my WinXP on VMware sends them in a different form? In any case, the speed difference between WinXP and Linux was not all that pronounced in the first place. 1.5Mb/sec in WinXP, and between 500 and 900 Kb/sec native linux. In any case, I should be getting faster speeds than either platform has demonstrated.
I was fiddling with the router settings last night. I read something about RIP when there is more than one router on a network? Anyone know anything about this? Should I enable it?
Update: My router seems to have wigged out. It won't properly report the devices attached to it. The list is always short by one computer... (Sigh) Maybe it's time for a new router...
Check cable, may not apply, but check it anyway, most network problem was caused by bad cable/interferances etc. disable autosensing.
the DNS setting, or resolv.conf file, see how your netowrk resolve its address, which is the second cause of network problem.
firewall on the router, I doubt it much, but check it anyway. see if you have default route in the net table.
Lessons learned? MANY!
For those interested, I have mostly fixed my issue. The first thing I did was put my Vonage router BEHIND my Netgear wireless router. Then I sat down and learned the difference between bits and bytes. For the longest time I had been thinking that the 300kilobytes per second transfers I was getting were soooo far short of the 54Megabyte per second transfers advertised by my wifi cards and router. And then I realized after much googling, that 54Mb/sec was actually 54MegaBITS! That's more like 6750kilobytes per second. Yes, still far short of what I was getting, but now I had some perspective. I have some 802.11b bottlenecks, so maybe the best I could expect was 1375kilobytes per second (11Megabits). Sure as can be, when I powered my network back up, I was cranking 1375kilobytes. I also learned that setting a dynamic preamble can boost overall wireless throughput and stability!
So, now I'm MUCH happier with my network speed. But I'm planning on hopping on over to the wireless forum to find out how I can get my whole 6750KB/sec (54Mb)!
Thanks for all of the suggestions, guys. I hope my info can help someone else!
|All times are GMT -5. The time now is 03:47 PM.|