/usr/share/systemtap/examples/network
NameSizeModeActions
autofs4.meta3970644editdlrm
autofs4.stp41670755editdlrm
connect_stat.meta4040644editdlrm
connect_stat.stp10190755editdlrm
dropwatch.meta4940644editdlrm
dropwatch.stp9000755editdlrm
netdev.meta3890644editdlrm
netdev.stp14580755editdlrm
netfilter_drop.meta6300644editdlrm
netfilter_drop.stp11560755editdlrm
netfilter_summary.meta5870644editdlrm
netfilter_summary.stp5910755editdlrm
netfilter_summary.txt28730644editdlrm
netfilter_summary_json.meta5110644editdlrm
netfilter_summary_json.stp10700644editdlrm
nettop.meta5190644editdlrm
nettop.stp9890755editdlrm
nettop.txt9530644editdlrm
net_xmit_json.meta4530644editdlrm
net_xmit_json.stp18010644editdlrm
nfsd-recent.meta4230644editdlrm
nfsd-recent.stp4420755editdlrm
nfsd-trace.meta3140644editdlrm
nfsd-trace.stp7010644editdlrm
nfsd-trace.txt8760644editdlrm
nfsdtop.meta4050644editdlrm
nfsdtop.stp33850755editdlrm
nfsd_unlink.meta4790644editdlrm
nfsd_unlink.stp5230755editdlrm
packet_contents.meta5500644editdlrm
packet_contents.stp2160755editdlrm
packet_contents.txt20660644editdlrm
sk_stream_wait_memory.meta7420644editdlrm
sk_stream_wait_memory.stp9990755editdlrm
socket-trace.meta7020644editdlrm
socket-trace.stp2220755editdlrm
socktop91440755editdlrm
socktop.meta5480644editdlrm
socktop.txt41350644editdlrm
stp_dump.meta3390644editdlrm
stp_dump.stp5680644editdlrm
stp_dump.txt16320644editdlrm
tcpdumplike.meta3810644editdlrm
tcpdumplike.stp5810755editdlrm
tcpipstat.meta7250644editdlrm
tcpipstat.stp182470755editdlrm
tcpipstat.txt8980644editdlrm
tcp_connections.meta6250644editdlrm
tcp_connections.stp3610755editdlrm
tcp_init_cwnd.meta5890644editdlrm
tcp_init_cwnd.stp3430755editdlrm
tcp_retransmission.meta2860644editdlrm
tcp_retransmission.stp11820644editdlrm
tcp_trace.meta6840644editdlrm
tcp_trace.stp190950755editdlrm
tcp_trace.txt34650644editdlrm
who_sent_it.meta5830644editdlrm
who_sent_it.stp4770644editdlrm
who_sent_it.txt8030644editdlrm
Edit: /usr/share/systemtap/examples/network/netfilter_summary.txt (2873B)
netfilter_summary.stp - System-Wide Count of Network Packets by IPs The script watches all IPv4 network traffic on the system. On exit the script prints a list showing the number of packets sent along source IP address / destination IP address pair encountered, and the total number of bytes sent among the pair. The list is ordered from greatest to least number of packets seen among the source/destination pairs. $ stap netfilter_summary.stp -T 10 Collecting data... Type Ctrl-C to exit and display results. 205.251.249.28 --> 10.15.16.105 : 122 packets, 259403 total bytes 54.218.38.124 --> 10.15.16.105 : 6 packets, 3694 total bytes 10.15.16.136 --> 10.15.16.255 : 3 packets, 108 total bytes 10.11.5.19 --> 10.15.16.105 : 3 packets, 408 total bytes 173.194.121.14 --> 10.15.16.105 : 2 packets, 104 total bytes 10.15.16.206 --> 255.255.255.255 : 2 packets, 280 total bytes 194.68.29.18 --> 10.15.16.105 : 2 packets, 242 total bytes 10.15.16.138 --> 255.255.255.255 : 2 packets, 280 total bytes 205.251.242.58 --> 10.15.16.105 : 1 packets, 40 total bytes 50.58.123.35 --> 10.15.16.105 : 1 packets, 52 total bytes 10.15.16.114 --> 10.15.16.255 : 1 packets, 228 total bytes 10.15.16.114 --> 255.255.255.255 : 1 packets, 228 total bytes 54.230.195.233 --> 10.15.16.105 : 1 packets, 52 total bytes 54.230.192.90 --> 10.15.16.105 : 1 packets, 52 total bytes The output above was from when the system was doing nothing interesting. Rerunning the script opening numerous tabs to google.com. $ stap netfilter_summary.stp -T 10 Collecting data... Type Ctrl-C to exit and display results. 173.194.37.87 --> 10.15.16.105 : 547 packets, 700864 total bytes 173.194.121.15 --> 10.15.16.105 : 214 packets, 240447 total bytes 173.194.37.79 --> 10.15.16.105 : 213 packets, 222228 total bytes 173.194.121.3 --> 10.15.16.105 : 136 packets, 162753 total bytes 205.251.249.28 --> 10.15.16.105 : 115 packets, 215980 total bytes 10.11.5.19 --> 10.15.16.105 : 71 packets, 8894 total bytes 173.194.121.9 --> 10.15.16.105 : 66 packets, 58162 total bytes 173.194.37.81 --> 10.15.16.105 : 52 packets, 11046 total bytes 54.213.74.85 --> 10.15.16.105 : 4 packets, 908 total bytes 127.0.0.1 --> 127.0.0.1 : 2 packets, 104 total bytes 10.10.161.32 --> 10.15.16.105 : 1 packets, 122 total bytes 173.252.100.27 --> 10.15.16.105 : 1 packets, 93 total bytes 64.32.24.176 --> 10.15.16.105 : 1 packets, 149 total bytes 10.15.16.136 --> 10.15.16.255 : 1 packets, 36 total bytes 198.58.96.245 --> 10.15.16.105 : 1 packets, 112 total bytes Heavily used connections will rise to the top of the list. The script's output gives a basic understanding of where packets are being sent to and received from. Other scripts can be used to supplement the gathered information.