11 Show trace buffer [max COUNT].
13 .. code-block:: console
18 Clear trace buffer and free memory.
20 .. code-block:: console
24 filter trace output - include NODE COUNT | exclude NODE COUNT | none.
26 .. code-block:: console
28 vpp# trace filter <include NODE COUNT | exclude NODE COUNT | none>
36 #. Verify using ping from host
44 .. code-block:: console
46 vpp# trace add af-packet-input 10
48 Ping from Host to FD.io VPP
49 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
51 .. code-block:: console
55 PING 10.10.1.2 (10.10.1.2) 56(84) bytes of data.
56 64 bytes from 10.10.1.2: icmp_seq=1 ttl=64 time=0.283 ms
58 --- 10.10.1.2 ping statistics ---
59 1 packets transmitted, 1 received, 0% packet loss, time 0ms
60 rtt min/avg/max/mdev = 0.283/0.283/0.283/0.000 ms
62 Examine Trace of ping from host to FD.io VPP
63 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
65 .. code-block:: console
69 ------------------- Start of thread 0 vpp_main -------------------
72 00:17:04:099260: af-packet-input
73 af_packet: hw_if_index 1 next-index 4
75 status 0x20000001 len 98 snaplen 98 mac 66 net 80
76 sec 0x5b60e370 nsec 0x3af2736f vlan 0 vlan_tpid 0
77 00:17:04:099269: ethernet-input
78 IP4: e2:0f:1e:59:ec:f7 -> 02:fe:d9:75:d5:b4
79 00:17:04:099285: ip4-input
80 ICMP: 10.10.1.1 -> 10.10.1.2
81 tos 0x00, ttl 64, length 84, checksum 0x3f7c
82 fragment id 0xe516, flags DONT_FRAGMENT
83 ICMP echo_request checksum 0xc043
84 00:17:04:099290: ip4-lookup
85 fib 0 dpo-idx 5 flow hash: 0x00000000
86 ICMP: 10.10.1.1 -> 10.10.1.2
87 tos 0x00, ttl 64, length 84, checksum 0x3f7c
88 fragment id 0xe516, flags DONT_FRAGMENT
89 ICMP echo_request checksum 0xc043
90 00:17:04:099296: ip4-local
91 ICMP: 10.10.1.1 -> 10.10.1.2
92 tos 0x00, ttl 64, length 84, checksum 0x3f7c
93 fragment id 0xe516, flags DONT_FRAGMENT
94 ICMP echo_request checksum 0xc043
95 00:17:04:099300: ip4-icmp-input
96 ICMP: 10.10.1.1 -> 10.10.1.2
97 tos 0x00, ttl 64, length 84, checksum 0x3f7c
98 fragment id 0xe516, flags DONT_FRAGMENT
99 ICMP echo_request checksum 0xc043
100 00:17:04:099301: ip4-icmp-echo-request
101 ICMP: 10.10.1.1 -> 10.10.1.2
102 tos 0x00, ttl 64, length 84, checksum 0x3f7c
103 fragment id 0xe516, flags DONT_FRAGMENT
104 ICMP echo_request checksum 0xc043
105 00:17:04:099303: ip4-load-balance
106 fib 0 dpo-idx 13 flow hash: 0x00000000
107 ICMP: 10.10.1.2 -> 10.10.1.1
108 tos 0x00, ttl 64, length 84, checksum 0x4437
109 fragment id 0xe05b, flags DONT_FRAGMENT
110 ICMP echo_reply checksum 0xc843
111 00:17:04:099305: ip4-rewrite
112 tx_sw_if_index 1 dpo-idx 1 : ipv4 via 10.10.1.1 host-vpp1out: mtu:9000 e20f1e59ecf702fed975d5b40800 flow hash: 0x00000000
113 00000000: e20f1e59ecf702fed975d5b4080045000054e05b4000400144370a0a01020a0a
114 00000020: 01010000c8437c92000170e3605b000000001c170f00000000001011
115 00:17:04:099307: host-vpp1out-output
117 IP4: 02:fe:d9:75:d5:b4 -> e2:0f:1e:59:ec:f7
118 ICMP: 10.10.1.2 -> 10.10.1.1
119 tos 0x00, ttl 64, length 84, checksum 0x4437
120 fragment id 0xe05b, flags DONT_FRAGMENT
121 ICMP echo_reply checksum 0xc843
126 .. code-block:: console
130 Ping from FD.io VPP to Host
131 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
133 .. code-block:: console
136 64 bytes from 10.10.1.1: icmp_seq=1 ttl=64 time=.0789 ms
137 64 bytes from 10.10.1.1: icmp_seq=2 ttl=64 time=.0619 ms
138 64 bytes from 10.10.1.1: icmp_seq=3 ttl=64 time=.0519 ms
139 64 bytes from 10.10.1.1: icmp_seq=4 ttl=64 time=.0514 ms
140 64 bytes from 10.10.1.1: icmp_seq=5 ttl=64 time=.0526 ms
142 Statistics: 5 sent, 5 received, 0% packet loss
144 Examine Trace of ping from FD.io VPP to host
145 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
147 The output will demonstrate FD.io VPP's trace of ping for all packets.
149 .. code-block:: console
152 ------------------- Start of thread 0 vpp_main -------------------
155 00:17:04:099260: af-packet-input
156 af_packet: hw_if_index 1 next-index 4
158 status 0x20000001 len 98 snaplen 98 mac 66 net 80
159 sec 0x5b60e370 nsec 0x3af2736f vlan 0 vlan_tpid 0
160 00:17:04:099269: ethernet-input
161 IP4: e2:0f:1e:59:ec:f7 -> 02:fe:d9:75:d5:b4
162 00:17:04:099285: ip4-input
163 ICMP: 10.10.1.1 -> 10.10.1.2
164 tos 0x00, ttl 64, length 84, checksum 0x3f7c
165 fragment id 0xe516, flags DONT_FRAGMENT
166 ICMP echo_request checksum 0xc043
167 00:17:04:099290: ip4-lookup
168 fib 0 dpo-idx 5 flow hash: 0x00000000
169 ICMP: 10.10.1.1 -> 10.10.1.2
170 tos 0x00, ttl 64, length 84, checksum 0x3f7c
171 fragment id 0xe516, flags DONT_FRAGMENT
172 ICMP echo_request checksum 0xc043
173 00:17:04:099296: ip4-local
174 ICMP: 10.10.1.1 -> 10.10.1.2
175 tos 0x00, ttl 64, length 84, checksum 0x3f7c
176 fragment id 0xe516, flags DONT_FRAGMENT
177 ICMP echo_request checksum 0xc043
178 00:17:04:099300: ip4-icmp-input
179 ICMP: 10.10.1.1 -> 10.10.1.2
180 tos 0x00, ttl 64, length 84, checksum 0x3f7c
181 fragment id 0xe516, flags DONT_FRAGMENT
182 ICMP echo_request checksum 0xc043
183 00:17:04:099301: ip4-icmp-echo-request
184 ICMP: 10.10.1.1 -> 10.10.1.2
185 tos 0x00, ttl 64, length 84, checksum 0x3f7c
186 fragment id 0xe516, flags DONT_FRAGMENT
187 ICMP echo_request checksum 0xc043
188 00:17:04:099303: ip4-load-balance
189 fib 0 dpo-idx 13 flow hash: 0x00000000
190 ICMP: 10.10.1.2 -> 10.10.1.1
191 tos 0x00, ttl 64, length 84, checksum 0x4437
192 fragment id 0xe05b, flags DONT_FRAGMENT
193 ICMP echo_reply checksum 0xc843
194 00:17:04:099305: ip4-rewrite
195 tx_sw_if_index 1 dpo-idx 1 : ipv4 via 10.10.1.1 host-vpp1out: mtu:9000 e20f1e59ecf702fed975d5b40800 flow hash: 0x00000000
196 00000000: e20f1e59ecf702fed975d5b4080045000054e05b4000400144370a0a01020a0a
197 00000020: 01010000c8437c92000170e3605b000000001c170f00000000001011
198 00:17:04:099307: host-vpp1out-output
200 IP4: 02:fe:d9:75:d5:b4 -> e2:0f:1e:59:ec:f7
201 ICMP: 10.10.1.2 -> 10.10.1.1
202 tos 0x00, ttl 64, length 84, checksum 0x4437
203 fragment id 0xe05b, flags DONT_FRAGMENT
204 ICMP echo_reply checksum 0xc843
208 00:17:09:113964: af-packet-input
209 af_packet: hw_if_index 1 next-index 4
211 status 0x20000001 len 42 snaplen 42 mac 66 net 80
212 sec 0x5b60e375 nsec 0x3b3bd57d vlan 0 vlan_tpid 0
213 00:17:09:113974: ethernet-input
214 ARP: e2:0f:1e:59:ec:f7 -> 02:fe:d9:75:d5:b4
215 00:17:09:113986: arp-input
216 request, type ethernet/IP4, address size 6/4
217 e2:0f:1e:59:ec:f7/10.10.1.1 -> 00:00:00:00:00:00/10.10.1.2
218 00:17:09:114003: host-vpp1out-output
220 ARP: 02:fe:d9:75:d5:b4 -> e2:0f:1e:59:ec:f7
221 reply, type ethernet/IP4, address size 6/4
222 02:fe:d9:75:d5:b4/10.10.1.2 -> e2:0f:1e:59:ec:f7/10.10.1.1
226 00:18:16:407079: af-packet-input
227 af_packet: hw_if_index 1 next-index 4
229 status 0x20000001 len 98 snaplen 98 mac 66 net 80
230 sec 0x5b60e3b9 nsec 0x90b7566 vlan 0 vlan_tpid 0
231 00:18:16:407085: ethernet-input
232 IP4: e2:0f:1e:59:ec:f7 -> 02:fe:d9:75:d5:b4
233 00:18:16:407090: ip4-input
234 ICMP: 10.10.1.1 -> 10.10.1.2
235 tos 0x00, ttl 64, length 84, checksum 0x3fe8
237 ICMP echo_reply checksum 0x37eb
238 00:18:16:407094: ip4-lookup
239 fib 0 dpo-idx 5 flow hash: 0x00000000
240 ICMP: 10.10.1.1 -> 10.10.1.2
241 tos 0x00, ttl 64, length 84, checksum 0x3fe8
243 ICMP echo_reply checksum 0x37eb
244 00:18:16:407097: ip4-local
245 ICMP: 10.10.1.1 -> 10.10.1.2
246 tos 0x00, ttl 64, length 84, checksum 0x3fe8
248 ICMP echo_reply checksum 0x37eb
249 00:18:16:407101: ip4-icmp-input
250 ICMP: 10.10.1.1 -> 10.10.1.2
251 tos 0x00, ttl 64, length 84, checksum 0x3fe8
253 ICMP echo_reply checksum 0x37eb
254 00:18:16:407104: ip4-icmp-echo-reply
255 ICMP echo id 7531 seq 1
256 00:18:16:407108: ip4-drop
257 ICMP: 10.10.1.1 -> 10.10.1.2
258 tos 0x00, ttl 64, length 84, checksum 0x3fe8
260 ICMP echo_reply checksum 0x37eb
261 00:18:16:407111: error-drop
262 ip4-icmp-input: unknown type
266 00:18:17:409084: af-packet-input
267 af_packet: hw_if_index 1 next-index 4
269 status 0x20000001 len 98 snaplen 98 mac 66 net 80
270 sec 0x5b60e3ba nsec 0x90b539f vlan 0 vlan_tpid 0
271 00:18:17:409088: ethernet-input
272 IP4: e2:0f:1e:59:ec:f7 -> 02:fe:d9:75:d5:b4
273 00:18:17:409092: ip4-input
274 ICMP: 10.10.1.1 -> 10.10.1.2
275 tos 0x00, ttl 64, length 84, checksum 0x3f40
277 ICMP echo_reply checksum 0xcc6d
278 00:18:17:409095: ip4-lookup
279 fib 0 dpo-idx 5 flow hash: 0x00000000
280 ICMP: 10.10.1.1 -> 10.10.1.2
281 tos 0x00, ttl 64, length 84, checksum 0x3f40
283 ICMP echo_reply checksum 0xcc6d
284 00:18:17:409097: ip4-local
285 ICMP: 10.10.1.1 -> 10.10.1.2
286 tos 0x00, ttl 64, length 84, checksum 0x3f40
288 ICMP echo_reply checksum 0xcc6d
289 00:18:17:409099: ip4-icmp-input
290 ICMP: 10.10.1.1 -> 10.10.1.2
291 tos 0x00, ttl 64, length 84, checksum 0x3f40
293 ICMP echo_reply checksum 0xcc6d
294 00:18:17:409101: ip4-icmp-echo-reply
295 ICMP echo id 7531 seq 2
296 00:18:17:409104: ip4-drop
297 ICMP: 10.10.1.1 -> 10.10.1.2
298 tos 0x00, ttl 64, length 84, checksum 0x3f40
300 ICMP echo_reply checksum 0xcc6d
301 00:18:17:409104: error-drop
302 ip4-icmp-input: unknown type
306 00:18:18:409082: af-packet-input
307 af_packet: hw_if_index 1 next-index 4
309 status 0x20000001 len 98 snaplen 98 mac 66 net 80
310 sec 0x5b60e3bb nsec 0x8ecad24 vlan 0 vlan_tpid 0
311 00:18:18:409087: ethernet-input
312 IP4: e2:0f:1e:59:ec:f7 -> 02:fe:d9:75:d5:b4
313 00:18:18:409091: ip4-input
314 ICMP: 10.10.1.1 -> 10.10.1.2
315 tos 0x00, ttl 64, length 84, checksum 0x3e66
317 ICMP echo_reply checksum 0x8e59
318 00:18:18:409093: ip4-lookup
319 fib 0 dpo-idx 5 flow hash: 0x00000000
320 ICMP: 10.10.1.1 -> 10.10.1.2
321 tos 0x00, ttl 64, length 84, checksum 0x3e66
323 ICMP echo_reply checksum 0x8e59
324 00:18:18:409096: ip4-local
325 ICMP: 10.10.1.1 -> 10.10.1.2
326 tos 0x00, ttl 64, length 84, checksum 0x3e66
328 ICMP echo_reply checksum 0x8e59
329 00:18:18:409098: ip4-icmp-input
330 ICMP: 10.10.1.1 -> 10.10.1.2
331 tos 0x00, ttl 64, length 84, checksum 0x3e66
333 ICMP echo_reply checksum 0x8e59
334 00:18:18:409099: ip4-icmp-echo-reply
335 ICMP echo id 7531 seq 3
336 00:18:18:409102: ip4-drop
337 ICMP: 10.10.1.1 -> 10.10.1.2
338 tos 0x00, ttl 64, length 84, checksum 0x3e66
340 ICMP echo_reply checksum 0x8e59
341 00:18:18:409102: error-drop
342 ip4-icmp-input: unknown type
346 00:18:19:414750: af-packet-input
347 af_packet: hw_if_index 1 next-index 4
349 status 0x20000001 len 98 snaplen 98 mac 66 net 80
350 sec 0x5b60e3bc nsec 0x92450f2 vlan 0 vlan_tpid 0
351 00:18:19:414754: ethernet-input
352 IP4: e2:0f:1e:59:ec:f7 -> 02:fe:d9:75:d5:b4
353 00:18:19:414757: ip4-input
354 ICMP: 10.10.1.1 -> 10.10.1.2
355 tos 0x00, ttl 64, length 84, checksum 0x3e52
357 ICMP echo_reply checksum 0x9888
358 00:18:19:414760: ip4-lookup
359 fib 0 dpo-idx 5 flow hash: 0x00000000
360 ICMP: 10.10.1.1 -> 10.10.1.2
361 tos 0x00, ttl 64, length 84, checksum 0x3e52
363 ICMP echo_reply checksum 0x9888
364 00:18:19:414762: ip4-local
365 ICMP: 10.10.1.1 -> 10.10.1.2
366 tos 0x00, ttl 64, length 84, checksum 0x3e52
368 ICMP echo_reply checksum 0x9888
369 00:18:19:414764: ip4-icmp-input
370 ICMP: 10.10.1.1 -> 10.10.1.2
371 tos 0x00, ttl 64, length 84, checksum 0x3e52
373 ICMP echo_reply checksum 0x9888
374 00:18:19:414765: ip4-icmp-echo-reply
375 ICMP echo id 7531 seq 4
376 00:18:19:414768: ip4-drop
377 ICMP: 10.10.1.1 -> 10.10.1.2
378 tos 0x00, ttl 64, length 84, checksum 0x3e52
380 ICMP echo_reply checksum 0x9888
381 00:18:19:414769: error-drop
382 ip4-icmp-input: unknown type
386 00:18:20:418038: af-packet-input
387 af_packet: hw_if_index 1 next-index 4
389 status 0x20000001 len 98 snaplen 98 mac 66 net 80
390 sec 0x5b60e3bd nsec 0x937bcc2 vlan 0 vlan_tpid 0
391 00:18:20:418042: ethernet-input
392 IP4: e2:0f:1e:59:ec:f7 -> 02:fe:d9:75:d5:b4
393 00:18:20:418045: ip4-input
394 ICMP: 10.10.1.1 -> 10.10.1.2
395 tos 0x00, ttl 64, length 84, checksum 0x3e47
397 ICMP echo_reply checksum 0xc0e8
398 00:18:20:418048: ip4-lookup
399 fib 0 dpo-idx 5 flow hash: 0x00000000
400 ICMP: 10.10.1.1 -> 10.10.1.2
401 tos 0x00, ttl 64, length 84, checksum 0x3e47
403 ICMP echo_reply checksum 0xc0e8
404 00:18:20:418049: ip4-local
405 ICMP: 10.10.1.1 -> 10.10.1.2
406 tos 0x00, ttl 64, length 84, checksum 0x3e47
408 ICMP echo_reply checksum 0xc0e8
409 00:18:20:418054: ip4-icmp-input
410 ICMP: 10.10.1.1 -> 10.10.1.2
411 tos 0x00, ttl 64, length 84, checksum 0x3e47
413 ICMP echo_reply checksum 0xc0e8
414 00:18:20:418054: ip4-icmp-echo-reply
415 ICMP echo id 7531 seq 5
416 00:18:20:418057: ip4-drop
417 ICMP: 10.10.1.1 -> 10.10.1.2
418 tos 0x00, ttl 64, length 84, checksum 0x3e47
420 ICMP echo_reply checksum 0xc0e8
421 00:18:20:418058: error-drop
422 ip4-icmp-input: unknown type
426 00:18:21:419208: af-packet-input
427 af_packet: hw_if_index 1 next-index 4
429 status 0x20000001 len 42 snaplen 42 mac 66 net 80
430 sec 0x5b60e3be nsec 0x92a9429 vlan 0 vlan_tpid 0
431 00:18:21:419876: ethernet-input
432 ARP: e2:0f:1e:59:ec:f7 -> 02:fe:d9:75:d5:b4
433 00:18:21:419881: arp-input
434 request, type ethernet/IP4, address size 6/4
435 e2:0f:1e:59:ec:f7/10.10.1.1 -> 00:00:00:00:00:00/10.10.1.2
436 00:18:21:419896: host-vpp1out-output
438 ARP: 02:fe:d9:75:d5:b4 -> e2:0f:1e:59:ec:f7
439 reply, type ethernet/IP4, address size 6/4
440 02:fe:d9:75:d5:b4/10.10.1.2 -> e2:0f:1e:59:ec:f7/10.10.1.1
442 After examining the trace, clear it again using vpp# clear trace.
447 .. code-block:: console
450 Time IP4 Flags Ethernet Interface
451 1101.5636 10.10.1.1 D e2:0f:1e:59:ec:f7 host-vpp1out
453 Examine routing tables
454 ~~~~~~~~~~~~~~~~~~~~~~
456 .. code-block:: console
459 ipv4-VRF:0, fib_index:0, flow hash:[src dst sport dport proto ] locks:[src:plugin-hi:2, src:adjacency:1, src:default-route:1, ]
462 [@0]: dpo-load-balance: [proto:ip4 index:1 buckets:1 uRPF:0 to:[0:0]]
463 [0] [@0]: dpo-drop ip4
466 [@0]: dpo-load-balance: [proto:ip4 index:2 buckets:1 uRPF:1 to:[0:0]]
467 [0] [@0]: dpo-drop ip4
470 [@0]: dpo-load-balance: [proto:ip4 index:10 buckets:1 uRPF:9 to:[0:0]]
471 [0] [@0]: dpo-drop ip4
474 [@0]: dpo-load-balance: [proto:ip4 index:13 buckets:1 uRPF:12 to:[5:420] via:[2:168]]
475 [0] [@5]: ipv4 via 10.10.1.1 host-vpp1out: mtu:9000 e20f1e59ecf702fed975d5b40800
478 [@0]: dpo-load-balance: [proto:ip4 index:9 buckets:1 uRPF:8 to:[0:0]]
479 [0] [@4]: ipv4-glean: host-vpp1out: mtu:9000 ffffffffffff02fed975d5b40806
482 [@0]: dpo-load-balance: [proto:ip4 index:12 buckets:1 uRPF:13 to:[7:588]]
483 [0] [@2]: dpo-receive: 10.10.1.2 on host-vpp1out
486 [@0]: dpo-load-balance: [proto:ip4 index:11 buckets:1 uRPF:11 to:[0:0]]
487 [0] [@0]: dpo-drop ip4
490 [@0]: dpo-load-balance: [proto:ip4 index:4 buckets:1 uRPF:3 to:[0:0]]
491 [0] [@0]: dpo-drop ip4
494 [@0]: dpo-load-balance: [proto:ip4 index:3 buckets:1 uRPF:2 to:[0:0]]
495 [0] [@0]: dpo-drop ip4
498 [@0]: dpo-load-balance: [proto:ip4 index:5 buckets:1 uRPF:4 to:[0:0]]
499 [0] [@0]: dpo-drop ip4