Are there any free command line tools for testing network latency from a machine A to machine B over TCP where machine A is running linux?

I need to test for a large number of small e.g. GET requests against machine B from machine A.

I have looked at: sockperf but looks that it requires that I can install the client on machine A (which is fine) and the server on B and I don't have the option to do the latter.

Any suggestions?

  • Did you try good ol' ping command? Issuing GET requests adds the server response time to the network latency.
    – xenoid
    Apr 20, 2020 at 15:19
  • I am not allowed to ping from the source machine so it needs to be at least TCP/UDP
    – u123
    Apr 20, 2020 at 16:12

2 Answers 2


You can use hping3 , already packaged in debian https://packages.debian.org/buster/hping3

source http://www.hping.org/

Example :

hping3 -S -p 80 www.stackexchange.com

You can use tcptraceroute , alread packaged in debian https://tracker.debian.org/pkg/tcptraceroute

source https://github.com/mct/tcptraceroute


tcptraceroute  www.stackexchange.com 80

To do http benchamrk you can use ab from apache


ab -c2 -n 4  http://www.stackexchange.com/

Another option that you have is to use wget, curl or a custom script and capture the traffic with wireshark/tcpdump and make a post analysis and check the latency and other QoS metrics

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .