Questions about Tcp TIME_WAIT

if a socket between the client and the server is closed (the tcp connection is closed), the client will not be able to re-establish an identical socket in a short period of time (two minutes according to the book). So my understanding is: join me to connect to Baidu, then for some reason the tcp connection is terminated, then I can no longer visit Baidu within two minutes? This is obviously impossible because such a problem has never been encountered in reality. So how do you understand TIME_WAIT?

Feb.27,2021
After

local peer actively calls close, the TCP connection in this state enters the TIME_WAIT state, and the TCP connection in this state cannot immediately establish a new connection with the same quad, that is, the local port occupied by the initiator of the active close cannot be reassigned during the TIME_WAIT. Because the TIME_WAIT state duration is 2MSL, this ensures that the old packets in the old TCP connection duplex link disappear due to expiration (more than MSL). After that, a new connection can be established with the same quad without two connection data errors.


some systems have this limitation

Menu