当前位置:网站首页>Network | indicators and test methods to measure the quality of the network

Network | indicators and test methods to measure the quality of the network

2022-06-25 12:17:00 Mortal operation and maintenance

Indicators to measure the quality of the network

  • bandwidth : The maximum allowable index of the equipment
  • Delay :<100ms
  • shake :<20ms
  • Packet loss rate :<1%

One 、 Bandwidth test

iperf The tool is used to test the server bandwidth , It is divided into server and client .

1、 install

yum install iperf
apt-get install iperf

2、 Server operation

[[email protected]]# iperf -s 
------------------------------------------------------------ 
Server listening on TCP port 5001 
TCP window size: 85.3 KByte (default) 

3、 Client running

[[email protected]]# iperf -c 192.168.6.218 -t 60 -d 
------------------------------------------------------------ 
Server listening on TCP port 5001 
TCP window size: 85.3 KByte (default) 
------------------------------------------------------------ 
------------------------------------------------------------ 
Client connecting to 45.32.64.187, TCP port 5001 
TCP window size: 197 KByte (default) 
------------------------------------------------------------ 
[ 4] local 192.168.6.217 port 50040 connected with 192.168.6.218 port 5001 
[ 5] local 192.168.6.217 port 5001 connected with 192.168.6.218 port 34386
[ ID] Interval Transfer Bandwidth 
[ 4] 0.0-60.0 sec 658 MBytes 92.0 Mbits/sec 
[ 5] 0.0-60.4 sec 628 MBytes 87.4 Mbits/sec 

From the test results , The uplink bandwidth is 92.0Mbits/sec, The downlink bandwidth is 87.2Mbits/sec, Slightly lower than the server 100Mbits/sec, Within the acceptable range .

iperf More usage of tools :

http://t.zoukankan.com/taosiyu-p-13813218.html

https://www.jianshu.com/p/15f888309c72

Two 、 Delay 、 Jitter and packet loss rate test

Direct hanging length ping Way to test , The following tests occur 100 A package .

[[email protected]]# ping -c 100 www.baidu.com 
PING www.a.shifen.com (163.177.151.109): 56 data bytes 64 bytes 
from 163.177.151.109: icmp_seq=0 ttl=55 time=26.639 ms 64 bytes 
from 163.177.151.109: icmp_seq=1 ttl=55 time=24.329 ms 64 bytes 
from 163.177.151.109: icmp_seq=2 ttl=55 time=24.794 ms 64 bytes 
from 163.177.151.109: icmp_seq=3 ttl=55 time=22.709 ms 64 bytes 
from 163.177.151.109: icmp_seq=4 ttl=55 time=39.994 ms 64 bytes 
........................................
--- www.a.shifen.com ping statistics --- 
100 packets transmitted, 100 packets received, 0.0% packet loss 
round-trip min/avg/max/stddev = 21.505/26.743/50.786/6.613 ms

The above respectively represent the minimum delay 、 Average delay 、 Maximum delay 、 shake ( Jitter is the standard deviation of delay )

Delay :26.743ms shake : 6.613ms Packet loss rate : 0.0% 0.0% packet loss

Conclusion : this 2 The network condition of the hosts is not bad , There is no packet loss , The delay and jitter are not high .

END

原网站

版权声明
本文为[Mortal operation and maintenance]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206251146400347.html