Skip to content

Commit

Permalink
fix: fix Computer Network TCP images
Browse files Browse the repository at this point in the history
  • Loading branch information
RealBeBetter committed Dec 11, 2022
1 parent fd8c9e9 commit 8178be6
Show file tree
Hide file tree
Showing 9 changed files with 83 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/Waking-Up.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Computer Network.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

### 什么是三次握手 (three-way handshake)?

![三次握手](_v_images/20191129101827556_21212.png)
![image-20221212004219997](/_v_images/image-20221212004219997.png)

- 第一次握手:Client将SYN置1,随机产生一个初始序列号seq发送给Server,进入SYN_SENT状态;
- 第二次握手:Server收到Client的SYN=1之后,知道客户端请求建立连接,将自己的SYN置1,ACK置1,产生一个acknowledge number=sequence number+1,并随机产生一个自己的初始序列号,发送给客户端;进入SYN_RCVD状态;
Expand Down Expand Up @@ -90,7 +90,7 @@ TCP连接的一方A,随机选择一个32位的序列号(Sequence Number)

### 什么是四次挥手?

![四次挥手](_v_images/20191129112652915_15481.png)
![image-20221212004254912](/_v_images/image-20221212004254912.png)

- 第一次挥手:Client将FIN置为1,发送一个序列号seq给Server;进入FIN_WAIT_1状态;
- 第二次挥手:Server收到FIN之后,发送一个ACK=1,acknowledge number=收到的序列号+1;进入CLOSE_WAIT状态。此时客户端已经没有要发送的数据了,但仍可以接受服务器发来的数据。
Expand Down
Binary file added _v_images/image-20221212004219997.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _v_images/image-20221212004254912.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8178be6

Please sign in to comment.