ESTABLISHED: 當前創建鏈接狀態blog
CLOSE_WAIT:Server端收到來自Client端的FIN包後,發送ACK回Client端,進入CLOSE_WAIT 狀態。監控
LAST_ACK:同時Server端向上層應用告知客戶端關閉消息,發送FIN包回Client端,而後進入LAST_ACK階段,等待客戶端ACK。im
CLOSED:Server端收到Client端Ack後,進入CLOSED狀態,鏈接關閉。客戶端
FIN_WAIT1:Client端發送FIN包,而後進入FIN_WAIT1狀態,等待Server端ACK。margin
FIN_WAIT2:Client端收到Server端ACK後,進入FIN_WAIT2狀態,等待Server端FIN包。db
TIME_WAIT:Client端收到Server端FIN後,發送ACK回Server端,而後進入TIME_WAIT狀態,等待(2*MSL)Server端接受ACK後,TCP鏈接關閉。img