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

Network performance testing tools iperf and mtr

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

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

Iperf

Iperf is a tool used to measure network throughput. It can test the throughput of TCP or UDP. In order to perform iperf testing, a connection must be established between the server (used to drop traffic) and the client (used to generate traffic).

Iperf has two test modes, TCP and UDP, as described below

TCP

Measure network bandwidth

Report the size and observations of the MSS/ MTU value

Support for TCP window values buffered by sockets

Multithreading is supported when P or Win32 threads are available. Client and server support multiple connections at the same time

UDP

Clients can create UDP streams with specified bandwidth

Measuring packet loss

Measurement delay

Support for multicast

Multithreading is supported when P threads are available. Client and server support multiple connections at the same time (Windows is not supported)

Common parameters:

-s specified as server mode

-c specified as client mode

-u specified as udp

-b specify bandwidth

-t specify the time of measurement

-I specify the test interval

-l specifies the package size. The default tcp is 128kbps, and the 8KBps is 8KBps.

For example:

Iperf3-s runs iperf3 on the server side

Iperf3-c server-ip-I 1-t 10-b 1000m-u runs iperf on the client, with a default port of 5201.

MTR

Mtr combines the functions of traceroute and ping in a network tool, starting with mtr to check the network connection between the host running mtr and the target host by purposefully sending packets with low ttl. By continuously sending low-TTL packets and recording the response time of the intermediate router. In this way, mtr records the percentage and time of response packets arriving at the destination host node. Sudden increase in packet loss rate and longer response time will reflect a bad connection.

Mtr-h provide help command

Mtr-v displays the version information of mtr

Mtr-r is displayed in report mode

Mtr-s is used to specify the size of ping packets

Mtr-n no-dns does not do domain name resolution for IP addresses

Mtr-a sets the IP address for sending packets, which is useful for a host with multiple IP addresses.

Mtr-I uses this parameter to set the requirement between ICMP returns and defaults to 1 second.

Mtr-4 IPv4

Mtr-6 IPv6

For example:

# 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.0% 10 0.3 0.4 0.3 0.8 0.2

2. 54.222.1.90 0.0% 10 1.1 1.3 1.1 2.3 0.4

3. 54.222.1.66 0.0% 10 1.1 1.1 1.1 1.2 0.0

4. 41.220.120.106.static.bjtele 0.0% 10 1.1 1.1 1.1 0.0

5. Bj141-135-174.bjtelecom.net 0.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.0% 10 38.3 39.7 37.7 41.3 1.1

8. 113.108.209.54 0.0% 10 37.9 38.0 37.9 38.0 0.0

9. 14.119.117.134 0.0% 10 38.2 38.3 38.2 38.9 0.2

10.? 100.0 100.0 0.0 0.0 0.0

11.? 100.0 100.0 0.0 0.0 0.0

12.? 100.0 100.0 0.0 0.0 0.0

13. 182.254.34.125 70.0% 10 42.0 42.0 42.0 0.0

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

Network Security

Wechat

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

12
Report