Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and use Iperf under Linux

2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to install and use Iperf under Linux. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Iperf is a network performance testing tool. Iperf can test maximum TCP and UDP bandwidth performance, has a variety of parameters and UDP characteristics, can be adjusted as needed, and can report bandwidth, delay jitter and packet loss

Installation method yum install iperf-y is suitable for scenarios

1: test the maximum network performance from a virtual machine to another virtual machine under the same host

2: test the maximum network performance of the common cloud private network

3: test the maximum transmission performance of LAN wifi

4: test the bandwidth between two points

Iperf parameter introduction # Common parameter-I 2 # indicates that the report is displayed every 2 seconds-w 80k # for TCP mode, this setting is the TCP window size. For UDP mode, this is set to accept the buffer size of UDP packets, limiting the maximum acceptable packet value-B 192.168.122.bind to one of the multiple addresses of the host. For the client, this parameter sets the de-stack interface. For the server side, this parameter sets the stack interface. This parameter is only used for hosts with multiple network interfaces. # in the UDP mode of Iperf, this parameter is used to bind and join a multicast group. Use Multicast addresses in the range from 224.0.0.0 to 239.255.255.255 # Common client parameters-b 100m # when used in udp testing, set the bandwidth sent by the test (in bit/ seconds). Default is: 1Mbit/ seconds-c # specify server ip address-d # test both uplink and downlink-t 10 # set transmission time Specify 5 threads for 10 seconds-P 5 # to initiate the UDP mode test server iperf-u-s #-u to run in udp mode, and-s to represent the server client iperf-u-c 192.168.122.1-b 100m-t 60-I to explain: in udp mode, the client uploads the bandwidth test to the server 192.168.1.1 with 100Mbps as the data transmission rate The test time is 60 seconds iperf-u-c 192.168.122.1 5m-P 30-t 6 # client simultaneously initiates 30 connection threads to the server, using 5Mbps as data transmission rate iperf-u-c 192.168.122.1-b 100m-d-t 60 # at 100m data transmission rate, downlink bandwidth test TCP mode test server iperf-s client iperf-c 192.168.122.1-t 60 # in tcp mode The client uploads the bandwidth test to the server 192.168.1.1, and the test time is 60 seconds. Iperf-c 192.168.122.1-P 30-t 60 # client initiates 30 connection threads to the server at the same time. Iperf-c 192.168.122.1-d-t 60-I 2 # to test the upstream and downlink bandwidth.

This is the end of the article on "how to install and use Iperf under Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report