I am beginning to learn about networking and testing network performance (specifically on containers). I am trying to learn how to perform good network tests to see networking capabilities of docker containers and whether they can support deterministic networking.
So, I am learning iperf3, and using Ping to track RTT and Jitter.
My current setup is two docker containers running on the same host using a bridge network to connect the two containers. I wrote a simple program to read Ping output and graph the RTT (or latency) and then calculate the Jitter between the two.
I want to simulate latency or impact of latency during a congested network, so I thought the best way was to use iperf3 to do so.
On one docker container, I ran
iperf3 -s. The other docker container I ran
iperf3 -c server_ip -t 500 and
ping -i 0.01 -c 1000 172.19.0.4 > output.txt I ran three Ping tests, and arrived at the following result.
To me, this is strange, why does PING RTT improve on a congested network? If my understanding is wrong, how do I properly simulate network congestion to understand its impact on network latency and jitter?