文章目录 参考 crash proc/net TCP乱序的统计值 nc nstat 实例 数据源 和netstat的对应 ss 需要注意的一个问题 ss -o -t ss -i -t ss -apn | grep LISTEN 基本 -m 查看raw socket ss -k|--kill 使用sudo的区别 -i -s netstat -ip 不建议使用这个显示socket信息; -W IP6地址显示不全 问题 bind gre interface时 socket 个数显示不全 -s ICMP snmp 定义 -o socket state 错误 需要注意的 现实route信息 ethtool -c ethtool -m ethtool -N 不加任何参数可以查看网口的大体信息 ethtool -L ethX to set the TX to 1 ethtool -S eth1 -K 设置网口功能 -S 网卡统计数据 -s 设置硬件参数: -t 测试网卡 -x sar sar -t -1 网卡 参考 https://www.kernel.org/doc/html/v5.0/networking/snmp_counter.html crash crash> struct net.mib 0xffffffff8a715e40 mib = { tcp_statistics = { 0x229f0}, ip_statistics