缓冲区大小理论的更新
Updating the Theory of Buffer Sizing
摘要:
路由器具有数据包缓冲区,以减少拥塞期间的数据包丢失。正确调整缓冲区的大小很重要:如果缓冲区太小,数据包会被不必要地丢弃,链路可能无法充分利用;如果缓冲区太大,数据包可能会等待很长时间,路由器本身的构建成本可能会更高。尽管缓冲区大小很重要,但很少有选择缓冲区大小的指导方针。这两个最著名的规则仅适用于长期TCP Reno流;对于承载单个TCP Reno流的网络(缓冲区大小应等于带宽延迟乘积,或$BDP$)或对于承载$n$ TCP Reno流的网络(缓冲区大小应等于$BDP/\sqrt{n}$)。自从这些规则被引入以来,TCP Reno已经被更新的算法所取代,成为所有主要操作系统中的默认拥塞控制算法,但关于规则需要如何更改的文章却很少。本文重新审视了这两条规则。对于单流的情况下,我们概括的$BDP$规则,以占TCP的变化,如比例速率降低(PRR),并引入新的算法,包括立方和BBR。我们发现,缓冲区可以为新的算法小60-75%。对于多个流的情况下,我们表明,平方根的$n$规则下,一组更广泛的假设比以前已知的,包括这些新的拥塞控制算法。我们还演示了$n$规则的平方根不成立的情况,包括不公平的流量和ECN的某些设置。我们验证我们的结果,通过精确测量在一个真实的网络中的缓冲区占用的时间序列,并将其与每个数据包的窗口大小。
英文摘要:
Routers have packet buffers to reduce packet drops during times of congestion. It is important to correctly size the buffer: make it too small, and packets are dropped unnecessarily and the link may be underutilized; make it too big, and packets may wait for a long time, and the router itself may be more expensive to build. Despite its importance, there are few guidelines for picking the buffer size. The two most well-known rules only apply to long-lived TCP Reno flows; either for a network carrying a single TCP Reno flow (the buffer size should equal the bandwidth-delay product, or $BDP$) or for a network carrying $n$ TCP Reno flows (the buffer size should equal $BDP/\sqrt{n}$). Since these rules were introduced, TCP Reno has been replaced by newer algorithms as the default congestion control algorithm in all major operating systems, yet little has been written about how the rules need to change. This paper revisits both rules. For the single flow case, we generalize the $BDP$ rule to account for changes to TCP, such as Proportional Rate Reduction (PRR), and the introduction of new algorithms including Cubic and BBR. We find that buffers can be made 60-75% smaller for newer algorithms. For the multiple flow case, we show that the square root of $n$ rule holds under a broader set of assumptions than previously known, including for these new congestion control algorithms. We also demonstrate situations where the square root of $n$ rule does not hold, including for unfair flows and certain settings with ECN. We validate our results by precisely measuring the time series of buffer occupancy in a real network, and comparing it to the per-packet window size.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。