File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 77
88## TCP 如何保证传输的可靠性?
99
10- 1 . ** 基于数据快传输 ** :应用数据被分割成 TCP 认为最适合发送的数据块,再传输给网络层,数据块被称为报文段或段。
10+ 1 . ** 基于数据块传输 ** :应用数据被分割成 TCP 认为最适合发送的数据块,再传输给网络层,数据块被称为报文段或段。
11112 . ** 对失序数据包重新排序以及去重** :TCP 为了保证不发生丢包,就给每个包一个序列号,有了序列号能够将接收到的数据根据序列号排序,并且去掉重复序列号的数据就可以实现数据包去重。
12123 . ** 校验和** : TCP 将保持它首部和数据的检验和。这是一个端到端的检验和,目的是检测数据在传输过程中的任何变化。如果收到段的检验和有差错,TCP 将丢弃这个报文段和不确认收到此报文段。
13134 . ** 超时重传** : 当发送方发送数据之后,它启动一个定时器,等待目的端确认收到这个报文段。接收端实体对已成功收到的包发回一个相应的确认信息(ACK)。如果发送端实体在合理的往返时延(RTT)内未收到确认消息,那么对应的数据包就被假设为[ 已丢失] ( https://zh.wikipedia.org/wiki/丢包 ) 并进行重传。
@@ -116,4 +116,4 @@ ARQ 包括停止等待 ARQ 协议和连续 ARQ 协议。
1161164 . [ https://github.com/wolverinn/Waking-Up/blob/master/Computer%20Network.md ] ( https://github.com/wolverinn/Waking-Up/blob/master/Computer%20Network.md )
1171175 . TCP Flow Control—[ https://www.brianstorti.com/tcp-flow-control/ ] ( https://www.brianstorti.com/tcp-flow-control/ )
1181186 . TCP 流量控制(Flow Control):https://notfalse.net/24/tcp-flow-control
119- 7 . TCP之滑动窗口原理 : https://cloud.tencent.com/developer/article/1857363
119+ 7 . TCP之滑动窗口原理 : https://cloud.tencent.com/developer/article/1857363
You can’t perform that action at this time.
0 commit comments