简体   繁体   English

Linux传出封包速率

[英]Linux outgoing packet rate

Linux中有什么方法可以测量在一定时间内(例如每秒还是每分钟)来自一台计算机的传出数据包的数量?

There are quite a few programs that can do this (most of the good ones are not standard in base distrobution). 有很多程序可以做到这一点(大多数好的程序在基本发行中不是标准的)。 The one I highly recommend is iptraf . 我强烈推荐的是iptraf Another one is ntop . 另一个是ntop Other than that, writing a custom shell script to cat the output of ifconfig interface 's TX packets and have it loop at a desired interval can also do the trick. 除此之外,编写一个自定义的shell脚本来处理ifconfig interface的TX数据包的输出并使其以所需的间隔循环也可以解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM