TCP连接状态

  • 统计各种TCP状态的链接数

    1
    netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}' 

TCP握手