Hi,
Possibly a repeat question on classifier. But could not get much help from
other threads on this regards.
I am trying to send UDP traffic from 10.10.122.117 to 10.10.121.179 and expect
those to hit to my plugin "my4-dl-input"
Don't even see the ip4-classifier in the packet tracer.
Below is what I set and see the classifier table and session using CLI.
#vppctl classify table mask hex <24 bit mask on IPv4 destination>
//I used hex mask here.
#vppctl classify session hit-next node my4-dl-input table-index 0 match l3 ip4
dst 10.10.121.x/24 //I used corresponding hex match here.
#vppctl show classify table verbose
TableIdx Sessions NextTbl NextNode
0 1 -1 -1
Heap: 3 objects, 208 of 2k used, 72 free, 0 reclaimed, 1k overhead, 2044k
capacity
nbuckets 2, skip 1 match 2
mask 0000000000000000000000000000ffffff000000000000000000000000000000
[1]: heap offset 192, len 1
0: [192]: next_index 14 advance 0 opaque -1
k: 00000000000000000000000000000a0a79000000000000000000000000000000
hits 0, last_heard 0.00
1 active elements
1 free lists
And in the code of my4-dl-input node, init function has below peice.
vlib_node_add_next (vm, ip4_classify_node.index, my4_dl_input_node.index);
vlib_node_add_next (vm, ip6_classify_node.index, my4_dl_input_node.index);
Below is the packet tracer output.
00:14:18:666771: dpdk-input
GigabitEthernet1b/0/0 rx queue 0
buffer 0xf548: current data 14, length 856, free-list 0, totlen-nifb 0, trace
0x2e
PKT MBUF: port 1, nb_segs 1, pkt_len 870
buf_len 2176, data_len 870, ol_flags 0x0,
packet_type 0x10
Packet Types
RTE_PTYPE_L3_IPV4 (0x0010) IPv4 packet without extension headers
IP4: 00:0c:29:7a:a6:81 -> 00:50:56:92:fe:49
UDP: 10.10.122.117 -> 10.10.121.179
tos 0x00, ttl 64, length 856, checksum 0x2f59
fragment id 0x0000, flags DONT_FRAGMENT
UDP: 56587 -> 4096
length 836, checksum 0x8ae8
00:14:18:666777: ip4-input-no-checksum
UDP: 10.10.122.117 -> 10.10.121.179
tos 0x00, ttl 64, length 856, checksum 0x2f59
fragment id 0x0000, flags DONT_FRAGMENT
UDP: 56587 -> 4096
length 836, checksum 0x8ae8
00:14:18:666782: ip4-lookup
fib 0 adj-idx 3 : arp GigabitEthernet13/0/0 10.10.121.220/24 flow hash:
0x00000000
UDP: 10.10.122.117 -> 10.10.121.179
tos 0x00, ttl 64, length 856, checksum 0x2f59
fragment id 0x0000, flags DONT_FRAGMENT
UDP: 56587 -> 4096
length 836, checksum 0x8ae8
00:14:18:666783: ip4-arp
UDP: 10.10.122.117 -> 10.10.121.179
tos 0x00, ttl 64, length 856, checksum 0x2f59
fragment id 0x0000, flags DONT_FRAGMENT
UDP: 56587 -> 4096
length 836, checksum 0x8ae8
00:14:18:666788: error-drop
ip4-arp: address overflow drops
I believe show vlib graph shows the nodes at right place.
ip4-lookup ip4-miss [0] my4-dl-input
ip4-drop [1] my4_lookup
ip4-punt [2] my4_test_input
ip4-local [3] dhcp-proxy-to-server
ip4-arp [4] lisp-cp-lookup
ip4-rewrite-transit [5] vxlan-gpe-encap
ip4-classify [6] mpls-post-rewrite
ip4-map [7] ip6-map-t-tcp-udp
ip4-map-t [8] ip6-map-t-icmp
ip4-sixrd [9] ip6-map-t-fragmented
ip4-indirect [10] ip6-sixrd
ip4-hop-by-hop [11] ip6-map-icmp-relay
ip4-add-hop-by-hop [12] ip6-map-ip4-reass
ip4-pop-hop-by-hop [13] ip6-map
ip4-classify ip4-miss [0] ip4-pop-hop-by-hop
ip4-drop [1] ip4-add-hop-by-hop
ip4-punt [2] ip4-hop-by-hop
ip4-local [3] ip4-lookup-multicast
ip4-arp [4] ip4-indirect
ip4-rewrite-transit [5] ip4-lookup
ip4-classify [6] ip4-classify
ip4-map [7]
ip4-map-t [8]
ip4-sixrd [9]
ip4-indirect [10]
ip4-hop-by-hop [11]
ip4-add-hop-by-hop [12]
ip4-pop-hop-by-hop [13]
my4-dl-input [14]
mpls-policy-encap [15]
What's the missing stuff ?
Thanks
Dharmaray
________________________________
Please Note: My email address is changing. Starting May 1st 2017 my email will
solely be my Mavenir email [email protected]. All other prior
email accounts will become inactive. To ensure continuity, please send all
emails to my Mavenir email ID which is currently active and available for use.
This e-mail message may contain confidential or proprietary information of
Mavenir Systems, Inc. or its affiliates and is intended solely for the use of
the intended recipient(s). If you are not the intended recipient of this
message, you are hereby notified that any review, use or distribution of this
information is absolutely prohibited and we request that you delete all copies
in your control and contact us by e-mailing to [email protected]. Thank You.
This message contains the views of its author and may not necessarily reflect
the views of Mavenir Systems, Inc. or its affiliates, who employ systems to
monitor email messages, but make no representation that such messages are
authorized, secure, uncompromised, or free from computer viruses, malware, or
other defects.
_______________________________________________
vpp-dev mailing list
[email protected]
https://lists.fd.io/mailman/listinfo/vpp-dev