co.de.mon.key

Weblog

HOWTO test local network speed

| Comments

I have a problem to determine where is my LAN’s bottleneck. Copying files between two computers should be faster. Let’s check it out.

To mesure the speed we will prepare a client-server connectionL

  1. Preparation

Install netcat on machines that will take part in the tests. On a OpenWRT router we can install it through a package manager.

opkg update opkg install bash netcat

  1. Server

nc -l -p 1122 > /dev/null

  1. Client

dd if=/dev/zero bs=10000 count=1 | nc 192.168.1.3 1122

  1. Results
1
2
3
4
malpka@micromalpki:~$ dd if=/dev/zero bs=100M count=1 | nc 192.168.1.3 1122
1+0 przeczytanych recordów
1+0 zapisanych recordów
skopiowane 104857600 bajtów (105 MB), 13,6733 s, 7,7 MB/s

Comments