Reference documents
Http://www.cnblogs.com/darkmatter/p/3605674.html
There is a tool called Iperf under Linux. You can test network performance. Also known as the bandwidth or throughput test, which is used to test the maximum transfer rate between the server and the client.
1. Command installation:
Yum Install Iperf
2. Command function:
Test Network performance
3. Command parameters:
-C followed by the server IP address,
-I represents the time interval for sending,
-F m indicates that the returned result is in MByte units
4. Usage examples:
Since it is network throughput, it certainly requires two machines, one server, and one client.
Server 113.57.219.52
Client 112.74.108.63
Two servers using Yum to install Iperf
Yum Install-y Iperf
Test
Service side
Iperf-s-U #upd协议. Default listener on port 5001
Client
Result client Bandwidth is 100M
[Email protected] ~]# iperf -u -C 113.57.219.52 - b1000m------------------------------------------------------------Client connecting to 113.57.219.52, UDP port 5001Sending 1470 byte datagramsudp buffer size: 122 KByte (default)---------------------------------------------- --------------[ 3] Local 112.74.108.63 port 50275 connected with 113.57.219.52 Port 5001[ID] Interval transfer
bandwidth[ 3] 0.0-10.0 sec 860 MBytes 721 mbits/sec[ 3] Sent 613458 datagrams[ 3] Server report:[ 3] 0.0-10.0 sec MBytes 97.2 mbits/sec 0.134 Ms 530831/613456 (87%) [ 3] 0.0-10.0 sec 944 Datagrams received out-of-order[[email protected] ~]#
2015.07.25 Linux iperf Command detailed