Avatar CS Knowledge Wiki

21 拥塞控制如何工作

“Empirical RTT” vs “RTT”: the former would include queueing delay along the path

1.jpg

Quiz#

“Empirical RTT” vs “RTT”: the former would include queueing delay along the path

Bottleneck: [公式]

  • cwnd1 = 9 M, cwnd2 = 1 M -> throughput1 = 9 MB/s, throughput2 = 1 MB/s
  • cwnd1 = 18M, cwnd2 = 2M -> throughput1 = 9 MB/s, throughput2 = 1 MB/s If no packet is dropped from the bottlenecked queue, the expected ratio of bytes from flow 1 and flow 2 on the shared link (outgoing queue + the bottlenecked link) will be cwnd1:cwnd2 = 18:2 = 9:1

Why congestion control?#

Avoid collapse and get fairness.

What congestion control?#

Controlling the rate is more dangerous than controlling the window.

How congestion control (in the ideal world)?#

The ideal window size is BDP.

2.jpg

How congestion control in practice?#

The dumbest way: increase the congestion window if everything goes well, and decrease the congestion window on packet loss. (There are other signals that can be used in congestion control, but in this class, we are only going to look at the dumbest one: packet loss)

3.jpg

4.jpg

5.jpg

Packet loss does not necessarily mean there is a congestion (e.g. wireless network could drop packets if someone is using microwave in the same space), but when there is a packet loss, we assume that congestion is the reason.

Loss can be inferred from: retransmission_timer expiration or duplicate ackno in multiple TCP receiver messages.

AIMD: increase by 1 for success, and cut by half for loss

More aggressive decrease of the congestion window because

  • more friendly for new flows,
  • if loss is due to buffer overflow at a router, a more aggressive decrease would be more helpful to recovering from buffer overflow.

Congestion window “Sawtooth” (https://en.wikipedia.org/wiki/Sawtooth_wave ↗ )

Multiple (e.g. 2) flows sharing the link would eventually converge to “steady state”: one flow keeps increasing, another flow decreases when seeing a loss

The convergence would be slower if the queue limit is too big.

However if the queue limit is too small, it quickly becomes empty when cwnd is cut by half.

What is the minimum queue size needed such that the link remains utilized when cwnd is cut by half?

9.jpg

8.jpg

7.jpg

6.jpg

Knowledge map

知识图谱

当前文档、同目录指南与引用关系。

准备中 全局图谱

正在构建知识图谱...

拖动节点 · 滚动缩放 · 点击打开

帮助与支持

这篇文档有帮助吗?

请给我们反馈以改进文档质量
(点击按钮后会打开邮箱)

帮助改进文档

所有文档均开源,发现问题或不清楚的地方?提交 PR 来帮助改进。

编辑此页面 了解如何贡献 →

需要更多帮助?

加入社区或直接联系获取支持

文件管理器 /
位置 /
内容
Knowledge explorer

知识图谱

全部知识 准备图谱...
文章 文档 标签 分类

正在加载知识网络...

拖动节点 · 滚动缩放 · 单击查看详情 · 双击打开页面
标签云 / Tag Cloud