gigabit switch test

I setup a gigabit switch and wanted to check the transfer rate between 2 linux systems.

1) Using iperf
==============
install iperf on both server and client, sudo apt install iperf

on server: iperf -s
on client: iperf -c
------------------------------------------------------------
Client connecting to , TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[ 3] local 10.0.0.44 port 36798 connected with 10.0.0.30 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 1.09 GBytes 939 Mbits/sec

2) Using nc
===========
nothing to install, nc is already installed.

on server: nc -vvlnp 12345 >/dev/null
on client: dd if=/dev/zero bs=1M count=1K | nc -vv 12345

Connection to 12345 port [tcp/*] succeeded!
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 9.16265 s, 117 MB/s

iperf reports 939 Mbits/sec, about same as 117 MB/s (divide 939 / 8 bits/byte)

END