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

Where to find the full documentation for tcp.h?

内核在 tcp.h 中具有一些不错的 TCP 统计功能。例如,可以通过读取tcpi_rtt.

来获取上一次TCP通信的往返时间(RTT)

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

比如tcpi_snd_ssthresh记录的是什么?

Where can I find the full documentation for all the metrics from tcp.h?

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

what exactly does tcpi_snd_ssthresh record?

我们先搜索tcpi_snd_ssthresh on elixir, we find out single assignment of the member, we then go to struct tcp::snd_ssthresh, and I also seen this comment above this assigment mentioning the draft-stevens-tcpca-spec-01. From search google for draft-stevens-tcpca-spec-01 I found this github repo that in this rfc2001.txt解释“慢启动算法”——ssthresh是算法的参数之一