Skip to content

Instantly share code, notes, and snippets.

@pk13610
Created October 21, 2013 12:02
Show Gist options
  • Save pk13610/7082756 to your computer and use it in GitHub Desktop.
Save pk13610/7082756 to your computer and use it in GitHub Desktop.

缘起知乎上为什么多 TCP 连接分块下载比单连接下载快?

大部分路由器为tcp分配带宽的策略: 每接受一个ack就将tcp的发送窗口增倍,收到一个丢包则减半(通常情况下)

丢包:

  • ack丢失,即sender timeout
  • sender收到三次重复的ack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment