在哪里可以找到 tcp.h 的完整文档?

时间:2021-01-04 21:02:42

标签: linux linux-kernel

内核在 tcp.h 中有一些很好的 TCP 统计功能。例如,可以通过从 tcpi_rtt 中读取来获得前一次 TCP 通信的往返时间 (RTT)。

然而,tcp.h 中的 not all of these metrics are documented。在哪里可以找到 tcp.h 中所有指标的完整文档?

例如,tcpi_snd_ssthresh 究竟记录了什么?

1 个答案:

答案 0 :(得分:2)

<块引用>

在哪里可以找到 tcp.h 中所有指标的完整文档?

我相信您已经在源代码中找到了“完整文档”。更多文档(如果有)将位于源代码内的 documentation/ 目录中,但最好的方法是询问维护者。

<块引用>

tcpi_snd_ssthresh 到底记录了什么?

我们先搜索tcpi_snd_ssthresh on elixir,找到single assignment of the member,然后我们去struct tcp::snd_ssthresh,我还看到this comment above this assigment提到了draft-stevens-tcpca-spec-01。从谷歌搜索 draft-stevens-tcpca-spec-01 我发现 this github repo in this rfc2001.txt 解释了“慢启动算法” - ssthresh 是算法的参数之一。