InformationIn some cases, it is necessary to check network connection performance between two Linux-based hosts, for example, to validate traffic shaping settings.
The simplest way to do this is to use netcat.
On server machine:
~# nc -l 1122
On client machine:
~# dd if=/dev/zero bs=9100004096 count=1 |nc SERVER_MACHINE_IP 1122
As a result, a similar message will be displayed:
2147479552 bytes (2.1 GB) copied, 46.8923 s, 45.8 MB/s
NOTE: It is necessary to set count=1 because after the first portion, netcat will quit.