Home > other > TIME - how do you know each other a WAIT state have received the final ACK
TIME - how do you know each other a WAIT state have received the final ACK
Time:02-01
TCP communications actively disconnect side finally sends an ACK will enter the TIME_WAIT state after waiting 2 MSL, if the other party received retransmission, Of this description is not very understanding, FIN is received by the other party of the ACK to determine whether you need to resend, how do you know each other that the final ACK is ever received?
CodePudding user response:
CSDN BBS is becoming more and more cold and cheerless
CodePudding user response:
This should tie in with the TCP state transition diagram to see more clearly, (1). Shake hands four times, for example, take the initiative to shut down one side only after receiving from the side FIN will switch to the TIME_WAIT state from FIN_WAIT_2 state, (2). After receiving legal FIN, sends an ACK, simple ACK packet will not be retransmitted, (3). If the client is not receiving an ACK, will the retransmission FIN bag, after receiving a FIN bag and take the initiative to shut down side again ACK, (4). If the passive side always failed to receive an ACK, will eventually exceed the maximum retransmission times, the connection is closed,