How To Install sockperf on Kali Linux

Hostnbit

In this tutorial we learn how to install sockperf on Kali Linux. sockperf is Network benchmarking utility for testing latency and throughput

Introduction

In this tutorial we learn how to install sockperf on Kali Linux.

What is sockperf

sockperf is:

sockperf is a network benchmarking utility over socket API that was
designed for testing performance (latency and throughput) of
high-performance systems (it is also good for testing performance of
regular networking systems as well). It covers most of the socket API
calls and options.

Specifically, in addition to the standard throughput tests, sockperf,
does the following:

  • Measure latency of each discrete packet at sub-nanosecond
    resolution (using TSC register that counts CPU ticks with very low
    overhead).
  • Does the above for both ping-pong mode and for latency under load
    mode. This means that measuring latency of single packets even under
    load of millions Packets Per Second (without waiting for reply of
    packet before sending subsequent packet on time)
  • Enable spike analysis by providing histogram, with various
    percentiles of the packets’ latencies (for example: median, min, max,
    99% percentile, and more), (this is in addition to average and
    standard deviation). Also, sockperf provides full log with all
    packet’s tx/rx times that can be further analyzed with external
    tools, such as MS-Excel or matplotlib – All this without affecting
    the benchmark itself.
  • Support MANY optional settings for good coverage of socket API and
    network configurations, while still keeping very low overhead in the
    fast path to allow cleanest results.

There are three methods to install sockperf on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install sockperf Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install sockperf using apt-get by running the following command:

sudo apt-get -y install sockperf

Install sockperf Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install sockperf using apt by running the following command:

sudo apt -y install sockperf

Install sockperf Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install sockperf using aptitude by running the following command:

sudo aptitude -y install sockperf

How To Uninstall sockperf on Kali Linux

To uninstall only the sockperf package we can use the following command:

sudo apt-get remove sockperf

Uninstall sockperf And Its Dependencies

To uninstall sockperf and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove sockperf

Remove sockperf Configurations and Data

To remove sockperf configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge sockperf

Remove sockperf configuration, data, and all of its dependencies

We can use the following command to remove sockperf configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge sockperf

Dependencies

sockperf have the following dependencies:

References

Summary

In this tutorial we learn how to install sockperf package on Kali Linux using different package management tools: apt, apt-get and aptitude.

Hostnbit

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Menu Title
Scroll to Top