Hi Phaneendra, Please refer to below link to see how to configure it and packet trace: https://wiki.fd.io/view/File:NSH-Classifier-Output.png
-Hongjun From: Phaneendra Manda [mailto:[email protected]] Sent: Wednesday, November 1, 2017 4:39 PM To: Ni, Hongjun <[email protected]> Cc: [email protected]; [email protected] Subject: Re: [vpp-dev] [SFC] Query regarding SFC classifier configuration for ip4 traffic Hi Hongjun, Thank your very much for your support. I have tried this configuration for UDP packets and below is my configuration classify table mask l3 ip4 proto classify session l2-input-hit-next input-node nsh-classifier table-index 0 match l3 ip4 proto 17 opaque-index 47615 set int l2 bridge GigabitEthernet0/9/0 1 1 set interface l2 input classify intfc GigabitEthernet0/9/0 ip4-table 0 When i send a UDP packet, the packet reaches till "l2-input-classify" and goes to "l2-learn" node. How can i direct the packet to "nsh-classifier" node? Trace output below : 00:49:42:211037: dpdk-input GigabitEthernet0/9/0 rx queue 0 buffer 0x4d8e: current data 0, length 132, free-list 0, clone-count 0, totlen-nifb 0, trace 0x1 PKT MBUF: port 0, nb_segs 1, pkt_len 132 buf_len 2176, data_len 132, ol_flags 0x0, data_off 128, phys_addr 0x74d32280 packet_type 0x0 IP4: 08:00:27:aa:bb:21 -> 08:00:27:aa:bb:01 802.1ad vlan 100 802.1ad vlan 20 UDP: 192.168.0.10 -> 192.0.0.1 tos 0x00, ttl 255, length 110, checksum 0x4923 fragment id 0xf1a7 UDP: 1024 -> 1024 length 90, checksum 0xffff 00:49:42:211084: ethernet-input IP4: 08:00:27:aa:bb:21 -> 08:00:27:aa:bb:01 802.1ad vlan 100 802.1ad vlan 20 00:49:42:211093: l2-input l2-input: sw_if_index 1 dst 08:00:27:aa:bb:01 src 08:00:27:aa:bb:21 00:49:42:211096: l2-input-classify l2-classify: sw_if_index 1, table -1, offset 0, next 12 00:49:42:211099: l2-learn l2-learn: sw_if_index 1 dst 08:00:27:aa:bb:01 src 08:00:27:aa:bb:21 bd_index 1 00:49:42:211102: l2-fwd l2-fwd: sw_if_index 1 dst 08:00:27:aa:bb:01 src 08:00:27:aa:bb:21 bd_index 1 00:49:42:211104: l2-flood l2-flood: sw_if_index 1 dst 08:00:27:aa:bb:01 src 08:00:27:aa:bb:21 bd_index 1 00:49:42:211105: error-drop l2-flood: L2 replication complete -- Thanks & regards, Phaneendra Manda. On Wed, Nov 1, 2017 at 8:27 AM, Ni, Hongjun <[email protected]<mailto:[email protected]>> wrote: Hi Phaneendra, Please try below scripts: classify table mask l3 ip4 proto classify session l2-input-hit-next input-node nsh-classifier table-index 0 match l3 ip4 proto 6 opaque-index 47615 set int l2 bridge TenGigabitEthernet5/0/0 1 1 set interface l2 input classify intfc TenGigabitEthernet5/0/0 ip4-table 0 -Hongjun From: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] On Behalf Of Phaneendra Manda Sent: Tuesday, October 31, 2017 8:11 PM To: [email protected]<mailto:[email protected]> Subject: [vpp-dev] [SFC] Query regarding SFC classifier configuration for ip4 traffic Hi All, I am trying out SFC with VPP for ip4 traffic on dpdk interface. I have few queries. 1. I would like to know what is the configuration for IP4 traffic to reach the nsh-classifier node in VPP using vppctl ? I am trying with the following command for redirecting ip4 traffic to nsh-classifier node. But the command throws error: "Table index required" classify table mask l3 ip4 proto classify session hit-next input-node nsh-classifier table-index 0 match l3 ip4 proto 17 opaque-index 47615 -- This command throws error 2. Do i need to associate interface with classifier table created? Thanks in advance :) -- Thanks & regards, Phaneendra Manda.
_______________________________________________ vpp-dev mailing list [email protected] https://lists.fd.io/mailman/listinfo/vpp-dev
