从 ss 观察
从 ss 观察
ss -ti | grep -E 'cwnd|ssthresh' | head
# cwnd 快速翻倍 → 慢启动;缓慢爬升 → 拥塞避免| AIMD | 加性增(拥塞避免)、乘性减(丢包) |
|---|---|
| 大窗口代价 | cwnd 越大,丢包一次砍得越狠 |
| 相关参数 | net.ipv4.tcp_notsent_lowat 等影响排队 |
理解 ssthresh 能解释「为什么刚建连很慢,跑一会儿变快」——这就是慢启动到拥塞避免的过程。
ssthresh 是慢启动与拥塞避免的分界:cwnd 低于它指数涨,达到后每个 RTT 大致 +1 MSS 线性涨;丢包时阈值减半(乘性减)。
ss -ti | grep -E 'cwnd|ssthresh' | head
# cwnd 快速翻倍 → 慢启动;缓慢爬升 → 拥塞避免| AIMD | 加性增(拥塞避免)、乘性减(丢包) |
|---|---|
| 大窗口代价 | cwnd 越大,丢包一次砍得越狠 |
| 相关参数 | net.ipv4.tcp_notsent_lowat 等影响排队 |