the SS is the abbreviation for the socket statistics. As the name implies, the SS command can be used to get socket statistics, which can display and netstat similar content. But the advantage of the SS is that it can show more and more detailed information about TCP and connection status, and is faster and more efficient than netstat.
When the number of socket connections for a server becomes very large, the execution speed is slow, either with the netstat command or the direct cat/proc/net/tcp. When the server maintains a connection of tens of thousands of times, using netstat equals wasting life, and using SS is to save time.
The World martial arts only fast not broken. The secret of the SS fast is that it leverages the TCP_DIAG in the TCP protocol stack. Tcp_diag is a module for analyzing statistics that gives you first-hand information in the Linux kernel, which ensures that the SS is fast and efficient. Of course, if you do not have tcp_diag,ss in your system, you can run normally, but the efficiency will become slightly slower. (but still faster than Netstat.) )
1. Command format:
SS [Parameter]
SS [Parameter] [filter]
2. Command function:
The SS command can be used to get socket statistics, which results in a similar output to the Netstat output, but it can display more detailed information about the status of TCP connections and is faster and more efficient than netstat. It uses the TCP protocol stack Tcp_diag (is a module for analyzing statistics), can directly from the first-hand kernel information, which makes the SS command fast and efficient. It can run normally without tcp_diag,ss.
3. Command parameters:
-H,--help help info
-N,--numeric does not resolve service name
-R,--resolve parse host name
-O,--options display timer information
-E,--extended display detailed socket (sockets) information
-P,--processes shows the process using the socket (socket)
-I,--info display TCP internal information
-S,--summary display socket (socket) Usage overview
-T,--tcp display only TCP sockets (sockets)
-U,--udp Show only UCP sockets (sockets)
-D,--DCCP Show only DCCP sockets (sockets)
This article is from the "xinsz08の parallel space-time" blog, be sure to keep this source http://xinsz08.blog.51cto.com/10565212/1917395
The Linux under SS command uses