John DeNisco | c8e7f41 | 2018-08-03 11:02:24 -0400 | [diff] [blame] | 1 | .. _traces: |
| 2 | |
| 3 | .. toctree:: |
| 4 | |
| 5 | Traces |
| 6 | ====== |
| 7 | |
| 8 | Basic Trace Commands |
| 9 | ~~~~~~~~~~~~~~~~~~~~ |
| 10 | |
| 11 | Show trace buffer [max COUNT]. |
| 12 | |
| 13 | .. code-block:: console |
| 14 | |
| 15 | vpp# show trace |
| 16 | |
| 17 | |
| 18 | Clear trace buffer and free memory. |
| 19 | |
| 20 | .. code-block:: console |
| 21 | |
| 22 | vpp# clear trace |
| 23 | |
| 24 | filter trace output - include NODE COUNT | exclude NODE COUNT | none. |
| 25 | |
| 26 | .. code-block:: console |
| 27 | |
| 28 | vpp# trace filter <include NODE COUNT | exclude NODE COUNT | none> |
| 29 | |
| 30 | Skills to be Learned |
| 31 | ~~~~~~~~~~~~~~~~~~~~ |
| 32 | |
| 33 | #. Setup a 'trace' |
| 34 | #. View a 'trace' |
| 35 | #. Clear a 'trace' |
| 36 | #. Verify using ping from host |
| 37 | #. Ping from vpp |
| 38 | #. Examine Arp Table |
| 39 | #. Examine ip fib |
| 40 | |
| 41 | Add Trace |
| 42 | ~~~~~~~~~ |
| 43 | |
| 44 | .. code-block:: console |
| 45 | |
| 46 | vpp# trace add af-packet-input 10 |
| 47 | |
| 48 | Ping from Host to FD.io VPP |
| 49 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 50 | |
| 51 | .. code-block:: console |
| 52 | |
| 53 | vpp# q |
| 54 | $ ping -c 1 10.10.1.2 |
| 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 |
| 57 | |
| 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 |
| 61 | |
| 62 | Examine Trace of ping from host to FD.io VPP |
| 63 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 64 | |
| 65 | .. code-block:: console |
| 66 | |
| 67 | # vppctl |
| 68 | vpp# show trace |
| 69 | ------------------- Start of thread 0 vpp_main ------------------- |
| 70 | Packet 1 |
| 71 | |
| 72 | 00:17:04:099260: af-packet-input |
| 73 | af_packet: hw_if_index 1 next-index 4 |
| 74 | tpacket2_hdr: |
| 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 |
| 116 | host-vpp1out |
| 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 |
| 122 | |
| 123 | Clear trace buffer |
| 124 | ~~~~~~~~~~~~~~~~~~ |
| 125 | |
| 126 | .. code-block:: console |
| 127 | |
| 128 | vpp# clear trace |
| 129 | |
| 130 | Ping from FD.io VPP to Host |
| 131 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 132 | |
| 133 | .. code-block:: console |
| 134 | |
| 135 | vpp# ping 10.10.1.1 |
| 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 |
| 141 | |
| 142 | Statistics: 5 sent, 5 received, 0% packet loss |
| 143 | |
| 144 | Examine Trace of ping from FD.io VPP to host |
| 145 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 146 | |
| 147 | The output will demonstrate FD.io VPP's trace of ping for all packets. |
| 148 | |
| 149 | .. code-block:: console |
| 150 | |
| 151 | vpp# show trace |
| 152 | ------------------- Start of thread 0 vpp_main ------------------- |
| 153 | Packet 1 |
| 154 | |
| 155 | 00:17:04:099260: af-packet-input |
| 156 | af_packet: hw_if_index 1 next-index 4 |
| 157 | tpacket2_hdr: |
| 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 |
| 199 | host-vpp1out |
| 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 |
| 205 | |
| 206 | Packet 2 |
| 207 | |
| 208 | 00:17:09:113964: af-packet-input |
| 209 | af_packet: hw_if_index 1 next-index 4 |
| 210 | tpacket2_hdr: |
| 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 |
| 219 | host-vpp1out |
| 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 |
| 223 | |
| 224 | Packet 3 |
| 225 | |
| 226 | 00:18:16:407079: af-packet-input |
| 227 | af_packet: hw_if_index 1 next-index 4 |
| 228 | tpacket2_hdr: |
| 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 |
| 236 | fragment id 0x24ab |
| 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 |
| 242 | fragment id 0x24ab |
| 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 |
| 247 | fragment id 0x24ab |
| 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 |
| 252 | fragment id 0x24ab |
| 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 |
| 259 | fragment id 0x24ab |
| 260 | ICMP echo_reply checksum 0x37eb |
| 261 | 00:18:16:407111: error-drop |
| 262 | ip4-icmp-input: unknown type |
| 263 | |
| 264 | Packet 4 |
| 265 | |
| 266 | 00:18:17:409084: af-packet-input |
| 267 | af_packet: hw_if_index 1 next-index 4 |
| 268 | tpacket2_hdr: |
| 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 |
| 276 | fragment id 0x2553 |
| 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 |
| 282 | fragment id 0x2553 |
| 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 |
| 287 | fragment id 0x2553 |
| 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 |
| 292 | fragment id 0x2553 |
| 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 |
| 299 | fragment id 0x2553 |
| 300 | ICMP echo_reply checksum 0xcc6d |
| 301 | 00:18:17:409104: error-drop |
| 302 | ip4-icmp-input: unknown type |
| 303 | |
| 304 | Packet 5 |
| 305 | |
| 306 | 00:18:18:409082: af-packet-input |
| 307 | af_packet: hw_if_index 1 next-index 4 |
| 308 | tpacket2_hdr: |
| 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 |
| 316 | fragment id 0x262d |
| 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 |
| 322 | fragment id 0x262d |
| 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 |
| 327 | fragment id 0x262d |
| 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 |
| 332 | fragment id 0x262d |
| 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 |
| 339 | fragment id 0x262d |
| 340 | ICMP echo_reply checksum 0x8e59 |
| 341 | 00:18:18:409102: error-drop |
| 342 | ip4-icmp-input: unknown type |
| 343 | |
| 344 | Packet 6 |
| 345 | |
| 346 | 00:18:19:414750: af-packet-input |
| 347 | af_packet: hw_if_index 1 next-index 4 |
| 348 | tpacket2_hdr: |
| 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 |
| 356 | fragment id 0x2641 |
| 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 |
| 362 | fragment id 0x2641 |
| 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 |
| 367 | fragment id 0x2641 |
| 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 |
| 372 | fragment id 0x2641 |
| 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 |
| 379 | fragment id 0x2641 |
| 380 | ICMP echo_reply checksum 0x9888 |
| 381 | 00:18:19:414769: error-drop |
| 382 | ip4-icmp-input: unknown type |
| 383 | |
| 384 | Packet 7 |
| 385 | |
| 386 | 00:18:20:418038: af-packet-input |
| 387 | af_packet: hw_if_index 1 next-index 4 |
| 388 | tpacket2_hdr: |
| 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 |
| 396 | fragment id 0x264c |
| 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 |
| 402 | fragment id 0x264c |
| 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 |
| 407 | fragment id 0x264c |
| 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 |
| 412 | fragment id 0x264c |
| 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 |
| 419 | fragment id 0x264c |
| 420 | ICMP echo_reply checksum 0xc0e8 |
| 421 | 00:18:20:418058: error-drop |
| 422 | ip4-icmp-input: unknown type |
| 423 | |
| 424 | Packet 8 |
| 425 | |
| 426 | 00:18:21:419208: af-packet-input |
| 427 | af_packet: hw_if_index 1 next-index 4 |
| 428 | tpacket2_hdr: |
| 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 |
| 437 | host-vpp1out |
| 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 |
| 441 | |
| 442 | After examining the trace, clear it again using vpp# clear trace. |
| 443 | |
| 444 | Examine arp tables |
| 445 | ~~~~~~~~~~~~~~~~~~ |
| 446 | |
| 447 | .. code-block:: console |
| 448 | |
| 449 | vpp# show ip arp |
| 450 | Time IP4 Flags Ethernet Interface |
| 451 | 1101.5636 10.10.1.1 D e2:0f:1e:59:ec:f7 host-vpp1out |
| 452 | |
| 453 | Examine routing tables |
| 454 | ~~~~~~~~~~~~~~~~~~~~~~ |
| 455 | |
| 456 | .. code-block:: console |
| 457 | |
| 458 | vpp# show ip fib |
| 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, ] |
| 460 | 0.0.0.0/0 |
| 461 | unicast-ip4-chain |
| 462 | [@0]: dpo-load-balance: [proto:ip4 index:1 buckets:1 uRPF:0 to:[0:0]] |
| 463 | [0] [@0]: dpo-drop ip4 |
| 464 | 0.0.0.0/32 |
| 465 | unicast-ip4-chain |
| 466 | [@0]: dpo-load-balance: [proto:ip4 index:2 buckets:1 uRPF:1 to:[0:0]] |
| 467 | [0] [@0]: dpo-drop ip4 |
| 468 | 10.10.1.0/32 |
| 469 | unicast-ip4-chain |
| 470 | [@0]: dpo-load-balance: [proto:ip4 index:10 buckets:1 uRPF:9 to:[0:0]] |
| 471 | [0] [@0]: dpo-drop ip4 |
| 472 | 10.10.1.1/32 |
| 473 | unicast-ip4-chain |
| 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 |
| 476 | 10.10.1.0/24 |
| 477 | unicast-ip4-chain |
| 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 |
| 480 | 10.10.1.2/32 |
| 481 | unicast-ip4-chain |
| 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 |
| 484 | 10.10.1.255/32 |
| 485 | unicast-ip4-chain |
| 486 | [@0]: dpo-load-balance: [proto:ip4 index:11 buckets:1 uRPF:11 to:[0:0]] |
| 487 | [0] [@0]: dpo-drop ip4 |
| 488 | 224.0.0.0/4 |
| 489 | unicast-ip4-chain |
| 490 | [@0]: dpo-load-balance: [proto:ip4 index:4 buckets:1 uRPF:3 to:[0:0]] |
| 491 | [0] [@0]: dpo-drop ip4 |
| 492 | 240.0.0.0/4 |
| 493 | unicast-ip4-chain |
| 494 | [@0]: dpo-load-balance: [proto:ip4 index:3 buckets:1 uRPF:2 to:[0:0]] |
| 495 | [0] [@0]: dpo-drop ip4 |
| 496 | 255.255.255.255/32 |
| 497 | unicast-ip4-chain |
| 498 | [@0]: dpo-load-balance: [proto:ip4 index:5 buckets:1 uRPF:4 to:[0:0]] |
| 499 | [0] [@0]: dpo-drop ip4 |