The meaning of various WAIT in the TCP status of linux-Linux Enterprise Application-Linux server application information. The following is a detailed description. Netstat-ant displays several types of connection statuses: FIN_WAIT_1, FIN_WAIT_2, CLOSE_WAIT, and TIME_WAIT. Their meanings start from the TCP connection interruption process.
Server Client
-------- FIN -------->
<------- ACK ---------
<------- FIN ---------
-------- ACK -------->
Active Close ):
The server first sends the FIN package to the client, and then the server enters the FIN_WAIT_1 status.
The client confirms that the FIN package has been received from the server, sends the FIN/ACK to the server, and the client enters the CLOSE_WAIT status.
The server enters the FIN_WAIT_2 status after receiving the FIN/ACK from the client.
Now the client enters the passive close ("passive close") state, and the client OS waits for the application above to close the connection. Once the connection is closed
The client sends the FIN package to the server.
When the server receives the FIN package, the server sends the FIN/ACK confirmation to the client and enters the well-known TIME_WAIT status.
After the connection is closed, it cannot be determined that all packets before the connection is closed are accepted by the server (packet acceptance is not sequential). Therefore, the TIME_WAIT status is available. In this status, the server is still waiting for the packet sent by the client but has not yet reached the server. This status is dl.
2 * MSL is maintained. MSL indicates the maximum time for a TCP packet to exist in the network. Generally 2 * MSL = 240 seconds.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service