TCP拥塞控制算法 — CUBIC的补丁(六)

描述

 

以下是提交者Sangtae Ha对这个patch的描述:

HyStart sets the initial exit point of slow start.

Suppose that HyStart exits at 0.5BDP in a BDP network and no history exists.

If the BDP of a network is large, CUBIC's initial cwnd growth may be too conservative

to utilize the link.

CUBIC increases the cwnd 20% per RTT in this case.(这里有处笔误,是5%)

 

代码

 

--- a/net/ipv4/tcp_cubic.c
+++ b/net/ipv4/tcp_cubic.c
@@ -270,6 +270,13 @@ static inline void bictcp_update(struct bictcp *ca, u32 cwnd)
                ca->cnt = 100 * cwnd;              /* very small increment*/
        }
 
+       /*
+        * The initial growth of cubic function may be too conservative
+        * when the available bandwidth is still unknown.
+        */
+       if (ca->loss_cwnd == 0 && ca->cnt > 20)
+               ca->cnt = 20;   /* increase cwnd 5% per RTT */
+
        /* TCP Friendly */
        if (tcp_friendliness) {
                u32 scale = beta_scale;

 

评价

 

一些因素会导致HyStart的提前退出,从而不能充分利用可用带宽。实际上HyStart的测量结果很可能会偏小。

所以当退出HyStart后,进入拥塞避免状态时,如果发现之前没有丢包过,并且cwnd的增长幅度小于5%,

那么就把cwnd每RTT的增长幅度调整为5%。

这样一来如果前提退出慢启动时,保证拥塞窗口的增速不会太低。

 

Author

 

zhangskd @ csdn blog

 

 

转载于:https://www.cnblogs.com/aiwz/archive/2013/03/02/6333348.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值