LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 07-15-2004, 03:53 AM   #1
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
Network doesn't run in 100Mbs


I have 4-5 computers in my home network, connected via a 100Mbs switch.
The problem is they should be connected with 100Mbs, full duplex but when I copy files between any computers, speed is below 10Mbs.
It doesn't matter what distro I use (the same is also between Linux and Windows).

NIC's are all PCI (most of them rtl8139), cables are cat5e, carefully checked the spec for the switch. My first thought was that it was some hardwareproblem, but then all Linux's say at bootup, when initializing NIC, something like "...using 100Mbs full duplex based on negotiation with..."

This puzzles me, I have no clue where I should start looking? No lack of tools, but which can be used to check or change what?

P.S The speed is measured both with midnight commander and checking the taskbar-graph for eth0 (I use IceWM).
 
Old 07-15-2004, 03:57 AM   #2
schoeppchen
LQ Newbie
 
Registered: Jul 2004
Posts: 29

Rep: Reputation: 15
Does your switch has LEDs for 100MB/s capable devices? If so - are those leds on?

How do you transfer files (perhaps via scp)?
 
Old 07-15-2004, 04:10 AM   #3
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Original Poster
Rep: Reputation: 127Reputation: 127
The switch doesn't have leads specifically for that, just shows connections.

Measured transfers done with ftp (proftpd or wu-ftpd) and nfs-mounts (normally).
Now that I think about it, logging in via ssh often takes some time before I get an answer. Could it be related? Mounting nfs-shares is done immediately, though, and still slow transferrates.
Might also add that 'ifconfig' shows no drops, collisions or other errors on any NIC.
 
Old 07-15-2004, 04:15 AM   #4
schoeppchen
LQ Newbie
 
Registered: Jul 2004
Posts: 29

Rep: Reputation: 15
Did you set up every IP in your hosts (/etc/hosts) table? Perhaps it has something to do with reverse DNS lookup, but that should normaly only affect initial login to a service and not datatransfer when logged in. Anyway, perhaps you try this.
 
Old 07-15-2004, 04:41 AM   #5
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Original Poster
Rep: Reputation: 127Reputation: 127
No, I use IP's to connect, not names.
 
Old 07-15-2004, 04:51 AM   #6
schoeppchen
LQ Newbie
 
Registered: Jul 2004
Posts: 29

Rep: Reputation: 15
Off course you use IPs to connect, but the service tries to reverse-lookup your IP to get a full qualified name for your machine and if your machine doesn't have an own DNS to handle such lookups, then you have to provide those information manually by putting the proper records in /etc/hosts.
 
Old 07-15-2004, 04:57 AM   #7
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Original Poster
Rep: Reputation: 127Reputation: 127
OK, my misunderstanding.
I believed that by only using IP's I wouldn't have to bother about names at all.
I'll fix that when I get home, thanks for that.

But that might solve only the secondary problem, not the low transfer-rates.
 
Old 07-15-2004, 05:01 AM   #8
schoeppchen
LQ Newbie
 
Registered: Jul 2004
Posts: 29

Rep: Reputation: 15
Yes, I think this should remove the lag at the beginning of a sesseion but not the low transfer rates (even just a little bit).

Are there only 100MB/s devices connected to your switch? Maybe it's a cheap switch which is more like a hub and then falls back to 10MB/s if there is one device connected that can only do 10MB/s.
 
Old 07-15-2004, 05:35 AM   #9
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Original Poster
Rep: Reputation: 127Reputation: 127
That could be it.
It is a cheap switch, I was beginning to wonder if that "..setting 100Mbs..." could be trusted, but then there is one computer equipped with an old isa-nic. That computer is never the first I boot.
I'll return tomorrow with results!
 
Old 07-15-2004, 07:46 AM   #10
netmask
Member
 
Registered: Jul 2004
Location: Sherbrooke, Quebec, Canada, North America, World, Milky Way
Distribution: Gentoo
Posts: 103

Rep: Reputation: 16
You could always check if your cards stay in full 100mbps by running a tool named "mii-tools"

Running that will tell you the speed configuration of your NIC and then you can change it manually.
 
Old 07-15-2004, 10:04 AM   #11
TheIrish
Member
 
Registered: Oct 2003
Location: ITALY
Distribution: Debian, Ubuntu, Fedora
Posts: 137

Rep: Reputation: 15
Also, don't forget there might be cable problems... Cisco guys say you could hardly reach 10 Mb/s if your cables run near power lines... even the rj45 sockets could be responsable for speed issues.
So, let's do a TODO thing:
1. check if it's a a 10Mb/s or 100Mb/s switch
2. check NICs speed rate
3. check cable condition

Good luck!
 
Old 07-16-2004, 01:25 AM   #12
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Original Poster
Rep: Reputation: 127Reputation: 127
I had forgotten we were invited to dinner last evening, so I haven't had any time to check this yet.
The cabling is ok, I took care of that when I installed the network. Haven't given the sockets any thought, though.
(I was wrong about the computers, they all have 100Mbs nic's. But then there's a network printer connected which probably only is 10 Mbs.)

