Skip to content

Commit f26c239

Browse files
authored
Merge pull request #1840 from super233/patch-1
Update tcp-reliability-guarantee.md
2 parents 7b56b9e + 29a8c3f commit f26c239

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/cs-basics/network/tcp-reliability-guarantee.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ tag:
77

88
## TCP 如何保证传输的可靠性?
99

10-
1. **基于数据快传输** :应用数据被分割成 TCP 认为最适合发送的数据块,再传输给网络层,数据块被称为报文段或段。
10+
1. **基于数据块传输** :应用数据被分割成 TCP 认为最适合发送的数据块,再传输给网络层,数据块被称为报文段或段。
1111
2. **对失序数据包重新排序以及去重**:TCP 为了保证不发生丢包,就给每个包一个序列号,有了序列号能够将接收到的数据根据序列号排序,并且去掉重复序列号的数据就可以实现数据包去重。
1212
3. **校验和** : TCP 将保持它首部和数据的检验和。这是一个端到端的检验和,目的是检测数据在传输过程中的任何变化。如果收到段的检验和有差错,TCP 将丢弃这个报文段和不确认收到此报文段。
1313
4. **超时重传** : 当发送方发送数据之后,它启动一个定时器,等待目的端确认收到这个报文段。接收端实体对已成功收到的包发回一个相应的确认信息(ACK)。如果发送端实体在合理的往返时延(RTT)内未收到确认消息,那么对应的数据包就被假设为[已丢失](https://zh.wikipedia.org/wiki/丢包 )并进行重传。
@@ -116,4 +116,4 @@ ARQ 包括停止等待 ARQ 协议和连续 ARQ 协议。
116116
4. [https://github.com/wolverinn/Waking-Up/blob/master/Computer%20Network.md](https://github.com/wolverinn/Waking-Up/blob/master/Computer%20Network.md )
117117
5. TCP Flow Control—[https://www.brianstorti.com/tcp-flow-control/](https://www.brianstorti.com/tcp-flow-control/ )
118118
6. 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

0 commit comments

Comments
 (0)