Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP连接为什么要三次握手? #44

Open
lhlGitHub opened this issue Feb 23, 2022 · 1 comment
Open

HTTP连接为什么要三次握手? #44

lhlGitHub opened this issue Feb 23, 2022 · 1 comment

Comments

@lhlGitHub
Copy link
Owner

No description provided.

@Moannas
Copy link

Moannas commented Feb 23, 2022

为了实现可靠数据传输, TCP 协议的通信双方, 都必须维护一个序列号, 以标识发送出去的数据包中, 哪些是已经被对方收到的。 三次握手的过程即是通信双方相互告知序列号起始值, 并确认对方已经收到了序列号起始值的必经步骤
如果只是两次握手, 只有连接发起方的起始序列号能被确认, 另一方选择的序列号则得不到确认

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants