We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
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
第282天 请描述处TCP的三次握手和四次挥手
我也要出题
The text was updated successfully, but these errors were encountered:
三次握手 1.client 向 server请求建立连接 2.server向client返回消息同意建立连接 3.client向server返回消息确认已建立连接
四次挥手 1.cient向server发消息请求关闭连接 2.server向client回消息:已收到你关闭连接的请求 3.server处理完善后事宜,向client回消息:已关闭服务端连接 4.client向server回消息:收到,已关闭客户端连接
Sorry, something went wrong.
三次握手是通信双方建立TCP连接的过程,作用是明确双方的收、发能力是正常的 第一次握手:客户端向服务端发送消息,请求连接。此时服务端明白客户端的发送、自己的接收能力没问题 第二次握手:服务端向客户端返回消息,告知同意连接请求。此时客户端明白自己的发送接收、服务端的发送接收没问题 第三次握手:客户端返回消息,告知服务端确认建立连接。此时服务端明白自己的发送和客户端的接收没问题
四次挥手:这是通信双方断开TCP连接的过程 第一次挥手,客户端发送请求,告知服务端自己没有数据可发送了,请求断开连接(这个阶段不再发送数据,但仍能接收数据) 第二次挥手,服务端接收请求,返回消息告知收到请求,但还没准备好断开连接(这个阶段服务端仍能发送数据,断开连接需要应用层决定) 第三次挥手,服务端处理完善后事宜,发送消息给客户端,告知同意断开连接(这个阶段服务端不再向客户端发送数据,并等待客户端的最后一次消息) 第四次挥手,客户端返回确认消息,服务端接收到确认消息,关闭连接。客户端等待一段时间,若没有接收到服务端需要重发确认信息的请求,则认为服务端已经关闭。客户端关闭连接
No branches or pull requests
第282天 请描述处TCP的三次握手和四次挥手
我也要出题
The text was updated successfully, but these errors were encountered: