Iperf
Iperf is a tool for measuring network throughput performance, which can test the throughput of TCP or UDP, and in order to perform iperf testing, a connection must be established between the server (to discard traffic) and the client (to generate traffic).
The Iperf has TCP and UDP two test modes, respectively, as described below
Tcp
Measuring network bandwidth
Report the size and observations of the MSS/MTU value
Supports TCP window values through socket buffering
Multithreading is supported when a P thread or WIN32 thread is available. Client and server support simultaneous multi-connection
Udp
Common parameters:
-S is specified as server mode
-C specified as client mode
-U is specified as UDP
-B Specify Bandwidth
-t specifies the time of measurement
-I specify test interval
Example:
Iperf–s-u–p 12345–i 1 runs iperf on the server side and is a UDP test
Iperf-c server-ip-p server-port-i 1-t 10-b 1000M run Iperf on the client.
MTR
The MTR combines the functions of traceroute and Ping in a network tool, starting with the MTR and sending a packet with a low TTL by destination to check the network connection between the host running the MTR and the destination host. By continuously sending a low TTL packet, and recording the response time of the intermediate router. In this way, the MTR records the percentage of response packets arriving at the destination host node and the time of the response packet. Sudden drop-out rates and longer response times will reflect a bad connection.
Mtr-h provide help commands
Mtr-v displaying the version information of the MTR
Mtr-r Display in report mode
Mtr-s used to specify the size of the ping packet
Mtr-n No-dns IP address does not do domain name resolution
Mtr-a to set the IP address of the sending packet this is useful for a host by multiple IP addresses
Mtr-i Use this parameter to set the requirement between ICMP returns by default is 1 seconds
Mtr-4 IPv4
Mtr-6 IPV6
Example:
[Email protected] ~]# mtr-r 182.254.34.125
Host:ip-10-247-0-115.localdomain loss% Snt last AVG best Wrst StDev
1. ec2-54-223-0-2.cn-north-1.co 0% 10 0.3 0.4 0.3 0.8 0.2
2.54.222.1.90 0% 10 1.1 1.3 1.1 2.3 0.4
3.54.222.1.66 0% 10 1.1 1.1 1.1 1.2 0.0
4.41.220.120.106.static.bjtele 0% 10 1.1 1.1 1.1 1.1 0.0
5. Bj141-135-174.bjtelecom.net 0% 10 4.8 4.2 2.4 5.6 1.3
6.202.97.65.206 0% 10 38.3 45.3 33.3 73.5 13.2
7.113.108.208.30 0% 10 38.3 39.7 37.7 41.3 1.1
8.113.108.209.54 0% 10 37.9 38.0 37.9 38.0 0.0
9.14.119.117.134 0% 10 38.2 38.3 38.2 38.9 0.2
Ten.??? 100.0 10 0.0 0.0 0.0 0.0 0.0
???. 100.0 10 0.0 0.0 0.0 0.0 0.0
???. 100.0 10 0.0 0.0 0.0 0.0 0.0
13.182.254.34.125 70% 10 42.0 42.0 42.0 42.0 0.0
This article is from the "System Network" blog, so be sure to keep this source http://duanran.blog.51cto.com/1129646/1852300
Network performance test Tools Iperf and MTR