三次握手四次挥手

三次握手:

  Client发送SYN=1报文,和seq=i随机序列号(真随鸡还是假随鸡我就不知道了),-->进入client_RECV状态

  Server listen接受到报文发送ACK确认报文(SYN=1),ack序号位置为i+1,并在seq位置随机号seq=j, -->进入Server_RECV状态

  Client收到后确认ACK标志是否为1,检查seq位是否为i+1,并发送ACK确认报文给Server

  Client和Server都进入ESTALISHED状态

四次挥手:fin  ack  

  

原文地址:https://www.cnblogs.com/ali-guili/p/9942507.html