Iperf test: Use udp to set the bandwidth to 2M, 5M, and 10M, and observe the impact on the ongoing ping test. This proves that when iperf uses udp to test/use a certain or maximum bandwidth, it can also affect the traffic of the tcp protocol.
Task (1) (Using UDP, parameters -u -b 2M) Setting different bandwidths
(2) Simultaneous testing in both directions (open an additional iperf port/process on either end, and then use the -R parameter to test on the same end) Server execution:
Client execution:
Precautions The TCP protocol test cannot calculate the delay and packet loss rate, and cannot specify the sending bandwidth. (1) Iperf main functions: Iperf can be used to test the performance of TCP or UDP connections between network nodes (including loopbacks), including testing bandwidth, jitter, and packet loss rate. Jitter and packet loss rate are suitable for UDP testing, while bandwidth testing is suitable for TCP and UDP. (2) Bidirectional simultaneous testing method: Open an additional iperf port/process on either end (note that the ports are different), and then use the -R parameter to test on the other end For example: Execute on test machine A (server): (Windows requires opening an additional cmd window)
Execute on test machine B (client):
(3) Jitter is the average value of the delay difference between consecutive transmissions. (4) Loopback test whether iperf is installed successfully
(5) Test throughput, jitter and packet loss rate If you need to test all three parameters at the same time, you can only get them through UDP. Use the -u parameter to test UDP (iperf defaults to TCP). At the end of the test the server will give a report. To obtain bandwidth data, you need to continuously increase the bandwidth value on the client side until slight packet loss occurs on the server side. At this time, the bandwidth displayed on the server side is the throughput of the system under test. (6) Generally speaking, we need to specify the packet length when doing performance testing. Different packet lengths will result in different throughputs, which can be specified using -l, while -b is used to specify the bandwidth. (7) Issues to note when using TCP to test bandwidth Sometimes, we need to use TCP to test network bandwidth. There is one parameter that needs special attention, that is the TCP window size, which can be specified using the -w parameter. The capacity of the network channel = bandwidth * round-trip time The size of the theoretical TCP window is the capacity of the network channel. For example, if the network bandwidth is 40Mbit/s and the loop path time is 2ms, then the TCP window size should be no less than 40Mbit/s×2ms = 80kbit = 10Kbytes. At this point we can query the default TCP window size of iperf to decide whether this parameter needs to be set. In this example, the window size should be designed to be larger than 10Kbytes. Of course, this is only a theoretical value and may need to be adjusted in actual testing. |
<<: There are four misunderstandings about network intelligence
>>: Where is the entrance to 5G message service? You may not think of it
When it comes to smart campus construction and ed...
As global digital transformation continues to acc...
LoRa, or Long Range, is a proprietary low-power, ...
With the advent of the 5G era, smart IoT devices ...
Verizon Business recently launched its first comm...
The blog has shared DogYun product information se...
At the 3GPP SA2#118 meeting held in Reno, the Uni...
As the fifth generation of wireless technology, 5...
In the past few years, innovative technologies su...
WiFi 6 is finally making its way into consumers’ ...
Sharktech is offering a 25% discount on quarterly...
Data center migration is a complex undertaking th...
On November 27, the "2020 China Tongming Lak...
GSA's latest report shows that 154 mobile ope...
Sharktech, also known as SK Data Center, is a lon...