tcpdump -i eth0 “icmp6 && ip6[40] == 128” The most common ICMPv6 types are: unreachable: 1 too-big: 2 time-exceeded: 3 echo-request: 128 echo-reply: 129 router-solicitation: 133 router-advertisement: 134 neighbor-solicitation: 135 类似arp request neighbor-advertisement: 136 tcpdump -i eth0 “icmp6 && ip6[40] == 128” tcpdump -i eth0 -nr ipv6_traffic.pcap “ip6 and not tcp port 22” IPv6 and TCP tcpdump -nr ipv6_traffic.pcap ip6 proto 6 tcpdump -nr ipv6_traffic.pcap ip6 protochain 6 IPv6 and UDP tcpdump -nr ipv6_traffic.pcap ip6 proto 17 tcpdump -nr ipv6_traffic.pcap ip6 and udp
13. Capture IPv6 Traffic
Capture IPv6 traffic using the ip6
filter. In these examples we have specified the TCP and UDP protocols using proto 6
and proto 17
.
tcpdump -nn ip6 proto 6
IPv6 with UDP and reading from a previously saved capture file.
tcpdump -nr ipv6-test.pcap ip6 proto 17
# tcpdump -i eth0 -vv ip6
root@mpls3:~# tcpdump -i enp1s0 ip6 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on enp1s0, link-type EN10MB (Ethernet), capture size 262144 bytes 17:49:36.347819 IP6 2000:2001::1001 > 3000::2: srcrt (len=4, type=4, segleft=1[|srcrt] ------------------left=1 17:49:37.371647 IP6 2000:2001::1001 > 3000::2: srcrt (len=4, type=4, segleft=1[|srcrt] 17:49:38.395620 IP6 2000:2001::1001 > 3000::2: srcrt (len=4, type=4, segleft=1[|srcrt] 17:49:39.419648 IP6 2000:2001::1001 > 3000::2: srcrt (len=4, type=4, segleft=1[|srcrt] 17:49:40.443651 IP6 2000:2001::1001 > 3000::2: srcrt (len=4, type=4, segleft=1[|srcrt] 17:49:41.443567 IP6 2000:2001::1001 > 3000::2: srcrt (len=4, type=4, segleft=1[|srcrt] 17:49:41.552876 IP6 fe80::5054:ff:fed9:5282 > 2000:2001::1002: ICMP6, neighbor solicitation, who has 2000:2001::1002, length 32
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
18:48:56.958982 IP6 2000:2001::1001 > 2000:2001::1002: ICMP6, echo request, seq 1, length 64
18:49:12.411884 IP6 2000:2001::1001 > 3000::4: srcrt (len=4, type=4, segleft=0[|srcrt]
18:49:13.435682 IP6 2000:2001::1001 > 3000::4: srcrt (len=4, type=4, segleft=0[|srcrt]
18:49:14.459672 IP6 2000:2001::1001 > 3000::4: srcrt (len=4, type=4, segleft=0[|srcrt] --------------left=0
18:49:15.483649 IP6 2000:2001::1001 > 3000::4: srcrt (len=4, type=4, segleft=0[|srcrt]
18:49:16.507658 IP6 2000:2001::1001 > 3000::4: srcrt (len=4, type=4, segleft=0[|srcrt]
18:49:17.484482 IP6 fe80::5054:ff:fed7:a1de > 2000:2002::1004: ICMP6, neighbor solicitation, who has 2000:2002::1004, length 32
root@mpls2:~# tcpdump -i enp5s0 ip6 -env tcpdump: listening on enp5s0, link-type EN10MB (Ethernet), capture size 262144 bytes 17:49:36.639287 52:54:00:d9:52:82 > 52:54:00:ea:64:6e, ethertype IPv6 (0x86dd), length 178: (hlim 63, next-header Routing (43) payload length: 124) 2000:2001::1001 > 3000::2: srcrt (len=4, type=4, segleft=1[|srcrt] 17:49:37.663102 52:54:00:d9:52:82 > 52:54:00:ea:64:6e, ethertype IPv6 (0x86dd), length 178: (hlim 63, next-header Routing (43) payload length: 124) 2000:2001::1001 > 3000::2: srcrt (len=4, type=4, segleft=1[|srcrt] 17:49:38.687082 52:54:00:d9:52:82 > 52:54:00:ea:64:6e, ethertype IPv6 (0x86dd), length 178: (hlim 63, next-header Routing (43) payload length: 124) 2000:2001::1001 > 3000::2: srcrt (len=4, type=4, segleft=1[|srcrt] 17:49:39.711105 52:54:00:d9:52:82 > 52:54:00:ea:64:6e, ethertype IPv6 (0x86dd), length 178: (hlim 63, next-header Routing (43) payload length: 124) 2000:2001::1001 > 3000::2: srcrt (len=4, type=4, segleft=1[|srcrt] 17:49:40.735104 52:54:00:d9:52:82 > 52:54:00:ea:64:6e, ethertype IPv6 (0x86dd), length 178: (hlim 63, next-header Routing (43) payload length: 124) 2000:2001::1001 > 3000::2: srcrt (len=4, type=4, segleft=1[|srcrt] 17:49:41.735037 52:54:00:d9:52:82 > 52:54:00:ea:64:6e, ethertype IPv6 (0x86dd), length 178: (hlim 63, next-header Routing (43) payload length: 124) 2000:2001::1001 > 3000::2: srcrt (len=4, type=4, segleft=1[|srcrt]
root@mpls3:~# tcpdump -i enp7s0 ip6 ------------------arp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on enp7s0, link-type EN10MB (Ethernet), capture size 262144 bytes
18:24:50.217737 IP6 fe80::5054:ff:fe5a:42f2 > ip6-allrouters: ICMP6, router solicitation, length 16
18:33:49.115615 IP6 fe80::5054:ff:fee7:7dc8 > ip6-allrouters: ICMP6, router solicitation, length 16
18:43:17.712687 IP6 fe80::5054:ff:fe89:c7bd > ip6-allrouters: ICMP6, router solicitation, length 16
节点1
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:28:33:5f brd ff:ff:ff:ff:ff:ff inet 10.10.18.115/24 brd 10.10.18.255 scope global dynamic enp1s0 valid_lft 81764sec preferred_lft 81764sec inet6 2001::1/64 scope global dadfailed tentative valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe28:335f/64 scope link valid_lft forever preferred_lft forever
执行ping
root@ubuntu:~# ping6 fe80::f816:3eff:fe1c:eec8%enp1s0 PING fe80::f816:3eff:fe1c:eec8%enp1s0(fe80::f816:3eff:fe1c:eec8%enp1s0) 56 data bytes
节点2
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:1c:ee:c8 brd ff:ff:ff:ff:ff:ff inet 10.10.18.114/24 brd 10.10.18.255 scope global dynamic enp1s0 valid_lft 35504sec preferred_lft 35504sec inet6 2001::2/64 scope global dadfailed tentative valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe1c:eec8/64 scope link valid_lft forever preferred_lft forever
root@ubuntu:~# tcpdump -i enp1s0 icmp6 -nnvv tcpdump: listening on enp1s0, link-type EN10MB (Ethernet), capture size 262144 bytes 09:45:20.253228 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32) fe80::f816:3eff:fe28:335f > fe80::f816:3eff:fe1c:eec8: [icmp6 sum ok] ICMP6, neighbor solicitation, length 32, who has fe80::f816:3eff:fe1c:eec8 source link-address option (1), length 8 (1): fa:16:3e:28:33:5f 0x0000: fa16 3e28 335f 09:45:20.253289 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 24) fe80::f816:3eff:fe1c:eec8 > fe80::f816:3eff:fe28:335f: [icmp6 sum ok] ICMP6, neighbor advertisement, length 24, tgt is fe80::f816:3eff:fe1c:eec8, Flags [router, solicited] 09:45:25.445479 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32) fe80::f816:3eff:fe1c:eec8 > fe80::f816:3eff:fe28:335f: [icmp6 sum ok] ICMP6, neighbor solicitation, length 32, who has fe80::f816:3eff:fe28:335f source link-address option (1), length 8 (1): fa:16:3e:1c:ee:c8 0x0000: fa16 3e1c eec8 09:45:25.458828 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 24) fe80::f816:3eff:fe28:335f > fe80::f816:3eff:fe1c:eec8: [icmp6 sum ok] ICMP6, neighbor advertisement, length 24, tgt is fe80::f816:3eff:fe28:335f, Flags [router, solicited] 09:45:57.372951 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32) fe80::f816:3eff:fe28:335f > fe80::f816:3eff:fe1c:eec8: [icmp6 sum ok] ICMP6, neighbor solicitation, length 32, who has fe80::f816:3eff:fe1c:eec8 source link-address option (1), length 8 (1): fa:16:3e:28:33:5f 0x0000: fa16 3e28 335f 09:45:57.373002 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 24) fe80::f816:3eff:fe1c:eec8 > fe80::f816:3eff:fe28:335f: [icmp6 sum ok] ICMP6, neighbor advertisement, length 24, tgt is fe80::f816:3eff:fe1c:eec8, Flags [router, solicited] 09:46:02.565467 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32) fe80::f816:3eff:fe1c:eec8 > fe80::f816:3eff:fe28:335f: [icmp6 sum ok] ICMP6, neighbor solicitation, length 32, who has fe80::f816:3eff:fe28:335f source link-address option (1), length 8 (1): fa:16:3e:1c:ee:c8 0x0000: fa16 3e1c eec8 09:46:03.033839 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 24) fe80::f816:3eff:fe28:335f > fe80::f816:3eff:fe1c:eec8: [icmp6 sum ok] ICMP6, neighbor advertisement, length 24, tgt is fe80::f816:3eff:fe28:335f, Flags [router, solicited]
root@ubuntu:~# tcpdump -i enp1s0 icmp6 && ip6[40] == 128 -nnvv tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on enp1s0, link-type EN10MB (Ethernet), capture size 262144 bytes 09:48:27.132124 IP6 fe80::f816:3eff:fe28:335f > ubuntu: ICMP6, neighbor solicitation, who has ubuntu, length 32 09:48:27.132201 IP6 ubuntu > fe80::f816:3eff:fe28:335f: ICMP6, neighbor advertisement, tgt is ubuntu, length 24 09:48:32.325468 IP6 ubuntu > fe80::f816:3eff:fe28:335f: ICMP6, neighbor solicitation, who has fe80::f816:3eff:fe28:335f, length 32 09:48:32.325718 IP6 fe80::f816:3eff:fe28:335f > ubuntu: ICMP6, neighbor advertisement, tgt is fe80::f816:3eff:fe28:335f, length 24
[root@localhost ~]# ping6 fe80::4a57:2ff:fe64:e7ae%40 PING fe80::4a57:2ff:fe64:e7ae%40(fe80::4a57:2ff:fe64:e7ae%vpp0) 56 data bytes From fe80::46a1:91ff:fea4:9beb%vpp0 icmp_seq=1 Destination unreachable: Address unreachable From fe80::46a1:91ff:fea4:9beb%vpp0 icmp_seq=2 Destination unreachable: Address unreachable From fe80::46a1:91ff:fea4:9beb%vpp0 icmp_seq=3 Destination unreachable: Address unreachable ^C --- fe80::4a57:2ff:fe64:e7ae%40 ping statistics --- 6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5212ms [root@localhost ~]# ip -6 n | grep vpp0 fe80::4a57:2ff:fe64:e7ae dev vpp0 FAILED [root@localhost ~]# [root@localhost ~]# ip -6 route unreachable ::/96 dev lo metric 1024 error -113 pref medium unreachable ::ffff:0.0.0.0/96 dev lo metric 1024 error -113 pref medium unreachable 2002:a00::/24 dev lo metric 1024 error -113 pref medium unreachable 2002:7f00::/24 dev lo metric 1024 error -113 pref medium unreachable 2002:a9fe::/32 dev lo metric 1024 error -113 pref medium unreachable 2002:ac10::/28 dev lo metric 1024 error -113 pref medium unreachable 2002:c0a8::/32 dev lo metric 1024 error -113 pref medium unreachable 2002:e000::/19 dev lo metric 1024 error -113 pref medium unreachable 3ffe:ffff::/32 dev lo metric 1024 error -113 pref medium fe80::4a57:2ff:fe64:e7ae dev vpp0 metric 1024 pref medium fe80::/64 dev ns1_tap proto kernel metric 256 pref medium fe80::/64 dev ns7_tap proto kernel metric 256 pref medium fe80::/64 dev ns8_tap proto kernel metric 256 pref medium fe80::/64 dev vpp0 proto kernel metric 256 pref medium
ip route add 0/0 nexthop via inet6 fe80::21b:21ff:febb:6934 dev wlp0s20f3 ip -6 route add fe80::1 dev vpp0 [root@localhost ~]# ip a | grep inet6 | grep global [root@localhost ~]# ip6tables -S | grep icmp | grep DROP [root@localhost ~]# route -6 [root@localhost ~]# ip6tables -S -P INPUT ACCEPT -P FORWARD ACCEPT -P OUTPUT ACCEPT
apt install linux-tools-$(uname -r) linux-tools-generic root@ubuntu:~# perf --version perf version 5.3.1 root@ubuntu:~# perf trace --no-syscalls --event 'net:*' ping6 fe80::f816:3eff:fe28:eec8%2 PING fe80::f816:3eff:fe28:eec8%2(fe80::f816:3eff:fe28:eec8%enp1s0) 56 data bytes 0.000 ping6/3438 net:net_dev_queue:dev=enp1s0 skbaddr=0xffff8000fa154a00 len=118 0.038 ping6/3438 net:net_dev_start_xmit:dev=enp1s0 queue_mapping=0 skbaddr=0xffff8000fa154a00 vlan_tagged=0 vlan_proto=0x0000 vlan_tci=0x0000 protocol=0x86dd ip_summed=0 len=118 data_len=0 network_offset=14 transport_offset_valid=1 transport_offset=54 tx_flags=0 gso_size=0 gso_segs=0 gso_type=0 0.065 ping6/3438 net:net_dev_xmit:dev=enp1s0 skbaddr=0xffff8000fa154a00 len=118 rc=0 1005.295 ping6/3438 net:net_dev_queue:dev=enp1s0 skbaddr=0xffff8000fa154000 len=118 1005.342 ping6/3438 net:net_dev_start_xmit:dev=enp1s0 queue_mapping=0 skbaddr=0xffff8000fa154000 vlan_tagged=0 vlan_proto=0x0000 vlan_tci=0x0000 protocol=0x86dd ip_summed=0 len=118 data_len=0 network_offset=14 transport_offset_valid=1 transport_offset=54 tx_flags=0 gso_size=0 gso_segs=0 gso_type=0 1005.370 ping6/3438 net:net_dev_xmit:dev=enp1s0 skbaddr=0xffff8000fa154000 len=118 rc=0 2207.823 ping6/3438 net:net_dev_queue:dev=enp1s0 skbaddr=0xffff8000fa154f00 len=118 2207.879 ping6/3438 net:net_dev_start_xmit:dev=enp1s0 queue_mapping=0 skbaddr=0xffff8000fa154f00 vlan_tagged=0 vlan_proto=0x0000 vlan_tci=0x0000 protocol=0x86dd ip_summed=0 len=118 data_len=0 network_offset=14 transport_offset_valid=1 transport_offset=54 tx_flags=0 gso_size=0 gso_segs=0 gso_type=0 2207.904 ping6/3438 net:net_dev_xmit:dev=enp1s0 skbaddr=0xffff8000fa154f00 len=118 rc=0 3262.142 ping6/3438 net:net_dev_queue:dev=enp1s0 skbaddr=0xffff8000fa154f00 len=118 3262.191 ping6/3438 net:net_dev_start_xmit:dev=enp1s0 queue_mapping=0 skbaddr=0xffff8000fa154f00 vlan_tagged=0 vlan_proto=0x0000 vlan_tci=0x0000 protocol=0x86dd ip_summed=0 len=118 data_len=0 network_offset=14 transport_offset_valid=1 transport_offset=54 tx_flags=0 gso_size=0 gso_segs=0 gso_type=0 3262.216 ping6/3438 net:net_dev_xmit:dev=enp1s0 skbaddr=0xffff8000fa154f00 len=118 rc=0 4269.250 ping6/3438 net:net_dev_queue:dev=enp1s0 skbaddr=0xffff8000fa154000 len=118 4269.293 ping6/3438 net:net_dev_start_xmit:dev=enp1s0 queue_mapping=0 skbaddr=0xffff8000fa154000 vlan_tagged=0 vlan_proto=0x0000 vlan_tci=0x0000 protocol=0x86dd ip_summed=0 len=118 data_len=0 network_offset=14 transport_offset_valid=1 transport_offset=54 tx_flags=0 gso_size=0 gso_segs=0 gso_type=0 4269.317 ping6/3438 net:net_dev_xmit:dev=enp1s0 skbaddr=0xffff8000fa154000 len=118 rc=0 6648.173 ping6/3438 net:net_dev_queue:dev=enp1s0 skbaddr=0xffff8000f79a4000 len=118 6648.204 ping6/3438 net:net_dev_start_xmit:dev=enp1s0 queue_mapping=0 skbaddr=0xffff8000f79a4000 vlan_tagged=0 vlan_proto=0x0000 vlan_tci=0x0000 protocol=0x86dd ip_summed=0 len=118 data_len=0 network_offset=14 transport_offset_valid=1 transport_offset=54 tx_flags=0 gso_size=0 gso_segs=0 gso_type=0 6648.223 ping6/3438 net:net_dev_xmit:dev=enp1s0 skbaddr=0xffff8000f79a4000 len=118 rc=0 7647.348 ping6/3438 net:net_dev_queue:dev=enp1s0 skbaddr=0xffff8000f79a4000 len=118 7647.398 ping6/3438 net:net_dev_start_xmit:dev=enp1s0 queue_mapping=0 skbaddr=0xffff8000f79a4000 vlan_tagged=0 vlan_proto=0x0000 vlan_tci=0x0000 protocol=0x86dd ip_summed=0 len=118 data_len=0 network_offset=14 transport_offset_valid=1 transport_offset=54 tx_flags=0 gso_size=0 gso_segs=0 gso_type=0 7647.426 ping6/3438 net:net_dev_xmit:dev=enp1s0 skbaddr=0xffff8000f79a4000 len=118 rc=0 8653.219 ping6/3438 net:net_dev_queue:dev=enp1s0 skbaddr=0xffff8000f79a4000 len=118 8653.258 ping6/3438 net:net_dev_start_xmit:dev=enp1s0 queue_mapping=0 skbaddr=0xffff8000f79a4000 vlan_tagged=0 vlan_proto=0x0000 vlan_tci=0x0000 protocol=0x86dd ip_summed=0 len=118 data_len=0 network_offset=14 transport_offset_valid=1 transport_offset=54 tx_flags=0 gso_size=0 gso_segs=0 gso_type=0 8653.283 ping6/3438 net:net_dev_xmit:dev=enp1s0 skbaddr=0xffff8000f79a4000 len=118 rc=0 9677.244 ping6/3438 net:net_dev_queue:dev=enp1s0 skbaddr=0xffff8000f79a4000 len=118 9677.286 ping6/3438 net:net_dev_start_xmit:dev=enp1s0 queue_mapping=0 skbaddr=0xffff8000f79a4000 vlan_tagged=0 vlan_proto=0x0000 vlan_tci=0x0000 protocol=0x86dd ip_summed=0 len=118 data_len=0 network_offset=14 transport_offset_valid=1 transport_offset=54 tx_flags=0 gso_size=0 gso_segs=0 gso_type=0 9677.309 ping6/3438 net:net_dev_xmit:dev=enp1s0 skbaddr=0xffff8000f79a4000 len=118 rc=0 10701.334 ping6/3438 net:net_dev_queue:dev=enp1s0 skbaddr=0xffff8000f79a4000 len=118 10701.395 ping6/3438 net:net_dev_start_xmit:dev=enp1s0 queue_mapping=0 skbaddr=0xffff8000f79a4000 vlan_tagged=0 vlan_proto=0x0000 vlan_tci=0x0000 protocol=0x86dd ip_summed=0 len=118 data_len=0 network_offset=14 transport_offset_valid=1 transport_offset=54 tx_flags=0 gso_size=0 gso_segs=0 gso_type=0 10701.425 ping6/3438 net:net_dev_xmit:dev=enp1s0 skbaddr=0xffff8000f79a4000 len=118 rc=0 11725.264 ping6/3438 net:net_dev_queue:dev=enp1s0 skbaddr=0xffff8000f79a4000 len=118 11725.311 ping6/3438 net:net_dev_start_xmit:dev=enp1s0 queue_mapping=0 skbaddr=0xffff8000f79a4000 vlan_tagged=0 vlan_proto=0x0000 vlan_tci=0x0000 protocol=0x86dd ip_summed=0 len=118 data_len=0 network_offset=14 transport_offset_valid=1 transport_offset=54 tx_flags=0 gso_size=0 gso_segs=0 gso_type=0 11725.337 ping6/3438 net:net_dev_xmit:dev=enp1s0 skbaddr=0xffff8000f79a4000 len=118 rc=0 12749.303 ping6/3438 net:net_dev_queue:dev=enp1s0 skbaddr=0xffff8000f79a4000 len=118 12749.359 ping6/3438 net:net_dev_start_xmit:dev=enp1s0 queue_mapping=0 skbaddr=0xffff8000f79a4000 vlan_tagged=0 vlan_proto=0x0000 vlan_tci=0x0000 protocol=0x86dd ip_summed=0 len=118 data_len=0 network_offset=14 transport_offset_valid=1 transport_offset=54 tx_flags=0 gso_size=0 gso_segs=0 gso_type=0 12749.386 ping6/3438 net:net_dev_xmit:dev=enp1s0 skbaddr=0xffff8000f79a4000 len=118 rc=0 13773.270 ping6/3438 net:net_dev_queue:dev=enp1s0 skbaddr=0xffff8000f79a4000 len=118 13773.315 ping6/3438 net:net_dev_start_xmit:dev=enp1s0 queue_mapping=0 skbaddr=0xffff8000f79a4000 vlan_tagged=0 vlan_proto=0x0000 vlan_tci=0x0000 protocol=0x86dd ip_summed=0 len=118 data_len=0 network_offset=14 transport_offset_valid=1 transport_offset=54 tx_flags=0 gso_size=0 gso_segs=0 gso_type=0 13773.340 ping6/3438 net:net_dev_xmit:dev=enp1s0 skbaddr=0xffff8000f79a4000 len=118 rc=0 14797.252 ping6/3438 net:net_dev_queue:dev=enp1s0 skbaddr=0xffff8000f79a4000 len=118 14797.290 ping6/3438 net:net_dev_start_xmit:dev=enp1s0 queue_mapping=0 skbaddr=0xffff8000f79a4000 vlan_tagged=0 vlan_proto=0x0000 vlan_tci=0x0000 protocol=0x86dd ip_summed=0 len=118 data_len=0 network_offset=14 transport_offset_valid=1 transport_offset=54 tx_flags=0 gso_size=0 gso_segs=0 gso_type=0 14797.314 ping6/3438 net:net_dev_xmit:dev=enp1s0 skbaddr=0xffff8000f79a4000 len=118 rc=0 ^C --- fe80::f816:3eff:fe28:eec8%2 ping statistics --- 14 packets transmitted, 0 received, 100% packet loss, time 14797ms root@ubuntu:~#
root@ubuntu:~# perf list 'net:*' List of pre-defined events (to be used in -e): net:napi_gro_frags_entry [Tracepoint event] net:napi_gro_frags_exit [Tracepoint event] net:napi_gro_receive_entry [Tracepoint event] net:napi_gro_receive_exit [Tracepoint event] net:net_dev_queue [Tracepoint event] net:net_dev_start_xmit [Tracepoint event] net:net_dev_xmit [Tracepoint event] net:net_dev_xmit_timeout [Tracepoint event] net:netif_receive_skb [Tracepoint event] net:netif_receive_skb_entry [Tracepoint event] net:netif_receive_skb_exit [Tracepoint event] net:netif_receive_skb_list_entry [Tracepoint event] net:netif_receive_skb_list_exit [Tracepoint event] net:netif_rx [Tracepoint event] net:netif_rx_entry [Tracepoint event] net:netif_rx_exit [Tracepoint event] net:netif_rx_ni_entry [Tracepoint event] net:netif_rx_ni_exit [Tracepoint event] root@ubuntu:~# perf trace --no-syscalls --event 'net:net_dev_queue' ping6 fe80::f816:3eff:fe28:eec8%2 PING fe80::f816:3eff:fe28:eec8%2(fe80::f816:3eff:fe28:eec8%enp1s0) 56 data bytes 0.000 ping6/3456 net:net_dev_queue:dev=enp1s0 skbaddr=0xffff8000f79a4f00 len=118 1027.079 ping6/3456 net:net_dev_queue:dev=enp1s0 skbaddr=0xffff8000f79a4f00 len=118 2051.145 ping6/3456 net:net_dev_queue:dev=enp1s0 skbaddr=0xffff8000f79a4f00 len=118 ^C --- fe80::f816:3eff:fe28:eec8%2 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2051ms root@ubuntu:~# perf trace --no-syscalls --event 'net:net_dev_queue' --event 'net:net_dev_start_xmit' ping6 fe80::f816:3eff:fe28:eec8%2 PING fe80::f816:3eff:fe28:eec8%2(fe80::f816:3eff:fe28:eec8%enp1s0) 56 data bytes 0.000 ping6/3461 net:net_dev_queue:dev=enp1s0 skbaddr=0xffff8000e8233a00 len=118 0.028 ping6/3461 net:net_dev_start_xmit:dev=enp1s0 queue_mapping=0 skbaddr=0xffff8000e8233a00 vlan_tagged=0 vlan_proto=0x0000 vlan_tci=0x0000 protocol=0x86dd ip_summed=0 len=118 data_len=0 network_offset=14 transport_offset_valid=1 transport_offset=54 tx_flags=0 gso_size=0 gso_segs=0 gso_type=0 1064.896 ping6/3461 net:net_dev_queue:dev=enp1s0 skbaddr=0xffff8000e8233700 len=118 1064.933 ping6/3461 net:net_dev_start_xmit:dev=enp1s0 queue_mapping=0 skbaddr=0xffff8000e8233700 vlan_tagged=0 vlan_proto=0x0000 vlan_tci=0x0000 protocol=0x86dd ip_summed=0 len=118 data_len=0 network_offset=14 transport_offset_valid=1 transport_offset=54 tx_flags=0 gso_size=0 gso_segs=0 gso_type=0 ^C 2551.184 ping6/3461 net:net_dev_queue:dev=enp1s0 skbaddr=0xffff8000e18d2400 len=66 --- fe80::f816:3eff:fe28:eec8%2 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2390ms root@ubuntu:~#