View the number of tcp connections and status in Linux

Source: Internet
Author: User
In Linux, check the number of tcp connections and the status netstat-n | awk & amp; #39;/^ tcp/{++ S [$ NF]} END {for (ainS) printa, S [a]} & amp; #39; TIME_WAIT8947FIN_WAIT115FIN_WAIT21ESTABLISHED55SYN_RECV21CLOSING2LAST _. in Linux, check the number of tcp connections and the status netstat-n | awk '/^ tcp/{++ S [$ NF]} END {for (a in S) print, S [a]} 'time_wait 8947FIN_WAIT1 15FIN_WAIT2 1 ESTABLISHED 55SYN_RECV 21 CLOSING 2LAST_ACK 4TCP connection status details www.2cto.com LISTEN: Listening for connection requests from remote TCP ports SYN-SENT: send the connection request again and WAIT for the matching connection request SYN-RECEIVED: After receiving and sending a connection request, WAIT for the other party to confirm the connection request ESTABLISHED: represents an open connection FIN-WAIT-1: WAIT for the remote TCP connection interruption request, or the confirmation of the previous connection interruption request FIN-WAIT-2: from the remote tcp wait for the connection interruption request www.2cto.com CLOSE-WAIT: WAIT for the connection interruption request from the local user CLOSING: WAIT for remote TCP to confirm the connection interruption LAST-ACK: WAIT for the confirmation of the original connection interruption request sent to remote tcp time-WAIT: wait for enough time to make sure that the remote TCP receives the confirmation CLOSED of the connection interruption request: no connection status
Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.