2

Today I tried to connect two laptop computers, both having Gigabit Ethernet NICs, both with Windows 7, with straight cable cat 5e. The cable is ca 50 cm long so the category 5e should be enough.

I've set static IP addresses for both and tested them through SMB, HTTP and FTP.

The response of HTTP and FTP is instant, but going to SMB share takes too long. Each folder change takes ca 2 minutes.

And finally, the real speed of FTP (Microsoft IIS to FAR manager) was ca 219 mbit/s (4053265652 bytes file has been transfered in 141 sec).

Why the connection is so slow and why it takes forever to browse through SMB share?

Update especially for mrdenny

Copying of the file over 100 Mbit/s LAN with router didn't show any significant difference between SMB and FTP download speed:

SMB: 349 seconds (88,6 Mbit/s) FTP: 345 seconds (89,6 Mbit/s)

Update

I discovered an iperf tool and it shows me pure TCP network performance without involving HDDs.

Yes, it shows much faster network speed, but results vary from one test to other and sometimes the tool shows an extreme low speed, so I can't trust it:

iperf, straight 1m cable, static IPv4 addresses:

10.3 sec   683 MBytes   558 Mbits/sec
10.0 sec   740 MBytes   621 Mbits/sec
10.4 sec  19.2 MBytes  15.5 Mbits/sec
10.0 sec   553 MBytes   464 Mbits/sec
10.0 sec   635 MBytes   532 Mbits/sec
10.0 sec   694 MBytes   582 Mbits/sec
10.0 sec   661 MBytes   554 Mbits/sec
10.5 sec  20.0 MBytes  16.0 Mbits/sec
12.3 sec   600 MBytes   410 Mbits/sec
256.0 sec   526 MBytes  17.2 Mbits/sec
10.0 sec   807 MBytes   677 Mbits/sec
10.1 sec  21.1 MBytes  17.5 Mbits/sec
10.3 sec  16.6 MBytes  13.6 Mbits/sec
10.1 sec  22.9 MBytes  19.0 Mbits/sec
10.1 sec  20.8 MBytes  17.2 Mbits/sec
10.0 sec   679 MBytes   569 Mbits/sec
10.0 sec   597 MBytes   500 Mbits/sec
10.0 sec   806 MBytes   675 Mbits/sec
10.0 sec   751 MBytes   629 Mbits/sec
Paul
  • 243
  • 1
  • 5
  • 15
  • Two minutes to change folders indicates a problem, but probably not on the network. You might want to troubleshoot that issue anyway, even if it's not killing your transfer speeds. – HopelessN00b Aug 14 '12 at 20:06

1 Answers1

5

My first guess with SMB is that because you don't have a domain there's a lot of authentication that needs to happen. Granted 2 minutes is a really long time. That could be do to disk IO issues on the machine you are browsing, or CPU pressure, or memory pressure.

Even when SMB is responding very quickly SMB will always be slower than HTTP/FTP as SMB is a very chatty protocol.

As for the FTP transfer speed, that's probably the maximum write speed of your laptops hard drive.

Update from question's author

I was able to achieve speed about 650...700 Mbit/s. Conditions for success are:

  • not to use storage drives, only RAM to RAM (I used btest utility from Mikrotik);
  • to use UDP because TCP has a big overhead;
  • CPU should be fast enough to prepare data in time.
Paul
  • 243
  • 1
  • 5
  • 15
mrdenny
  • 27,074
  • 4
  • 40
  • 68
  • You are probably right about max HDD write speed. Copying of the file into the same folder took even more time than over network. So, what's the use of Gigabit Ethernet on these laptops if they have 5400 rpm hard drives? What about disk issues etc - if I connect these computers through 100 mbps router, everything responds very quick. – Paul Aug 10 '12 at 19:49
  • Sounds like the machines may be having problems finding each other over the cross connect. Maybe arp isn't working correctly over the cross connect but the router is handling that better. As to what's the point? The point is that 1Gig is faster than 100 Meg. The vendor doesn't care if you can't use it, it looks better in the marketing material if its 1 Gig as all the other laptops offer it as well. – mrdenny Aug 10 '12 at 20:16
  • Most laptops can be customized to have different hardware, there's probably an SSD option that can fully utilize the Gigabit Ethernet. The Gigabit Ethernet can also be fully utilized if you're running an application that receives a lot of data, do some computations, and immediately then send it back off to the network. – Lie Ryan Apr 19 '15 at 23:30