Solaris:将TCP的初始拥塞窗口增加到10段(tcp慢启动)

初始拥塞窗口如何增加到10 ? 看来可以用TCP_INIT_CWND来完成 ,但我不知道该怎么做。

你可以使用ndd来调整tcp参数。 获取一个列表:

 ndd /dev/tcp \? 

我看到的唯一一个类似于tcp_cwnd_max(我不熟悉TCP的内容),它被设置为1048576:

 ndd /dev/tcp tcp_cwnd_max 

您也可以使用ndd来dynamic更改参数。 为了使它们在重新启动后保持更改,请在/ etc / system中添加一个设置行

Solaris Express 1/06中的新function似乎表明,应用程序可以更改此参数,然后指向TCP(7P)手册页,该页面本身表示可由应用程序设置

  An appli cation can use this option to set the initial cwnd to a specified number of TCP segments. This applies to the cases when the connection first starts and restarts after an idle period. 

由于这似乎是应用程序相关,你可能会得到更好的答案在stackoverflow.com 。