当前位置:网站首页>网络流量监控工具iftop
网络流量监控工具iftop
2022-07-28 21:44:00 【富士康质检员张全蛋】
iftop网卡流量监控命令
所有结果网卡出去的,或者进来的,通过iftop都可以监控到,这个是实时的。
iftop是一款免费的网卡实时流量监控工具,类似于Linux下面top命令。iftop可以监控指定网卡的实时流量、端口连接信息、反向解析IP等,还可以精确显示本机网络流量情况及网络内各主机与本机相互通信的流量集合,非常适合于监控代理服务器或路由器的网络流量。执行“iftop -P -i em1”命令,得到如下图所示的iftop的一个典型输出界面。(一般都会去过滤,比如显示某块网卡的流量,就是要指定具体的网卡,这样就可以知道某个网卡的流量具体是多少,如果你做了双网卡的绑定,那么就是使用bond0)

- P可以显示主机和端口的关系 ,这样对排查网络性能有很大的关系 -n是以ip来显示。

iftop网卡流量监控命令 iftop的输出从整体上可以分为三大部分:
第一部分。是iftop输出中最上面的一行,此行信息是流量刻度,用于显示网卡带宽流量。
第二部分。是iftop输出中最大的一个部分,此部分又分为左、中、右三列,左列和中列记录了哪些IP或主机正在和本机的网络进行连接。(左边显示了本机的ip,然后随机端口和某台主机通信,就是中间这列。)
=>代表发送数据,反之<=是接受数据。通过这两列可以很清楚的看出,本机和对应的主机,它们发送数据和接受数据的状态是什么样的。
比如某个主机疯狂的向另外一个主机发送数据包,我们不清楚它往哪个主机发,通过iftop就可以清晰的看到通过这块网卡的和某个指定主机它们发送和接受数据是什么样的。
最右边的是显示外部的ip连接到本机,2s内,10s内,40s内的一个平均流量值,显示不同时间段的流量值。
第三部分位于iftop输出的最下面,可以分为三行,其中,“TX”表示发送数据,“RX”表示接收数据,“TOTAL”表示发送和接收全部流量。
cum:从运行iftop到面前发送接受总数据的一个流量。
peak:流量的峰值
rate:在过去两秒内,10s,40s,平均的流量的值。
iftop应用场景
服务器带宽严重耗尽,但业务量并不大,无可用带宽导致业务系统无法正常运行,急需知道是怎么回事。(和互联网上哪个机器建立联系,疯狂的发包)
线上业务系统经常有大量耗费带宽的情况,但是找不到带宽占用的来源。 想了解线上业务系统带宽占用情况
边栏推荐
- Price for volume has encountered "six consecutive declines" in sales. Can Volvo, which is no longer safe, turn around?
- pgbench基准测试《postgresql》
- mgr.exe病毒导致启动程序启动失败
- WebView whitelist
- Date time functions commonly used in MySQL
- What if win11 cannot find the DNS address? Win11 can't find DNS and can't access the web page solution
- 解决控制文件全部损坏的异常
- Retrofit Usage Summary
- [physical application] atmospheric absorption loss with matlab code
- 6 open source tutorials of super conscience!
猜你喜欢

「行泊一体」放量,福瑞泰克高性能域控制器领跑新赛道

【滤波跟踪】基于EKF、时差和频差定位实现目标跟踪附matlab代码

18 diagrams, intuitive understanding of neural networks, manifolds and topologies

Assembly analysis swift polymorphism principle

这款全网热评的无线路由器,到底有什么特别?

The Gerrit local code is associated to the remote warehouse

There are four ways for Nacos to configure hot updates and multiple ways to read project configuration files, @value, @refreshscope, @nacosconfigurationproperties

Several common methods of SQL optimization

Wechat applet development ③

Rouyi cloud platform - how to realize the launch and login functions of the project and how to create new modules
随机推荐
Xshell7, xftp7 personal free version official download, no need to crack, no activation, download and use
【雷达】基于核聚类实现雷达信号在线分选附matlab代码
High quality subroutine 3 - a good name
[filter tracking] target tracking based on EKF, TDOA and frequency difference positioning with matlab code
Binary search tree
Sdwebimage source code comb 4 # introduce several usages of existing code
PCA learning
零念科技完成Pre-A轮融资,推动智能驾驶平台软件国产替代
【滤波跟踪】基于EKF、时差和频差定位实现目标跟踪附matlab代码
Vant web app installation reference
With the "integration of driving and parking", freytek's high-performance domain controller leads the new track
What if win11 quick copy and paste cannot be used? Win11 shortcut copy and paste cannot be used
c语言进阶篇:指针(三)
Sdwebimage source code combs 5 author motivation, modifies directory, and changes inheritance relationship
It's settled! All products of Nezha s will be launched on July 31
(important) first knowledge of C language -- function
集火全屋智能“后装市场”,真正玩得转的没几个
MySQL常用的日期时间函数
What if win11 cannot find the DNS address? Win11 can't find DNS and can't access the web page solution
[MySQL series] addition, deletion, modification and query of MySQL tables (Advanced)