如何降低tcpdump的丢包率?

发布于 2022-08-26 17:39:52 字数 150 浏览 31 评论 0

请输入图片描述

再提一个小问题,怎么测量流量?tcpdump有参数支持么?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

橘虞初梦 2022-09-02 17:39:52

简单来说,
captured是tcpdump处理过之后,得到的数据包数量,亦即最终获得的pcap文件中数据包数量;
received是经过过滤器处理的所有数据包;
dropped则是未经处理的数据包数量。

关于具体含义,有一些与操作系统有关都部分,tcpdump文档中有说明。

   When tcpdump finishes capturing packets, it will report counts of:

          packets ``captured'' (this is the number of packets that tcpdump has received and processed);

          packets  ``received by filter'' (the meaning of this depends on the OS on which you're running
          tcpdump, and possibly on the way the OS was configured - if a filter was specified on the com-
          mand  line, on some OSes it counts packets regardless of whether they were matched by the fil-
          ter expression and, even if they were matched by the filter expression, regardless of  whether
          tcpdump  has  read  and  processed  them  yet,  on other OSes it counts only packets that were
          matched by the filter expression regardless of whether tcpdump has  read  and  processed  them
          yet,  and  on other OSes it counts only packets that were matched by the filter expression and
          were processed by tcpdump);

          packets ``dropped by kernel'' (this is the number of packets that were dropped, due to a  lack
          of buffer space, by the packet capture mechanism in the OS on which tcpdump is running, if the
          OS reports that information to applications; if not, it will be reported as 0).
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文