github.com/kata-containers/tests@v0.0.0-20240307153542-772105b56064/metrics/network/README.md (about)

     1  # Kata Containers network metrics
     2  
     3  Kata Containers provides a series of network performance tests. Running these provides
     4  a basic reference for measuring  network essentials like bandwidth, jitter, latency and
     5  parallel bandwidth.
     6  
     7  ## Performance tools
     8  
     9  - `iperf3` measures bandwidth, jitter, CPU usage and the quality of a network link.
    10  - `ping` is the simplest command to test basic connectivity testing.
    11  
    12  ## Networking tests
    13  
    14  - `k8s-network-metrics-iperf3.sh` measures bandwidth which is the speed of the data transfer.
    15  - `latency-network.sh` measures network latency.
    16  - `nginx-network.sh` is a benchmark of the lightweight Nginx HTTPS web-server and measures
    17  the HTTP requests over a fixed period of time with a configurable number of concurrent
    18  clients/connections.
    19  
    20  ## Running the tests
    21  
    22  Individual tests can be run by hand, for example:
    23  
    24  ```
    25  $ cd metrics
    26  $ bash network/iperf3_kubernetes/k8s-network-metrics-iperf3.sh -b
    27  ```
    28  
    29  ## Expected results
    30  
    31  In order to obtain repeatable and stable results it is necessary to run the
    32  tests multiple times (at least 15 times to have standard deviation < 3%).
    33  
    34  > **NOTE** Networking tests results can vary between platforms and OS
    35  > distributions.