插件信息:|名称|大小|版本|更新时间|支持系统||-|-|-|-|-||ss|0.1M|1.0.1|2021/9/1|Linux|插件简介:ss可以用来获取socket统计信息,它可以显示和netstat类似的内容。但ss的优势在于它能够显示更多更详细的有关tcp和连接状态的信息,而且比netstat更快速更高效.使用说明:-r,--resolveresolvehostnames-a,--alldisplayallsockets-l,--listeningdisplaylisteningsockets-o,--optionsshowtimerinformation-e,--extendedshowdetailedsocketinformation-m,--memoryshowsocketmemoryusage-p,--processesshowprocessusingsocket-i,--infoshowinternalTCPinformation-s,--summaryshowsocketusagesummary-b,--bpfshowbpffiltersocketinformation-Z,--contextdisplayprocessSELinuxsecuritycontexts-z,--contextsdisplayprocessandsocketSELinuxsecuritycontexts-N,--netswitchtothespecifiednetworknamespacename-4,--ipv4displayonlyIPversion4sockets-6,--ipv6displayonlyIPversion6sockets-0,--packetdisplayPACKETsockets-t,--tcpdisplayonlyTCPsockets-S,--sctpdisplayonlySCTPsockets-u,--udpdisplayonlyUDPsockets-d,--dccpdisplayonlyDCCPsockets-w,--rawdisplayonlyRAWsockets-x,--unixdisplayonlyUnixdomainsockets-f,--family=FAMILYdisplaysocketsoftypeFAMILY例如如果想查看当前tcp连接的详细信息可以通过ss-ta来查看```XPocket[ss]>ss-taStateRecv-QSend-QLocalAddress:PortPeerAddress:PortLISTEN0128:http:LISTEN0128:ssh:LISTEN0100127.0.0.1:smtp:LISTEN0128:vcom-tunnel:ESTAB036192.168.0.83:ssh172.16.2.136:54294ESTAB00192.168.0.83:ssh172.16.2.136:54299ESTAB00192.168.0.83:ssh172.16.2.136:54293ESTAB00192.168.0.83:ssh172.16.2.136:54296ESTAB00192.168.0.83:ssh172.16.2.136:54331LISTEN0128:::http:::LISTEN0128:::ssh:::LISTEN0100::1:smtp:::```需要tcp的详细信息例如cwndrtt等信息在则需要加上-i选项```XPocket[ss]>ss-tiStateRecv-QSend-QLocalAddress:PortPeerAddress:PortESTAB036192.168.0.83:ssh172.16.2.136:54294cubicwscale:6,7rto:207rtt:6.199/3.179ato:40mss:1448cwnd:6ssthresh:4bytes_acked:47609bytes_received:6517segs_out:183segs_in:267send11.2Mbpslastsnd:1lastrcv:2lastack:2pacing_rate22.4Mbpsunacked:1retrans:0/4rcv_rtt:9rcv_space:28960ESTAB00192.168.0.83:ssh172.16.2.136:54299cubicwscale:6,7rto:205rtt:4.383/1.111ato:47mss:1448cwnd:10bytes_acked:2897bytes_received:2533segs_out:19segs_in:24send26.4Mbpslastsnd:10415390lastrcv:10415390lastack:3190394pacing_rate52.9Mbpsrcv_rtt:7rcv_space:28960ESTAB00192.168.0.83:ssh172.16.2.136:54293cubicwscale:6,7rto:205rtt:4.6/0.673ato:53mss:1448cwnd:10bytes_acked:21713bytes_received:6681segs_out:174segs_in:279send25.2Mbpslastsnd:8922828lastrcv:8922949lastack:1719975pacing_rate50.4Mbpsrcv_rtt:8rcv_space:28960ESTAB00192.168.0.83:ssh172.16.2.136:54296cubicwscale:6,7rto:205rtt:4.789/1.301ato:40mss:1448cwnd:10bytes_acked:2897bytes_received:2533segs_out:21segs_in:23send24.2Mbpslastsnd:10418464lastrcv:10418464lastack:3206821pacing_rate48.4Mbpsrcv_rtt:8rcv_space:28960ESTAB00192.168.0.83:ssh172.16.2.136:54331cubicwscale:6,7rto:206rtt:5.366/2.075ato:40mss:1448cwnd:10bytes_acked:2897bytes_received:2533segs_out:21segs_in:24send21.6Mbpslastsnd:10412097lastrcv:10412098lastack:3190394pacing_rate43.2Mbpsrcv_rtt:29rcv_space:28960```