-   Linux - Networking (
-   -   Strange speeds copying files to gateway machine (

Kristijan 07-28-2004 11:28 PM

Strange speeds copying files to gateway machine

I seem to have a speed issue when copying to and from my desktop machine and my gateway.

Both machines have 10/100Mb ethernet network cards. Now, when I scp a file from my gateway to my desktop, I rougly get around 2+ MB/s, which seems reasonable. When copying vice versa (from desktop to gateway) I can only get speeds up to 50KB/s.

I just rescently changed the NIC in my gateway machine from a 10MB card to a 10/100MB one. I seemed to be getting better speeds with the 10MB card for some reason.

Has anyone else delt with this issue, or know of a way I can get around it, and is there a command that will tell me what speed the operating system detects the network cards at.

Below I have posted some stats.

Pinging the gateway from my desktop

[kristijan@desktop kristijan]$ ping gateway
PING gateway ( 56(84) bytes of data.
64 bytes from gateway ( icmp_seq=0 ttl=64 time=0.236 ms
64 bytes from gateway ( icmp_seq=1 ttl=64 time=0.148 ms
64 bytes from gateway ( icmp_seq=2 ttl=64 time=0.133 ms
64 bytes from gateway ( icmp_seq=3 ttl=64 time=0.131 ms

--- gateway ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.131/0.162/0.236/0.043 ms, pipe 2

Pinging the desktop from my gateway

root@gateway:~# ping desktop
PING desktop ( 56 octets data
64 octets from desktop ( icmp_seq=0 ttl=64 time=0.3 ms
64 octets from desktop ( icmp_seq=1 ttl=64 time=0.1 ms
64 octets from desktop ( icmp_seq=2 ttl=64 time=0.1 ms
64 octets from desktop ( icmp_seq=3 ttl=64 time=0.1 ms

--- desktop ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.1/0.1/0.3 ms

scp of a file from the gateway to the desktop

linux-2.6.5.tar.bz2                  100%  33MB  2.6MB/s  00:10
scp of the same file from the desktop to the gateway

linux-2.6.5.tar.bz2                  4% 1480KB  70.4KB/s  07:40 ETA
Killed by signal 2.



Kristijan 07-30-2004 02:48 AM

An ifconfig from the gateway machine shows some errors;


root@gateway:~# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:02:44:8B:94:9D
          inet addr:  Bcast:  Mask:
          RX packets:163487 errors:2051 dropped:0 overruns:0 frame:0
          TX packets:605076 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:12516021 (11.9 Mb)  TX bytes:875301303 (834.7 Mb)

Any suggestions?

minrich 07-30-2004 07:32 AM

What distro or OS is running in each machine?

How is your network set up (Fixed IP)?

Does each machine correctly recognize the NIC installed?

Do you have ethereal installed and can you capture and analyse where the errors are?

What sort of internet connection are you using (modem/DSL/cable)?

What settings do you have for default gateway and DNS?

Is DHCP running and/or are you using it?

All times are GMT -5. The time now is 12:09 AM.