How to test network connection performance between two Linux servers

Created:

2016-11-16 12:48:08 UTC

Modified:

2017-07-18 07:18:10 UTC

5

Was this article helpful?


Have more questions?

Submit a request

How to test network connection performance between two Linux servers

Applicable to:

  • Plesk for Linux

Information

In 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 > /dev/null

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.

Have more questions? Submit a request
Please sign in to leave a comment.