Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


slow transfers on 100mbit connection

Posted on 2000-05-15
Medium Priority
Last Modified: 2010-03-18
i have two machines, "1" and "2":

1: windows98 + linux 2.2.15
nic: dec tulip 100mbit

2: win98 + linux 2.2.15
nic: 3com 905b 100mbit

the machines are connected with a crossover tp cable.

now, when i try transfering files with both machines in linux, the transfer rate drops to 2Kbytes/sec. with machine 1 in linux and 2 in win98, the transferrate is somewhat similar - 2k/sec. with 1 in win98 and 2 in win98 OR linux, the transfer rate easily goes up to 4 MB/sec!.. when both are in linux, it seems transfers go faster from 2 to 1 than from 1 to 2.

what might be causing this, and how do i fix it?


Question by:diggz
LVL 40

Expert Comment

ID: 2812983
The two NIC's are probably not correctly negotiating the correct speed and mode when connect via a cross-over cable. They probably would with a hub as it's live all the time. With a cross-over cable you can wind up in a catch-22 situation in that each side needs to see the other in the correct mode in order to properly set the speed and mode.

You ought to be able to force the cards to at least 100MBps HDX (and perhaps 100Mbps FDX) and get significantly better data rates. For the 905 this can be done with the 3Com configuration program. The tulip card may need to set each time the OS boots. In Linux this can be done with options in /etc/conf.modules. There's information on what the options are at http://www.scyld.com/network/tulip.html.
You probably want 3 for HDX or 5 for FDX.

Author Comment

ID: 2817637
Adjusted points from 300 to 400

Author Comment

ID: 2817638
about using a hub.. i did that too, but the transfer-rate got so slow, it seemed like it stopped (while using the linux - linux and linux - windows setup)

therefore i tried the crossover cable.

i'll try configuring the cards properly, but it seems the tulip card is correctly set up, so i'll try fix the 3com first.

i'll post the results soon

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 40

Expert Comment

ID: 2818364
Usually, but not always, the cards will correctly auto-negotiate with a hub. If it's not been locked to a specific speed/mode, I'd expect the 905 to properly configure itself. I've seen more problems with tulip based cards.

Of course another possibility is that one of the cards is simply bad, or possibly conflicting with some other device. Linux won't let you get away with an IRQ conflict, but I have seen windows sort of get away with it.

Expert Comment

ID: 2818855
Check this out to see if it helps. Even though it is not a high delay link... This fixed retransmission problems on my home Win 98 machine networked with 3 linux and 1 NT machine...


Expert Comment

ID: 2819322
Try to isolate the problem in the same way you did by trying the different OS combinations. Here are some things to check/try.

In Linux look at ifconfig. The typical setting for MTU on the ethernet card is 1500 and you should see low or 0 counts in the error stats.

Try a different program. Were you using ftp? Try samba.

Eliminate a disk by routing the received data to /dev/null

Try only going to localhost - ie. "ftp localhost" and try both routing the received data to disk and to /dev/null.

Check top to see if there are any cpu hogs while you are trying these tests (M$ has wintop which you can download - I think it's in the powertools or kernel toys)

Try a flood-ping (only root can flood-ping) with "ping -f -s 1400 the.other.machine.ip" to try pinging with 1400 byte packets at a minimum rate of 100/second. It displays a series of dots indicating packets sent but not returned yet. It will get a bit behind but does it take a few seconds to fill a line or do the dots just start rapidly filling the page? Ctrl-C stops the flood. Note: it's bad form to flood-ping on a live network and especially bad form to flood-ping your boss.

Recheck ifconfig after the flood.

As a last resort run tcpdump (again only as root) with "tcpdump -n -i eth0 > mydumpfile" and try your transfer. Stop tcpdump with Ctrl-C and read the output. It will take a while to grok the output but you may find out where the delay is happening.

Author Comment

ID: 2820617
hold on a sec

Author Comment

ID: 2820636
i should have posted this some time ago, but lynx doesnt like to submit.

i tried jlevie's tips, and it worked perfectly. I am now running both machines on 100mbit half duplex. full duplex only worked fine from machine 1 to 2, but stopped when transfering from 2 to 1.

when i modprobe the cards, i append module options, like full_duplex=0 and media_select=3 .. max transferrate is about 2-2.5 MB/sec.. why is this? i thought 100mbit networks should do maximum 10MB/sec.. my harddrives do about 5-6 mb/sec.. any ideas?

anyway, now the problem is solved, please post an answer, jlevie, and ill give you the points.. might be quite a bit more points than it was worth, but ..wellwell


LVL 40

Accepted Solution

jlevie earned 1200 total points
ID: 2820903
Yes 100Mbps should max out somewhere around 10Mb/sec, but only if the systems and the protocol used can make full use of the bandwidth. For file transfers, FTP will come the closest to being able to make full use of the bandwidth because of the way the protocol works. My guess would be that Linux<->Linux would yield the highest rates. How are doing the data transfers for the number you cited?

The seemingly odd behaviour that you observed when both were set to FDX is just a reflection of the fact the system with the Tulip card had problems dealing with FDX mode. When sending data it did okay, which frequently happens when the mode is wrong for the system/card. But when presented with an inbound data stream it choked.

Author Comment

ID: 2840887
case closed. thanks

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question