当前位置:网站首页>网络 | 衡量网络好坏的指标及测试方法
网络 | 衡量网络好坏的指标及测试方法
2022-06-25 11:47:00 【凡人学运维】
衡量网络好坏的指标
- 带宽:设备可允许的最大指标
- 延迟:<100ms
- 抖动:<20ms
- 丢包率:<1%
一、带宽测试
iperf 工具用来测试服务器带宽,它分为服务端与客户端。
1、安装
yum install iperf
apt-get install iperf2、服务端运行
[[email protected]]# iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default) 3、客户端运行
[[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 从测试结果看,上行带宽为 92.0Mbits/sec, 下行带宽为 87.2Mbits/sec,略微低于服务器的 100Mbits/sec,处于可接受范围内。
iperf 工具更多用法:
http://t.zoukankan.com/taosiyu-p-13813218.html
https://www.jianshu.com/p/15f888309c72
二、延迟、抖动和丢包率测试
直接用挂长ping方式进行测试,如下测试发生100个包。
[[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以上分别表示最小延迟、平均延迟、最大延迟、抖动(抖动就是延迟标准差)
延迟:26.743ms 抖动: 6.613ms 丢包率: 0.0% 0.0% packet loss
结论:这2台主机的网络状况还不错,没有丢包,延迟和抖动都不高。
END
边栏推荐
- VFP a picture processing library, simple and easy to use, free of charge, worth recommending
- 兴业证券是国企吗?在兴业证券开户资金安全吗?
- Why can't the form be closed? The magic of revealing VFP object references
- Keywords serializable serialization and deserialization
- Startups must survive
- Very important very important very important very important very important very important very important very important very important
- Simple use of stream
- CFCA Anxin sign access
- ROS notes (06) - definition and use of topic messages
- Ladder side tuning: the "wall ladder" of the pre training model
猜你喜欢

Customize to prevent repeated submission of annotations (using redis)

Windows11 MySQL service is missing

Multiple clicks of the button result in results

CMU puts forward a new NLP paradigm - reconstructing pre training, and achieving 134 high scores in college entrance examination English

Database Series: MySQL index optimization summary (comprehensive version)

黑马畅购商城---8.微服务网关Gateway和Jwt令牌

Why can't the form be closed? The magic of revealing VFP object references

Use of Presto visualization client-yanagishima20.0

VFP develops a official account to receive coupons, and users will jump to various target pages after registration, and a set of standard processes will be sent to you

Xishan technology rushes to the scientific innovation board: it plans to raise 660million yuan. Guoyijun and his wife have 60% of the voting rights
随机推荐
CFCA Anxin sign access
Simple use of stream (II)
Effective reading of literature
VFP a picture processing library, simple and easy to use, free of charge, worth recommending
剑指 Offer II 091. 粉刷房子 : 状态机 DP 运用题
How to use the markdown editor
Uncover gaussdb (for redis): comprehensive comparison of CODIS
The service layer reports an error. The XXX method invalid bound statement (not found) cannot be found
WebRTC Native M96 基础Base模块介绍之实用方法的封装(MD5、Base64、时间、随机数)
Golden sun education listed in the U.S.: a small cap medium cap stock with a market value of USD 360million
西山科技冲刺科创板:拟募资6.6亿 郭毅军夫妇有60%表决权
VFP serial port communication is difficult for 9527. Maomao just showed his skill and was defeated by kiss
Where do the guests come from
Simple use of stream
Capacity expansion mechanism of Dict Of redis (rehash)
Ladder side tuning: the "wall ladder" of the pre training model
Recommend a virtual machine software available for M1 computer
Why distributed IDS? What are the distributed ID generation schemes?
Use of JSP sessionscope domain
ArcGIS services query filter by time field