Well, you've given me some good hints. I'll check during the weekend, back on monday!
Thanks!

Last edited by pingu; 07-16-2004 at 06:37 AM.
 
Old 07-16-2004, 02:22 AM   #13
schoeppchen
LQ Newbie
 
Registered: Jul 2004
Posts: 29

Rep: Reputation: 15
Ok, I now think that it is obvious that you've got an 100MBit/s Switch and not an 10/100MBit/s one. Yours will fall back to 10 MBit/s if there is one 10 MBits/s device (printer). Just unplug this device and then try again transfering files, if you get more than 10MBit/s, you'll have to buy a 10/100.
 
Old 07-19-2004, 02:47 AM   #14
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Original Poster
Rep: Reputation: 127Reputation: 127
This is so weird!

First the good news: Secondary problem (long time to login) was easily solved using /etc/hosts. Thanks for that.

Now the funny part starts. My network:
Workstation 1 (aka edgar) onboard LAN, nvnet Mandrake9.1
Workstation 2 (aka tjabo) 3Com ISA 10Mbs Mandrake9.1
Server Realtek (PCI,8139too) RedHat 7.1
muzak Realtek (PCI,8139too) LibraNet/Debian kernel 2.2.? (as small system as I could get) Transferring using Knoppix (no ftp, ssh, nfs or anything in installed system.).
felan Realtek (PCI,8139too) Mandrake8.2
HP Laserjet , probably 10Mbs

edgar is the only computer in which 'mii-tool -w' keeps showing changes. Connected to the switch it always goes to 100Mbs FD, connecting directly to tjabo it goes down to 10Mbs. All the same, I removed the network cables for tjabo & printer and power-down'd the switch, then turned it on again.
For server and muzak 'mii-tool -w' shows 10Mbs FD, trying to force them to 100 doesn't change anything.
On felan message is 100Mbs FD.
On no realtek-equipped computer 'mii-tool -w' shows any changes when unplugging, reconnecting to faster/slower nic's. That is no new line in terminalwindow.
Transferrates:
edgar <-> server or muzak 30Mbps one direction or 2x 16Mbps
edgar <-> felan steady at 20 Mbps one direction or 2x 16Mbps

With c/o-cable edgar <-> felan, 'mii-tool -r' on felan keeps it at 100Mbps, then on edgar sets it to 10Mbps, again on felan now sets 10Mbps...
Forcing 100Mbps on both, edgar accepts, felan too but with a 'no link'-statement. No speed-difference, though.
That statement - 'no link' - is always at server & muzak.
While trying to speedup server (using mii-tool), it once started copying at almost 100Mbsp, directly down to 45 Mbps and a few seconds later it went down to 30Mbps and stayed there.

Conclusions
1. mii-tool has done something, speed is higher now than before. Far from 100Mbps though.
2. server + muzak does not run in full duplex. felan could, but 20% loss is a bit too much?
3. Main conclusion: No Realtek card works as it shall.
4. Switch is a 10/100 (not 100% sure, but almost)
5. The "ordinary" cables + wall-jacket are cheap stuff, the crossover cable is not. There is no difference, I don't believe there's a cable problem.

I believe the problem is those 10$ Realtek nic's.
If nobody has some other suggestions, I'll buy a new nic (want to replace that ISA-nic anyway) not staring at the price this time. I believe 20$ or so will be enough to assure decent quality.
Then I will have at least 2 computers reaching full speed, making problem-solving a lot easier.
I have no time for this now, will take a week or two.
If I don't solve the problem then, you'll hear from me again.
Thanks, everybody!
 
Old 07-26-2004, 06:19 AM   #15
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Original Poster
Rep: Reputation: 127Reputation: 127
I have now tried with a NetGear nic. Didn't help, but got more info:
I can't use mii-tool on this card - "operation not supported"
Interesting is that when I start transferring files I get rates of 40Mbps one direction, 20 Mbps in both directions. ifconfig on server now reports lots of overruns. I run 'mii-tool -r' on edgar and it sets 10Mbps HD! Transferrates drops, no more errors.
So server refuses to go higher than 10/HD.
Why is that? RedHat7.1 shouldn't have a problem with 100Mbps?
(I am soon to install Mandrake 10 on felan, will try with NetGear card there. I doubt it'll do any difference.)

Any ideas?
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
run network connection scripts on boot? BlackIce579 Linux - Networking 1 04-12-2004 10:03 PM
how to run network lix thru windows Vikings5 Linux - Networking 1 02-20-2004 08:33 AM
on Network Up Script run? On Battery power run script? v2-ncl Linux - General 0 12-08-2003 09:34 AM
Can't run programs and network not visible Marq Linux - Newbie 2 11-09-2003 06:56 PM
Trying to run X across the network t3kn0lu5t Linux - Software 1 09-27-2003 10:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:26 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration