![]() ![]() a waits a bit to see if anythings is left, then enters CLOSE. Once a acknowledges this (and enters TIME_WAIT), b enters CLOSE. b receives the FIN request, sends an ACK (then a enters FIN_WAIT2), enters CLOSE_WAIT, tells a it is closing down and the enters LAST_ACK. a wishes to close the connection, and enters FIN_WAIT1.When b acknowledges the request, they enter the ESTABLISHED state, and do their business. a sends a request and enters the SYN_SENT state, and b receives the request and enters the SYN_RECV state. Then one program (say a) tries to connect to the other ( b). Both set up sockets and transition to the LISTEN state. You can use the state transition diagrams (examples here, here and here) to make better sense of the states.Ĭonsider two programs attempting a socket connection (call them a and b). Such socketsĪre not included in the output unless you specify theīoth sockets are shut down but we still don't have all our data LISTEN The socket is listening for incoming connections. The remote end has shut down, and the socket is closed. The remote end has shut down, waiting for the socket to close. The socket is waiting after close to handle packets still in the The socket is closed, and the connection is shutting down.Ĭonnection is closed, and the socket is waiting for a shutdown The socket is actively attempting to establish a connection.Ī connection request has been received from the network. The socket has an established connection. The manpage of netstat has a brief description of each state: ESTABLISHED
0 Comments
Leave a Reply. |