Run the following command to check the status during the test:
Netstat-N | awk '/^ TCP/{++ s [$ NF]} end {for (a in S) print a, s [a]}'
(This statement is obtained from the banquet blog, and the banquet brother obtained from the eldest brother Wang)
Sample returned results:
Last_ack 1syn_recv 1close_wait 33Established 217Fin_wait1 15fin_wait2 16time_wait 46697 status: Description closed: No connection is active or listen is in progress: the server is waiting to enter the call syn_recv: a connection request has arrived, waiting to confirm syn_sent: The application has started, open a connectionEstablished: normal data transmission statusFin_wait1: The application says it has completed fin_wait2: the other side has agreed to releaseItmed_wait:Wait until all groups dieClosing: both sides attempt to disable time_wait at the same time: the other side has initialized a release last_ack: waiting for all groups to die