关于结构 tcp_info 的良好文档

发布于 2024-09-11 10:38:47 字数 1491 浏览 1 评论 0原文

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

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

发布评论

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

评论(1

旧人九事 2024-09-18 10:38:47

这是 René Pfeiffer 对 Linux tcp_info 的结构和使用的 相当全面的文章,但是有几件事值得注意:

  • 作者需要随着时间的推移重复查看这些数据,因为该结构中没有汇总统计数据。
  • 作者将引导您访问 tcp.c 源,作为这些数据含义的最终权威。
  • 我不确定您希望从最大段大小中得到什么,但希望您认为它意味着其他东西。

如果您确实对带宽的精确测量感兴趣,则需要使用正在测试的系统外部的测量设备,因为即使拉动ioctls也会影响您有兴趣了解的现象。无源电线嗅探器是获得真正准确结果的唯一方法。最后,根据您的应用程序,“带宽”是一个非常广泛的保护伞,它将许多测量(例如延迟、往返时间、可变性、抖动等)归为一类。

Here is a fairly comprehensive write-up of the structure and use of the linux tcp_info by René Pfeiffer but there are a couple of things worth noting:

  • The author needed to look at these data repeated over time because there are no aggregate stats in that structure.
  • The author directs you to the tcp.c source as the final authority on the meaning of any of those data.
  • I'm not sure what you were hoping to get from the Maximum Segment Size, but expect you thought it meant something else.

If you are truly interested in exact measurements of bandwidth you need to use a measurement device which is outside the system being tested as even pulling the ioctls will affect the phenomenon you are interested in knowing about. A passive wire sniffer is the only way to get truly accurate results. Finally, depending on your application, "bandwidth" is a really broad umbrella which flattens many measurements (e.g. latency, round-trip-time, variability, jitter, etc.) into one category.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文