TCP/IP 详解 卷1 ch21 TCP的超时与重传

本文详细介绍了TCP协议中的几个核心机制,包括指数退避算法、往返时间测量公式、重传超时计算方法以及TCP的四种定时器:重传定时器、持久定时器、保活定时器和2MSL定时器的作用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. TCP超时与重传

指数避让(exponential backoff)

2. Round-Trip Time Measurement
R <- aR + (1-a)M    a = 0.9

RTO : Retransmission Timeout
RTO = Rb                b = 2

3. TCP的4个定时器

1) A retransmission timer is used when expecting an acknowledgment from the other end. 重传定时器
2) A persist timer keeps window size information flowing even if the other end closes its receive window.
3) A keepalive timer detects when the other end on an otherwise idle connection crashes or reboots. 保活定时器
4) A 2MSL timer measures the time a connection has been in the TIME_WAIT state.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值