如何知道哪个网卡在丢包:netstat -i
如何知道什么时候丢包:perf record -g -a -e skb:kfree_skb
如何知道哪里丢包了:https://github.com/pavel-odintsov/drop_watch
按网卡查看流量:ifstat
、dstat -nf
或sar -n DEV 1 2
按进程查看流量:nethogs
按连接查看流量:iptraf
、iftop
或tcptrack
查看流量最大的进程:sysdig -c topprocs_net
查看流量最大的端口:sysdig -c topports_server
查看连接最多的服务器端口:sysdig -c fdbytes_by fd.sport