# 慢启动（计算机网络）

慢启动是TCP拥塞控制的启动阶段，在此阶段发送方的拥塞窗口呈指数增长，每往返一次翻一番，直至连接接近路径的可用容量或达到某个配置的阈值。它之所以存在，是因为一条连接在未知状况的网络中开始传输时，必须逐步探测容量，以免以不恰当的大突发数据拥塞路径。<sup>[1](https://docbox.etsi.org/Reference/IETF/RFC/RFC5681.pdf)</sup> 它所产生的窗口增长是刻意自计时的：每收到一个累积确认新数据的ACK，拥塞窗口至多增加一个报文段，从而允许发送更多报文段，并在每个往返时间产生指数增长<sup>[2](https://datatracker.ietf.org/doc/html/rfc2001)</sup>；该算法保证连接发送数据的速率最多为路径上可能的最大速率的两倍。<sup>[3](https://dl.acm.org/doi/10.1145/52324.52356)</sup><sup> • </sup><sup>[18](https://www.rfc-editor.org/rfc/rfc5681.html)</sup> 许多互联网流在其生命周期的大部分时间里都处于慢启动状态<sup>[4](https://cseweb.ucsd.edu/~savage/papers/Infocom2000tcp.pdf)</sup>，这使得启动阶段对用户感知的性能至关重要。

| 关键事实 | 值 |
|---|---|
| 增长规律 | cwnd每往返翻一番（每ACK一个报文段）；1、2、4、8……个报文段<sup>[2](https://datatracker.ietf.org/doc/html/rfc2001)</sup> |
| 退出条件 | cwnd达到ssthresh（转入拥塞避免）或发生丢包<sup>[1](https://docbox.etsi.org/Reference/IETF/RFC/RFC5681.pdf)</sup> |
| 初始窗口 | 10个报文段，IETF当前建议值<sup>[5](https://www.ike-kunze.de/publications/2019/2019_rueth_tcprsquos-initial-window-ndash/2019_rueth_tcprsquos-initial-window-ndash.pdf)</sup> |
| 初始ssthresh | 按RFC 2001规则为65535字节<sup>[2](https://datatracker.ietf.org/doc/html/rfc2001)</sup> |
| 超时响应 | cwnd重置为1个全尺寸报文段，慢启动重新开始<sup>[1](https://docbox.etsi.org/Reference/IETF/RFC/RFC5681.pdf)</sup> |
| 达到窗口W所需时间 | \( R \cdot \log_{2} W \)，其中\( R \)为往返时间<sup>[3](https://dl.acm.org/doi/10.1145/52324.52356)</sup> |
| 默认启动改进 | Windows中的HyStart++；RFC 9438建议用于CUBIC<sup>[6](https://datatracker.ietf.org/doc/html/rfc9406)</sup><sup> • </sup><sup>[7](https://www.hjp.at/%28en,st_a%29/doc/rfc/rfc9438.pdf)</sup> |

## 工作原理

慢启动控制拥塞窗口（cwnd），并使cwnd和发送速率都呈指数增长。在本文描述的经典表述中，发送方初始时将cwnd设为一个报文段，每收到一个ACK就将cwnd增加一个报文段，于是窗口依次打开为1、2、4、8个报文段，依此类推；请注意，当今的指南提高了这一起点，其中最突出的便是本文后文讨论的十个报文段的初始窗口。<sup>[2](https://datatracker.ietf.org/doc/html/rfc2001)</sup> 由于每一轮ACK都触发下一次翻番，达到\( W \)个数据包的窗口需要\( R \cdot \log_{2} W \)的时间，雅各布森指出这足够快，即便在具有大带宽时延积的链路上影响也可忽略不计。<sup>[3](https://dl.acm.org/doi/10.1145/52324.52356)</sup>

两个反馈信号支配着这一阶段。重传超时表示严重拥塞：无论初始窗口多大，cwnd都必须重置为1个全尺寸报文段的丢失窗口，慢启动朝着新调低的ssthresh重新开始。<sup>[1](https://docbox.etsi.org/Reference/IETF/RFC/RFC5681.pdf)</sup> 重复ACK（或超时）还会将ssthresh设为当前窗口的一半，至少两个报文段，标志着拥塞避免应接管的水平。<sup>[2](https://datatracker.ietf.org/doc/html/rfc2001)</sup> RFC 5681形式化了这一边界：当\( \mathrm{cwnd} < \mathrm{ssthresh} \)时运行慢启动，当\( \mathrm{cwnd} > \mathrm{ssthresh} \)时运行拥塞避免，两者相等时则可任选其一。<sup>[1](https://docbox.etsi.org/Reference/IETF/RFC/RFC5681.pdf)</sup>

## 如何实现

执行慢启动的TCP发送方按以下步骤操作：

1. 将cwnd初始化为初始窗口（10个报文段，IETF当前建议值<sup>[5](https://www.ike-kunze.de/publications/2019/2019_rueth_tcprsquos-initial-window-ndash/2019_rueth_tcprsquos-initial-window-ndash.pdf)</sup>），将ssthresh设为较高的默认值，如65535字节。<sup>[2](https://datatracker.ietf.org/doc/html/rfc2001)</sup>
2. 发送最多\( \min(\mathrm{cwnd}, \text{接收方通告窗口}) \)的数据，并启动ACK时钟。<sup>[8](https://web.stanford.edu/class/cs344g/cs344g-L5.pdf)</sup>
3. 对每个累积确认新数据的ACK，按适当字节计数规则\( \mathrm{cwnd} \mathrel{+}= \min(N, \mathrm{SMSS}) \)将cwnd至多增加SMSS字节，其中\( N \)为新确认的字节数；这可以防御ACK分割攻击。<sup>[1](https://docbox.etsi.org/Reference/IETF/RFC/RFC5681.pdf)</sup>
4. 当cwnd超过ssthresh时，或在HyStart式延迟信号出现时，退出至拥塞避免；拥塞避免随后每RTT将cwnd增长约一个报文段，而非翻番。<sup>[1](https://docbox.etsi.org/Reference/IETF/RFC/RFC5681.pdf)</sup><sup> • </sup><sup>[2](https://datatracker.ietf.org/doc/html/rfc2001)</sup>
5. 发生超时时，将\( \mathrm{ssthresh} \)设为\( \max(\mathrm{FlightSize}/2, 2 \cdot \mathrm{SMSS}) \)，将\( \mathrm{cwnd} \)重置为一个报文段，并重新开始慢启动。<sup>[1](https://docbox.etsi.org/Reference/IETF/RFC/RFC5681.pdf)</sup>
6. 在超过一个重传超时的空闲期之后，再次使用慢启动来重启ACK时钟，这是一种广泛部署的重启机制。<sup>[1](https://docbox.etsi.org/Reference/IETF/RFC/RFC5681.pdf)</sup>

当CUBIC使用HyStart++并在无丢包的情况下退出第一次慢启动时，\( W_{\mathrm{max}} \)未定义；实现会记录\( \mathrm{cwnd}_{\mathrm{prior}} = \mathrm{cwnd} \)，切换到拥塞避免，并将\( K \)设为0后继续运行。<sup>[7](https://www.hjp.at/%28en,st_a%29/doc/rfc/rfc9438.pdf)</sup>

## 起源

慢启动源于[范·雅各布森](https://www.edgepedia.org/zh/van-jacobson)（Van Jacobson）与迈克尔·J·卡雷尔斯（Michael J. Karels）1988年的论文《拥塞避免与控制》，该文将TCP流量控制建立在“数据包守恒”原则之上，在这一原则下，拥塞崩溃成为例外而非常态。<sup>[3](https://dl.acm.org/doi/10.1145/52324.52356)</sup> 在慢启动、拥塞避免、快速重传和快速恢复这四种算法中，RFC 1122只要求TCP实现慢启动和拥塞避免，因为快速重传和快速恢复是在RFC 1122之后才发展起来的。<sup>[17](https://www.rfc-editor.org/rfc/rfc2001.txt)</sup><sup> • </sup><sup>[1](https://docbox.etsi.org/Reference/IETF/RFC/RFC5681.pdf)</sup> 1997年1月发布的RFC 2001整合了慢启动规范。<sup>[2](https://datatracker.ietf.org/doc/html/rfc2001)</sup>

初始窗口是逐步演进的。珍妮·C·霍（Janey C. Hoe）1996年的SIGCOMM论文提出，估算阈值——即发送方放入一个数据包的同时有一个数据包离开网络时的平衡工作点——是启动效率的关键。<sup>[9](https://doi.org/10.1145/248157.248180)</sup> 马克·奥尔曼（Mark Allman）、克里斯·海斯（Chris Hayes）和肖恩·奥斯特曼（Shawn Ostermann）于1998年在共享互联网和拨号调制解调器链路上评估了将初始窗口从一个MSS大小的报文段提高到约4 KB的效果。<sup>[10](https://doi.org/10.1145/293927.295114)</sup> IETF的建议后来提高到10个报文段。<sup>[5](https://www.ike-kunze.de/publications/2019/2019_rueth_tcprsquos-initial-window-ndash/2019_rueth_tcprsquos-initial-window-ndash.pdf)</sup>

## 变体

**HyStart与HyStart++。** HyStart++建立在混合启动（HyStart）之上，利用往返延迟的增加作为信号，在超调引发丢包之前退出慢启动；随后的保守慢启动阶段最多持续CSS_ROUNDS个轮次，检查退出是否过早，若RTT下降则连接恢复慢启动。<sup>[6](https://datatracker.ietf.org/doc/html/rfc9406)</sup> 实现应仅对初始慢启动使用HyStart++，之后回退到标准慢启动。<sup>[6](https://datatracker.ietf.org/doc/html/rfc9406)</sup> HyStart++已在Windows中默认启用于所有TCP连接两年多。<sup>[6](https://datatracker.ietf.org/doc/html/rfc9406)</sup>

**有限慢启动。** S.弗洛伊德（S. Floyd）2004年提出的有限慢启动针对具有大拥塞窗口的TCP连接，在窗口较大时限制增长率。<sup>[11](https://doi.org/10.17487/rfc3742)</sup>

**CUBIC。** CUBIC已被采纳为Linux、Windows和Apple协议栈中的默认TCP拥塞控制算法<sup>[7](https://www.hjp.at/%28en,st_a%29/doc/rfc/rfc9438.pdf)</sup>，并建议在慢启动中使用HyStart++，以Reno式慢启动作为回退。<sup>[7](https://www.hjp.at/%28en,st_a%29/doc/rfc/rfc9438.pdf)</sup>

**BBR。** BBR是一种基于模型的算法，利用交付速率、RTT和丢包测量来构建路径可用带宽和BDP的显式模型，而非对丢包做出反应。<sup>[12](https://datatracker.ietf.org/doc/html/draft-ietf-ccwg-bbr-06)</sup> 其启动状态对速率空间执行指数搜索，将发送速率翻番，以在跨越至少11个数量级的带宽范围内学习BBR.max_bw。<sup>[12](https://datatracker.ietf.org/doc/html/draft-ietf-ccwg-bbr-06)</sup>

## 应用

慢启动对短传输最为重要。在典型参数下，一条流需要发送约3w字节才能达到拥塞窗口w；要达到1.5 Mbps × 70 ms路径（13 KB带宽时延积）的充分利用，需要传输39 KB，这一数量大于大多数广域TCP流所传输的数据量。<sup>[4](https://cseweb.ucsd.edu/~savage/papers/Infocom2000tcp.pdf)</sup> 慢启动导致的流完成时间延长会显著降低几兆字节以下流的体验质量。<sup>[13](https://cs.stanford.edu/~keithw/sigcomm2024/sigcomm24-final280-acmpaginated.pdf)</sup>

将初始窗口提高到10个报文段，在一个数据中心将平均网页搜索延迟改善了11.7%（68 ms），在另一个数据中心改善了8.7%（72 ms）。<sup>[14](https://www.rfc-editor.org/rfc/rfc6928.html)</sup> 一项测试床研究使用71 kB传输（2017年谷歌着陆页的平均大小），跨越4至100 Mbit/s的带宽和30至250 ms的延迟，发现当链路速度或RTT足够高时，将初始窗口从4提高到50个报文段可降低平均流完成时间。<sup>[5](https://www.ike-kunze.de/publications/2019/2019_rueth_tcprsquos-initial-window-ndash/2019_rueth_tcprsquos-initial-window-ndash.pdf)</sup>

## 局限与替代方案

核心失效模式是超调：在缺乏丢包信号的情况下，指数级的cwnd增长可能超过理想发送速率，造成显著丢包，而这些丢包并不总能被高效恢复。<sup>[6](https://datatracker.ietf.org/doc/html/rfc9406)</sup> 默认的Linux慢启动——即带HyStart的CUBIC——常常过早退出，而禁用HyStart则会因超调拥塞点而产生过多丢包，这在地球静止轨道卫星等高BDP网络中尤其成问题。<sup>[15](https://www.ietf.org/archive/id/draft-chung-ietf-ccwg-search-00.html)</sup> 大的初始窗口还会产生更多突发流量，在拥塞下导致更高的丢包率。<sup>[5](https://www.ike-kunze.de/publications/2019/2019_rueth_tcprsquos-initial-window-ndash/2019_rueth_tcprsquos-initial-window-ndash.pdf)</sup> 在正确的瓶颈点退出慢启动是普遍的难点：过早会欠利用链路，过晚则造成拥塞丢包。<sup>[16](https://web.cs.wpi.edu/~claypool/papers/search-lcn-23/paper.pdf)</sup>

替代方案针对的正是这一退出决策。SEARCH监测每RTT确认的已交付字节数，并将其与预期的翻番相比较，以当前交付速率归一化，并针对无线延迟变化进行平滑处理<sup>[15](https://www.ietf.org/archive/id/draft-chung-ietf-ccwg-search-00.html)</sup>；在商用地球静止轨道卫星链路上，它相对基线实现了中位数最高3秒（14%）的改善。<sup>[15](https://www.ietf.org/archive/id/draft-chung-ietf-ccwg-search-00.html)</sup> SUSS是一种轻量级的发送方附加组件，当流显著低于链路容量时加速cwnd增长。<sup>[13](https://cs.stanford.edu/~keithw/sigcomm2024/sigcomm24-final280-acmpaginated.pdf)</sup> BBR以其基于速率、模型驱动的[指数搜索](https://www.edgepedia.org/zh/exponential-search)取代了丢包驱动的启动。<sup>[12](https://datatracker.ietf.org/doc/html/draft-ietf-ccwg-bbr-06)</sup> 基于丢包的控制在极端路径上普遍表现不佳：在100 ms RTT路径上以CUBIC维持10 Gbps需要丢包率低于0.000003%，而1%的丢包最多只能维持3 Mbps。<sup>[12](https://datatracker.ietf.org/doc/html/draft-ietf-ccwg-bbr-06)</sup>

## References

1. [RFC 5681: TCP Congestion Control (Allman, Paxson, Blanton; September 2009; obsoletes RFC 2581)](https://docbox.etsi.org/Reference/IETF/RFC/RFC5681.pdf)
2. [RFC 2001: TCP Slow Start, Congestion Avoidance, Fast Retransmit, and Fast Recovery Algorithms (Stevens, January 1997)](https://datatracker.ietf.org/doc/html/rfc2001)
3. [Congestion Avoidance and Control (Jacobson, SIGCOMM '88; reprinted CCR Jan 1995)](https://dl.acm.org/doi/10.1145/52324.52356)
4. [Modeling TCP Latency (INFOCOM 2000)](https://cseweb.ucsd.edu/~savage/papers/Infocom2000tcp.pdf)
5. [TCP's Initial Window – Deployment in the Wild and its Impact on Performance](https://www.ike-kunze.de/publications/2019/2019_rueth_tcprsquos-initial-window-ndash/2019_rueth_tcprsquos-initial-window-ndash.pdf)
6. [RFC 9406: HyStart++: Modified Slow Start for TCP (May 2023)](https://datatracker.ietf.org/doc/html/rfc9406)
7. [rfc9438 (hjp.at)](https://www.hjp.at/%28en,st_a%29/doc/rfc/rfc9438.pdf)
8. [Stanford CS344G lecture notes on Jacobson/Karels algorithm](https://web.stanford.edu/class/cs344g/cs344g-L5.pdf)
9. [Janey C. Hoe (1996). Improving the start-up behavior of a congestion control scheme for TCP. ACM SIGCOMM Computer Communication Review.](https://doi.org/10.1145/248157.248180)
10. [Mark Allman, Chris Hayes, Shawn Ostermann (1998). An evaluation of TCP with larger initial windows. ACM SIGCOMM Computer Communication Review.](https://doi.org/10.1145/293927.295114)
11. [S. Floyd (2004). Limited Slow-Start for TCP with Large Congestion Windows. .](https://doi.org/10.17487/rfc3742)
12. [draft-ietf-ccwg-bbr-06: BBR Congestion Control](https://datatracker.ietf.org/doc/html/draft-ietf-ccwg-bbr-06)
13. [SUSS: Improving TCP Performance by Speeding Up Slow-Start (SIGCOMM 2024)](https://cs.stanford.edu/~keithw/sigcomm2024/sigcomm24-final280-acmpaginated.pdf)
14. [RFC 6928: Increasing TCP's Initial Window](https://www.rfc-editor.org/rfc/rfc6928.html)
15. [SEARCH -- a New Slow Start Algorithm for TCP and QUIC (draft-chung-ietf-ccwg-search-00)](https://www.ietf.org/archive/id/draft-chung-ietf-ccwg-search-00.html)
16. [SEARCH: Robust TCP Slow Start Performance (LCN 2023)](https://web.cs.wpi.edu/~claypool/papers/search-lcn-23/paper.pdf)
17. [Rfc2001.txt (rfc-editor.org)](https://www.rfc-editor.org/rfc/rfc2001.txt)
18. [rfc-editor.org](https://www.rfc-editor.org/rfc/rfc5681.html)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 网络与安全 › Networking fundamentals and architecture › Internet protocol suite

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/slow-start-computer-networks

English original: https://www.edgepedia.org/slow-start-computer-networks
