当前位置:网站首页>网络 | 衡量网络好坏的指标及测试方法
网络 | 衡量网络好坏的指标及测试方法
2022-06-25 11:47:00 【凡人学运维】
衡量网络好坏的指标
- 带宽:设备可允许的最大指标
- 延迟:<100ms
- 抖动:<20ms
- 丢包率:<1%
一、带宽测试
iperf 工具用来测试服务器带宽,它分为服务端与客户端。
1、安装
yum install iperf
apt-get install iperf
2、服务端运行
[[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
边栏推荐
- How to open an account for trading futures Shanghai nickel products online
- 一个硬件工程师走过的弯路
- Continue to cut the picture after the ArcGIS Server is disconnected
- redis的dict的扩容机制(rehash)
- Customize to prevent repeated submission of annotations (using redis)
- Semaphore source code analysis
- Database Series: MySQL index optimization summary (comprehensive version)
- 黑马畅购商城---3.商品管理
- SQL injection vulnerability (type chapter)
- What is the development history, specific uses and structure of the chip
猜你喜欢
Explain websocket protocol in detail
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
黑马畅购商城---6.品牌、规格统计、条件筛选、分页排序、高亮显示
Specific meanings of node and edge in Flink graph
Manually rollback abnormal data
What is the development history, specific uses and structure of the chip
Thingspanel releases Internet of things mobile client (multiple pictures)
SQL injection vulnerability (type chapter)
How TCP handles exceptions during three handshakes and four waves
Comment TCP gère - t - il les exceptions lors de trois poignées de main et de quatre vagues?
随机推荐
MYSQL中对复杂JSON的更新
Le détour d'un ingénieur en matériel
Keywords serializable serialization and deserialization
Semaphore source code analysis
黑马畅购商城---8.微服务网关Gateway和Jwt令牌
Xishan technology rushes to the scientific innovation board: it plans to raise 660million yuan. Guoyijun and his wife have 60% of the voting rights
Niuke: rotation array
为什么ping不通网站 但是却可以访问该网站?
Redis6 note02 configuration file, publish and subscribe, new data type, jedis operation
Yisheng biological sprint scientific innovation board: 25% of the revenue comes from the sales of new crown products, and it is planned to raise 1.1 billion yuan
The latest IT learning route in 2020
揭秘GaussDB(for Redis):全面对比Codis
Is it safe to open a stock account on your mobile phone? Who can I open an account with?
Very important very important very important very important very important very important very important very important very important
Multiple clicks of the button result in results
Encapsulation of practical methods introduced by webrtc native M96 basic base module (MD5, Base64, time, random number)
What is the development history, specific uses and structure of the chip
Design and implementation of university laboratory goods management information system based on SSH
. Using factory mode in net core
Use of Presto visualization client-yanagishima20.0