TCP流量控制与拥塞解决

滑动窗口 

  但要提高网络利用率:

  nagle算法 ~ 延迟

 

慢启动、拥塞避免

  发送端主导cwnd

  init  set  ssthresh  &  cwnd = swnd 

  loop :

    网不阻塞  (cwnd  < ssthresh)(cwnd  > ssthresh)(cwnd  == ssthresh)

            cwnd*2       cwnd ++        都可以

    网阻塞   set: ssthresh = cwnd / 2        cwnd = 1

 

快重传、快恢复

  快重传:接收端,三次重复确认i; 发送端,立即重发i + 1;

  ssthresh = cwnd / 2

  快恢复:cwnd ++

注意:

  swnd = min(rwnd, cwnd)

 

posted on 2017-04-23 15:25  暴力的轮胎  阅读(303)  评论(0编辑  收藏  举报

导航