TCP刚刚建立连接时,拥塞窗口cwnd和慢启动门限ssthresh的初始值是多少?

1、TCP刚刚建立连接时,拥塞窗口cwnd和慢启动门限ssthresh的初始值是多少?
2、当发生拥塞时,如何计算新的ssthresh值。

阅读 11.9k
2 个回答

这最好是去查RFC文档啊,给你引用部分,其他你自己可以去里面搜:

IW, the initial value of cwnd, MUST be set using the following
   guidelines as an upper bound.

   If SMSS > 2190 bytes:
       IW = 2 * SMSS bytes and MUST NOT be more than 2 segments
   If (SMSS > 1095 bytes) and (SMSS <= 2190 bytes):
       IW = 3 * SMSS bytes and MUST NOT be more than 3 segments
   if SMSS <= 1095 bytes:
       IW = 4 * SMSS bytes and MUST NOT be more than 4 segments

以smss字节1045-2190为两个分界,cwnd为2-4个SMSS。ssthresh应该根据自己需求设置

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进