crypto

default

eth2p-ethip4ipsectnl-ip4base-func

IPv4 IPsec tunnel mode test suite.

  • [Top] Network topologies: TG-DUT1 2-node topology with one link between nodes.
  • [Cfg] DUT configuration: On DUT1 create loopback interface, configure loopback an physical interface IPv4 addresses, static ARP record, route and IPsec manual keyed connection in tunnel mode.
  • [Ver] TG verification: ESP packet is sent from TG to DUT1. ESP packet is received on TG from DUT1.
  • [Ref] Applicable standard specifications: RFC4303.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 58426d685759437543656148716c3835 integ-alg sha1-96 integ-key 624e6232373556753146534a7941696f776b6733 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 58426d685759437543656148716c3835 integ-alg sha1-96 integ-key 624e6232373556753146534a7941696f776b6733 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc02: vpp process esp packet in tunnel mode with aes-cbc-192 encryption and sha1-96 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 6934554d504d445031575844464c52416c796c66554d4e50 integ-alg sha1-96 integ-key 38566f56774f5a414a4b656538414276386a5a74 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 6934554d504d445031575844464c52416c796c66554d4e50 integ-alg sha1-96 integ-key 38566f56774f5a414a4b656538414276386a5a74 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc03: vpp process esp packet in tunnel mode with aes-cbc-256 encryption and sha1-96 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 564a514e735349454e57526e4164505a4535545368476e4e49456e4574656944 integ-alg sha1-96 integ-key 5261763046546c4856477431774252686e774b4f tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 564a514e735349454e57526e4164505a4535545368476e4e49456e4574656944 integ-alg sha1-96 integ-key 5261763046546c4856477431774252686e774b4f tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc04: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha-256-128 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 323041725866426b654f477546346751 integ-alg sha-256-128 integ-key 3634355055585152774d436f5a507a4c473943524435387a4e67737953525361 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 323041725866426b654f477546346751 integ-alg sha-256-128 integ-key 3634355055585152774d436f5a507a4c473943524435387a4e67737953525361 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc05: vpp process esp packet in tunnel mode with aes-cbc-192 encryption and sha-256-128 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 50377355587a4c4965634f377359414e4a5244525a4f754e integ-alg sha-256-128 integ-key 4c6f653654756949476c353456676472487230666c6e306b7967397047326979 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 50377355587a4c4965634f377359414e4a5244525a4f754e integ-alg sha-256-128 integ-key 4c6f653654756949476c353456676472487230666c6e306b7967397047326979 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc06: vpp process esp packet in tunnel mode with aes-cbc-256 encryption and sha-256-128 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 784762336f4a4e51656f4a75487743357a4a5536557878416a354370446e316f integ-alg sha-256-128 integ-key 576563726a324369564a656c586c385165654548746464446c66506d656e664f tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 784762336f4a4e51656f4a75487743357a4a5536557878416a354370446e316f integ-alg sha-256-128 integ-key 576563726a324369564a656c586c385165654548746464446c66506d656e664f tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc07: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha-384-192 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 734641745846784e4746306152395761 integ-alg sha-384-192 integ-key 727a457069555675314a6a5a3745584a3937353261306145476e754e756c7a4f6c6475536a50563144574551534d6e68 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 734641745846784e4746306152395761 integ-alg sha-384-192 integ-key 727a457069555675314a6a5a3745584a3937353261306145476e754e756c7a4f6c6475536a50563144574551534d6e68 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc08: vpp process esp packet in tunnel mode with aes-cbc-192 encryption and sha-384-192 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 48547656725270544e31633962597863793959575a564d56 integ-alg sha-384-192 integ-key 365539366846305a4859326f556251677263706548413539376e6e526c5462625166764539306f62586370384b577651 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 48547656725270544e31633962597863793959575a564d56 integ-alg sha-384-192 integ-key 365539366846305a4859326f556251677263706548413539376e6e526c5462625166764539306f62586370384b577651 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc09: vpp process esp packet in tunnel mode with aes-cbc-256 encryption and sha-384-192 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 65676e67685a423766417a38713748744f5139363375656e30556b476d415663 integ-alg sha-384-192 integ-key 5462586c4864645869575462777339514a796a626d52436f587461494f59314b417751726a61504b7056465968363331 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 65676e67685a423766417a38713748744f5139363375656e30556b476d415663 integ-alg sha-384-192 integ-key 5462586c4864645869575462777339514a796a626d52436f587461494f59314b417751726a61504b7056465968363331 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc10: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha-512-256 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 666e6739557569357444717557627966 integ-alg sha-512-256 integ-key 456b455a745759797a6d794c6f413765446a5448636a434f734137574c4841316b675a7946536a623930526a6c69695a643631334865774e5466785947747677 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 666e6739557569357444717557627966 integ-alg sha-512-256 integ-key 456b455a745759797a6d794c6f413765446a5448636a434f734137574c4841316b675a7946536a623930526a6c69695a643631334865774e5466785947747677 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc11: vpp process esp packet in tunnel mode with aes-cbc-192 encryption and sha-512-256 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 6745527550577663457679684534556d75347a6b38307759 integ-alg sha-512-256 integ-key 6b696e596e6637787a6f724f5a765545457339634d61577a513351756d6a52366a667944546270707334324f74574545486a6565383264563761316f774b3148 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 6745527550577663457679684534556d75347a6b38307759 integ-alg sha-512-256 integ-key 6b696e596e6637787a6f724f5a765545457339634d61577a513351756d6a52366a667944546270707334324f74574545486a6565383264563761316f774b3148 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc12: vpp process esp packet in tunnel mode with aes-cbc-256 encryption and sha-512-256 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 7249664f7050447162723957777570344b50586c3136494636506e4b51756363 integ-alg sha-512-256 integ-key 5652593049515064637a57316c7263375577373335577a66456368435a30566a6c46644a4e755037786c684f636f4f3738666b53715164534d46635157783364 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 7249664f7050447162723957777570344b50586c3136494636506e4b51756363 integ-alg sha-512-256 integ-key 5652593049515064637a57316c7263375577373335577a66456368435a30566a6c46644a4e755037786c684f636f4f3738666b53715164534d46635157783364 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc13: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity - different encryption alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 6d52346f795854636d6549785a4b4557 integ-alg sha1-96 integ-key 394d457248346377633234315067656570786b6b tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 6d52346f795854636d6549785a4b4557 integ-alg sha1-96 integ-key 394d457248346377633234315067656570786b6b tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc14: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity - different integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 4b6a56344e554b4a3372634d6d727475 integ-alg sha1-96 integ-key 664d6d7845376b79487671413056566130396173 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 4b6a56344e554b4a3372634d6d727475 integ-alg sha1-96 integ-key 664d6d7845376b79487671413056566130396173 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc15: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity - different encryption and integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 54333456317564783861687270614a58 integ-alg sha1-96 integ-key 4f69524972354d726e59696a774e466671567651 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 54333456317564783861687270614a58 integ-alg sha1-96 integ-key 4f69524972354d726e59696a774e466671567651 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc16: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 70736c556e4f58545961743343367a65 integ-alg sha1-96 integ-key 50616565435238744a776c426f684a624e6d5345 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 70736c556e4f58545961743343367a65 integ-alg sha1-96 integ-key 50616565435238744a776c426f684a624e6d5345 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec set ipsec sa 10 crypto-key 546c4e66556250774343586b4441797a integ-key 574f52636e386e445a6d4d496c42397271503667
exec set ipsec sa 20 crypto-key 546c4e66556250774343586b4441797a integ-key 574f52636e386e445a6d4d496c42397271503667
exec show trace

DUT2:
exec show trace
tc17: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys - different encryption alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 42793643327139586f5237755a623933 integ-alg sha1-96 integ-key 683261454359415a3341754e3770546f69513531 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 42793643327139586f5237755a623933 integ-alg sha1-96 integ-key 683261454359415a3341754e3770546f69513531 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec set ipsec sa 10 crypto-key 6b7679316f68666f4e6b41596f687a4d integ-key 6c6549774d73524b67396c625148717a6773416b
exec set ipsec sa 20 crypto-key 6b7679316f68666f4e6b41596f687a4d integ-key 6c6549774d73524b67396c625148717a6773416b
exec show trace

DUT2:
exec show trace
tc18: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys - different integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 4253496132396d76504457534a6a4a4b integ-alg sha1-96 integ-key 596277357130315743514854654c7546527a7454 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 4253496132396d76504457534a6a4a4b integ-alg sha1-96 integ-key 596277357130315743514854654c7546527a7454 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec set ipsec sa 10 crypto-key 6579514235676d51744b4361546d3778 integ-key 4a42385454536373494278506d74744136516539
exec set ipsec sa 20 crypto-key 6579514235676d51744b4361546d3778 integ-key 4a42385454536373494278506d74744136516539
exec show trace

DUT2:
exec show trace
tc19: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys - different encryption and integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 6779364876505a364d696f4149584158 integ-alg sha1-96 integ-key 695a63646f7079694d653832307859426e397749 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 6779364876505a364d696f4149584158 integ-alg sha1-96 integ-key 695a63646f7079694d653832307859426e397749 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec set ipsec sa 10 crypto-key 306f6741794b54333243316553794636 integ-key 52496136644961504a39785572776f4d4e587a73
exec set ipsec sa 20 crypto-key 306f6741794b54333243316553794636 integ-key 52496136644961504a39785572776f4d4e587a73
exec show trace

DUT2:
exec show trace

eth2p-ethip4ipsectpt-ip4base-func

IPv4 IPsec transport mode test suite.

  • [Top] Network topologies: TG-DUT1 2-node topology with one link between nodes.
  • [Cfg] DUT configuration: On DUT1 create loopback interface, configure loopback an physical interface IPv4 addresses, static ARP record, route and IPsec manual keyed connection in transport mode.
  • [Ver] TG verification: ESP packet is sent from TG to DUT1. ESP packet is received on TG from DUT1.
  • [Ref] Applicable standard specifications: RFC4303.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 53555a556f394b7363684e433665377a integ-alg sha1-96 integ-key 517a4a6a795641694a39676c4846783054686a53
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 53555a556f394b7363684e433665377a integ-alg sha1-96 integ-key 517a4a6a795641694a39676c4846783054686a53
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc02: vpp process esp packet in transport mode with aes-cbc-192 encryption and sha1-96 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 6a61365466486e69624d7551793645747130776d53496879 integ-alg sha1-96 integ-key 566d49556d7250506170574c7975626350374859
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 6a61365466486e69624d7551793645747130776d53496879 integ-alg sha1-96 integ-key 566d49556d7250506170574c7975626350374859
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc03: vpp process esp packet in transport mode with aes-cbc-256 encryption and sha1-96 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 5348794b694d6855786e3744674667674a4734644e7142585454427637456a36 integ-alg sha1-96 integ-key 454b504930567a5a36734f376a56357864366b56
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 5348794b694d6855786e3744674667674a4734644e7142585454427637456a36 integ-alg sha1-96 integ-key 454b504930567a5a36734f376a56357864366b56
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc04: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha-256-128 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 4668435550586536444e337236787676 integ-alg sha-256-128 integ-key 6b6c6633624e734b3847355948546d6f6150374e32533455576366674d714158
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 4668435550586536444e337236787676 integ-alg sha-256-128 integ-key 6b6c6633624e734b3847355948546d6f6150374e32533455576366674d714158
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc05: vpp process esp packet in transport mode with aes-cbc-192 encryption and sha-256-128 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 554c6a5765506e36464d4b595a6142684276687050657479 integ-alg sha-256-128 integ-key 70624f334d4970306151354668314945503134496d5877753238373451514d68
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 554c6a5765506e36464d4b595a6142684276687050657479 integ-alg sha-256-128 integ-key 70624f334d4970306151354668314945503134496d5877753238373451514d68
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc06: vpp process esp packet in transport mode with aes-cbc-256 encryption and sha-256-128 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 74724d5661396e724a554a50727848574e41356b5249523969624e55564a5867 integ-alg sha-256-128 integ-key 6965307456504158625247556165566a32565265347865563053625a3876364e
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 74724d5661396e724a554a50727848574e41356b5249523969624e55564a5867 integ-alg sha-256-128 integ-key 6965307456504158625247556165566a32565265347865563053625a3876364e
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc07: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha-384-192 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 6459333833335678534d71764f664c68 integ-alg sha-384-192 integ-key 6156494a72346b69636f4345766b6c72466a76665750716a6f4c55316d5876557964647074434b3432667065527a3474
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 6459333833335678534d71764f664c68 integ-alg sha-384-192 integ-key 6156494a72346b69636f4345766b6c72466a76665750716a6f4c55316d5876557964647074434b3432667065527a3474
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc08: vpp process esp packet in transport mode with aes-cbc-192 encryption and sha-384-192 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 4133577436744f6652576841716136446633556c43584634 integ-alg sha-384-192 integ-key 39654a6f386145706e31593877424f534e507971585a7439754d795077443572656970506837756a6d6a724965434d42
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 4133577436744f6652576841716136446633556c43584634 integ-alg sha-384-192 integ-key 39654a6f386145706e31593877424f534e507971585a7439754d795077443572656970506837756a6d6a724965434d42
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc09: vpp process esp packet in transport mode with aes-cbc-256 encryption and sha-384-192 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 343464446952417636544e5a41554a43674f57573047556c65674a6443775871 integ-alg sha-384-192 integ-key 6e6c6f746f674e42766a614d6649307647484744716758726b4e6c784c487778755942716477366d6c7154364b544745
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 343464446952417636544e5a41554a43674f57573047556c65674a6443775871 integ-alg sha-384-192 integ-key 6e6c6f746f674e42766a614d6649307647484744716758726b4e6c784c487778755942716477366d6c7154364b544745
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc10: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha-512-256 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 416241346c7464334837435371316266 integ-alg sha-512-256 integ-key 42354c753543345967684b4b454b65526c49314a4a4b776c367a4c44654537336e4c413630376e58753452707774614965356c694f763673574349674a695445
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 416241346c7464334837435371316266 integ-alg sha-512-256 integ-key 42354c753543345967684b4b454b65526c49314a4a4b776c367a4c44654537336e4c413630376e58753452707774614965356c694f763673574349674a695445
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc11: vpp process esp packet in transport mode with aes-cbc-192 encryption and sha-512-256 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 7552683374776b72733939716c5761566e3636354e323970 integ-alg sha-512-256 integ-key 3257316b647a736b325a666f79674d79664c323558627533534d54746c65783270534e6e5376706b414f3158746d4e5037365a4e4575514a3735716a62423245
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 7552683374776b72733939716c5761566e3636354e323970 integ-alg sha-512-256 integ-key 3257316b647a736b325a666f79674d79664c323558627533534d54746c65783270534e6e5376706b414f3158746d4e5037365a4e4575514a3735716a62423245
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc12: vpp process esp packet in transport mode with aes-cbc-256 encryption and sha-512-256 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 73414c4a75693541624f7438516d516e7065664570466d79414d554461677739 integ-alg sha-512-256 integ-key 44626a575a68423533787134694b5455414a546d35713042664f6b7a7254346d5a765479324d6473446347346e6e6a3479397a3157775638646636456c614a33
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 73414c4a75693541624f7438516d516e7065664570466d79414d554461677739 integ-alg sha-512-256 integ-key 44626a575a68423533787134694b5455414a546d35713042664f6b7a7254346d5a765479324d6473446347346e6e6a3479397a3157775638646636456c614a33
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc13: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity - different encryption alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 6a31583874794e556b466b7279325434 integ-alg sha1-96 integ-key 41624b7a54324b49455873755944754f6336554f
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 6a31583874794e556b466b7279325434 integ-alg sha1-96 integ-key 41624b7a54324b49455873755944754f6336554f
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc14: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity - different integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 465337796a68764c4178395578303934 integ-alg sha1-96 integ-key 394c6b5650347061343156677066346767706a68
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 465337796a68764c4178395578303934 integ-alg sha1-96 integ-key 394c6b5650347061343156677066346767706a68
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc15: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity - different encryption and integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 7049627a764a6a4c6d7158424d633562 integ-alg sha1-96 integ-key 6c4c4d3136434b4641365a634d76586e7a6f4857
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 7049627a764a6a4c6d7158424d633562 integ-alg sha1-96 integ-key 6c4c4d3136434b4641365a634d76586e7a6f4857
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc16: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 424849577a694a61754a626c50535335 integ-alg sha1-96 integ-key 6a786a414d7a556d67457852584532416f784764
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 424849577a694a61754a626c50535335 integ-alg sha1-96 integ-key 6a786a414d7a556d67457852584532416f784764
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec set ipsec sa 10 crypto-key 37484f5542564863617834694a55497a integ-key 746738686b475a44616c4b78426c746243353441
exec set ipsec sa 20 crypto-key 37484f5542564863617834694a55497a integ-key 746738686b475a44616c4b78426c746243353441
exec show trace

DUT2:
exec show trace
tc17: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys - different encryption alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 316a7144315a6d57686b304a45627656 integ-alg sha1-96 integ-key 333351726c703351655671626f71756d33534c4e
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 316a7144315a6d57686b304a45627656 integ-alg sha1-96 integ-key 333351726c703351655671626f71756d33534c4e
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec set ipsec sa 10 crypto-key 65783339767875447a6b566e46534a31 integ-key 54693365754839704c636e357368704366315947
exec set ipsec sa 20 crypto-key 65783339767875447a6b566e46534a31 integ-key 54693365754839704c636e357368704366315947
exec show trace

DUT2:
exec show trace
tc18: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys - different integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 68306655514844425a334d466b6e3871 integ-alg sha1-96 integ-key 6861317368767971704f4b493157746750694859
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 68306655514844425a334d466b6e3871 integ-alg sha1-96 integ-key 6861317368767971704f4b493157746750694859
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec set ipsec sa 10 crypto-key 6f326b795841546a676556344377564f integ-key 56796e344532347a6e594f6f6f66796b6743306a
exec set ipsec sa 20 crypto-key 6f326b795841546a676556344377564f integ-key 56796e344532347a6e594f6f6f66796b6743306a
exec show trace

DUT2:
exec show trace
tc19: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys - different encryption and integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 6f68725a626535777670426e5746436e integ-alg sha1-96 integ-key 377757506c317a716b50546d7a426e37666e3541
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 6f68725a626535777670426e5746436e integ-alg sha1-96 integ-key 377757506c317a716b50546d7a426e37666e3541
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec set ipsec sa 10 crypto-key 35343239377432626635744370474a64 integ-key 6a6d59546a64304770646a3252594863727a587a
exec set ipsec sa 20 crypto-key 35343239377432626635744370474a64 integ-key 6a6d59546a64304770646a3252594863727a587a
exec show trace

DUT2:
exec show trace

eth2p-ethip4ipsectptlispgpe-ip4base-func

IPv4-ip4-ipsec-lispgpe-ip4 - main fib, vrf (gpe_vni-to-vrf)

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: ICMPv4-IPv4-IPSec-LISPGPE-IPv4-ICMPv4.
  • [Cfg] DUT configuration: Each DUT is configured with LISP and IPsec. IPsec is in transport mode. Tests cases are for IPsec configured both on RLOC interface or lisp_gpe0 interface.
  • [Ver] TG verification: Packet is send from TG(if1) across the DUT1 to DUT2 where it is forwarded to TG(if2).
  • [Ref] Applicable standard specifications: RFC6830, RFC4303.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 route ipv4 bidirectionally over lisp gpe tunnel using ipsec (transport) on rloc int.
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 0
sw_interface_set_table sw_if_index 1 vrf 0
sw_interface_add_del_address sw_if_index 3 6.6.3.1/24
sw_interface_add_del_address sw_if_index 1 6.6.1.1/24
ip_neighbor_add_del sw_if_index 1 dst 6.6.1.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:7d:01:09
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 6.6.1.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 6.6.2.0/24 seid 6.6.1.0/24 rloc 6.6.3.2
lisp_add_del_adjacency add vni 0 reid 6.6.2.0/24 leid 6.6.1.0/24
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 6e646d6356534a35574b466c4f534463 integ-alg sha1-96 integ-key 4f75384472567a30306859626347414359694f59
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 6e646d6356534a35574b466c4f534463 integ-alg sha1-96 integ-key 4f75384472567a30306859626347414359694f59
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 6.6.3.1 - 6.6.3.1 remote-ip-range 6.6.3.2 - 6.6.3.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 6.6.3.1 - 6.6.3.1 remote-ip-range 6.6.3.2 - 6.6.3.2
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 0
sw_interface_set_table sw_if_index 1 vrf 0
sw_interface_add_del_address sw_if_index 3 6.6.3.2/24
sw_interface_add_del_address sw_if_index 1 6.6.2.1/24
ip_neighbor_add_del sw_if_index 1 dst 6.6.2.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:db:58:4f
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 6.6.2.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 6.6.1.0/24 seid 6.6.2.0/24 rloc 6.6.3.1
lisp_add_del_adjacency add vni 0 reid 6.6.1.0/24 leid 6.6.2.0/24
exec ipsec sa add 10 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 6e646d6356534a35574b466c4f534463 integ-alg sha1-96 integ-key 4f75384472567a30306859626347414359694f59
exec ipsec sa add 20 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 6e646d6356534a35574b466c4f534463 integ-alg sha1-96 integ-key 4f75384472567a30306859626347414359694f59
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 6.6.3.2 - 6.6.3.2 remote-ip-range 6.6.3.1 - 6.6.3.1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 6.6.3.2 - 6.6.3.2 remote-ip-range 6.6.3.1 - 6.6.3.1
exec show trace
tc02: dut1 and dut2 route ipv4 bidirectionally over lisp gpe tunnel using ipsec (transport) lisp_gpe0 int.
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 0
sw_interface_set_table sw_if_index 1 vrf 0
sw_interface_add_del_address sw_if_index 3 6.6.3.1/24
sw_interface_add_del_address sw_if_index 1 6.6.1.1/24
ip_neighbor_add_del sw_if_index 1 dst 6.6.1.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:7d:01:09
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 6.6.1.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 6.6.2.0/24 seid 6.6.1.0/24 rloc 6.6.3.2
lisp_add_del_adjacency add vni 0 reid 6.6.2.0/24 leid 6.6.1.0/24
sw_interface_dump
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 72463934457572466e554254494d6569 integ-alg sha1-96 integ-key 504471627057316e314e3764326b413655696966
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 72463934457572466e554254494d6569 integ-alg sha1-96 integ-key 504471627057316e314e3764326b413655696966
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 6.6.1.2 - 6.6.1.2 remote-ip-range 6.6.2.2 - 6.6.2.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 6.6.1.2 - 6.6.1.2 remote-ip-range 6.6.2.2 - 6.6.2.2
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 0
sw_interface_set_table sw_if_index 1 vrf 0
sw_interface_add_del_address sw_if_index 3 6.6.3.2/24
sw_interface_add_del_address sw_if_index 1 6.6.2.1/24
ip_neighbor_add_del sw_if_index 1 dst 6.6.2.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:db:58:4f
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 6.6.2.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 6.6.1.0/24 seid 6.6.2.0/24 rloc 6.6.3.1
lisp_add_del_adjacency add vni 0 reid 6.6.1.0/24 leid 6.6.2.0/24
exec ipsec sa add 10 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 72463934457572466e554254494d6569 integ-alg sha1-96 integ-key 504471627057316e314e3764326b413655696966
exec ipsec sa add 20 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 72463934457572466e554254494d6569 integ-alg sha1-96 integ-key 504471627057316e314e3764326b413655696966
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 6.6.2.2 - 6.6.2.2 remote-ip-range 6.6.1.2 - 6.6.1.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 6.6.2.2 - 6.6.2.2 remote-ip-range 6.6.1.2 - 6.6.1.2
exec show trace
tc03: dut1 and dut2 route ipv4 bidirectionally over lisp gpe tunnel using ipsec (transport) on rloc int and vrf on eid is enabled.
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 1
sw_interface_set_table sw_if_index 1 vrf 1
sw_interface_add_del_address sw_if_index 3 6.6.3.1/24
sw_interface_add_del_address sw_if_index 1 6.6.1.1/24
ip_neighbor_add_del sw_if_index 1 dst 6.6.1.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:7d:01:09
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 1 vrf 1
lisp_add_del_local_eid vni 1 eid 6.6.1.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 1 eid 6.6.2.0/24 seid 6.6.1.0/24 rloc 6.6.3.2
lisp_add_del_adjacency add vni 1 reid 6.6.2.0/24 leid 6.6.1.0/24
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 6a53683074673335416f424758587752 integ-alg sha1-96 integ-key 6430313544447554656a764d416d7531654f5a6e
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 6a53683074673335416f424758587752 integ-alg sha1-96 integ-key 6430313544447554656a764d416d7531654f5a6e
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 6.6.3.1 - 6.6.3.1 remote-ip-range 6.6.3.2 - 6.6.3.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 6.6.3.1 - 6.6.3.1 remote-ip-range 6.6.3.2 - 6.6.3.2
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 1
sw_interface_set_table sw_if_index 1 vrf 1
sw_interface_add_del_address sw_if_index 3 6.6.3.2/24
sw_interface_add_del_address sw_if_index 1 6.6.2.1/24
ip_neighbor_add_del sw_if_index 1 dst 6.6.2.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:db:58:4f
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 1 vrf 1
lisp_add_del_local_eid vni 1 eid 6.6.2.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 1 eid 6.6.1.0/24 seid 6.6.2.0/24 rloc 6.6.3.1
lisp_add_del_adjacency add vni 1 reid 6.6.1.0/24 leid 6.6.2.0/24
exec ipsec sa add 10 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 6a53683074673335416f424758587752 integ-alg sha1-96 integ-key 6430313544447554656a764d416d7531654f5a6e
exec ipsec sa add 20 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 6a53683074673335416f424758587752 integ-alg sha1-96 integ-key 6430313544447554656a764d416d7531654f5a6e
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 6.6.3.2 - 6.6.3.2 remote-ip-range 6.6.3.1 - 6.6.3.1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 6.6.3.2 - 6.6.3.2 remote-ip-range 6.6.3.1 - 6.6.3.1
exec show trace
tc04: dut1 and dut2 route ipv4 bidirectionally over lisp gpe tunnel using ipsec (transport) on lisp_gpe0 int and vrf is enabled.
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 1
sw_interface_set_table sw_if_index 1 vrf 1
sw_interface_add_del_address sw_if_index 3 6.6.3.1/24
sw_interface_add_del_address sw_if_index 1 6.6.1.1/24
ip_neighbor_add_del sw_if_index 1 dst 6.6.1.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:7d:01:09
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 1 vrf 1
lisp_add_del_local_eid vni 1 eid 6.6.1.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 1 eid 6.6.2.0/24 seid 6.6.1.0/24 rloc 6.6.3.2
lisp_add_del_adjacency add vni 1 reid 6.6.2.0/24 leid 6.6.1.0/24
sw_interface_dump
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 5757306278504c6c3737345062466e34 integ-alg sha1-96 integ-key 43736a534a574264316b54465a6f776865397a73
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 5757306278504c6c3737345062466e34 integ-alg sha1-96 integ-key 43736a534a574264316b54465a6f776865397a73
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 6.6.1.2 - 6.6.1.2 remote-ip-range 6.6.2.2 - 6.6.2.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 6.6.1.2 - 6.6.1.2 remote-ip-range 6.6.2.2 - 6.6.2.2
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 1
sw_interface_set_table sw_if_index 1 vrf 1
sw_interface_add_del_address sw_if_index 3 6.6.3.2/24
sw_interface_add_del_address sw_if_index 1 6.6.2.1/24
ip_neighbor_add_del sw_if_index 1 dst 6.6.2.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:db:58:4f
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 1 vrf 1
lisp_add_del_local_eid vni 1 eid 6.6.2.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 1 eid 6.6.1.0/24 seid 6.6.2.0/24 rloc 6.6.3.1
lisp_add_del_adjacency add vni 1 reid 6.6.1.0/24 leid 6.6.2.0/24
exec ipsec sa add 10 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 5757306278504c6c3737345062466e34 integ-alg sha1-96 integ-key 43736a534a574264316b54465a6f776865397a73
exec ipsec sa add 20 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 5757306278504c6c3737345062466e34 integ-alg sha1-96 integ-key 43736a534a574264316b54465a6f776865397a73
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 6.6.2.2 - 6.6.2.2 remote-ip-range 6.6.1.2 - 6.6.1.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 6.6.2.2 - 6.6.2.2 remote-ip-range 6.6.1.2 - 6.6.1.2
exec show trace

eth2p-ethip4ipsectptlispgpe-ip6base-func

IPv6 - ip4-ipsec-lispgpe-ip6 - main fib, vrf, virt2lisp, phy2lisp

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-LISPGPE-IPSec-IPv6-ICMP, Eth-IPv4-IPSec-LISPGPE-IPv6-ICMP
  • [Cfg] DUT configuration: Each DUT is configured with LISP and IPsec. IPsec is in transport mode. Tests cases are for IPsec configured both on RLOC interface or lisp_gpe0 interface.
  • [Ver] TG verification: Packet is send from TG(if1) across the DUT1 to DUT2 where it is forwarded to TG(if2).
  • [Ref] Applicable standard specifications: RFC6830, RFC4303.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 route ipv4 bidirectionally over lisp gpe tunnel using ipsec (transport) on rloc int.
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 6.6.3.1/24
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:1::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:7d:01:09
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 2001:cdba:1::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 2001:cdba:2::0/64 seid 2001:cdba:1::0/64 rloc 6.6.3.2
lisp_add_del_adjacency add vni 0 reid 2001:cdba:2::0/64 leid 2001:cdba:1::0/64
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 477a4f36647a7a55326d42624a335844 integ-alg sha1-96 integ-key 7a51534e6a36724b4433586d6d714c72574d484b
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 477a4f36647a7a55326d42624a335844 integ-alg sha1-96 integ-key 7a51534e6a36724b4433586d6d714c72574d484b
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 6.6.3.1 - 6.6.3.1 remote-ip-range 6.6.3.2 - 6.6.3.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 6.6.3.1 - 6.6.3.1 remote-ip-range 6.6.3.2 - 6.6.3.2
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 6.6.3.2/24
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:2::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:2::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:db:58:4f
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 2001:cdba:2::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 2001:cdba:1::0/64 seid 2001:cdba:2::0/64 rloc 6.6.3.1
lisp_add_del_adjacency add vni 0 reid 2001:cdba:1::0/64 leid 2001:cdba:2::0/64
exec ipsec sa add 10 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 477a4f36647a7a55326d42624a335844 integ-alg sha1-96 integ-key 7a51534e6a36724b4433586d6d714c72574d484b
exec ipsec sa add 20 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 477a4f36647a7a55326d42624a335844 integ-alg sha1-96 integ-key 7a51534e6a36724b4433586d6d714c72574d484b
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 6.6.3.2 - 6.6.3.2 remote-ip-range 6.6.3.1 - 6.6.3.1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 6.6.3.2 - 6.6.3.2 remote-ip-range 6.6.3.1 - 6.6.3.1
exec show trace
tc02: dut1 and dut2 route ipv4 bidirectionally over lisp gpe tunnel using ipsec (transport) on lisp_gpe0 int.
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 6.6.3.1/24
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:1::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:7d:01:09
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 2001:cdba:1::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 2001:cdba:2::0/64 seid 2001:cdba:1::0/64 rloc 6.6.3.2
lisp_add_del_adjacency add vni 0 reid 2001:cdba:2::0/64 leid 2001:cdba:1::0/64
sw_interface_dump
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 7a386273695857394b684b774f597365 integ-alg sha1-96 integ-key 336a597a784a6a72656a673548623748484a496a
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 7a386273695857394b684b774f597365 integ-alg sha1-96 integ-key 336a597a784a6a72656a673548623748484a496a
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 6.6.3.1 - 6.6.3.1 remote-ip-range 6.6.3.2 - 6.6.3.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 6.6.3.1 - 6.6.3.1 remote-ip-range 6.6.3.2 - 6.6.3.2
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 6.6.3.2/24
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:2::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:2::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:db:58:4f
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 2001:cdba:2::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 2001:cdba:1::0/64 seid 2001:cdba:2::0/64 rloc 6.6.3.1
lisp_add_del_adjacency add vni 0 reid 2001:cdba:1::0/64 leid 2001:cdba:2::0/64
exec ipsec sa add 10 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 7a386273695857394b684b774f597365 integ-alg sha1-96 integ-key 336a597a784a6a72656a673548623748484a496a
exec ipsec sa add 20 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 7a386273695857394b684b774f597365 integ-alg sha1-96 integ-key 336a597a784a6a72656a673548623748484a496a
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 6.6.3.2 - 6.6.3.2 remote-ip-range 6.6.3.1 - 6.6.3.1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 6.6.3.2 - 6.6.3.2 remote-ip-range 6.6.3.1 - 6.6.3.1
exec show trace

eth2p-ethip4ipsectptlispgpe-ip6basevrf-func

IPv6 - ip4-ipsec-lispgpe-ip6 - main fib, vrf, virt2lisp, phy2lisp

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-LISPGPE-IPSec-IPv6-ICMP, Eth-IPv4-IPSec-LISPGPE-IPv6-ICMP
  • [Cfg] DUT configuration: Each DUT is configured with LISP and IPsec. IPsec is in transport mode. Tests cases are for IPsec configured both on RLOC interface or lisp_gpe0 interface.
  • [Ver] TG verification: Packet is send from TG(if1) across the DUT1 to DUT2 where it is forwarded to TG(if2).
  • [Ref] Applicable standard specifications: RFC6830, RFC4303.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 route ipv6 bidirectionally over lisp gpe tunnel using physical interfaces and vrf is enabled
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 1 ipv6
sw_interface_set_table sw_if_index 1 vrf 1 ipv6
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 624b524e6e5566544b5854544e623774 integ-alg sha1-96 integ-key 5237564e4661445a734830367a4c71746c435276
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 624b524e6e5566544b5854544e623774 integ-alg sha1-96 integ-key 5237564e4661445a734830367a4c71746c435276
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 6.6.3.1 - 6.6.3.1 remote-ip-range 6.6.3.2 - 6.6.3.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 6.6.3.1 - 6.6.3.1 remote-ip-range 6.6.3.2 - 6.6.3.2
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 6.6.3.1/24
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:1::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:7d:01:09
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 1 vrf 1
lisp_add_del_local_eid vni 1 eid 2001:cdba:1::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 1 eid 2001:cdba:2::0/64 seid 2001:cdba:1::0/64 rloc 6.6.3.2
lisp_add_del_adjacency add vni 1 reid 2001:cdba:2::0/64 leid 2001:cdba:1::0/64
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 1 ipv6
sw_interface_set_table sw_if_index 1 vrf 1 ipv6
exec ipsec sa add 10 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 624b524e6e5566544b5854544e623774 integ-alg sha1-96 integ-key 5237564e4661445a734830367a4c71746c435276
exec ipsec sa add 20 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 624b524e6e5566544b5854544e623774 integ-alg sha1-96 integ-key 5237564e4661445a734830367a4c71746c435276
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 6.6.3.2 - 6.6.3.2 remote-ip-range 6.6.3.1 - 6.6.3.1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 6.6.3.2 - 6.6.3.2 remote-ip-range 6.6.3.1 - 6.6.3.1
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 6.6.3.2/24
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:2::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:2::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:db:58:4f
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 1 vrf 1
lisp_add_del_local_eid vni 1 eid 2001:cdba:2::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 1 eid 2001:cdba:1::0/64 seid 2001:cdba:2::0/64 rloc 6.6.3.1
lisp_add_del_adjacency add vni 1 reid 2001:cdba:1::0/64 leid 2001:cdba:2::0/64
exec show trace

eth2p-ethip6ipsectnl-ip6base-func

IPv6 IPsec tunnel mode test suite.

  • [Top] Network topologies: TG-DUT1 2-node topology with one link between nodes.
  • [Cfg] DUT configuration: On DUT1 create loopback interface, configure loopback an physical interface IPv6 addresses, static ARP record, route and IPsec manual keyed connection in tunnel mode.
  • [Ver] TG verification: ESP packet is sent from TG to DUT1. ESP packet is received on TG from DUT1.
  • [Ref] Applicable standard specifications: RFC4303.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 56684f345573544d6a49716542624432 integ-alg sha1-96 integ-key 33774270564f5170744352436150586b77386765 tunnel-src 3ffe:5f::2 tunnel-dst 3ffe:5f::1
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 56684f345573544d6a49716542624432 integ-alg sha1-96 integ-key 33774270564f5170744352436150586b77386765 tunnel-src 3ffe:5f::1 tunnel-dst 3ffe:5f::2
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc02: vpp process esp packet in tunnel mode with aes-cbc-192 encryption and sha1-96 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 7774776b534530456b30545755625a53344b43315a585934 integ-alg sha1-96 integ-key 6671303367593742385842564243354f396c4447 tunnel-src 3ffe:5f::2 tunnel-dst 3ffe:5f::1
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 7774776b534530456b30545755625a53344b43315a585934 integ-alg sha1-96 integ-key 6671303367593742385842564243354f396c4447 tunnel-src 3ffe:5f::1 tunnel-dst 3ffe:5f::2
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc03: vpp process esp packet in tunnel mode with aes-cbc-256 encryption and sha1-96 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 487a7946776c4e77707a4172493970494d36396a5a684c746937696848776359 integ-alg sha1-96 integ-key 615533553873386f475855584659366b35686f4b tunnel-src 3ffe:5f::2 tunnel-dst 3ffe:5f::1
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 487a7946776c4e77707a4172493970494d36396a5a684c746937696848776359 integ-alg sha1-96 integ-key 615533553873386f475855584659366b35686f4b tunnel-src 3ffe:5f::1 tunnel-dst 3ffe:5f::2
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc04: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha-256-128 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 43445a65444a644b68374434486f464a integ-alg sha-256-128 integ-key 73484b3633446573376a5470696a78666d7836305936665435364a5044706f43 tunnel-src 3ffe:5f::2 tunnel-dst 3ffe:5f::1
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 43445a65444a644b68374434486f464a integ-alg sha-256-128 integ-key 73484b3633446573376a5470696a78666d7836305936665435364a5044706f43 tunnel-src 3ffe:5f::1 tunnel-dst 3ffe:5f::2
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc05: vpp process esp packet in tunnel mode with aes-cbc-192 encryption and sha-256-128 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 33516a6f316f7531635a66544e716e4761503341426a7766 integ-alg sha-256-128 integ-key 4d493964543641744a4f794a5a6c364763384c626e423043324b64797054724e tunnel-src 3ffe:5f::2 tunnel-dst 3ffe:5f::1
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 33516a6f316f7531635a66544e716e4761503341426a7766 integ-alg sha-256-128 integ-key 4d493964543641744a4f794a5a6c364763384c626e423043324b64797054724e tunnel-src 3ffe:5f::1 tunnel-dst 3ffe:5f::2
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc06: vpp process esp packet in tunnel mode with aes-cbc-256 encryption and sha-256-128 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 37585734484a767344483043516651627077516a74635447583869424e466571 integ-alg sha-256-128 integ-key 76556c36666f6d5347505376444d736665676e6c55796548675534626e306558 tunnel-src 3ffe:5f::2 tunnel-dst 3ffe:5f::1
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 37585734484a767344483043516651627077516a74635447583869424e466571 integ-alg sha-256-128 integ-key 76556c36666f6d5347505376444d736665676e6c55796548675534626e306558 tunnel-src 3ffe:5f::1 tunnel-dst 3ffe:5f::2
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc07: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha-384-192 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 34477533434f755056436d306f6d4f50 integ-alg sha-384-192 integ-key 7565316c6436654c617079495747567a395767346f68534a4b737775596c74646e5a5755473770627654426576693064 tunnel-src 3ffe:5f::2 tunnel-dst 3ffe:5f::1
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 34477533434f755056436d306f6d4f50 integ-alg sha-384-192 integ-key 7565316c6436654c617079495747567a395767346f68534a4b737775596c74646e5a5755473770627654426576693064 tunnel-src 3ffe:5f::1 tunnel-dst 3ffe:5f::2
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc08: vpp process esp packet in tunnel mode with aes-cbc-192 encryption and sha-384-192 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 69507836536a55536e4c37447a51596d6161413953455951 integ-alg sha-384-192 integ-key 337165556d7079376a5970646d554b326d41754b70784e6b4e6567397a524b4e4c68706a723134706a63524534693966 tunnel-src 3ffe:5f::2 tunnel-dst 3ffe:5f::1
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 69507836536a55536e4c37447a51596d6161413953455951 integ-alg sha-384-192 integ-key 337165556d7079376a5970646d554b326d41754b70784e6b4e6567397a524b4e4c68706a723134706a63524534693966 tunnel-src 3ffe:5f::1 tunnel-dst 3ffe:5f::2
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc09: vpp process esp packet in tunnel mode with aes-cbc-256 encryption and sha-384-192 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 746650676d4f644d646f4b32624f77555468624b675135626563467463303231 integ-alg sha-384-192 integ-key 6a3468416a356679514d4a42454f6b7831444475773063484255335875576a5633766b6f48457347624b6f375a314148 tunnel-src 3ffe:5f::2 tunnel-dst 3ffe:5f::1
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 746650676d4f644d646f4b32624f77555468624b675135626563467463303231 integ-alg sha-384-192 integ-key 6a3468416a356679514d4a42454f6b7831444475773063484255335875576a5633766b6f48457347624b6f375a314148 tunnel-src 3ffe:5f::1 tunnel-dst 3ffe:5f::2
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc10: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha-512-256 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 6f44796e4a33484a5479436f32544c62 integ-alg sha-512-256 integ-key 555a68436178305a6f4c33676570426769725a5847504b39355a6771366a7334735968344b62567139386367777575744a3446325a7952554631526a6a4c7046 tunnel-src 3ffe:5f::2 tunnel-dst 3ffe:5f::1
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 6f44796e4a33484a5479436f32544c62 integ-alg sha-512-256 integ-key 555a68436178305a6f4c33676570426769725a5847504b39355a6771366a7334735968344b62567139386367777575744a3446325a7952554631526a6a4c7046 tunnel-src 3ffe:5f::1 tunnel-dst 3ffe:5f::2
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc11: vpp process esp packet in tunnel mode with aes-cbc-192 encryption and sha-512-256 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 594259434f56396f446f344c62426f555338426c57505879 integ-alg sha-512-256 integ-key 4f4a4253746652784639653957326253756852375054767a4871744b69476c557a4b66387032674c50507052766f4e444f66517a67564561333955394a523168 tunnel-src 3ffe:5f::2 tunnel-dst 3ffe:5f::1
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 594259434f56396f446f344c62426f555338426c57505879 integ-alg sha-512-256 integ-key 4f4a4253746652784639653957326253756852375054767a4871744b69476c557a4b66387032674c50507052766f4e444f66517a67564561333955394a523168 tunnel-src 3ffe:5f::1 tunnel-dst 3ffe:5f::2
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc12: vpp process esp packet in tunnel mode with aes-cbc-256 encryption and sha-512-256 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 665772757a424e794e4d4a3274636654427a30717058576151546b64424a7465 integ-alg sha-512-256 integ-key 53785a616e494c586f344833446c5766546330673947356c5171334c685149776b72334c70554a656955416c31394b5236565473416a39583055376771496238 tunnel-src 3ffe:5f::2 tunnel-dst 3ffe:5f::1
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 665772757a424e794e4d4a3274636654427a30717058576151546b64424a7465 integ-alg sha-512-256 integ-key 53785a616e494c586f344833446c5766546330673947356c5171334c685149776b72334c70554a656955416c31394b5236565473416a39583055376771496238 tunnel-src 3ffe:5f::1 tunnel-dst 3ffe:5f::2
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc13: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity - different encryption alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 53326f443767584d3465626e3665456a integ-alg sha1-96 integ-key 426f6134516d576b53574b746531704958636f5a tunnel-src 3ffe:5f::2 tunnel-dst 3ffe:5f::1
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 53326f443767584d3465626e3665456a integ-alg sha1-96 integ-key 426f6134516d576b53574b746531704958636f5a tunnel-src 3ffe:5f::1 tunnel-dst 3ffe:5f::2
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc14: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity - different integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 4168774c584257416d685330516c4a4e integ-alg sha1-96 integ-key 5a664d774867776c6f744245794164786e6c3456 tunnel-src 3ffe:5f::2 tunnel-dst 3ffe:5f::1
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 4168774c584257416d685330516c4a4e integ-alg sha1-96 integ-key 5a664d774867776c6f744245794164786e6c3456 tunnel-src 3ffe:5f::1 tunnel-dst 3ffe:5f::2
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc15: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity - different encryption and integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 613676714f327838524961394b30336c integ-alg sha1-96 integ-key 3341646f536358416f5063397645534d456e3647 tunnel-src 3ffe:5f::2 tunnel-dst 3ffe:5f::1
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 613676714f327838524961394b30336c integ-alg sha1-96 integ-key 3341646f536358416f5063397645534d456e3647 tunnel-src 3ffe:5f::1 tunnel-dst 3ffe:5f::2
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc16: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 72766d4a6553393242704d48724d6a32 integ-alg sha1-96 integ-key 397645397532377261486a6a3479374d6664586f tunnel-src 3ffe:5f::2 tunnel-dst 3ffe:5f::1
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 72766d4a6553393242704d48724d6a32 integ-alg sha1-96 integ-key 397645397532377261486a6a3479374d6664586f tunnel-src 3ffe:5f::1 tunnel-dst 3ffe:5f::2
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec set ipsec sa 10 crypto-key 42316b65327a31784f676d6c32697538 integ-key 486d7468766476316e4e3667587a57357739614e
exec set ipsec sa 20 crypto-key 42316b65327a31784f676d6c32697538 integ-key 486d7468766476316e4e3667587a57357739614e
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc17: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys - different encryption alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 55724a6b6d485a356c57544f59795a7a integ-alg sha1-96 integ-key 455a58673233365451767476384e393175764663 tunnel-src 3ffe:5f::2 tunnel-dst 3ffe:5f::1
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 55724a6b6d485a356c57544f59795a7a integ-alg sha1-96 integ-key 455a58673233365451767476384e393175764663 tunnel-src 3ffe:5f::1 tunnel-dst 3ffe:5f::2
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec set ipsec sa 10 crypto-key 58596a47644662564e32797a72387335 integ-key 34466d71363849526264734149737777375a4854
exec set ipsec sa 20 crypto-key 58596a47644662564e32797a72387335 integ-key 34466d71363849526264734149737777375a4854
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc18: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys - different integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 5a4e723865616d7659776e754d6f6638 integ-alg sha1-96 integ-key 48596a7a36536e333442656a6f69454453413846 tunnel-src 3ffe:5f::2 tunnel-dst 3ffe:5f::1
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 5a4e723865616d7659776e754d6f6638 integ-alg sha1-96 integ-key 48596a7a36536e333442656a6f69454453413846 tunnel-src 3ffe:5f::1 tunnel-dst 3ffe:5f::2
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec set ipsec sa 10 crypto-key 586e4d66543551695534414136494170 integ-key 51417a6b69626571454f3862364d764c456e3367
exec set ipsec sa 20 crypto-key 586e4d66543551695534414136494170 integ-key 51417a6b69626571454f3862364d764c456e3367
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc19: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys - different encryption and integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 303733384d416a4169594a4e49447750 integ-alg sha1-96 integ-key 6a73317a785a5376375a586951397a4232475567 tunnel-src 3ffe:5f::2 tunnel-dst 3ffe:5f::1
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 303733384d416a4169594a4e49447750 integ-alg sha1-96 integ-key 6a73317a785a5376375a586951397a4232475567 tunnel-src 3ffe:5f::1 tunnel-dst 3ffe:5f::2
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:60::4 - 3ffe:60::4 remote-ip-range 3ffe:60::3 - 3ffe:60::3
exec set ipsec sa 10 crypto-key 5556545770316935374d555454314a39 integ-key 62474f753271504636453355424e74596e567549
exec set ipsec sa 20 crypto-key 5556545770316935374d555454314a39 integ-key 62474f753271504636453355424e74596e567549
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace

eth2p-ethip6ipsectpt-ip6base-func

IPv6 IPsec transport mode test suite.

  • [Top] Network topologies: TG-DUT1 2-node topology with one link between nodes.
  • [Cfg] DUT configuration: On DUT1 create loopback interface, configure loopback an physical interface IPv6 addresses, static ARP record, route and IPsec manual keyed connection in transport mode.
  • [Ver] TG verification: ESP packet is sent from TG to DUT1. ESP packet is received on TG from DUT1.
  • [Ref] Applicable standard specifications: RFC4303.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 72736b704b594e6f624330674d48484a integ-alg sha1-96 integ-key 5253515a416c4b7244734c776e386e4f7a4e4d5a
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 72736b704b594e6f624330674d48484a integ-alg sha1-96 integ-key 5253515a416c4b7244734c776e386e4f7a4e4d5a
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc02: vpp process esp packet in transport mode with aes-cbc-192 encryption and sha1-96 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 447558633734694949327378424b706b3739326e5a557047 integ-alg sha1-96 integ-key 6a3847354e3261634c6949456331426e6b466354
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 447558633734694949327378424b706b3739326e5a557047 integ-alg sha1-96 integ-key 6a3847354e3261634c6949456331426e6b466354
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc03: vpp process esp packet in transport mode with aes-cbc-256 encryption and sha1-96 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 496f555543356e464168786a4970556d744b6e466e344e453371366542414d6a integ-alg sha1-96 integ-key 72363733394d326d634e6f584b706c6741667051
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 496f555543356e464168786a4970556d744b6e466e344e453371366542414d6a integ-alg sha1-96 integ-key 72363733394d326d634e6f584b706c6741667051
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc04: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha-256-128 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 554861354557767465795a4134364477 integ-alg sha-256-128 integ-key 384c52516557566b72437a676a724e777a4d4d354e7147345043386976567644
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 554861354557767465795a4134364477 integ-alg sha-256-128 integ-key 384c52516557566b72437a676a724e777a4d4d354e7147345043386976567644
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc05: vpp process esp packet in transport mode with aes-cbc-192 encryption and sha-256-128 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 33476164357946387a69643273337437427549676e614551 integ-alg sha-256-128 integ-key 304c32685a444474727268753730515076664f6b796970545a36776d51785434
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 33476164357946387a69643273337437427549676e614551 integ-alg sha-256-128 integ-key 304c32685a444474727268753730515076664f6b796970545a36776d51785434
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc06: vpp process esp packet in transport mode with aes-cbc-256 encryption and sha-256-128 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 4a6c644165437a4573474d46304a434e42376a617a6c44316335764c726a435a integ-alg sha-256-128 integ-key 5a315371424230427a4f70514754334667724c7630486d734d6d686c306b5858
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 4a6c644165437a4573474d46304a434e42376a617a6c44316335764c726a435a integ-alg sha-256-128 integ-key 5a315371424230427a4f70514754334667724c7630486d734d6d686c306b5858
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc07: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha-384-192 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 6f666579654864695165655a7974544b integ-alg sha-384-192 integ-key 6b47744d515542683072595566635a3342776b705337564e75514a75504975756e7a5774673132323662556175454242
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 6f666579654864695165655a7974544b integ-alg sha-384-192 integ-key 6b47744d515542683072595566635a3342776b705337564e75514a75504975756e7a5774673132323662556175454242
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc08: vpp process esp packet in transport mode with aes-cbc-192 encryption and sha-384-192 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 6f6453643838584c6737566156547937586c735350387243 integ-alg sha-384-192 integ-key 764d473839503232514948314e65384b796d3538576b676d3869343166716a4d52654738415963354672786566486569
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 6f6453643838584c6737566156547937586c735350387243 integ-alg sha-384-192 integ-key 764d473839503232514948314e65384b796d3538576b676d3869343166716a4d52654738415963354672786566486569
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc09: vpp process esp packet in transport mode with aes-cbc-256 encryption and sha-384-192 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 4175777a5469624d3658427545627549725752354e566a335453696950766e6b integ-alg sha-384-192 integ-key 43647135516e6f6579337050376a4e75374b506a516e64466f584c3835775049596a795169524e68356d6c304a6c3065
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 4175777a5469624d3658427545627549725752354e566a335453696950766e6b integ-alg sha-384-192 integ-key 43647135516e6f6579337050376a4e75374b506a516e64466f584c3835775049596a795169524e68356d6c304a6c3065
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc10: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha-512-256 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 684a3139686430354b7a7751486c6845 integ-alg sha-512-256 integ-key 6672534e544b755335666e41676d5a316a504370587777315564566c7856427861623351463538536948746a4c5647597753316450664a6c63716c636b4a6e5a
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 684a3139686430354b7a7751486c6845 integ-alg sha-512-256 integ-key 6672534e544b755335666e41676d5a316a504370587777315564566c7856427861623351463538536948746a4c5647597753316450664a6c63716c636b4a6e5a
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc11: vpp process esp packet in transport mode with aes-cbc-192 encryption and sha-512-256 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 34666f586a5867726b586b4b42565a4d72525a7a45725433 integ-alg sha-512-256 integ-key 5078356455514478425542443138546358614b7736757833657a634f4b6c4b7a59797448435775416a6363714f706c6557764c706557613055586d4665627454
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 34666f586a5867726b586b4b42565a4d72525a7a45725433 integ-alg sha-512-256 integ-key 5078356455514478425542443138546358614b7736757833657a634f4b6c4b7a59797448435775416a6363714f706c6557764c706557613055586d4665627454
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc12: vpp process esp packet in transport mode with aes-cbc-256 encryption and sha-512-256 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 526a48393754464d6d4639547734377038736e52673949644a777858714c494f integ-alg sha-512-256 integ-key 346354646830305979645a72566d5139587a6f777650367a766d6b50397a57644c326b49384f716f4330433655646b36334971347a7851377558487a4f575977
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 526a48393754464d6d4639547734377038736e52673949644a777858714c494f integ-alg sha-512-256 integ-key 346354646830305979645a72566d5139587a6f777650367a766d6b50397a57644c326b49384f716f4330433655646b36334971347a7851377558487a4f575977
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc13: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity - different encryption alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 713037483446555241644454617a7a4f integ-alg sha1-96 integ-key 3936704d6367564f6a36396b3846654558666265
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 713037483446555241644454617a7a4f integ-alg sha1-96 integ-key 3936704d6367564f6a36396b3846654558666265
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc14: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity - different integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 676545455a494b66446e397447516c38 integ-alg sha1-96 integ-key 64324733527441744f4d36746e66324966575a35
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 676545455a494b66446e397447516c38 integ-alg sha1-96 integ-key 64324733527441744f4d36746e66324966575a35
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc15: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity - different encryption and integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 53687a5941324b4b37516a4a755a724d integ-alg sha1-96 integ-key 4b566a4e6d4a763967467679706377737239634e
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 53687a5941324b4b37516a4a755a724d integ-alg sha1-96 integ-key 4b566a4e6d4a763967467679706377737239634e
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc16: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 3751767a7443327470594f6549716f4b integ-alg sha1-96 integ-key 744c7a7830326c4575533945464c4a756372677a
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 3751767a7443327470594f6549716f4b integ-alg sha1-96 integ-key 744c7a7830326c4575533945464c4a756372677a
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec set ipsec sa 10 crypto-key 53333370796757767651465447665631 integ-key 316661584f79486a58385472707845704233614d
exec set ipsec sa 20 crypto-key 53333370796757767651465447665631 integ-key 316661584f79486a58385472707845704233614d
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc17: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys - different encryption alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 6e446c6f62463542747454586e344443 integ-alg sha1-96 integ-key 354658644454593656766568465938347a5a304b
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 6e446c6f62463542747454586e344443 integ-alg sha1-96 integ-key 354658644454593656766568465938347a5a304b
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec set ipsec sa 10 crypto-key 567769344158546f45344d6b54515230 integ-key 484358796d786d553147636d455a494969686d6c
exec set ipsec sa 20 crypto-key 567769344158546f45344d6b54515230 integ-key 484358796d786d553147636d455a494969686d6c
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc18: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys - different integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 644754643447553276726a6d434e4666 integ-alg sha1-96 integ-key 594c51555a35434c7146596e7a38485045674535
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 644754643447553276726a6d434e4666 integ-alg sha1-96 integ-key 594c51555a35434c7146596e7a38485045674535
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec set ipsec sa 10 crypto-key 55594e4d493376764c6251614b526b54 integ-key 7442326a726c324c3333444e5152556b6c624656
exec set ipsec sa 20 crypto-key 55594e4d493376764c6251614b526b54 integ-key 7442326a726c324c3333444e5152556b6c624656
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc19: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys - different encryption and integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:5f::2/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 5 3ffe:60::4/64
sw_interface_set_flags sw_if_index 5 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:5f::1 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:60::3/128 via 3ffe:5f::1 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 47534735314a6a73766a476675563933 integ-alg sha1-96 integ-key 4f676b45714d37344442574f6657736670426847
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 47534735314a6a73766a476675563933 integ-alg sha1-96 integ-key 4f676b45714d37344442574f6657736670426847
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass local-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff remote-ip-range :: - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 3ffe:5f::2 - 3ffe:5f::2 remote-ip-range 3ffe:5f::1 - 3ffe:5f::1
exec set ipsec sa 10 crypto-key 676b776e693944726f43714c6e694d76 integ-key 7052376f3731777073504366516b646877746d30
exec set ipsec sa 20 crypto-key 676b776e693944726f43714c6e694d76 integ-key 7052376f3731777073504366516b646877746d30
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace

eth2p-ethip6ipsectptlispgpe-ip4base-func

IPv6 - ip4-ipsec-lispgpe-ip6 - main fib, virt2lisp, phy2lisp

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv6-LISPGPE-IPSec-IPv4-ICMP, Eth-IPv6-IPSec-LISPGPE-IPv4-ICMP
  • [Cfg] DUT configuration: Each DUT is configured with LISP and IPsec. IPsec is in transport mode. Tests cases are for IPsec configured both on RLOC interface or lisp_gpe0 interface.
  • [Ver] TG verification: Packet is send from TG(if1) across the DUT1 to DUT2 where it is forwarded to TG(if2).
  • [Ref] Applicable standard specifications: RFC6830, RFC4303.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 route ipv4 bidirectionally over lisp gpe tunnel using ipsec (transport) on rloc int.
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 6.0.1.1/24
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:7d:01:09
ip_neighbor_add_del sw_if_index 1 dst 6.0.1.2 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 6.0.1.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 6.0.2.0/24 seid 6.0.1.0/24 rloc 2001:cdba:3::2
lisp_add_del_adjacency add vni 0 reid 6.0.2.0/24 leid 6.0.1.0/24
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 37476b725633794b647a786b63693372 integ-alg sha1-96 integ-key 46496d6562576e7369724a434f57346f4f534a38
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 37476b725633794b647a786b63693372 integ-alg sha1-96 integ-key 46496d6562576e7369724a434f57346f4f534a38
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 2001:cdba:3::1 - 2001:cdba:3::1 remote-ip-range 2001:cdba:3::2 - 2001:cdba:3::2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 2001:cdba:3::1 - 2001:cdba:3::1 remote-ip-range 2001:cdba:3::2 - 2001:cdba:3::2
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::2/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 6.0.2.1/24
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 6.0.2.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:db:58:4f
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 6.0.2.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 6.0.1.0/24 seid 6.0.2.0/24 rloc 2001:cdba:3::1
lisp_add_del_adjacency add vni 0 reid 6.0.1.0/24 leid 6.0.2.0/24
exec ipsec sa add 10 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 37476b725633794b647a786b63693372 integ-alg sha1-96 integ-key 46496d6562576e7369724a434f57346f4f534a38
exec ipsec sa add 20 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 37476b725633794b647a786b63693372 integ-alg sha1-96 integ-key 46496d6562576e7369724a434f57346f4f534a38
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 2001:cdba:3::2 - 2001:cdba:3::2 remote-ip-range 2001:cdba:3::1 - 2001:cdba:3::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 2001:cdba:3::2 - 2001:cdba:3::2 remote-ip-range 2001:cdba:3::1 - 2001:cdba:3::1
exec show trace
tc02: dut1 and dut2 route ipv4 bidirectionally over lisp gpe tunnel using ipsec (transport) on lisp_gpe0 int.
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 6.0.1.1/24
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:7d:01:09
ip_neighbor_add_del sw_if_index 1 dst 6.0.1.2 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 6.0.1.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 6.0.2.0/24 seid 6.0.1.0/24 rloc 2001:cdba:3::2
lisp_add_del_adjacency add vni 0 reid 6.0.2.0/24 leid 6.0.1.0/24
sw_interface_dump
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 665348673050707735514a7131306d4f integ-alg sha1-96 integ-key 6557726e425776563572716a527a4745434e4877
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 665348673050707735514a7131306d4f integ-alg sha1-96 integ-key 6557726e425776563572716a527a4745434e4877
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 2001:cdba:3::1 - 2001:cdba:3::1 remote-ip-range 2001:cdba:3::2 - 2001:cdba:3::2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 2001:cdba:3::1 - 2001:cdba:3::1 remote-ip-range 2001:cdba:3::2 - 2001:cdba:3::2
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::2/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 6.0.2.1/24
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 6.0.2.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:db:58:4f
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 6.0.2.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 6.0.1.0/24 seid 6.0.2.0/24 rloc 2001:cdba:3::1
lisp_add_del_adjacency add vni 0 reid 6.0.1.0/24 leid 6.0.2.0/24
exec ipsec sa add 10 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 665348673050707735514a7131306d4f integ-alg sha1-96 integ-key 6557726e425776563572716a527a4745434e4877
exec ipsec sa add 20 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 665348673050707735514a7131306d4f integ-alg sha1-96 integ-key 6557726e425776563572716a527a4745434e4877
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 2001:cdba:3::2 - 2001:cdba:3::2 remote-ip-range 2001:cdba:3::1 - 2001:cdba:3::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 2001:cdba:3::2 - 2001:cdba:3::2 remote-ip-range 2001:cdba:3::1 - 2001:cdba:3::1
exec show trace

eth2p-ethip6ipsectptlispgpe-ip6base-func

IPv6 - ip6-ipsec-lispgpe-ip6 - main fib, vrf (gpe_vni-to-vrf), phy2lisp, virt2lisp

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv6-IPSec-LISPGPE-IPv6-ICMPv6,
  • [Cfg] DUT configuration: Each DUT is configured with LISP and IPsec. IPsec is in transport mode. Tests cases are for IPsec configured both on RLOC interface or lisp_gpe0 interface.
  • [Ver] TG verification: Packet is send from TG(if1) across the DUT1 to DUT2 where it is forwarded to TG(if2).
  • [Ref] Applicable standard specifications: RFC6830, RFC4303.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 route ipv6 bidirectionally over lisp gpe tunnel using ipsec (transport) on rloc int.
 DUT1:  
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:1::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:7d:01:09
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 2001:cdba:1::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 2001:cdba:2::0/64 seid 2001:cdba:1::0/64 rloc 2001:cdba:3::2
lisp_add_del_adjacency add vni 0 reid 2001:cdba:2::0/64 leid 2001:cdba:1::0/64
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 415769554d55794d3155707375696963 integ-alg sha1-96 integ-key 7874396541796449794471794b5562526841726a
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 415769554d55794d3155707375696963 integ-alg sha1-96 integ-key 7874396541796449794471794b5562526841726a
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 2001:cdba:3::1 - 2001:cdba:3::1 remote-ip-range 2001:cdba:3::2 - 2001:cdba:3::2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 2001:cdba:3::1 - 2001:cdba:3::1 remote-ip-range 2001:cdba:3::2 - 2001:cdba:3::2
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::2/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:2::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:2::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:db:58:4f
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 2001:cdba:2::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 2001:cdba:1::0/64 seid 2001:cdba:2::0/64 rloc 2001:cdba:3::1
lisp_add_del_adjacency add vni 0 reid 2001:cdba:1::0/64 leid 2001:cdba:2::0/64
exec ipsec sa add 10 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 415769554d55794d3155707375696963 integ-alg sha1-96 integ-key 7874396541796449794471794b5562526841726a
exec ipsec sa add 20 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 415769554d55794d3155707375696963 integ-alg sha1-96 integ-key 7874396541796449794471794b5562526841726a
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 2001:cdba:3::2 - 2001:cdba:3::2 remote-ip-range 2001:cdba:3::1 - 2001:cdba:3::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 2001:cdba:3::2 - 2001:cdba:3::2 remote-ip-range 2001:cdba:3::1 - 2001:cdba:3::1
exec show trace
tc02: dut1 and dut2 route ipv6 bidirectionally over lisp gpe tunnel using ipsec (transport) lisp_gpe0 int.
 DUT1:  
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:1::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:7d:01:09
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 2001:cdba:1::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 2001:cdba:2::0/64 seid 2001:cdba:1::0/64 rloc 2001:cdba:3::2
lisp_add_del_adjacency add vni 0 reid 2001:cdba:2::0/64 leid 2001:cdba:1::0/64
sw_interface_dump
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 566e4e4f58567173456a554163434878 integ-alg sha1-96 integ-key 74716947644459393076384c5a49316a50655457
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 566e4e4f58567173456a554163434878 integ-alg sha1-96 integ-key 74716947644459393076384c5a49316a50655457
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 2001:cdba:1::2 - 2001:cdba:1::2 remote-ip-range 2001:cdba:2::2 - 2001:cdba:2::2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 2001:cdba:1::2 - 2001:cdba:1::2 remote-ip-range 2001:cdba:2::2 - 2001:cdba:2::2
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::2/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:2::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:2::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:db:58:4f
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 2001:cdba:2::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 2001:cdba:1::0/64 seid 2001:cdba:2::0/64 rloc 2001:cdba:3::1
lisp_add_del_adjacency add vni 0 reid 2001:cdba:1::0/64 leid 2001:cdba:2::0/64
exec ipsec sa add 10 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 566e4e4f58567173456a554163434878 integ-alg sha1-96 integ-key 74716947644459393076384c5a49316a50655457
exec ipsec sa add 20 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 566e4e4f58567173456a554163434878 integ-alg sha1-96 integ-key 74716947644459393076384c5a49316a50655457
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 2001:cdba:2::2 - 2001:cdba:2::2 remote-ip-range 2001:cdba:1::2 - 2001:cdba:1::2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 2001:cdba:2::2 - 2001:cdba:2::2 remote-ip-range 2001:cdba:1::2 - 2001:cdba:1::2
exec show trace

sw device

eth2p-ethip4ipsectnlsw-ip4base-func

IPv4 SW cryptodev IPsec tunnel mode test suite.

  • [Top] Network topologies: TG-DUT1 2-node topology with one link between nodes.
  • [Cfg] DUT configuration: With enabled SW crytodev on DUT1 create loopback interface, configure loopback and physical interface IPv4 addresses, static ARP record, route and IPsec manual keyed connection in tunnel mode.
  • [Ver] TG verification: ESP packet is sent from TG to DUT1. ESP packet is received on TG from DUT1.
  • [Ref] Applicable standard specifications: RFC4303.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 42587a55775530714a6c567737416d6a integ-alg sha1-96 integ-key 64724e494c7762474e57587a615a633334656a7a tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 42587a55775530714a6c567737416d6a integ-alg sha1-96 integ-key 64724e494c7762474e57587a615a633334656a7a tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc02: vpp process esp packet in tunnel mode with aes-cbc-192 encryption and sha1-96 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 33726742443748706c7a544b61636279697676764d666642 integ-alg sha1-96 integ-key 34336f686a45437853666f654a63637656773667 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 33726742443748706c7a544b61636279697676764d666642 integ-alg sha1-96 integ-key 34336f686a45437853666f654a63637656773667 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc03: vpp process esp packet in tunnel mode with aes-cbc-256 encryption and sha1-96 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 763271766c5775345337696c6534617a564c30374e654950644b384e4a326b67 integ-alg sha1-96 integ-key 6272644b725265536152564439736a3876596736 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 763271766c5775345337696c6534617a564c30374e654950644b384e4a326b67 integ-alg sha1-96 integ-key 6272644b725265536152564439736a3876596736 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc04: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha-256-128 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 5062785a77644f4b7942653362353578 integ-alg sha-256-128 integ-key 6274576f4f7a71346366694f4f727141355769725237426273737874676a5a41 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 5062785a77644f4b7942653362353578 integ-alg sha-256-128 integ-key 6274576f4f7a71346366694f4f727141355769725237426273737874676a5a41 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc05: vpp process esp packet in tunnel mode with aes-cbc-192 encryption and sha-256-128 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 455838774f724a3647597a31636e6a515633577770356962 integ-alg sha-256-128 integ-key 6d4d4b595257533968435836315a45436c78616f4733375a76576b3136463932 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 455838774f724a3647597a31636e6a515633577770356962 integ-alg sha-256-128 integ-key 6d4d4b595257533968435836315a45436c78616f4733375a76576b3136463932 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc06: vpp process esp packet in tunnel mode with aes-cbc-256 encryption and sha-256-128 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 6e64623748597764486c685638374150645573414f3446735a57305251457a67 integ-alg sha-256-128 integ-key 4a7a6e5566726a794e524d794d7353337844413744714462714d6e36706e7551 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 6e64623748597764486c685638374150645573414f3446735a57305251457a67 integ-alg sha-256-128 integ-key 4a7a6e5566726a794e524d794d7353337844413744714462714d6e36706e7551 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc07: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha-384-192 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 32676b304f55495350505a4373395069 integ-alg sha-384-192 integ-key 65396e696364584b435969326c724d483773507541474235555475694a4442434444596857433179756a51766651354d tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 32676b304f55495350505a4373395069 integ-alg sha-384-192 integ-key 65396e696364584b435969326c724d483773507541474235555475694a4442434444596857433179756a51766651354d tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc08: vpp process esp packet in tunnel mode with aes-cbc-192 encryption and sha-384-192 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 59756455784a4b58366777364f5a67524e32474774565530 integ-alg sha-384-192 integ-key 333941755230785677446e7a35674e384c6432336b5644357a5865507665446339326965304f6751784a7a3436323837 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 59756455784a4b58366777364f5a67524e32474774565530 integ-alg sha-384-192 integ-key 333941755230785677446e7a35674e384c6432336b5644357a5865507665446339326965304f6751784a7a3436323837 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc09: vpp process esp packet in tunnel mode with aes-cbc-256 encryption and sha-384-192 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 4344544d5839546d725943714c4d4a6949507375324830493734524439457148 integ-alg sha-384-192 integ-key 4c67673746635368566f636d7161596337776b7974443371696d6c54535a6a33614a366e4a79645363595a6878794f6f tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 4344544d5839546d725943714c4d4a6949507375324830493734524439457148 integ-alg sha-384-192 integ-key 4c67673746635368566f636d7161596337776b7974443371696d6c54535a6a33614a366e4a79645363595a6878794f6f tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc10: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha-512-256 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 4735423265724a416371514b5a314250 integ-alg sha-512-256 integ-key 587079334a4477615639474762534c7265554172664c69327834574551577863754b3147305966666377496a4e447054387666794d445354526c79565a315752 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 4735423265724a416371514b5a314250 integ-alg sha-512-256 integ-key 587079334a4477615639474762534c7265554172664c69327834574551577863754b3147305966666377496a4e447054387666794d445354526c79565a315752 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc11: vpp process esp packet in tunnel mode with aes-cbc-192 encryption and sha-512-256 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 7631395746554b594450506b716b6e373363363832597775 integ-alg sha-512-256 integ-key 78463956546534617961466e71436e5067664f3953464379744763534471755577324870306e50784b41354543513250536e4578397a4b596851455730317731 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 7631395746554b594450506b716b6e373363363832597775 integ-alg sha-512-256 integ-key 78463956546534617961466e71436e5067664f3953464379744763534471755577324870306e50784b41354543513250536e4578397a4b596851455730317731 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc12: vpp process esp packet in tunnel mode with aes-cbc-256 encryption and sha-512-256 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 5a6c46633239325538434c5a554c4a53637179756d6f4438664d42626d394e73 integ-alg sha-512-256 integ-key 4d3449713064624b4c586b70376e464f4570724e6a6d5459663446496a316a776d42696f45414d6a31616358626c706a3569687976516f64386c4f6c35526348 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 5a6c46633239325538434c5a554c4a53637179756d6f4438664d42626d394e73 integ-alg sha-512-256 integ-key 4d3449713064624b4c586b70376e464f4570724e6a6d5459663446496a316a776d42696f45414d6a31616358626c706a3569687976516f64386c4f6c35526348 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc13: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity - different encryption alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 73556e516b704b34454e6f7a37503237 integ-alg sha1-96 integ-key 347a4a79354e724a705a7071314e58556e726771 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 73556e516b704b34454e6f7a37503237 integ-alg sha1-96 integ-key 347a4a79354e724a705a7071314e58556e726771 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc14: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity - different integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 57564a78666771386d61324a33664439 integ-alg sha1-96 integ-key 346751733446673732467a37624c4164746d4a48 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 57564a78666771386d61324a33664439 integ-alg sha1-96 integ-key 346751733446673732467a37624c4164746d4a48 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc15: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity - different encryption and integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 7357724e68664e46384b7a765063516b integ-alg sha1-96 integ-key 344c446f4a696f4a7878787759664a58336b3258 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 7357724e68664e46384b7a765063516b integ-alg sha1-96 integ-key 344c446f4a696f4a7878787759664a58336b3258 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec show trace

DUT2:
exec show trace
tc16: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 59614b6d4737367a747156526e4b6478 integ-alg sha1-96 integ-key 724761526f4a54544376523251336a6f55464450 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 59614b6d4737367a747156526e4b6478 integ-alg sha1-96 integ-key 724761526f4a54544376523251336a6f55464450 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec set ipsec sa 10 crypto-key 6c4c4d684e42624c576d506f356f644c integ-key 524b794567464533694d655577435367346f7539
exec set ipsec sa 20 crypto-key 6c4c4d684e42624c576d506f356f644c integ-key 524b794567464533694d655577435367346f7539
exec show trace

DUT2:
exec show trace
tc17: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys - different encryption alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 306c656270415378677045314b704c79 integ-alg sha1-96 integ-key 59777849726c4c4831436a6648566b6c784e4f6e tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 306c656270415378677045314b704c79 integ-alg sha1-96 integ-key 59777849726c4c4831436a6648566b6c784e4f6e tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec set ipsec sa 10 crypto-key 45306f617a3242534e37306c457a5041 integ-key 7242567a76414e394232726d47596e4261504f4a
exec set ipsec sa 20 crypto-key 45306f617a3242534e37306c457a5041 integ-key 7242567a76414e394232726d47596e4261504f4a
exec show trace

DUT2:
exec show trace
tc18: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys - different integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 5a6d43433247745667705878304f4d73 integ-alg sha1-96 integ-key 6445746d6a7264637041783562715757645a3559 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 5a6d43433247745667705878304f4d73 integ-alg sha1-96 integ-key 6445746d6a7264637041783562715757645a3559 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec set ipsec sa 10 crypto-key 686e7a7837574f62456e385a30636e78 integ-key 4e734b4b643751484c35756771654a366764537a
exec set ipsec sa 20 crypto-key 686e7a7837574f62456e385a30636e78 integ-key 4e734b4b643751484c35756771654a366764537a
exec show trace

DUT2:
exec show trace
tc19: vpp process esp packet in tunnel mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys - different encryption and integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 3630354e666f4446796a6175624b474a integ-alg sha1-96 integ-key 555349326a38687577546b665869566579743864 tunnel-src 192.168.100.3 tunnel-dst 192.168.100.2
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 3630354e666f4446796a6175624b474a integ-alg sha1-96 integ-key 555349326a38687577546b665869566579743864 tunnel-src 192.168.100.2 tunnel-dst 192.168.100.3
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.4.4 - 192.168.4.4 remote-ip-range 192.168.3.3 - 192.168.3.3
exec set ipsec sa 10 crypto-key 6d38634632444e414867626147667a38 integ-key 4f495a515037524c666a746e6768565876347958
exec set ipsec sa 20 crypto-key 6d38634632444e414867626147667a38 integ-key 4f495a515037524c666a746e6768565876347958
exec show trace

DUT2:
exec show trace

eth2p-ethip4ipsectptsw-ip4base-func

IPv4 IPsec transport mode test suite.

  • [Top] Network topologies: TG-DUT1 2-node topology with one link between nodes.
  • [Cfg] DUT configuration: With enabled SW crytodev on DUT1 create loopback interface, configure loopback and physical interface IPv4 addresses, static ARP record, route and IPsec manual keyed connection in transport mode.
  • [Ver] TG verification: ESP packet is sent from TG to DUT1. ESP packet is received on TG from DUT1.
  • [Ref] Applicable standard specifications: RFC4303.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 3272625153693151536c4f5149434452 integ-alg sha1-96 integ-key 43636542366e7179377a79333476416f69356859
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 3272625153693151536c4f5149434452 integ-alg sha1-96 integ-key 43636542366e7179377a79333476416f69356859
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc02: vpp process esp packet in transport mode with aes-cbc-192 encryption and sha1-96 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 4a6d78614563363134716b59454246594868477438636f46 integ-alg sha1-96 integ-key 6d56524b686a45574d6658354431675933714957
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 4a6d78614563363134716b59454246594868477438636f46 integ-alg sha1-96 integ-key 6d56524b686a45574d6658354431675933714957
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc03: vpp process esp packet in transport mode with aes-cbc-256 encryption and sha1-96 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 384a7257374d32663765464f6868675172757a4861735752386b756b636b5475 integ-alg sha1-96 integ-key 64524e6f78437476326d697a4f6474514d6f6d38
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 384a7257374d32663765464f6868675172757a4861735752386b756b636b5475 integ-alg sha1-96 integ-key 64524e6f78437476326d697a4f6474514d6f6d38
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc04: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha-256-128 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 36524b4f6234447070437131674f7454 integ-alg sha-256-128 integ-key 7a6b76683143766a3579664a593748656a544469736353776e725a486f4a3568
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 36524b4f6234447070437131674f7454 integ-alg sha-256-128 integ-key 7a6b76683143766a3579664a593748656a544469736353776e725a486f4a3568
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc05: vpp process esp packet in transport mode with aes-cbc-192 encryption and sha-256-128 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 4a636742635a416b7a7777384c3366744d3071544748565a integ-alg sha-256-128 integ-key 435979767179764331655169465a455737374e313370793361786f7568703356
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 4a636742635a416b7a7777384c3366744d3071544748565a integ-alg sha-256-128 integ-key 435979767179764331655169465a455737374e313370793361786f7568703356
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc06: vpp process esp packet in transport mode with aes-cbc-256 encryption and sha-256-128 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 4e38756259585849793135424a6c4563325a796d4c4b4572654f79723745774b integ-alg sha-256-128 integ-key 6973316c75556f733044426b67567874366e4d317a33687a7478644371335341
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 4e38756259585849793135424a6c4563325a796d4c4b4572654f79723745774b integ-alg sha-256-128 integ-key 6973316c75556f733044426b67567874366e4d317a33687a7478644371335341
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc07: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha-384-192 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 364d38566f75346f76674b6e63566f66 integ-alg sha-384-192 integ-key 5464514e6d6e4561417665674279617636463367506f4e6f547872494733326249454d356b6a4b7570524b766f6f4e48
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 364d38566f75346f76674b6e63566f66 integ-alg sha-384-192 integ-key 5464514e6d6e4561417665674279617636463367506f4e6f547872494733326249454d356b6a4b7570524b766f6f4e48
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc08: vpp process esp packet in transport mode with aes-cbc-192 encryption and sha-384-192 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 44776266344465304d62396f504a6f5238726e52366e614c integ-alg sha-384-192 integ-key 6b4e4a41634e626c63686f4e746732533468756c733376325153324b4138685574476b6966614148334349595a45785a
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 44776266344465304d62396f504a6f5238726e52366e614c integ-alg sha-384-192 integ-key 6b4e4a41634e626c63686f4e746732533468756c733376325153324b4138685574476b6966614148334349595a45785a
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc09: vpp process esp packet in transport mode with aes-cbc-256 encryption and sha-384-192 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 616a6771774441796f354a734d57566978356a4455636678774e754b33435936 integ-alg sha-384-192 integ-key 4a6c4271534e584532637a7552394261685234544b485873506c4149556850315656335378794e62364b755061515963
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 616a6771774441796f354a734d57566978356a4455636678774e754b33435936 integ-alg sha-384-192 integ-key 4a6c4271534e584532637a7552394261685234544b485873506c4149556850315656335378794e62364b755061515963
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc10: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha-512-256 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 64736b6c595848777a7251785a4e7038 integ-alg sha-512-256 integ-key 74536d4d417242624b4f78424b79626a5448514e68613435313732495678304a72476a506c50525744497a37794749626e414a74765235504276746679303150
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 64736b6c595848777a7251785a4e7038 integ-alg sha-512-256 integ-key 74536d4d417242624b4f78424b79626a5448514e68613435313732495678304a72476a506c50525744497a37794749626e414a74765235504276746679303150
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc11: vpp process esp packet in transport mode with aes-cbc-192 encryption and sha-512-256 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-192 crypto-key 536c47546c6356774a303246556d4975705943733456727a integ-alg sha-512-256 integ-key 594c36324536436567303367647575716e3037446535333566596b4c744b734c6a5861686c78427a734a6a44476570744d46476e4e726b6a734d56464c687845
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-192 crypto-key 536c47546c6356774a303246556d4975705943733456727a integ-alg sha-512-256 integ-key 594c36324536436567303367647575716e3037446535333566596b4c744b734c6a5861686c78427a734a6a44476570744d46476e4e726b6a734d56464c687845
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc12: vpp process esp packet in transport mode with aes-cbc-256 encryption and sha-512-256 integrity
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-256 crypto-key 7934554778693855386b4445364166577a79366b546677597350644e78444d65 integ-alg sha-512-256 integ-key 42783976694e79783732456f634c627a6b336a584f424845386131634535784a64305254474d5871515a427133426a71444e6d534a6c4866514e7649716f324b
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-256 crypto-key 7934554778693855386b4445364166577a79366b546677597350644e78444d65 integ-alg sha-512-256 integ-key 42783976694e79783732456f634c627a6b336a584f424845386131634535784a64305254474d5871515a427133426a71444e6d534a6c4866514e7649716f324b
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc13: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity - different encryption alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 4c443374576d3275436e345830706e6b integ-alg sha1-96 integ-key 73777452746b414948755a707871796a45685955
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 4c443374576d3275436e345830706e6b integ-alg sha1-96 integ-key 73777452746b414948755a707871796a45685955
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc14: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity - different integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 4962446c6c54354a51444d496f616664 integ-alg sha1-96 integ-key 67424f334f7a41637a7135434d6b565a4341436b
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 4962446c6c54354a51444d496f616664 integ-alg sha1-96 integ-key 67424f334f7a41637a7135434d6b565a4341436b
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc15: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity - different encryption and integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 36784832576230436c53624132776a4e integ-alg sha1-96 integ-key 685a59663751506a63484e7158336c33414e6572
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 36784832576230436c53624132776a4e integ-alg sha1-96 integ-key 685a59663751506a63484e7158336c33414e6572
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec show trace

DUT2:
exec show trace
tc16: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 55525653326236625450323757426730 integ-alg sha1-96 integ-key 3466697859746b63564a6f54504e6f5057614d51
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 55525653326236625450323757426730 integ-alg sha1-96 integ-key 3466697859746b63564a6f54504e6f5057614d51
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec set ipsec sa 10 crypto-key 6430734d3334735177486d735a507473 integ-key 766c7957796a6577416a714e7155784957553168
exec set ipsec sa 20 crypto-key 6430734d3334735177486d735a507473 integ-key 766c7957796a6577416a714e7155784957553168
exec show trace

DUT2:
exec show trace
tc17: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys - different encryption alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 396e78395271684b6436356d5457676f integ-alg sha1-96 integ-key 79744c5a4f4250746455596b774442423232707a
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 396e78395271684b6436356d5457676f integ-alg sha1-96 integ-key 79744c5a4f4250746455596b774442423232707a
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec set ipsec sa 10 crypto-key 7939776b6a6a714b664275414b653762 integ-key 6b4a597166676d5a6b7955674a6c674a77706d51
exec set ipsec sa 20 crypto-key 7939776b6a6a714b664275414b653762 integ-key 6b4a597166676d5a6b7955674a6c674a77706d51
exec show trace

DUT2:
exec show trace
tc18: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys - different integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 46786353467779764a617a336957615a integ-alg sha1-96 integ-key 3157463137773069326350736d493548754e634f
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 46786353467779764a617a336957615a integ-alg sha1-96 integ-key 3157463137773069326350736d493548754e634f
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec set ipsec sa 10 crypto-key 4e733255333736774562333754364d4b integ-key 7665586333784c64357148557871683967754a58
exec set ipsec sa 20 crypto-key 4e733255333736774562333754364d4b integ-key 7665586333784c64357148557871683967754a58
exec show trace

DUT2:
exec show trace
tc19: vpp process esp packet in transport mode with aes-cbc-128 encryption and sha1-96 integrity with update sa keys - different encryption and integrity alogrithms used
 DUT1:  
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.100.3/24
sw_interface_add_del_address sw_if_index 5 192.168.4.4/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 6d4737376f4f61343744485042484d39 integ-alg sha1-96 integ-key 7253654163654a735954636b526b434d4a316c4d
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 6d4737376f4f61343744485042484d39 integ-alg sha1-96 integ-key 7253654163654a735954636b526b434d4a316c4d
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 192.168.100.3 - 192.168.100.3 remote-ip-range 192.168.100.2 - 192.168.100.2
exec set ipsec sa 10 crypto-key 423039484758756b6c68444f46636472 integ-key 33654b716c5842636657437939515444546f4b79
exec set ipsec sa 20 crypto-key 423039484758756b6c68444f46636472 integ-key 33654b716c5842636657437939515444546f4b79
exec show trace

DUT2:
exec show trace

interfaces

api-crud-tap-func

Tap Interface CRUD Tests

  • [Top] Network Topologies: TG=DUT1 2-node topology with two links between nodes.
  • [Enc] Packet Encapsulations: No packet sent.
  • [Cfg] DUT configuration: Add/Modify/Delete linux-TAP on DUT1.
  • [Ver] Verification: Check dump of tap interfaces for correctness.
  • [Ref] Applicable standard specifications:
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: tap interface modify and delete
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
tap_create_v2 tapname tap0
exec show hardware detail
exec show hardware detail
tap_create_v2 tapname tap1
exec show hardware detail
exec show hardware detail
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_tap_v2_dump
tap_delete_v2 sw_if_index 5
sw_interface_tap_v2_dump
sw_interface_tap_v2_dump
tap_delete_v2 sw_if_index 6
sw_interface_tap_v2_dump
exec show trace

DUT2:
exec show trace

eth2p-eth-l2bdbasemaclrn-eth-2tap-func

Tap Interface Traffic Tests

  • [Top] Network Topologies: TG=DUT1 2-node topology with two links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 for L2 switching of IPv4.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with L2 bridge-domain (L2BD) MAC learning enabled; Split Horizon Groups (SHG) are set depending on test case; Namespaces (NM) are set on DUT1 with attached linux-TAP.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent by TG on link to DUT1; On receipt TG verifies packets for correctness and their IPv4 src-addr, dst-addr, and MAC addresses.
  • [Ref] Applicable standard specifications:
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: tap interface simple bd
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
tap_create_v2 tapname tap0
exec show hardware detail
exec show hardware detail
tap_create_v2 tapname tap1
exec show hardware detail
exec show hardware detail
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
bridge_domain_add_del(bd_id=19,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
bridge_domain_add_del(bd_id=20,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=20)
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=2,enable=1,shg=0,port_type=0,bd_id=20)
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=0,port_type=0,bd_id=19)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=19)
exec show trace

DUT2:
exec show trace

eth2p-eth-l2bdbasemaclrn-l2shg-eth-2tap-func

Tap Interface Traffic Tests

  • [Top] Network Topologies: TG=DUT1 2-node topology with two links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 for L2 switching of IPv4.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with L2 bridge-domain (L2BD) MAC learning enabled; Split Horizon Groups (SHG) are set depending on test case; Namespaces (NM) are set on DUT1 with attached linux-TAP.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent by TG on link to DUT1; On receipt TG verifies packets for correctness and their IPv4 src-addr, dst-addr, and MAC addresses.
  • [Ref] Applicable standard specifications:
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: tap interface bd - different split horizon
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
tap_create_v2 tapname tap0
exec show hardware detail
exec show hardware detail
tap_create_v2 tapname tap1
exec show hardware detail
exec show hardware detail
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
bridge_domain_add_del(bd_id=21,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=2,enable=1,shg=0,port_type=0,bd_id=21)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=2,port_type=0,bd_id=21)
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=3,port_type=0,bd_id=21)
exec show trace

DUT2:
exec show trace
tc02: tap interface bd - same split horizon
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
tap_create_v2 tapname tap0
exec show hardware detail
exec show hardware detail
tap_create_v2 tapname tap1
exec show hardware detail
exec show hardware detail
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
bridge_domain_add_del(bd_id=21,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=2,enable=1,shg=0,port_type=0,bd_id=21)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=2,port_type=0,bd_id=21)
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=2,port_type=0,bd_id=21)
exec show trace

DUT2:
exec show trace

eth2p-ethip4-ip4base-eth-1tap-func

Tap Interface Traffic Tests

  • [Top] Network Topologies: TG=DUT1 2-node topology with two links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 for L2 switching of IPv4.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with L2 bridge-domain (L2BD) MAC learning enabled; Split Horizon Groups (SHG) are set depending on test case; Namespaces (NM) are set on DUT1 with attached linux-TAP.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent by TG on link to DUT1; On receipt TG verifies packets for correctness and their IPv4 src-addr, dst-addr, and MAC addresses.
  • [Ref] Applicable standard specifications:
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: tap interface ip ping without namespace
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
tap_create_v2 tapname tap0
exec show hardware detail
exec show hardware detail
sw_interface_add_del_address sw_if_index 5 16.0.10.1/24
sw_interface_add_del_address sw_if_index 2 192.168.0.1/24
sw_interface_set_flags sw_if_index 5 admin-up link-up
ip_neighbor_add_del sw_if_index 2 dst 192.168.0.2 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 5 dst 16.0.10.2 mac 02:00:00:00:00:02
exec show trace

DUT2:
exec show trace
tc02: tap interface ip ping with namespace
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
tap_create_v2 tapname tap0
exec show hardware detail
exec show hardware detail
sw_interface_add_del_address sw_if_index 5 16.0.10.1/24
sw_interface_add_del_address sw_if_index 2 192.168.0.1/24
sw_interface_set_flags sw_if_index 5 admin-up link-up
ip_neighbor_add_del sw_if_index 2 dst 192.168.0.2 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 5 dst 16.0.10.2 mac 02:00:00:00:00:02
exec show trace

DUT2:
exec show trace

ip4

eth2p-dot1q-ip4base-func

IPv4 with VLAN subinterfaces

  • [Top] Network Topologies: TG-DUT1-TG 2-node circular topology with double links between nodes.
  • [Enc] Packet encapsulations: Eth-IPv4-ICMPv4 on TG-DUT1-IF1, Eth-dot1q-IPv4-ICMPv4 on TG-DUT1-IF2.
  • [Cfg] DUT configuration: DUT1 is configured with 2 Vlan subinterfaces on DUT1-IF2. The subinterfaces and DUT1-IF1 have IP addresses set and corresponding IP neighbor entries are configured.
  • [Ref] Applicable standard specifications: IEEE 802.1q.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: process untagged send tagged
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 10
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 5 vlan 20
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_add_del_address sw_if_index 2 192.168.0.1/24
sw_interface_add_del_address sw_if_index 5 192.168.100.1/24
sw_interface_add_del_address sw_if_index 6 192.168.200.1/24
ip_neighbor_add_del sw_if_index 2 dst 192.168.0.2 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 5 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 6 dst 192.168.200.2 mac fa:16:3e:2c:99:60
exec show trace

DUT2:
exec show trace
tc02: process tagged send untagged
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 10
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 5 vlan 20
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_add_del_address sw_if_index 2 192.168.0.1/24
sw_interface_add_del_address sw_if_index 5 192.168.100.1/24
sw_interface_add_del_address sw_if_index 6 192.168.200.1/24
ip_neighbor_add_del sw_if_index 2 dst 192.168.0.2 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 5 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 6 dst 192.168.200.2 mac fa:16:3e:2c:99:60
exec show trace

DUT2:
exec show trace
tc03: process tagged send tagged
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 10
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 5 vlan 20
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_add_del_address sw_if_index 2 192.168.0.1/24
sw_interface_add_del_address sw_if_index 5 192.168.100.1/24
sw_interface_add_del_address sw_if_index 6 192.168.200.1/24
ip_neighbor_add_del sw_if_index 2 dst 192.168.0.2 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 5 dst 192.168.100.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 6 dst 192.168.200.2 mac fa:16:3e:2c:99:60
exec show trace

DUT2:
exec show trace

eth2p-ethip4-ip4base-copblklistbase-func

COP Security IPv4 Blacklist Tests

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 on all links.
  • [Cfg] DUT configuration: DUT1 is configured with IPv4 routing and static routes. COP security black-lists are applied on DUT1 ingress interface from TG. DUT2 is configured with L2XC.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent in one direction by TG on link to DUT1; on receive TG verifies packets for correctness and drops as applicable.
  • [Ref] Applicable standard specifications:
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut drops ipv4 pkts with cop blacklist set with ipv4 src-addr
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
sw_interface_add_del_address sw_if_index 3 192.168.2.1/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 192.168.2.2 mac fa:16:3e:4f:5b:43
ip_add_del_route 32.0.0.1/24 via 192.168.2.2 sw_if_index 3 resolve-attempts 10 count 1
ip_table_add_del table 1
cop_whitelist_enable_disable sw_if_index 1 ip4 fib-id 1
cop_interface_enable_disable sw_if_index 1
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
exec show trace

eth2p-ethip4-ip4base-copwhlistbase-func

COP Security IPv4 Whitelist Tests

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 on all links.
  • [Cfg] DUT configuration: DUT1 is configured with IPv4 routing and static routes. COP security white-lists are applied on DUT1 ingress interface from TG. DUT2 is configured with L2XC.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent in one direction by TG on link to DUT1; on receive TG verifies packets for correctness and drops as applicable.
  • [Ref] Applicable standard specifications:
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut permits ipv4 pkts with cop whitelist set with ipv4 src-addr
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
sw_interface_add_del_address sw_if_index 3 192.168.2.1/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 192.168.2.2 mac fa:16:3e:4f:5b:43
ip_add_del_route 32.0.0.1/24 via 192.168.2.2 sw_if_index 3 resolve-attempts 10 count 1
ip_table_add_del table 1
ip_add_del_route 16.0.0.0/24 vrf 1 resolve-attempts 10 count 1 local
cop_whitelist_enable_disable sw_if_index 1 ip4 fib-id 1
cop_interface_enable_disable sw_if_index 1
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
exec show trace

eth2p-ethip4-ip4base-func

IPv4 routing test cases RFC791 IPv4, RFC826 ARP, RFC792 ICMPv4. Encapsulations: Eth-IPv4-ICMPv4 on links TG-DUT1, TG-DUT2, DUT1-DUT2. IPv4 routing tests use circular 3-node topology TG - DUT1 - DUT2 - TG with one link between the nodes. DUT1 and DUT2 are configured with IPv4 routing and static routes. Test ICMPv4 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2 and received on TG links on the other side of circular topology. On receive TG verifies packets IPv4 src-addr, dst-addr and MAC addresses.

Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut replies to icmpv4 echo req to its ingress interface
 DUT1:  
cli_inband(cmd=clear interfaces)
exec show trace

DUT2:
cli_inband(cmd=clear interfaces)
exec show trace
tc02: dut routes ipv4 to its egress interface
 DUT1:  
cli_inband(cmd=clear interfaces)
exec show trace

DUT2:
cli_inband(cmd=clear interfaces)
exec show trace
tc03: dut1 routes ipv4 to dut2 ingress interface
 DUT1:  
cli_inband(cmd=clear interfaces)
exec show trace

DUT2:
cli_inband(cmd=clear interfaces)
exec show trace
tc04: dut1 routes ipv4 to dut2 egress interface
 DUT1:  
cli_inband(cmd=clear interfaces)
exec show trace

DUT2:
cli_inband(cmd=clear interfaces)
exec show trace
tc05: dut1 and dut2 route ipv4 between tg interfaces
 DUT1:  
cli_inband(cmd=clear interfaces)
exec show trace

DUT2:
cli_inband(cmd=clear interfaces)
exec show trace
tc06: dut replies to icmpv4 echo reqs with size 64b-to-1500b-incr-1b
 DUT1:  
cli_inband(cmd=clear interfaces)
exec show trace

DUT2:
cli_inband(cmd=clear interfaces)
exec show trace
tc08: dut replies to arp request
 DUT1:  
cli_inband(cmd=clear interfaces)
exec show trace

DUT2:
cli_inband(cmd=clear interfaces)
exec show trace

eth2p-ethip4-ip4base-iaclbase-func

IPv4 routing with ingress ACL test cases Encapsulations: Eth-IPv4 on links TG-DUT1, TG-DUT2, DUT1-DUT2. IPv4 ingress ACL (iACL) tests use 3-node topology TG - DUT1 - DUT2 - TG with one link between the nodes. DUT1 and DUT2 are configured with IPv4 routing and static routes. DUT1 is configured with iACL on link to TG, iACL classification and permit/deny action are configured on a per test case basis. Test ICMPv4 Echo Request packets are sent in one direction by TG on link to DUT1 and received on TG link to DUT2. On receive TG verifies if packets are dropped, or if received verifies packet IPv4 src-addr, dst-addr and MAC addresses.

Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut with iacl ipv4 src-addr drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
sw_interface_add_del_address sw_if_index 3 192.168.2.1/24
ip_neighbor_add_del sw_if_index 3 dst 192.168.2.2 mac fa:16:3e:4f:5b:43
ip_add_del_route 32.0.0.1/24 via 192.168.2.2 sw_if_index 3 resolve-attempts 10 count 1
classify_add_del_table mask l3 ip4 src
classify_add_del_session acl-hit-next deny table-index 0 skip_n 1 match_n 1 match l3 ip4 src 16.0.0.1
input_acl_set_interface sw_if_index 1 ip4-table 0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
exec show trace
tc02: dut with iacl ipv4 dst-addr drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
sw_interface_add_del_address sw_if_index 3 192.168.2.1/24
ip_neighbor_add_del sw_if_index 3 dst 192.168.2.2 mac fa:16:3e:4f:5b:43
ip_add_del_route 32.0.0.1/24 via 192.168.2.2 sw_if_index 3 resolve-attempts 10 count 1
ip_add_del_route 33.0.0.1/24 via 192.168.2.2 sw_if_index 3 resolve-attempts 10 count 1
classify_add_del_table mask l3 ip4 dst
classify_add_del_session acl-hit-next deny table-index 0 skip_n 1 match_n 2 match l3 ip4 dst 32.0.0.1
input_acl_set_interface sw_if_index 1 ip4-table 0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
exec show trace
tc03: dut with iacl ipv4 src-addr and dst-addr drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
sw_interface_add_del_address sw_if_index 3 192.168.2.1/24
ip_neighbor_add_del sw_if_index 3 dst 192.168.2.2 mac fa:16:3e:4f:5b:43
ip_add_del_route 32.0.0.1/24 via 192.168.2.2 sw_if_index 3 resolve-attempts 10 count 1
ip_add_del_route 33.0.0.1/24 via 192.168.2.2 sw_if_index 3 resolve-attempts 10 count 1
classify_add_del_table mask l3 ip4 src
classify_add_del_table mask l3 ip4 dst
classify_add_del_session acl-hit-next deny table-index 0 skip_n 1 match_n 1 match l3 ip4 src 16.0.0.1
classify_add_del_session acl-hit-next deny table-index 1 skip_n 1 match_n 2 match l3 ip4 dst 32.0.0.1
input_acl_set_interface sw_if_index 1 ip4-table 0
input_acl_set_interface sw_if_index 1 ip4-table 1
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
exec show trace
tc04: dut with iacl ipv4 protocol set to tcp drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
sw_interface_add_del_address sw_if_index 3 192.168.2.1/24
ip_neighbor_add_del sw_if_index 3 dst 192.168.2.2 mac fa:16:3e:4f:5b:43
ip_add_del_route 32.0.0.1/24 via 192.168.2.2 sw_if_index 3 resolve-attempts 10 count 1
classify_add_del_table mask hex 0000000000000000000000000000000000000000000000FF
classify_add_del_session acl-hit-next deny table-index 0 skip_n 1 match_n 1 match hex 000000000000000000000000000000000000000000000006
input_acl_set_interface sw_if_index 1 ip4-table 0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
exec show trace
tc05: dut with iacl ipv4 protocol set to udp drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
sw_interface_add_del_address sw_if_index 3 192.168.2.1/24
ip_neighbor_add_del sw_if_index 3 dst 192.168.2.2 mac fa:16:3e:4f:5b:43
ip_add_del_route 32.0.0.1/24 via 192.168.2.2 sw_if_index 3 resolve-attempts 10 count 1
classify_add_del_table mask hex 0000000000000000000000000000000000000000000000FF
classify_add_del_session acl-hit-next deny table-index 0 skip_n 1 match_n 1 match hex 000000000000000000000000000000000000000000000011
input_acl_set_interface sw_if_index 1 ip4-table 0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
exec show trace
tc06: dut with iacl ipv4 tcp src-ports drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
sw_interface_add_del_address sw_if_index 3 192.168.2.1/24
ip_neighbor_add_del sw_if_index 3 dst 192.168.2.2 mac fa:16:3e:4f:5b:43
ip_add_del_route 32.0.0.1/24 via 192.168.2.2 sw_if_index 3 resolve-attempts 10 count 1
classify_add_del_table mask hex 00000000000000000000000000000000000000000000000000000000000000000000FFFF0000
classify_add_del_session acl-hit-next deny table-index 0 skip_n 2 match_n 1 match hex 0000000000000000000000000000000000000000000000000000000000000000000000500000
input_acl_set_interface sw_if_index 1 ip4-table 0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
exec show trace
tc07: dut with iacl ipv4 tcp dst-ports drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
sw_interface_add_del_address sw_if_index 3 192.168.2.1/24
ip_neighbor_add_del sw_if_index 3 dst 192.168.2.2 mac fa:16:3e:4f:5b:43
ip_add_del_route 32.0.0.1/24 via 192.168.2.2 sw_if_index 3 resolve-attempts 10 count 1
classify_add_del_table mask hex 000000000000000000000000000000000000000000000000000000000000000000000000FFFF
classify_add_del_session acl-hit-next deny table-index 0 skip_n 2 match_n 1 match hex 0000000000000000000000000000000000000000000000000000000000000000000000000050
input_acl_set_interface sw_if_index 1 ip4-table 0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
exec show trace
tc08: dut with iacl ipv4 tcp src-ports and dst-ports drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
sw_interface_add_del_address sw_if_index 3 192.168.2.1/24
ip_neighbor_add_del sw_if_index 3 dst 192.168.2.2 mac fa:16:3e:4f:5b:43
ip_add_del_route 32.0.0.1/24 via 192.168.2.2 sw_if_index 3 resolve-attempts 10 count 1
classify_add_del_table mask hex 00000000000000000000000000000000000000000000000000000000000000000000FFFFFFFF
classify_add_del_session acl-hit-next deny table-index 0 skip_n 2 match_n 1 match hex 0000000000000000000000000000000000000000000000000000000000000000000000500014
input_acl_set_interface sw_if_index 1 ip4-table 0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
exec show trace
tc09: dut with iacl ipv4 udp src-ports drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
sw_interface_add_del_address sw_if_index 3 192.168.2.1/24
ip_neighbor_add_del sw_if_index 3 dst 192.168.2.2 mac fa:16:3e:4f:5b:43
ip_add_del_route 32.0.0.1/24 via 192.168.2.2 sw_if_index 3 resolve-attempts 10 count 1
classify_add_del_table mask hex 00000000000000000000000000000000000000000000000000000000000000000000FFFF0000
classify_add_del_session acl-hit-next deny table-index 0 skip_n 2 match_n 1 match hex 0000000000000000000000000000000000000000000000000000000000000000000000500000
input_acl_set_interface sw_if_index 1 ip4-table 0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
exec show trace
tc10: dut with iacl ipv4 udp dst-ports drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
sw_interface_add_del_address sw_if_index 3 192.168.2.1/24
ip_neighbor_add_del sw_if_index 3 dst 192.168.2.2 mac fa:16:3e:4f:5b:43
ip_add_del_route 32.0.0.1/24 via 192.168.2.2 sw_if_index 3 resolve-attempts 10 count 1
classify_add_del_table mask hex 000000000000000000000000000000000000000000000000000000000000000000000000FFFF
classify_add_del_session acl-hit-next deny table-index 0 skip_n 2 match_n 1 match hex 0000000000000000000000000000000000000000000000000000000000000000000000000050
input_acl_set_interface sw_if_index 1 ip4-table 0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
exec show trace
tc11: dut with iacl ipv4 udp src-ports and dst-ports drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
sw_interface_add_del_address sw_if_index 3 192.168.2.1/24
ip_neighbor_add_del sw_if_index 3 dst 192.168.2.2 mac fa:16:3e:4f:5b:43
ip_add_del_route 32.0.0.1/24 via 192.168.2.2 sw_if_index 3 resolve-attempts 10 count 1
classify_add_del_table mask hex 00000000000000000000000000000000000000000000000000000000000000000000FFFFFFFF
classify_add_del_session acl-hit-next deny table-index 0 skip_n 2 match_n 1 match hex 0000000000000000000000000000000000000000000000000000000000000000000000500014
input_acl_set_interface sw_if_index 1 ip4-table 0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
exec show trace

eth2p-ethip4-ip4base-ip4arp-func

IPv4 ARP test cases RFC826 ARP: Eth-IPv4 and Eth-ARP on links TG-DUT1, TG-DUT2, DUT1-DUT2: IPv4 ARP tests use 3-node topology TG - DUT1 - DUT2 - TG with one link between the nodes. DUT1 and DUT2 are configured with IPv4 routing and static routes. DUT ARP functionality is tested by making TG send ICMPv4 Echo Requests towards its other interface via DUT1 and DUT2.

Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut sends arp request for unresolved locally connected ipv4 address
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
sw_interface_add_del_address sw_if_index 3 192.168.2.1/24
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
exec show trace
tc02: dut sends arp request for route next hop ipv4 address
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
sw_interface_add_del_address sw_if_index 3 192.168.2.1/24
ip_add_del_route 32.0.0.1/24 via 192.168.2.2 sw_if_index 3 count 1
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
exec show trace

eth2p-ethip4-ip4base-ip4dhcpclient-func

DHCPv4 Client related test cases

Name VPP API Test Commands History - Commands Used Per Test Case
tc01: vpp sends a dhcp discover
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
dhcp_client_config sw_if_index 2
exec show trace

DUT2:
exec show trace
tc02: vpp sends a dhcpv4 discover with hostname
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
dhcp_client_config sw_if_index 2 hostname dhcp-client
exec show trace

DUT2:
exec show trace
tc03: vpp sends dhcpv4 request after offer
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
ip_add_del_route 255.255.255.255/32 local count 1
dhcp_client_config sw_if_index 2
exec show trace

DUT2:
exec show trace
tc04: vpp doesn’t send dhcpv4 request after offer with wrong xid
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
ip_add_del_route 255.255.255.255/32 local count 1
dhcp_client_config sw_if_index 2
exec show trace

DUT2:
exec show trace
tc05: vpp honors dhcpv4 lease time
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
ip_add_del_route 255.255.255.255/32 local count 1
dhcp_client_config sw_if_index 2
ip_neighbor_add_del sw_if_index 2 dst 192.168.23.1 mac fa:16:3e:d2:8b:9f
exec show trace

DUT2:
exec show trace

eth2p-ethip4-ip4base-ip4dhcpproxy-func

DHCPv4 proxy test cases

  • [Top] Network Topologies: TG = DUT with two links between the nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-UDP-BOOTP-DHCP
  • [Cfg] DUT configuration: DUT is configured with DHCPv4 proxy.
  • [Ver] TG verification: Test DHCPv4 packets are sent on TG on first link to DUT and received on TG on second link. On receive TG verifies if DHCPv4 packets are valid.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: vpp proxies valid dhcpv4 request to dhcpv4 server
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
ip_add_del_route 255.255.255.255/32 local count 1
sw_interface_add_del_address sw_if_index 2 172.16.0.1/24
sw_interface_add_del_address sw_if_index 1 192.168.0.1/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.0.100 mac fa:16:3e:2c:99:60
dhcp_proxy_config svr 192.168.0.100 src 172.16.0.1
exec show trace

DUT2:
exec show trace
tc02: vpp proxy ignores invalid dhcpv4 request
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
ip_add_del_route 255.255.255.255/32 local count 1
sw_interface_add_del_address sw_if_index 2 172.16.0.1/24
sw_interface_add_del_address sw_if_index 1 192.168.0.1/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.0.100 mac fa:16:3e:2c:99:60
dhcp_proxy_config svr 192.168.0.100 src 172.16.0.1
exec show trace

DUT2:
exec show trace

eth2p-ethip4-ip4base-ip4ecmp-func

Ipv4 Multipath routing test cases

  • [Top] Network topologies: TG=DUT 2-node topology with two links between nodes.
  • [Cfg] DUT configuration: On DUT configure interfaces IPv4 adresses, and multipath routing.
  • [Ver] TG verification: Test packets are sent from TG on the first link to DUT. Packet is received on TG on the second link from DUT1.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: ipv4 equal-cost multipath routing
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
sw_interface_add_del_address sw_if_index 2 192.168.2.1/24
ip_neighbor_add_del sw_if_index 2 dst 192.168.2.10 mac 02:00:00:00:00:02
ip_neighbor_add_del sw_if_index 2 dst 192.168.2.20 mac 02:00:00:00:00:03
ip_add_del_route 32.0.0.1/24 via 192.168.2.10 sw_if_index 2 count 1 multipath
ip_add_del_route 32.0.0.1/24 via 192.168.2.20 sw_if_index 2 count 1 multipath
exec show trace

DUT2:
exec show trace

eth2p-ethip4-ip4base-ip4proxyarp-func

RFC1027 Proxy ARP test cases

  • [Top] Network topologies: TG-DUT1 2-node topology with single link between nodes.
  • [Cfg] DUT configuration: DUT1 is configured with Proxy ARP
  • [Ver] TG verification: Test ARP Request packet is sent from TG on link to DUT1; on receive TG verifies ARP reply packet for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC1027.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut sends arp reply on behalf of another machine from the ip range
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 10.0.0.1/24
proxy_arp_add_del 192.168.1.2 - 192.168.1.10
sw_interface_dump
proxy_arp_intfc_enable_disable sw_if_index 1 enable
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
exec show trace
tc02: dut sends arp reply on behalf of another machine from beginning of the ip range
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 10.0.0.1/24
proxy_arp_add_del 192.168.1.2 - 192.168.1.10
sw_interface_dump
proxy_arp_intfc_enable_disable sw_if_index 1 enable
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
exec show trace
tc03: dut sends arp reply on behalf of another machine from end of the ip range
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 10.0.0.1/24
proxy_arp_add_del 192.168.1.2 - 192.168.1.10
sw_interface_dump
proxy_arp_intfc_enable_disable sw_if_index 1 enable
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
exec show trace
tc04: dut does not send arp reply on behalf of another machine from below of the ip range
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 10.0.0.1/24
proxy_arp_add_del 192.168.1.2 - 192.168.1.10
sw_interface_dump
proxy_arp_intfc_enable_disable sw_if_index 1 enable
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
exec show trace
tc05: dut does not send arp reply on behalf of another machine from above of the ip range
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 10.0.0.1/24
proxy_arp_add_del 192.168.1.2 - 192.168.1.10
sw_interface_dump
proxy_arp_intfc_enable_disable sw_if_index 1 enable
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
exec show trace

eth2p-ethip4-ip4base-ipolicemarkbase-func

IPv4 policer test cases

  • [Top] Network topologies: TG=DUT1 2-node topology with two links between nodes.
  • [Cfg] DUT configuration: On DUT1 configure interfaces IPv4 adresses, and static ARP record on the second interface.
  • [Ver] TG verification: Test packet is sent from TG on the first link to DUT1. Packet is received on TG on the second link from DUT1.
  • [Ref] Applicable standard specifications: RFC2474, RFC2697, RFC2698.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: vpp policer 2r3c color-aware marks packet
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 192.168.122.1/24
sw_interface_add_del_address sw_if_index 1 192.168.123.1/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.123.2 mac fa:16:3e:2c:99:60
policer_add_del name policer1 cir 100 eir 150 cb 200 eb 300 rate_type pps round_type closest type 2r3c-2698 conform_action transmit exceed_action mark-and-transmit AF22 violate_action drop color-aware
classify_add_del_table mask l3 ip4 src
classify_add_del_session policer-hit-next 0 exceed-color table-index 0 skip_n 1 match_n 1 match l3 ip4 src 192.168.122.2
policer_classify_set_interface sw_if_index 2 ip4-table 0
exec show trace

DUT2:
exec show trace
tc02: vpp policer 2r3c color-blind marks packet
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 192.168.122.1/24
sw_interface_add_del_address sw_if_index 1 192.168.123.1/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.123.2 mac fa:16:3e:2c:99:60
policer_add_del name policer1 cir 100 eir 150 cb 200 eb 300 rate_type pps round_type closest type 2r3c-2698 conform_action mark-and-transmit AF22 exceed_action transmit violate_action drop
classify_add_del_table mask l3 ip4 src
classify_add_del_session policer-hit-next 0 conform-color table-index 0 skip_n 1 match_n 1 match l3 ip4 src 192.168.122.2
policer_classify_set_interface sw_if_index 2 ip4-table 0
exec show trace

DUT2:
exec show trace
tc03: vpp policer 1r3c color-aware marks packet
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 192.168.122.1/24
sw_interface_add_del_address sw_if_index 1 192.168.123.1/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.123.2 mac fa:16:3e:2c:99:60
policer_add_del name policer1 cir 1 eir 0 cb 2 eb 300 rate_type pps round_type closest type 1r3c conform_action transmit exceed_action mark-and-transmit AF22 violate_action drop color-aware
classify_add_del_table mask l3 ip4 src
classify_add_del_session policer-hit-next 0 exceed-color table-index 0 skip_n 1 match_n 1 match l3 ip4 src 192.168.122.2
policer_classify_set_interface sw_if_index 2 ip4-table 0
exec show trace

DUT2:
exec show trace
tc04: vpp policer 1r3c color-blind marks packet
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 192.168.122.1/24
sw_interface_add_del_address sw_if_index 1 192.168.123.1/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.123.2 mac fa:16:3e:2c:99:60
policer_add_del name policer1 cir 100 eir 0 cb 200 eb 300 rate_type pps round_type closest type 1r3c conform_action mark-and-transmit AF22 exceed_action transmit violate_action drop
classify_add_del_table mask l3 ip4 src
classify_add_del_session policer-hit-next 0 conform-color table-index 0 skip_n 1 match_n 1 match l3 ip4 src 192.168.122.2
policer_classify_set_interface sw_if_index 2 ip4-table 0
exec show trace

DUT2:
exec show trace

eth2p-ethip4-ip4base-rpf-func

Source RPF check on IPv4 test cases

  • [Top] Network Topologies: TG - DUT1 - DUT2 - TG with one link between the nodes.
  • [Cfg] DUT configuration: DUT2 is configured with L2 Cross connect. DUT1 is configured with IP source check on link to TG,
  • [Ver] TG verification: Test ICMP Echo Request packets are sent in one direction by TG on link to DUT1 and received on TG link to DUT2. On receive TG verifies if packets which source address is not in routes are dropped.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: vpp source rpf check on ipv4 src-addr
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
sw_interface_add_del_address sw_if_index 3 192.168.2.1/24
ip_neighbor_add_del sw_if_index 3 dst 192.168.2.2 mac fa:16:3e:4f:5b:43
ip_add_del_route 32.0.0.1/24 via 192.168.2.2 sw_if_index 3 count 1
ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:2c:99:60
ip_add_del_route 16.0.0.1/24 via 192.168.1.2 sw_if_index 1 count 1
exec set interface ip source-check GigabitEthernet0/4/0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
exec show trace
tc02: vpp pass traffic on non-enabled rpf interface
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
sw_interface_add_del_address sw_if_index 3 192.168.2.1/24
ip_neighbor_add_del sw_if_index 3 dst 192.168.2.2 mac fa:16:3e:4f:5b:43
ip_add_del_route 32.0.0.1/24 via 192.168.2.2 sw_if_index 3 count 1
ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:2c:99:60
ip_add_del_route 16.0.0.1/24 via 192.168.1.2 sw_if_index 1 count 1
exec set interface ip source-check GigabitEthernet0/4/0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
exec show trace

eth2p-ethip4-ip4basevrf-func

Vpn routed forwarding - baseline IPv4

  • [Top] Network Topologies: TG=DUT1=DUT2=TG 3-node topology with two links in between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 for L2 switching of IPv4.
  • [Cfg] DUT configuration: Each DUT is configured with two VRF tables; Separation of traffic is tested by IP packets; Basic ARP and ROUTES are set on DUT nodes; IP addresses are set on DUT interfaces.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent by TG on link to DUT1, DUT2 or back to TG; On receipt TG verifies packets for correctness and their IPv4 src-addr, dst-addr, and MAC addresses.
  • [Ref] Applicable standard specifications:
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: tg packets routed to dut ingress interface, vpp configured with two vrfs
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9
ip_table_add_del table 99
ip_add_del_route 30.0.0.1/24 via 9 sw_if_index None resolve-attempts 10 count 1
ip_add_del_route 30.0.0.2/24 via 99 sw_if_index None resolve-attempts 10 count 1
sw_interface_set_table sw_if_index 4 vrf 9
sw_interface_set_table sw_if_index 3 vrf 99
sw_interface_set_table sw_if_index 2 vrf 9
sw_interface_set_table sw_if_index 1 vrf 99
sw_interface_add_del_address sw_if_index 2 10.0.0.3/24
sw_interface_add_del_address sw_if_index 1 10.0.0.4/24
sw_interface_add_del_address sw_if_index 4 20.0.0.1/24
sw_interface_add_del_address sw_if_index 3 20.0.0.2/24
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.1 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:8b:22:01
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:7d:01:09
ip_add_del_route 30.0.0.1/24 via 20.0.0.3 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 30.0.0.2/24 via 20.0.0.4 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9
ip_table_add_del table 99
ip_add_del_route 10.0.0.1/24 via 9 sw_if_index None resolve-attempts 10 count 1
ip_add_del_route 10.0.0.2/24 via 99 sw_if_index None resolve-attempts 10 count 1
sw_interface_set_table sw_if_index 4 vrf 9
sw_interface_set_table sw_if_index 3 vrf 99
sw_interface_set_table sw_if_index 2 vrf 9
sw_interface_set_table sw_if_index 1 vrf 99
sw_interface_add_del_address sw_if_index 2 30.0.0.3/24
sw_interface_add_del_address sw_if_index 1 30.0.0.4/24
sw_interface_add_del_address sw_if_index 4 20.0.0.3/24
sw_interface_add_del_address sw_if_index 3 20.0.0.4/24
ip_neighbor_add_del sw_if_index 2 dst 30.0.0.1 mac fa:16:3e:2d:85:3a
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:9e:4b:60
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:db:58:4f
ip_add_del_route 10.0.0.1/24 via 20.0.0.1 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 10.0.0.2/24 via 20.0.0.2 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
exec show trace
tc02: tg packets routed to dut egress interface, vpp configured with two vrfs
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9
ip_table_add_del table 99
ip_add_del_route 30.0.0.1/24 via 9 sw_if_index None resolve-attempts 10 count 1
ip_add_del_route 30.0.0.2/24 via 99 sw_if_index None resolve-attempts 10 count 1
sw_interface_set_table sw_if_index 4 vrf 9
sw_interface_set_table sw_if_index 3 vrf 99
sw_interface_set_table sw_if_index 2 vrf 9
sw_interface_set_table sw_if_index 1 vrf 99
sw_interface_add_del_address sw_if_index 2 10.0.0.3/24
sw_interface_add_del_address sw_if_index 1 10.0.0.4/24
sw_interface_add_del_address sw_if_index 4 20.0.0.1/24
sw_interface_add_del_address sw_if_index 3 20.0.0.2/24
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.1 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:8b:22:01
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:7d:01:09
ip_add_del_route 30.0.0.1/24 via 20.0.0.3 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 30.0.0.2/24 via 20.0.0.4 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9
ip_table_add_del table 99
ip_add_del_route 10.0.0.1/24 via 9 sw_if_index None resolve-attempts 10 count 1
ip_add_del_route 10.0.0.2/24 via 99 sw_if_index None resolve-attempts 10 count 1
sw_interface_set_table sw_if_index 4 vrf 9
sw_interface_set_table sw_if_index 3 vrf 99
sw_interface_set_table sw_if_index 2 vrf 9
sw_interface_set_table sw_if_index 1 vrf 99
sw_interface_add_del_address sw_if_index 2 30.0.0.3/24
sw_interface_add_del_address sw_if_index 1 30.0.0.4/24
sw_interface_add_del_address sw_if_index 4 20.0.0.3/24
sw_interface_add_del_address sw_if_index 3 20.0.0.4/24
ip_neighbor_add_del sw_if_index 2 dst 30.0.0.1 mac fa:16:3e:2d:85:3a
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:9e:4b:60
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:db:58:4f
ip_add_del_route 10.0.0.1/24 via 20.0.0.1 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 10.0.0.2/24 via 20.0.0.2 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
exec show trace
tc03: tg packets routed to dut2 ingress interface through dut1, vpp configured with two vrfs
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9
ip_table_add_del table 99
ip_add_del_route 30.0.0.1/24 via 9 sw_if_index None resolve-attempts 10 count 1
ip_add_del_route 30.0.0.2/24 via 99 sw_if_index None resolve-attempts 10 count 1
sw_interface_set_table sw_if_index 4 vrf 9
sw_interface_set_table sw_if_index 3 vrf 99
sw_interface_set_table sw_if_index 2 vrf 9
sw_interface_set_table sw_if_index 1 vrf 99
sw_interface_add_del_address sw_if_index 2 10.0.0.3/24
sw_interface_add_del_address sw_if_index 1 10.0.0.4/24
sw_interface_add_del_address sw_if_index 4 20.0.0.1/24
sw_interface_add_del_address sw_if_index 3 20.0.0.2/24
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.1 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:8b:22:01
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:7d:01:09
ip_add_del_route 30.0.0.1/24 via 20.0.0.3 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 30.0.0.2/24 via 20.0.0.4 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9
ip_table_add_del table 99
ip_add_del_route 10.0.0.1/24 via 9 sw_if_index None resolve-attempts 10 count 1
ip_add_del_route 10.0.0.2/24 via 99 sw_if_index None resolve-attempts 10 count 1
sw_interface_set_table sw_if_index 4 vrf 9
sw_interface_set_table sw_if_index 3 vrf 99
sw_interface_set_table sw_if_index 2 vrf 9
sw_interface_set_table sw_if_index 1 vrf 99
sw_interface_add_del_address sw_if_index 2 30.0.0.3/24
sw_interface_add_del_address sw_if_index 1 30.0.0.4/24
sw_interface_add_del_address sw_if_index 4 20.0.0.3/24
sw_interface_add_del_address sw_if_index 3 20.0.0.4/24
ip_neighbor_add_del sw_if_index 2 dst 30.0.0.1 mac fa:16:3e:2d:85:3a
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:9e:4b:60
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:db:58:4f
ip_add_del_route 10.0.0.1/24 via 20.0.0.1 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 10.0.0.2/24 via 20.0.0.2 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
exec show trace
tc04: tg packets routed to dut2 egress interface through dut1, vpp configured with two vrfs
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9
ip_table_add_del table 99
ip_add_del_route 30.0.0.1/24 via 9 sw_if_index None resolve-attempts 10 count 1
ip_add_del_route 30.0.0.2/24 via 99 sw_if_index None resolve-attempts 10 count 1
sw_interface_set_table sw_if_index 4 vrf 9
sw_interface_set_table sw_if_index 3 vrf 99
sw_interface_set_table sw_if_index 2 vrf 9
sw_interface_set_table sw_if_index 1 vrf 99
sw_interface_add_del_address sw_if_index 2 10.0.0.3/24
sw_interface_add_del_address sw_if_index 1 10.0.0.4/24
sw_interface_add_del_address sw_if_index 4 20.0.0.1/24
sw_interface_add_del_address sw_if_index 3 20.0.0.2/24
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.1 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:8b:22:01
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:7d:01:09
ip_add_del_route 30.0.0.1/24 via 20.0.0.3 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 30.0.0.2/24 via 20.0.0.4 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9
ip_table_add_del table 99
ip_add_del_route 10.0.0.1/24 via 9 sw_if_index None resolve-attempts 10 count 1
ip_add_del_route 10.0.0.2/24 via 99 sw_if_index None resolve-attempts 10 count 1
sw_interface_set_table sw_if_index 4 vrf 9
sw_interface_set_table sw_if_index 3 vrf 99
sw_interface_set_table sw_if_index 2 vrf 9
sw_interface_set_table sw_if_index 1 vrf 99
sw_interface_add_del_address sw_if_index 2 30.0.0.3/24
sw_interface_add_del_address sw_if_index 1 30.0.0.4/24
sw_interface_add_del_address sw_if_index 4 20.0.0.3/24
sw_interface_add_del_address sw_if_index 3 20.0.0.4/24
ip_neighbor_add_del sw_if_index 2 dst 30.0.0.1 mac fa:16:3e:2d:85:3a
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:9e:4b:60
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:db:58:4f
ip_add_del_route 10.0.0.1/24 via 20.0.0.1 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 10.0.0.2/24 via 20.0.0.2 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
exec show trace
tc05: tg packets routed to tg through dut1 and dut2, vpp configured with two vrfs
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9
ip_table_add_del table 99
ip_add_del_route 30.0.0.1/24 via 9 sw_if_index None resolve-attempts 10 count 1
ip_add_del_route 30.0.0.2/24 via 99 sw_if_index None resolve-attempts 10 count 1
sw_interface_set_table sw_if_index 4 vrf 9
sw_interface_set_table sw_if_index 3 vrf 99
sw_interface_set_table sw_if_index 2 vrf 9
sw_interface_set_table sw_if_index 1 vrf 99
sw_interface_add_del_address sw_if_index 2 10.0.0.3/24
sw_interface_add_del_address sw_if_index 1 10.0.0.4/24
sw_interface_add_del_address sw_if_index 4 20.0.0.1/24
sw_interface_add_del_address sw_if_index 3 20.0.0.2/24
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.1 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:8b:22:01
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:7d:01:09
ip_add_del_route 30.0.0.1/24 via 20.0.0.3 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 30.0.0.2/24 via 20.0.0.4 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9
ip_table_add_del table 99
ip_add_del_route 10.0.0.1/24 via 9 sw_if_index None resolve-attempts 10 count 1
ip_add_del_route 10.0.0.2/24 via 99 sw_if_index None resolve-attempts 10 count 1
sw_interface_set_table sw_if_index 4 vrf 9
sw_interface_set_table sw_if_index 3 vrf 99
sw_interface_set_table sw_if_index 2 vrf 9
sw_interface_set_table sw_if_index 1 vrf 99
sw_interface_add_del_address sw_if_index 2 30.0.0.3/24
sw_interface_add_del_address sw_if_index 1 30.0.0.4/24
sw_interface_add_del_address sw_if_index 4 20.0.0.3/24
sw_interface_add_del_address sw_if_index 3 20.0.0.4/24
ip_neighbor_add_del sw_if_index 2 dst 30.0.0.1 mac fa:16:3e:2d:85:3a
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:9e:4b:60
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:db:58:4f
ip_add_del_route 10.0.0.1/24 via 20.0.0.1 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 10.0.0.2/24 via 20.0.0.2 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
exec show trace
tc06: tg packets not routed to dut ingress interface in different vrf, vpp configured with two vrfs
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9
ip_table_add_del table 99
ip_add_del_route 30.0.0.1/24 via 9 sw_if_index None resolve-attempts 10 count 1
ip_add_del_route 30.0.0.2/24 via 99 sw_if_index None resolve-attempts 10 count 1
sw_interface_set_table sw_if_index 4 vrf 9
sw_interface_set_table sw_if_index 3 vrf 99
sw_interface_set_table sw_if_index 2 vrf 9
sw_interface_set_table sw_if_index 1 vrf 99
sw_interface_add_del_address sw_if_index 2 10.0.0.3/24
sw_interface_add_del_address sw_if_index 1 10.0.0.4/24
sw_interface_add_del_address sw_if_index 4 20.0.0.1/24
sw_interface_add_del_address sw_if_index 3 20.0.0.2/24
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.1 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:8b:22:01
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:7d:01:09
ip_add_del_route 30.0.0.1/24 via 20.0.0.3 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 30.0.0.2/24 via 20.0.0.4 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9
ip_table_add_del table 99
ip_add_del_route 10.0.0.1/24 via 9 sw_if_index None resolve-attempts 10 count 1
ip_add_del_route 10.0.0.2/24 via 99 sw_if_index None resolve-attempts 10 count 1
sw_interface_set_table sw_if_index 4 vrf 9
sw_interface_set_table sw_if_index 3 vrf 99
sw_interface_set_table sw_if_index 2 vrf 9
sw_interface_set_table sw_if_index 1 vrf 99
sw_interface_add_del_address sw_if_index 2 30.0.0.3/24
sw_interface_add_del_address sw_if_index 1 30.0.0.4/24
sw_interface_add_del_address sw_if_index 4 20.0.0.3/24
sw_interface_add_del_address sw_if_index 3 20.0.0.4/24
ip_neighbor_add_del sw_if_index 2 dst 30.0.0.1 mac fa:16:3e:2d:85:3a
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:9e:4b:60
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:db:58:4f
ip_add_del_route 10.0.0.1/24 via 20.0.0.1 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 10.0.0.2/24 via 20.0.0.2 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
exec show trace
tc07: tg packets not routed to dut egress interface in different vrf, vpp configured with two vrfs
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9
ip_table_add_del table 99
ip_add_del_route 30.0.0.1/24 via 9 sw_if_index None resolve-attempts 10 count 1
ip_add_del_route 30.0.0.2/24 via 99 sw_if_index None resolve-attempts 10 count 1
sw_interface_set_table sw_if_index 4 vrf 9
sw_interface_set_table sw_if_index 3 vrf 99
sw_interface_set_table sw_if_index 2 vrf 9
sw_interface_set_table sw_if_index 1 vrf 99
sw_interface_add_del_address sw_if_index 2 10.0.0.3/24
sw_interface_add_del_address sw_if_index 1 10.0.0.4/24
sw_interface_add_del_address sw_if_index 4 20.0.0.1/24
sw_interface_add_del_address sw_if_index 3 20.0.0.2/24
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.1 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:8b:22:01
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:7d:01:09
ip_add_del_route 30.0.0.1/24 via 20.0.0.3 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 30.0.0.2/24 via 20.0.0.4 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9
ip_table_add_del table 99
ip_add_del_route 10.0.0.1/24 via 9 sw_if_index None resolve-attempts 10 count 1
ip_add_del_route 10.0.0.2/24 via 99 sw_if_index None resolve-attempts 10 count 1
sw_interface_set_table sw_if_index 4 vrf 9
sw_interface_set_table sw_if_index 3 vrf 99
sw_interface_set_table sw_if_index 2 vrf 9
sw_interface_set_table sw_if_index 1 vrf 99
sw_interface_add_del_address sw_if_index 2 30.0.0.3/24
sw_interface_add_del_address sw_if_index 1 30.0.0.4/24
sw_interface_add_del_address sw_if_index 4 20.0.0.3/24
sw_interface_add_del_address sw_if_index 3 20.0.0.4/24
ip_neighbor_add_del sw_if_index 2 dst 30.0.0.1 mac fa:16:3e:2d:85:3a
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:9e:4b:60
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:db:58:4f
ip_add_del_route 10.0.0.1/24 via 20.0.0.1 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 10.0.0.2/24 via 20.0.0.2 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
exec show trace
tc08: tg packets not routed to dut2 ingress interface in different vrf through dut1, vpp configured with two vrfs
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9
ip_table_add_del table 99
ip_add_del_route 30.0.0.1/24 via 9 sw_if_index None resolve-attempts 10 count 1
ip_add_del_route 30.0.0.2/24 via 99 sw_if_index None resolve-attempts 10 count 1
sw_interface_set_table sw_if_index 4 vrf 9
sw_interface_set_table sw_if_index 3 vrf 99
sw_interface_set_table sw_if_index 2 vrf 9
sw_interface_set_table sw_if_index 1 vrf 99
sw_interface_add_del_address sw_if_index 2 10.0.0.3/24
sw_interface_add_del_address sw_if_index 1 10.0.0.4/24
sw_interface_add_del_address sw_if_index 4 20.0.0.1/24
sw_interface_add_del_address sw_if_index 3 20.0.0.2/24
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.1 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:8b:22:01
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:7d:01:09
ip_add_del_route 30.0.0.1/24 via 20.0.0.3 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 30.0.0.2/24 via 20.0.0.4 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9
ip_table_add_del table 99
ip_add_del_route 10.0.0.1/24 via 9 sw_if_index None resolve-attempts 10 count 1
ip_add_del_route 10.0.0.2/24 via 99 sw_if_index None resolve-attempts 10 count 1
sw_interface_set_table sw_if_index 4 vrf 9
sw_interface_set_table sw_if_index 3 vrf 99
sw_interface_set_table sw_if_index 2 vrf 9
sw_interface_set_table sw_if_index 1 vrf 99
sw_interface_add_del_address sw_if_index 2 30.0.0.3/24
sw_interface_add_del_address sw_if_index 1 30.0.0.4/24
sw_interface_add_del_address sw_if_index 4 20.0.0.3/24
sw_interface_add_del_address sw_if_index 3 20.0.0.4/24
ip_neighbor_add_del sw_if_index 2 dst 30.0.0.1 mac fa:16:3e:2d:85:3a
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:9e:4b:60
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:db:58:4f
ip_add_del_route 10.0.0.1/24 via 20.0.0.1 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 10.0.0.2/24 via 20.0.0.2 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
exec show trace
tc09: tg packets not routed to dut2 egress interface in different vrf through dut1, vpp configured with two vrfs
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9
ip_table_add_del table 99
ip_add_del_route 30.0.0.1/24 via 9 sw_if_index None resolve-attempts 10 count 1
ip_add_del_route 30.0.0.2/24 via 99 sw_if_index None resolve-attempts 10 count 1
sw_interface_set_table sw_if_index 4 vrf 9
sw_interface_set_table sw_if_index 3 vrf 99
sw_interface_set_table sw_if_index 2 vrf 9
sw_interface_set_table sw_if_index 1 vrf 99
sw_interface_add_del_address sw_if_index 2 10.0.0.3/24
sw_interface_add_del_address sw_if_index 1 10.0.0.4/24
sw_interface_add_del_address sw_if_index 4 20.0.0.1/24
sw_interface_add_del_address sw_if_index 3 20.0.0.2/24
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.1 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:8b:22:01
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:7d:01:09
ip_add_del_route 30.0.0.1/24 via 20.0.0.3 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 30.0.0.2/24 via 20.0.0.4 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9
ip_table_add_del table 99
ip_add_del_route 10.0.0.1/24 via 9 sw_if_index None resolve-attempts 10 count 1
ip_add_del_route 10.0.0.2/24 via 99 sw_if_index None resolve-attempts 10 count 1
sw_interface_set_table sw_if_index 4 vrf 9
sw_interface_set_table sw_if_index 3 vrf 99
sw_interface_set_table sw_if_index 2 vrf 9
sw_interface_set_table sw_if_index 1 vrf 99
sw_interface_add_del_address sw_if_index 2 30.0.0.3/24
sw_interface_add_del_address sw_if_index 1 30.0.0.4/24
sw_interface_add_del_address sw_if_index 4 20.0.0.3/24
sw_interface_add_del_address sw_if_index 3 20.0.0.4/24
ip_neighbor_add_del sw_if_index 2 dst 30.0.0.1 mac fa:16:3e:2d:85:3a
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:9e:4b:60
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:db:58:4f
ip_add_del_route 10.0.0.1/24 via 20.0.0.1 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 10.0.0.2/24 via 20.0.0.2 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
exec show trace
tc10: tg packets not routed to tg in different vrf through dut1 and dut2, vpp configured with two vrfs
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9
ip_table_add_del table 99
ip_add_del_route 30.0.0.1/24 via 9 sw_if_index None resolve-attempts 10 count 1
ip_add_del_route 30.0.0.2/24 via 99 sw_if_index None resolve-attempts 10 count 1
sw_interface_set_table sw_if_index 4 vrf 9
sw_interface_set_table sw_if_index 3 vrf 99
sw_interface_set_table sw_if_index 2 vrf 9
sw_interface_set_table sw_if_index 1 vrf 99
sw_interface_add_del_address sw_if_index 2 10.0.0.3/24
sw_interface_add_del_address sw_if_index 1 10.0.0.4/24
sw_interface_add_del_address sw_if_index 4 20.0.0.1/24
sw_interface_add_del_address sw_if_index 3 20.0.0.2/24
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.1 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:8b:22:01
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:7d:01:09
ip_add_del_route 30.0.0.1/24 via 20.0.0.3 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 30.0.0.2/24 via 20.0.0.4 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9
ip_table_add_del table 99
ip_add_del_route 10.0.0.1/24 via 9 sw_if_index None resolve-attempts 10 count 1
ip_add_del_route 10.0.0.2/24 via 99 sw_if_index None resolve-attempts 10 count 1
sw_interface_set_table sw_if_index 4 vrf 9
sw_interface_set_table sw_if_index 3 vrf 99
sw_interface_set_table sw_if_index 2 vrf 9
sw_interface_set_table sw_if_index 1 vrf 99
sw_interface_add_del_address sw_if_index 2 30.0.0.3/24
sw_interface_add_del_address sw_if_index 1 30.0.0.4/24
sw_interface_add_del_address sw_if_index 4 20.0.0.3/24
sw_interface_add_del_address sw_if_index 3 20.0.0.4/24
ip_neighbor_add_del sw_if_index 2 dst 30.0.0.1 mac fa:16:3e:2d:85:3a
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:9e:4b:60
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:db:58:4f
ip_add_del_route 10.0.0.1/24 via 20.0.0.1 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 10.0.0.2/24 via 20.0.0.2 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
exec show trace

ip4 tunnels

gre

eth2p-ethip4gre-ip4base-func

GREoIPv4 test cases

  • [Top] Network Topologies: TG=DUT1 2-node topology with two links between nodes; TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-GRE-IPv4-ICMPv4 on DUT1-DUT2, Eth-IPv4-ICMPv4 on TG-DUTn for routing over GRE tunnel; Eth-IPv4-ICMPv4 on TG_if1-DUT, Eth-IPv4-GRE-IPv4-ICMPv4 on TG_if2_DUT for GREoIPv4 encapsulation and decapsulation verification.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with IPv4 routing and static routes. GREoIPv4 tunnel is configured between DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv4 (or ICMPv6) Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; GREoIPv4 encapsulation and decapsulation are verified separately by TG; on receive TG verifies packets for correctness and their IPv4 (IPv6) src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC2784.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 route over greoipv4 tunnel between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 192.168.1.1/24
sw_interface_add_del_address sw_if_index 1 192.168.0.1/24
gre_add_del_tunnel src 192.168.1.1 dst 192.168.1.2
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_add_del_address sw_if_index 5 172.16.0.1/24
ip_add_del_route 192.168.2.0/24 via 172.16.0.2 sw_if_index 5 resolve-attempts 10 count 1
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 192.168.1.2/24
sw_interface_add_del_address sw_if_index 1 192.168.2.1/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.2.100 mac fa:16:3e:4f:5b:43
gre_add_del_tunnel src 192.168.1.2 dst 192.168.1.1
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_add_del_address sw_if_index 5 172.16.0.2/24
exec show trace
tc02: dut encapsulates ipv4 into greoipv4 tunnel - gre header verification
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
sw_interface_add_del_address sw_if_index 2 192.168.0.1/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:2c:99:60
gre_add_del_tunnel src 192.168.1.1 dst 192.168.1.2
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_add_del_address sw_if_index 5 172.16.0.1/24
ip_add_del_route 192.168.2.0/24 via 172.16.0.2 sw_if_index 5 resolve-attempts 10 count 1
exec show trace

DUT2:
exec show trace
tc03: dut decapsulates ipv4 from greoipv4 tunnel - ipv4 header verification
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
sw_interface_add_del_address sw_if_index 2 192.168.0.1/24
ip_neighbor_add_del sw_if_index 2 dst 192.168.0.100 mac fa:16:3e:d2:8b:9f
gre_add_del_tunnel src 192.168.1.1 dst 192.168.1.2
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_add_del_address sw_if_index 5 172.16.0.1/24
exec show trace

DUT2:
exec show trace
tc04: dut encapsulates ipv4 into greoipv4 different tunnels - gre header verification
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
sw_interface_add_del_address sw_if_index 2 192.168.0.1/24
sw_interface_add_del_address sw_if_index 5 10.0.0.1/32
ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:2c:99:60
ip_add_del_route 10.0.0.2/32 via 192.168.1.2 sw_if_index 1 resolve-attempts 10 count 1
ip_add_del_route 10.0.0.3/32 via 192.168.1.2 sw_if_index 1 resolve-attempts 10 count 1
gre_add_del_tunnel src 10.0.0.1 dst 10.0.0.2
sw_interface_set_flags sw_if_index 6 admin-up link-up
gre_add_del_tunnel src 10.0.0.1 dst 10.0.0.3
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_add_del_address sw_if_index 6 172.16.0.1/24
sw_interface_add_del_address sw_if_index 7 172.16.1.1/24
ip_add_del_route 192.168.2.0/24 via 172.16.0.2 sw_if_index 6 resolve-attempts 10 count 1
ip_add_del_route 192.168.3.0/24 via 172.16.1.2 sw_if_index 7 resolve-attempts 10 count 1
exec show trace

DUT2:
exec show trace
tc05: dut re-encapsulates ipv4 gre into other gre tunnel - gre header verification
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
sw_interface_add_del_address sw_if_index 2 192.168.0.1/24
sw_interface_add_del_address sw_if_index 5 10.0.0.1/32
ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:2c:99:60
ip_add_del_route 10.0.0.2/32 via 192.168.1.2 sw_if_index 1 resolve-attempts 10 count 1
ip_add_del_route 10.0.0.3/32 via 192.168.1.2 sw_if_index 1 resolve-attempts 10 count 1
gre_add_del_tunnel src 10.0.0.1 dst 10.0.0.2
sw_interface_set_flags sw_if_index 6 admin-up link-up
gre_add_del_tunnel src 10.0.0.1 dst 10.0.0.3
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_add_del_address sw_if_index 6 172.16.0.1/24
sw_interface_add_del_address sw_if_index 7 172.16.1.1/24
ip_add_del_route 192.168.2.0/24 via 172.16.0.2 sw_if_index 6 resolve-attempts 10 count 1
ip_add_del_route 192.168.3.0/24 via 172.16.1.2 sw_if_index 7 resolve-attempts 10 count 1
exec show trace

DUT2:
exec show trace
tc06: dut do not process gre with wrong tunnel destination ip
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
sw_interface_add_del_address sw_if_index 2 192.168.0.1/24
sw_interface_add_del_address sw_if_index 5 10.0.0.1/32
ip_neighbor_add_del sw_if_index 2 dst 192.168.0.100 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:2c:99:60
ip_add_del_route 10.0.0.2/32 via 192.168.1.2 sw_if_index 1 resolve-attempts 10 count 1
ip_add_del_route 10.0.0.3/32 via 192.168.1.2 sw_if_index 1 resolve-attempts 10 count 1
gre_add_del_tunnel src 10.0.0.1 dst 10.0.0.2
sw_interface_set_flags sw_if_index 6 admin-up link-up
gre_add_del_tunnel src 10.0.0.1 dst 10.0.0.3
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_add_del_address sw_if_index 6 172.16.0.1/24
sw_interface_add_del_address sw_if_index 7 172.16.1.1/24
exec show trace

DUT2:
exec show trace

lisp

api-crud-lisp-func

API test cases

  • [Top] Network Topologies: DUT1 1-node topology.
  • [Enc] Packet Encapsulations: None.
  • [Cfg] DUT configuration: DUT1 gets configured with all LISP parameters.
  • [Ver] Verification: DUT1 operational data gets verified following configuration.
  • [Ref] Applicable standard specifications: RFC6830.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut can enable and disable lisp
 DUT1:  
lisp_enable_disable enable
lisp_enable_disable disable
exec show trace

DUT2:
exec show trace
tc02: dut can add and delete locator_set
 DUT1:  
lisp_enable_disable enable
lisp_add_del_locator_set locator-set ls0
lisp_add_del_locator locator-set ls0 sw_if_index 4 p 1 w 1
lisp_add_del_locator locator-set ls0 sw_if_index 2 p 2 w 2
lisp_add_del_locator locator-set ls0 sw_if_index 3 p 3 w 3
lisp_add_del_locator locator-set ls0 sw_if_index 1 p 4 w 4
lisp_add_del_locator_set locator-set ls1
lisp_add_del_locator locator-set ls1 sw_if_index 4 p 5 w 5
lisp_add_del_locator locator-set ls1 sw_if_index 2 p 6 w 6
lisp_add_del_locator locator-set ls1 sw_if_index 3 p 7 w 7
lisp_add_del_locator locator-set ls1 sw_if_index 1 p 8 w 8
lisp_add_del_locator_set locator-set ls2
lisp_add_del_locator locator-set ls2 sw_if_index 4 p 9 w 9
lisp_add_del_locator locator-set ls2 sw_if_index 2 p 10 w 10
lisp_add_del_locator locator-set ls2 sw_if_index 3 p 11 w 11
lisp_add_del_locator locator-set ls2 sw_if_index 1 p 12 w 12
lisp_locator_set_dump local
lisp_add_del_locator locator-set ls0 sw_if_index 4 p 1 w 1 del
lisp_add_del_locator locator-set ls0 sw_if_index 2 p 2 w 2 del
lisp_add_del_locator locator-set ls0 sw_if_index 3 p 3 w 3 del
lisp_add_del_locator locator-set ls0 sw_if_index 1 p 4 w 4 del
lisp_add_del_locator_set locator-set ls0 del
lisp_add_del_locator locator-set ls1 sw_if_index 4 p 5 w 5 del
lisp_add_del_locator locator-set ls1 sw_if_index 2 p 6 w 6 del
lisp_add_del_locator locator-set ls1 sw_if_index 3 p 7 w 7 del
lisp_add_del_locator locator-set ls1 sw_if_index 1 p 8 w 8 del
lisp_add_del_locator_set locator-set ls1 del
lisp_add_del_locator locator-set ls2 sw_if_index 4 p 9 w 9 del
lisp_add_del_locator locator-set ls2 sw_if_index 2 p 10 w 10 del
lisp_add_del_locator locator-set ls2 sw_if_index 3 p 11 w 11 del
lisp_add_del_locator locator-set ls2 sw_if_index 1 p 12 w 12 del
lisp_add_del_locator_set locator-set ls2 del
lisp_locator_set_dump
exec show trace

DUT2:
exec show trace
tc03: dut can add, reset and delete locator_set
 DUT1:  
lisp_enable_disable enable
lisp_add_del_locator_set locator-set ls0
lisp_add_del_locator locator-set ls0 sw_if_index 4 p 1 w 1
lisp_add_del_locator locator-set ls0 sw_if_index 2 p 2 w 2
lisp_add_del_locator locator-set ls0 sw_if_index 3 p 3 w 3
lisp_add_del_locator locator-set ls0 sw_if_index 1 p 4 w 4
lisp_add_del_locator_set locator-set ls0
lisp_add_del_locator locator-set ls0 sw_if_index 4 p 1 w 1
lisp_add_del_locator locator-set ls0 sw_if_index 2 p 2 w 2
lisp_add_del_locator locator-set ls0 sw_if_index 3 p 3 w 3
lisp_add_del_locator locator-set ls0 sw_if_index 1 p 4 w 4
lisp_add_del_locator_set locator-set ls0
lisp_add_del_locator locator-set ls0 sw_if_index 4 p 1 w 1
lisp_add_del_locator locator-set ls0 sw_if_index 2 p 2 w 2
lisp_add_del_locator locator-set ls0 sw_if_index 3 p 3 w 3
lisp_add_del_locator locator-set ls0 sw_if_index 1 p 4 w 4
lisp_add_del_locator_set locator-set ls0
lisp_add_del_locator locator-set ls0 sw_if_index 4 p 1 w 1
lisp_add_del_locator locator-set ls0 sw_if_index 2 p 2 w 2
lisp_add_del_locator locator-set ls0 sw_if_index 3 p 3 w 3
lisp_add_del_locator locator-set ls0 sw_if_index 1 p 4 w 4
lisp_add_del_locator_set locator-set ls1
lisp_add_del_locator locator-set ls1 sw_if_index 4 p 5 w 5
lisp_add_del_locator locator-set ls1 sw_if_index 2 p 6 w 6
lisp_add_del_locator locator-set ls1 sw_if_index 3 p 7 w 7
lisp_add_del_locator locator-set ls1 sw_if_index 1 p 8 w 8
lisp_add_del_locator_set locator-set ls1
lisp_add_del_locator locator-set ls1 sw_if_index 4 p 5 w 5
lisp_add_del_locator locator-set ls1 sw_if_index 2 p 6 w 6
lisp_add_del_locator locator-set ls1 sw_if_index 3 p 7 w 7
lisp_add_del_locator locator-set ls1 sw_if_index 1 p 8 w 8
lisp_add_del_locator_set locator-set ls1
lisp_add_del_locator locator-set ls1 sw_if_index 4 p 5 w 5
lisp_add_del_locator locator-set ls1 sw_if_index 2 p 6 w 6
lisp_add_del_locator locator-set ls1 sw_if_index 3 p 7 w 7
lisp_add_del_locator locator-set ls1 sw_if_index 1 p 8 w 8
lisp_add_del_locator_set locator-set ls1
lisp_add_del_locator locator-set ls1 sw_if_index 4 p 5 w 5
lisp_add_del_locator locator-set ls1 sw_if_index 2 p 6 w 6
lisp_add_del_locator locator-set ls1 sw_if_index 3 p 7 w 7
lisp_add_del_locator locator-set ls1 sw_if_index 1 p 8 w 8
lisp_add_del_locator_set locator-set ls2
lisp_add_del_locator locator-set ls2 sw_if_index 4 p 9 w 9
lisp_add_del_locator locator-set ls2 sw_if_index 2 p 10 w 10
lisp_add_del_locator locator-set ls2 sw_if_index 3 p 11 w 11
lisp_add_del_locator locator-set ls2 sw_if_index 1 p 12 w 12
lisp_add_del_locator_set locator-set ls2
lisp_add_del_locator locator-set ls2 sw_if_index 4 p 9 w 9
lisp_add_del_locator locator-set ls2 sw_if_index 2 p 10 w 10
lisp_add_del_locator locator-set ls2 sw_if_index 3 p 11 w 11
lisp_add_del_locator locator-set ls2 sw_if_index 1 p 12 w 12
lisp_add_del_locator_set locator-set ls2
lisp_add_del_locator locator-set ls2 sw_if_index 4 p 9 w 9
lisp_add_del_locator locator-set ls2 sw_if_index 2 p 10 w 10
lisp_add_del_locator locator-set ls2 sw_if_index 3 p 11 w 11
lisp_add_del_locator locator-set ls2 sw_if_index 1 p 12 w 12
lisp_add_del_locator_set locator-set ls2
lisp_add_del_locator locator-set ls2 sw_if_index 4 p 9 w 9
lisp_add_del_locator locator-set ls2 sw_if_index 2 p 10 w 10
lisp_add_del_locator locator-set ls2 sw_if_index 3 p 11 w 11
lisp_add_del_locator locator-set ls2 sw_if_index 1 p 12 w 12
lisp_locator_set_dump local
lisp_add_del_locator locator-set ls0 sw_if_index 4 p 1 w 1 del
lisp_add_del_locator locator-set ls0 sw_if_index 2 p 2 w 2 del
lisp_add_del_locator locator-set ls0 sw_if_index 3 p 3 w 3 del
lisp_add_del_locator locator-set ls0 sw_if_index 1 p 4 w 4 del
lisp_add_del_locator_set locator-set ls0 del
lisp_add_del_locator locator-set ls0 sw_if_index 4 p 1 w 1 del
lisp_add_del_locator locator-set ls0 sw_if_index 2 p 2 w 2 del
lisp_add_del_locator locator-set ls0 sw_if_index 3 p 3 w 3 del
lisp_add_del_locator locator-set ls0 sw_if_index 1 p 4 w 4 del
lisp_add_del_locator_set locator-set ls0 del
lisp_add_del_locator locator-set ls0 sw_if_index 4 p 1 w 1 del
lisp_add_del_locator locator-set ls0 sw_if_index 2 p 2 w 2 del
lisp_add_del_locator locator-set ls0 sw_if_index 3 p 3 w 3 del
lisp_add_del_locator locator-set ls0 sw_if_index 1 p 4 w 4 del
lisp_add_del_locator_set locator-set ls0 del
lisp_add_del_locator locator-set ls0 sw_if_index 4 p 1 w 1 del
lisp_add_del_locator locator-set ls0 sw_if_index 2 p 2 w 2 del
lisp_add_del_locator locator-set ls0 sw_if_index 3 p 3 w 3 del
lisp_add_del_locator locator-set ls0 sw_if_index 1 p 4 w 4 del
lisp_add_del_locator_set locator-set ls0 del
lisp_add_del_locator locator-set ls1 sw_if_index 4 p 5 w 5 del
lisp_add_del_locator locator-set ls1 sw_if_index 2 p 6 w 6 del
lisp_add_del_locator locator-set ls1 sw_if_index 3 p 7 w 7 del
lisp_add_del_locator locator-set ls1 sw_if_index 1 p 8 w 8 del
lisp_add_del_locator_set locator-set ls1 del
lisp_add_del_locator locator-set ls1 sw_if_index 4 p 5 w 5 del
lisp_add_del_locator locator-set ls1 sw_if_index 2 p 6 w 6 del
lisp_add_del_locator locator-set ls1 sw_if_index 3 p 7 w 7 del
lisp_add_del_locator locator-set ls1 sw_if_index 1 p 8 w 8 del
lisp_add_del_locator_set locator-set ls1 del
lisp_add_del_locator locator-set ls1 sw_if_index 4 p 5 w 5 del
lisp_add_del_locator locator-set ls1 sw_if_index 2 p 6 w 6 del
lisp_add_del_locator locator-set ls1 sw_if_index 3 p 7 w 7 del
lisp_add_del_locator locator-set ls1 sw_if_index 1 p 8 w 8 del
lisp_add_del_locator_set locator-set ls1 del
lisp_add_del_locator locator-set ls1 sw_if_index 4 p 5 w 5 del
lisp_add_del_locator locator-set ls1 sw_if_index 2 p 6 w 6 del
lisp_add_del_locator locator-set ls1 sw_if_index 3 p 7 w 7 del
lisp_add_del_locator locator-set ls1 sw_if_index 1 p 8 w 8 del
lisp_add_del_locator_set locator-set ls1 del
lisp_add_del_locator locator-set ls2 sw_if_index 4 p 9 w 9 del
lisp_add_del_locator locator-set ls2 sw_if_index 2 p 10 w 10 del
lisp_add_del_locator locator-set ls2 sw_if_index 3 p 11 w 11 del
lisp_add_del_locator locator-set ls2 sw_if_index 1 p 12 w 12 del
lisp_add_del_locator_set locator-set ls2 del
lisp_add_del_locator locator-set ls2 sw_if_index 4 p 9 w 9 del
lisp_add_del_locator locator-set ls2 sw_if_index 2 p 10 w 10 del
lisp_add_del_locator locator-set ls2 sw_if_index 3 p 11 w 11 del
lisp_add_del_locator locator-set ls2 sw_if_index 1 p 12 w 12 del
lisp_add_del_locator_set locator-set ls2 del
lisp_add_del_locator locator-set ls2 sw_if_index 4 p 9 w 9 del
lisp_add_del_locator locator-set ls2 sw_if_index 2 p 10 w 10 del
lisp_add_del_locator locator-set ls2 sw_if_index 3 p 11 w 11 del
lisp_add_del_locator locator-set ls2 sw_if_index 1 p 12 w 12 del
lisp_add_del_locator_set locator-set ls2 del
lisp_add_del_locator locator-set ls2 sw_if_index 4 p 9 w 9 del
lisp_add_del_locator locator-set ls2 sw_if_index 2 p 10 w 10 del
lisp_add_del_locator locator-set ls2 sw_if_index 3 p 11 w 11 del
lisp_add_del_locator locator-set ls2 sw_if_index 1 p 12 w 12 del
lisp_add_del_locator_set locator-set ls2 del
lisp_locator_set_dump
exec show trace

DUT2:
exec show trace
tc04: dut can add and delete eid address
 DUT1:  
lisp_enable_disable enable
lisp_add_del_locator_set locator-set ls1
lisp_add_del_local_eid vni 0 eid 192.168.0.0/24 locator-set ls1
lisp_add_del_locator_set locator-set ls1
lisp_add_del_local_eid vni 0 eid 192.168.1.0/24 locator-set ls1
lisp_add_del_locator_set locator-set ls1
lisp_add_del_local_eid vni 0 eid 192.168.2.0/24 locator-set ls1
lisp_add_del_locator_set locator-set ls1
lisp_add_del_local_eid vni 0 eid 192.168.3.0/24 locator-set ls1
lisp_add_del_locator_set locator-set ls1
lisp_add_del_local_eid vni 0 eid 10:1::/64 locator-set ls1
lisp_add_del_locator_set locator-set ls1
lisp_add_del_local_eid vni 0 eid 10:2::/64 locator-set ls1
lisp_add_del_locator_set locator-set ls1
lisp_add_del_local_eid vni 0 eid 10:3::/64 locator-set ls1
lisp_add_del_local_eid vni 0 eid 192.168.0.0/24 locator-set ls1 del
lisp_add_del_local_eid vni 0 eid 192.168.1.0/24 locator-set ls1 del
lisp_add_del_local_eid vni 0 eid 192.168.2.0/24 locator-set ls1 del
lisp_add_del_local_eid vni 0 eid 192.168.3.0/24 locator-set ls1 del
lisp_add_del_local_eid vni 0 eid 10:1::/64 locator-set ls1 del
lisp_add_del_local_eid vni 0 eid 10:2::/64 locator-set ls1 del
lisp_add_del_local_eid vni 0 eid 10:3::/64 locator-set ls1 del
lisp_add_del_locator_set locator-set ls1 del
exec show trace

DUT2:
exec show trace
tc05: dut can add and delete lisp map resolver address
 DUT1:  
lisp_enable_disable enable
lisp_add_del_map_resolver 192.169.0.1
lisp_add_del_map_resolver 192.169.1.1
lisp_add_del_map_resolver 192.169.2.1
lisp_add_del_map_resolver 12:1::1
lisp_add_del_map_resolver 12:2::1
lisp_add_del_map_resolver 192.169.0.1 del
lisp_add_del_map_resolver 192.169.1.1 del
lisp_add_del_map_resolver 192.169.2.1 del
lisp_add_del_map_resolver 12:1::1 del
lisp_add_del_map_resolver 12:2::1 del
exec show trace

DUT2:
exec show trace

eth2p-ethip4lisp-ip4base-func

IP AFI independent functional tests.

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-LISP-IPv4-ICMPv4 on DUT1-DUT2, Eth-IPv4-ICMPv4 on TG-DUTn for IPv4 routing over LISPoIPv4 tunnel.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with IPv4 routing and static routes. LISPoIPv4 tunnel is configured between DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC6830.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 route ipv4 over lispoipv4 tunnel after disable-enable
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 6.0.3.1/24
sw_interface_add_del_address sw_if_index 1 6.0.1.1/24
ip_neighbor_add_del sw_if_index 1 dst 6.0.1.2 mac fa:16:3e:2c:99:60
lisp_enable_disable enable
lisp_add_del_locator_set locator-set ls1
lisp_add_del_locator locator-set ls1 sw_if_index 3 p 1 w 1
lisp_add_del_local_eid vni 0 eid 6.0.1.0/24 locator-set ls1
lisp_add_del_remote_mapping add vni 0 eid 6.0.2.0/24 seid 6.0.1.0/24 rloc 6.0.3.2
lisp_add_del_adjacency add vni 0 reid 6.0.2.0/24 leid 6.0.1.0/24
lisp_enable_disable disable
lisp_enable_disable enable
lisp_add_del_adjacency add vni 0 reid 6.0.2.0/24 leid 6.0.1.0/24
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 6.0.3.2/24
sw_interface_add_del_address sw_if_index 1 6.0.2.1/24
ip_neighbor_add_del sw_if_index 1 dst 6.0.2.2 mac fa:16:3e:4f:5b:43
lisp_enable_disable enable
lisp_add_del_locator_set locator-set ls1
lisp_add_del_locator locator-set ls1 sw_if_index 3 p 1 w 1
lisp_add_del_local_eid vni 0 eid 6.0.2.0/24 locator-set ls1
lisp_add_del_remote_mapping add vni 0 eid 6.0.1.0/24 seid 6.0.2.0/24 rloc 6.0.3.1
lisp_add_del_adjacency add vni 0 reid 6.0.1.0/24 leid 6.0.2.0/24
lisp_add_del_adjacency add vni 0 reid 6.0.1.0/24 leid 6.0.2.0/24
exec show trace

eth2p-ethip4lisp-l2bdbasemaclrn-func

ip4-lispgpe-ip4 encapsulation test cases

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4-LISPGpe-IP4
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with IPv4 routing and static routes. LISPoIPv4 tunnel is configured between DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC6830.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: route ipv4 packet through lisp with bridge domain setup.
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 10.0.3.1/24
sw_interface_add_del_address sw_if_index 1 10.0.1.1/24
ip_neighbor_add_del sw_if_index 1 dst 10.0.1.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 10.0.3.2 mac fa:16:3e:7d:01:09
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
lisp_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 5 bd_index 10
lisp_add_del_local_eid vni 5 eid 08:22:22:22:22:11 locator-set tst_locator
lisp_add_del_map_resolver 10.0.0.2
lisp_add_del_remote_mapping add vni 5 eid 08:22:22:22:22:22 seid 08:22:22:22:22:11 rloc 10.0.3.2
lisp_add_del_adjacency add vni 5 reid 08:22:22:22:22:22 leid 08:22:22:22:22:11
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 10.0.3.2/24
sw_interface_add_del_address sw_if_index 1 10.0.2.1/24
ip_neighbor_add_del sw_if_index 1 dst 10.0.2.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 10.0.3.1 mac fa:16:3e:db:58:4f
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
lisp_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 5 bd_index 10
lisp_add_del_local_eid vni 5 eid 08:22:22:22:22:22 locator-set tst_locator
lisp_add_del_map_resolver 10.0.0.1
lisp_add_del_remote_mapping add vni 5 eid 08:22:22:22:22:11 seid 08:22:22:22:22:22 rloc 10.0.3.1
lisp_add_del_adjacency add vni 5 reid 08:22:22:22:22:11 leid 08:22:22:22:22:22
exec show trace

eth2p-ethip4lispgpe-ip4base-func

ip4-lispgpe-ip4 encapsulation test cases

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-LISP-IPv4-ICMPv4 on DUT1-DUT2, Eth-IPv4-ICMPv4 on TG-DUTn for IPv4 routing over LISPoIPv4 tunnel.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with IPv4 routing and static routes. LISPoIPv4 tunnel is configured between DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC6830.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 route ipv4 bidirectionally over lisp gpe tunnel using physical interfaces
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 6.0.4.1/24
sw_interface_add_del_address sw_if_index 1 6.0.1.2/24
ip_neighbor_add_del sw_if_index 1 dst 6.0.1.1 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.2 mac fa:16:3e:7d:01:09
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 6.0.1.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 6.0.5.0/24 seid 6.0.1.0/24 rloc 6.0.4.2
lisp_add_del_adjacency add vni 0 reid 6.0.5.0/24 leid 6.0.1.0/24
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 6.0.4.2/24
sw_interface_add_del_address sw_if_index 1 6.0.5.1/24
ip_neighbor_add_del sw_if_index 1 dst 6.0.5.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.1 mac fa:16:3e:db:58:4f
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 6.0.5.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 6.0.1.0/24 seid 6.0.5.0/24 rloc 6.0.4.1
lisp_add_del_adjacency add vni 0 reid 6.0.1.0/24 leid 6.0.5.0/24
exec show trace

eth2p-ethip4lispgpe-ip4basevrf-func

ip4-lispgpe-ip4 encapsulation test cases

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-LISP-IPv4-ICMPv4 on DUT1-DUT2, Eth-IPv4-ICMPv4 on TG-DUTn for IPv4 routing over LISPoIPv4 tunnel.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with IPv4 routing and static routes. LISPoIPv4 tunnel is configured between DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC6830.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 route ipv4 bidirectionally over lisp gpe tunnel using physical interfaces and vrf is enabled
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 1
sw_interface_set_table sw_if_index 1 vrf 1
ip_neighbor_add_del sw_if_index 1 dst 6.0.1.1 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.2 mac fa:16:3e:7d:01:09
sw_interface_add_del_address sw_if_index 3 6.0.4.1/24
sw_interface_add_del_address sw_if_index 1 6.0.1.2/24
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 1 vrf 1
lisp_add_del_local_eid vni 1 eid 6.0.1.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 1 eid 6.0.5.0/24 seid 6.0.1.0/24 rloc 6.0.4.2
lisp_add_del_adjacency add vni 1 reid 6.0.5.0/24 leid 6.0.1.0/24
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 1
sw_interface_set_table sw_if_index 1 vrf 1
ip_neighbor_add_del sw_if_index 1 dst 6.0.5.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.1 mac fa:16:3e:db:58:4f
sw_interface_add_del_address sw_if_index 3 6.0.4.2/24
sw_interface_add_del_address sw_if_index 1 6.0.5.1/24
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 1 vrf 1
lisp_add_del_local_eid vni 1 eid 6.0.5.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 1 eid 6.0.1.0/24 seid 6.0.5.0/24 rloc 6.0.4.1
lisp_add_del_adjacency add vni 1 reid 6.0.1.0/24 leid 6.0.5.0/24
exec show trace

eth2p-ethip4lispgpe-ip6base-func

LISP static adjacency test cases

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-LISP-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUTn for IPv6 routing over LISPoIPv4 tunnel.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with IPv6 routing and static routes. LISPoIPv4 tunnel is configured between DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv6 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv6 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC6830.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 route ipv6 bidirectionally over lispoipv4 tunnel
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 6.0.3.1/24
sw_interface_add_del_address sw_if_index 1 6:0:1::1/64
ip_neighbor_add_del sw_if_index 1 dst 6:0:1::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.2 mac fa:16:3e:7d:01:09
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_add_del_locator_set locator-set ls1
lisp_add_del_locator locator-set ls1 sw_if_index 3 p 1 w 1
lisp_add_del_local_eid vni 0 eid 6:0:1::0/64 locator-set ls1
lisp_add_del_remote_mapping add vni 0 eid 6:0:2::0/64 seid 6:0:1::0/64 rloc 6.0.3.2
lisp_add_del_adjacency add vni 0 reid 6:0:2::0/64 leid 6:0:1::0/64
lisp_add_del_remote_mapping del vni 0 eid 6:0:2::0/64 seid 6:0:1::0/64 rloc 6.0.3.2
lisp_add_del_adjacency del vni 0 reid 6:0:2::0/64 leid 6:0:1::0/64
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.20 mac fa:16:3e:7d:01:09
lisp_add_del_remote_mapping add vni 0 eid 6:0:2::0/64 seid 6:0:1::0/64 rloc 6.0.3.20
lisp_add_del_adjacency add vni 0 reid 6:0:2::0/64 leid 6:0:1::0/64
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 6.0.3.2/24
sw_interface_add_del_address sw_if_index 1 6:0:2::1/64
ip_neighbor_add_del sw_if_index 1 dst 6:0:2::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.1 mac fa:16:3e:db:58:4f
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_add_del_locator_set locator-set ls1
lisp_add_del_locator locator-set ls1 sw_if_index 3 p 1 w 1
lisp_add_del_local_eid vni 0 eid 6:0:2::0/64 locator-set ls1
lisp_add_del_remote_mapping add vni 0 eid 6:0:1::0/64 seid 6:0:2::0/64 rloc 6.0.3.1
lisp_add_del_adjacency add vni 0 reid 6:0:1::0/64 leid 6:0:2::0/64
sw_interface_add_del_address sw_if_index 3 del-all
sw_interface_add_del_address sw_if_index 3 6.0.3.20/24
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.1 mac fa:16:3e:db:58:4f
exec show trace

eth2p-ethip4lispgpe-ip6basevrf-func

LISP static adjacency test cases

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-LISP-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUTn for IPv6 routing over LISPoIPv4 tunnel.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with IPv6 routing and static routes. LISPoIPv4 tunnel is configured between DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv6 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv6 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC6830.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 route ipv6 bidirectionally over lisp gpe tunnel using physical interfaces and vrf is enabled
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 1 ipv6
sw_interface_set_table sw_if_index 1 vrf 1 ipv6
ip_neighbor_add_del sw_if_index 1 dst 6:0:1::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.2 mac fa:16:3e:7d:01:09
sw_interface_add_del_address sw_if_index 3 6.0.3.1/24
sw_interface_add_del_address sw_if_index 1 6:0:1::1/64
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set ls1
lisp_add_del_locator locator-set ls1 sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 1 vrf 1
lisp_add_del_local_eid vni 1 eid 6:0:1::0/64 locator-set ls1
lisp_add_del_remote_mapping add vni 1 eid 6:0:2::0/64 seid 6:0:1::0/64 rloc 6.0.3.2
lisp_add_del_adjacency add vni 1 reid 6:0:2::0/64 leid 6:0:1::0/64
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 1 ipv6
sw_interface_set_table sw_if_index 1 vrf 1 ipv6
ip_neighbor_add_del sw_if_index 1 dst 6:0:2::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.1 mac fa:16:3e:db:58:4f
sw_interface_add_del_address sw_if_index 3 6.0.3.2/24
sw_interface_add_del_address sw_if_index 1 6:0:2::1/64
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set ls1
lisp_add_del_locator locator-set ls1 sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 1 vrf 1
lisp_add_del_local_eid vni 1 eid 6:0:2::0/64 locator-set ls1
lisp_add_del_remote_mapping add vni 1 eid 6:0:1::0/64 seid 6:0:2::0/64 rloc 6.0.3.1
lisp_add_del_adjacency add vni 1 reid 6:0:1::0/64 leid 6:0:2::0/64
exec show trace

vxlan

eth2p-dot1qip4vxlan-l2bdbasemaclrn-func

RFC7348 VXLAN: Bridge-domain with VXLAN over VLAN test cases

  • [Top] Network topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet encapsulations: Eth-dot1q-IPv4-VXLAN-Eth-IPv4-ICMPv4 on DUT1-DUT2, Eth-dot1q-IPv4-ICMPv4 on TG-DUTn for L2 switching of IPv4.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with L2 bridge-domain (L2BD) switching combined with static MACs, MAC learning enabled and Split Horizon Groups (SHG) depending on test case; VXLAN tunnels are configured between L2BDs on DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC7348.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 with l2bd and vxlanoipv4ovlan tunnels switch icmpv4 between tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
create_vlan_subif sw_if_index 3 vlan 10
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_dump
sw_interface_add_del_address sw_if_index 5 172.16.0.1/24
ip_neighbor_add_del sw_if_index 5 dst 172.16.0.2 mac fa:16:3e:7d:01:09
vxlan_add_del_tunnel src 172.16.0.1 dst 172.16.0.2 vni 23
sw_interface_dump
sw_interface_set_flags sw_if_index 6 admin-up link-up
bridge_domain_add_del(bd_id=23,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=23)
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=0,port_type=0,bd_id=23)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
create_vlan_subif sw_if_index 3 vlan 10
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_dump
sw_interface_dump
sw_interface_add_del_address sw_if_index 5 172.16.0.2/24
ip_neighbor_add_del sw_if_index 5 dst 172.16.0.1 mac fa:16:3e:db:58:4f
vxlan_add_del_tunnel src 172.16.0.2 dst 172.16.0.1 vni 23
sw_interface_dump
sw_interface_set_flags sw_if_index 6 admin-up link-up
bridge_domain_add_del(bd_id=23,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=23)
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=0,port_type=0,bd_id=23)
exec show trace

eth2p-ethip4vxlan-l2bdbasemaclrn-func

Bridge-domain with VXLAN test cases - IPv4

  • [Top] Network topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet encapsulations: Eth-IPv4-VXLAN-Eth-IPv4-ICMPv4 on DUT1-DUT2, Eth-IPv4-ICMPv4 on TG-DUTn for L2 switching of IPv4.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with L2 bridge-domain (L2BD) switching combined with MAC learning enabled; VXLAN tunnels are configured between L2BDs on DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC7348.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 with l2bd and vxlanoipv4 tunnels switch icmpv4 between tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 172.16.0.1/24
ip_neighbor_add_del sw_if_index 3 dst 172.16.0.2 mac fa:16:3e:7d:01:09
vxlan_add_del_tunnel src 172.16.0.1 dst 172.16.0.2 vni 23
sw_interface_dump
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=10)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 172.16.0.2/24
ip_neighbor_add_del sw_if_index 3 dst 172.16.0.1 mac fa:16:3e:db:58:4f
vxlan_add_del_tunnel src 172.16.0.2 dst 172.16.0.1 vni 23
sw_interface_dump
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=10)
exec show trace

eth2p-ethip4vxlan-l2xcbase-func

RFC7348 VXLAN: L2 cross-connect with VXLAN test cases

  • [Top] Network topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet encapsulations: Eth-IPv4-VXLAN-Eth-IPv4-ICMPv4 on DUT1-DUT2, Eth-IPv4-ICMPv4 on TG-DUTn for L2 switching of IPv4.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with L2 cross-connect (L2XC) switching; VXLAN tunnels are configured between L2XCs on DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC7348.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 with l2xc and vxlanoipv4 tunnels switch icmpv4 between tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 172.16.0.1/24
ip_neighbor_add_del sw_if_index 3 dst 172.16.0.2 mac fa:16:3e:7d:01:09
vxlan_add_del_tunnel src 172.16.0.1 dst 172.16.0.2 vni 24
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 172.16.0.2/24
ip_neighbor_add_del sw_if_index 3 dst 172.16.0.1 mac fa:16:3e:db:58:4f
vxlan_add_del_tunnel src 172.16.0.2 dst 172.16.0.1 vni 24
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace

eth4p-ethip4vxlan-l2bdbasemaclrn-l2shg-func

L2BD with SHG combined with VXLAN test cases - IPv4

  • [Top] Network topologies: TG=DUT1=DUT2=TG 3-node circular topology with double parallel links.
  • [Enc] Packet encapsulations: Eth-IPv4-VXLAN-Eth-IPv4-ICMPv4 on DUT1-DUT2, Eth-IPv4-ICMPv4 on TG-DUTn for L2 switching of IPv4.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with L2 bridge-domain (L2BD) switching combined with MAC learning enabled and Split Horizon Groups (SHG); VXLAN tunnels are configured between L2BDs on DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC7348.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 with l2bd and vxlanoipv4 tunnels in shg switch icmpv4 between tg links
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 172.16.0.1/24
vxlan_add_del_tunnel src 172.16.0.1 dst 172.16.0.2 vni 23
sw_interface_dump
vxlan_add_del_tunnel src 172.16.0.1 dst 172.16.0.2 vni 35
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_dump
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=2,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=1,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=1,port_type=0,bd_id=10)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 172.16.0.2/24
vxlan_add_del_tunnel src 172.16.0.2 dst 172.16.0.1 vni 23
sw_interface_dump
vxlan_add_del_tunnel src 172.16.0.2 dst 172.16.0.1 vni 35
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_dump
bridge_domain_add_del(bd_id=20,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=2,enable=1,shg=0,port_type=0,bd_id=20)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=20)
bridge_domain_add_del(bd_id=30,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=30)
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=0,port_type=0,bd_id=30)
exec show trace
tc01: dut1 and dut2 with l2bd and vxlanoipv4 tunnels in different shgs switch icmpv4 between tg links
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 172.16.0.1/24
vxlan_add_del_tunnel src 172.16.0.1 dst 172.16.0.2 vni 23
sw_interface_dump
vxlan_add_del_tunnel src 172.16.0.1 dst 172.16.0.2 vni 35
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_dump
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=2,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=1,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=2,port_type=0,bd_id=10)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 172.16.0.2/24
vxlan_add_del_tunnel src 172.16.0.2 dst 172.16.0.1 vni 23
sw_interface_dump
vxlan_add_del_tunnel src 172.16.0.2 dst 172.16.0.1 vni 35
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_dump
bridge_domain_add_del(bd_id=20,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=2,enable=1,shg=0,port_type=0,bd_id=20)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=20)
bridge_domain_add_del(bd_id=30,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=30)
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=0,port_type=0,bd_id=30)
exec show trace

ip6

eth2p-ethip6-ip6base-copblklistbase-func

COP Security IPv6 Blacklist Tests

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv6-ICMPv6 on all links.
  • [Cfg] DUT configuration: DUT1 is configured with IPv6 routing and static routes. COP security black-lists are applied on DUT1 ingress interface from TG. DUT2 is configured with L2XC.
  • [Ver] TG verification: Test ICMPv6 Echo Request packets are sent in one direction by TG on link to DUT1; on receive TG verifies packets for correctness and drops as applicable.
  • [Ref] Applicable standard specifications:
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut drops ipv6 pkts with cop blacklist set with ipv6 src-addr
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:62::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 3 3ffe:63::1/64
sw_interface_set_flags sw_if_index 3 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:62::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 3ffe:63::2 mac fa:16:3e:4f:5b:43
ip_add_del_route 3ffe:64::1/64 via 3ffe:63::2 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_table_add_del table 1 ipv6
cop_whitelist_enable_disable sw_if_index 1 ip6 fib-id 1
cop_interface_enable_disable sw_if_index 1
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
sw_interface_add_del_address sw_if_index 3 3ffe:72::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 3ffe:73::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace

eth2p-ethip6-ip6base-copwhlistbase-func

COP Security IPv6 Whitelist Tests

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv6-ICMPv6 on all links.
  • [Cfg] DUT configuration: DUT1 is configured with IPv6 routing and static routes. COP security white-lists are applied on DUT1 ingress interface from TG. DUT2 is configured with L2XC.
  • [Ver] TG verification: Test ICMPv6 Echo Request packets are sent in one direction by TG on link to DUT1; on receive TG verifies packets for correctness and drops as applicable.
  • [Ref] Applicable standard specifications:
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut permits ipv6 pkts with cop whitelist set with ipv6 src-addr
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:62::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 3 3ffe:63::1/64
sw_interface_set_flags sw_if_index 3 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:62::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 3ffe:63::2 mac fa:16:3e:4f:5b:43
ip_add_del_route 3ffe:64::1/64 via 3ffe:63::2 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_table_add_del table 1 ipv6
ip_add_del_route 3ffe:61::/64 vrf 1 resolve-attempts 10 count 1 local
cop_whitelist_enable_disable sw_if_index 1 ip6 fib-id 1
cop_interface_enable_disable sw_if_index 1
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
sw_interface_add_del_address sw_if_index 3 3ffe:72::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 3ffe:73::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace

eth2p-ethip6-ip6base-func

IPv6 routing test cases RFC2460 IPv6, RFC4443 ICMPv6, RFC4861 Neighbor Discovery. Encapsulations: Eth-IPv6-ICMPv6 on links TG-DUT1, TG-DUT2, DUT1-DUT2; Eth-IPv6-NS/NA on links TG-DUT. IPv6 routing tests use circular 3-node topology TG - DUT1 - DUT2 - TG with one link between the nodes. DUT1 and DUT2 are configured with IPv6 routing and static routes. Test ICMPv6 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2 and received on TG links on the other side of circular topology. On receive TG verifies packets IPv6 src-addr, dst-addr and MAC addresses.

Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut replies to icmpv6 echo req to its ingress interface
 DUT1:  
cli_inband(cmd=clear interfaces)
exec show trace

DUT2:
cli_inband(cmd=clear interfaces)
exec show trace
tc02: dut replies to icmpv6 echo req pkt with size 64b-to-1500b-incr-1b
 DUT1:  
cli_inband(cmd=clear interfaces)
exec show trace

DUT2:
cli_inband(cmd=clear interfaces)
exec show trace
tc04: dut routes to its egress interface
 DUT1:  
cli_inband(cmd=clear interfaces)
exec show trace

DUT2:
cli_inband(cmd=clear interfaces)
exec show trace
tc05: dut1 routes to dut2 ingress interface
 DUT1:  
cli_inband(cmd=clear interfaces)
exec show trace

DUT2:
cli_inband(cmd=clear interfaces)
exec show trace
tc06: dut1 routes to dut2 egress interface
 DUT1:  
cli_inband(cmd=clear interfaces)
exec show trace

DUT2:
cli_inband(cmd=clear interfaces)
exec show trace
tc07: dut1 and dut2 route between tg interfaces
 DUT1:  
cli_inband(cmd=clear interfaces)
exec show trace

DUT2:
cli_inband(cmd=clear interfaces)
exec show trace
tc08: dut replies to ipv6 neighbor solicitation
 DUT1:  
cli_inband(cmd=clear interfaces)
exec show trace

DUT2:
cli_inband(cmd=clear interfaces)
exec show trace

eth2p-ethip6-ip6base-iaclbase-func

IPv6 routing with ingress ACL test cases Encapsulations: Eth-IPv6 on links TG-DUT1, TG-DUT2, DUT1-DUT2. IPv6 ingress ACL (iACL) tests use 3-node topology TG - DUT1 - DUT2 - TG with one link between the nodes. DUT1 and DUT2 are configured with IPv6 routing and static routes. DUT1 is configured with iACL on link to TG, iACL classification and permit/deny action are configured on a per test case basis. Test ICMPv6 Echo Request packets are sent in one direction by TG on link to DUT1 and received on TG link to DUT2. On receive TG verifies if packets are dropped, or if received verifies packet IPv6 src-addr, dst-addr and MAC addresses.

Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut with iacl ipv6 src-addr drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:62::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 3 3ffe:63::1/64
sw_interface_set_flags sw_if_index 3 admin-up
ip_neighbor_add_del sw_if_index 3 dst 3ffe:63::2 mac fa:16:3e:4f:5b:43
ip_add_del_route 3ffe:64::1/64 via 3ffe:63::2 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
classify_add_del_table mask l3 ip6 src
classify_add_del_session acl-hit-next deny table-index 0 skip_n 1 match_n 2 match l3 ip6 src 3ffe:61::1
input_acl_set_interface sw_if_index 1 ip6-table 0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc02: dut with iacl ipv6 dst-addr drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:62::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 3 3ffe:63::1/64
sw_interface_set_flags sw_if_index 3 admin-up
ip_neighbor_add_del sw_if_index 3 dst 3ffe:63::2 mac fa:16:3e:4f:5b:43
ip_add_del_route 3ffe:64::1/64 via 3ffe:63::2 sw_if_index 3 resolve-attempts 10 count 1
ip_add_del_route 3ffe:54::1/64 via 3ffe:63::2 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
classify_add_del_table mask l3 ip6 dst
classify_add_del_session acl-hit-next deny table-index 0 skip_n 2 match_n 2 match l3 ip6 dst 3ffe:64::1
input_acl_set_interface sw_if_index 1 ip6-table 0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc03: dut with iacl ipv6 src-addr and dst-addr drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:62::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 3 3ffe:63::1/64
sw_interface_set_flags sw_if_index 3 admin-up
ip_neighbor_add_del sw_if_index 3 dst 3ffe:63::2 mac fa:16:3e:4f:5b:43
ip_add_del_route 3ffe:64::1/64 via 3ffe:63::2 sw_if_index 3 resolve-attempts 10 count 1
ip_add_del_route 3ffe:54::1/64 via 3ffe:63::2 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
classify_add_del_table mask l3 ip6 src
classify_add_del_table mask l3 ip6 dst
classify_add_del_session acl-hit-next deny table-index 0 skip_n 1 match_n 2 match l3 ip6 src 3ffe:61::1
classify_add_del_session acl-hit-next deny table-index 1 skip_n 2 match_n 2 match l3 ip6 dst 3ffe:64::1
input_acl_set_interface sw_if_index 1 ip6-table 0
input_acl_set_interface sw_if_index 1 ip6-table 1
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc04: dut with iacl ipv6 protocol set to tcp drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:62::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 3 3ffe:63::1/64
sw_interface_set_flags sw_if_index 3 admin-up
ip_neighbor_add_del sw_if_index 3 dst 3ffe:63::2 mac fa:16:3e:4f:5b:43
ip_add_del_route 3ffe:64::1/64 via 3ffe:63::2 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
classify_add_del_table mask hex 0000000000000000000000000000000000000000FF
classify_add_del_session acl-hit-next deny table-index 0 skip_n 1 match_n 1 match hex 000000000000000000000000000000000000000006
input_acl_set_interface sw_if_index 1 ip6-table 0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc05: dut with iacl ipv6 protocol set to udp drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:62::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 3 3ffe:63::1/64
sw_interface_set_flags sw_if_index 3 admin-up
ip_neighbor_add_del sw_if_index 3 dst 3ffe:63::2 mac fa:16:3e:4f:5b:43
ip_add_del_route 3ffe:64::1/64 via 3ffe:63::2 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
classify_add_del_table mask hex 0000000000000000000000000000000000000000FF
classify_add_del_session acl-hit-next deny table-index 0 skip_n 1 match_n 1 match hex 000000000000000000000000000000000000000011
input_acl_set_interface sw_if_index 1 ip6-table 0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc06: dut with iacl ipv6 tcp src-ports drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:62::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 3 3ffe:63::1/64
sw_interface_set_flags sw_if_index 3 admin-up
ip_neighbor_add_del sw_if_index 3 dst 3ffe:63::2 mac fa:16:3e:4f:5b:43
ip_add_del_route 3ffe:64::1/64 via 3ffe:63::2 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
classify_add_del_table mask hex 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFFF0000
classify_add_del_session acl-hit-next deny table-index 0 skip_n 3 match_n 1 match hex 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000
input_acl_set_interface sw_if_index 1 ip6-table 0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc07: dut with iacl ipv6 tcp dst-ports drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:62::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 3 3ffe:63::1/64
sw_interface_set_flags sw_if_index 3 admin-up
ip_neighbor_add_del sw_if_index 3 dst 3ffe:63::2 mac fa:16:3e:4f:5b:43
ip_add_del_route 3ffe:64::1/64 via 3ffe:63::2 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
classify_add_del_table mask hex 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFFF
classify_add_del_session acl-hit-next deny table-index 0 skip_n 3 match_n 1 match hex 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050
input_acl_set_interface sw_if_index 1 ip6-table 0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc08: dut with iacl ipv6 tcp src-ports and dst-ports drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:62::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 3 3ffe:63::1/64
sw_interface_set_flags sw_if_index 3 admin-up
ip_neighbor_add_del sw_if_index 3 dst 3ffe:63::2 mac fa:16:3e:4f:5b:43
ip_add_del_route 3ffe:64::1/64 via 3ffe:63::2 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
classify_add_del_table mask hex 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFFFFFFF
classify_add_del_session acl-hit-next deny table-index 0 skip_n 3 match_n 1 match hex 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500014
input_acl_set_interface sw_if_index 1 ip6-table 0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc09: dut with iacl ipv6 udp src-ports drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:62::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 3 3ffe:63::1/64
sw_interface_set_flags sw_if_index 3 admin-up
ip_neighbor_add_del sw_if_index 3 dst 3ffe:63::2 mac fa:16:3e:4f:5b:43
ip_add_del_route 3ffe:64::1/64 via 3ffe:63::2 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
classify_add_del_table mask hex 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFFF0000
classify_add_del_session acl-hit-next deny table-index 0 skip_n 3 match_n 1 match hex 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000
input_acl_set_interface sw_if_index 1 ip6-table 0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc10: dut with iacl ipv6 udp dst-ports drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:62::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 3 3ffe:63::1/64
sw_interface_set_flags sw_if_index 3 admin-up
ip_neighbor_add_del sw_if_index 3 dst 3ffe:63::2 mac fa:16:3e:4f:5b:43
ip_add_del_route 3ffe:64::1/64 via 3ffe:63::2 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
classify_add_del_table mask hex 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFFF
classify_add_del_session acl-hit-next deny table-index 0 skip_n 3 match_n 1 match hex 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050
input_acl_set_interface sw_if_index 1 ip6-table 0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc11: dut with iacl ipv6 udp src-ports and dst-ports drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:62::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 3 3ffe:63::1/64
sw_interface_set_flags sw_if_index 3 admin-up
ip_neighbor_add_del sw_if_index 3 dst 3ffe:63::2 mac fa:16:3e:4f:5b:43
ip_add_del_route 3ffe:64::1/64 via 3ffe:63::2 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
classify_add_del_table mask hex 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFFFFFFF
classify_add_del_session acl-hit-next deny table-index 0 skip_n 3 match_n 1 match hex 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500014
input_acl_set_interface sw_if_index 1 ip6-table 0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc12: dut with iacl mac src-addr and iacl ipv6 udp src-ports and dst-ports drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
classify_add_del_table mask l2 src
classify_add_del_session acl-hit-next deny table-index 0 skip_n 0 match_n 1 match l2 src fa:16:3e:2c:99:60
classify_add_del_table mask hex 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFFFFFFF
classify_add_del_session acl-hit-next deny table-index 1 skip_n 3 match_n 1 match hex 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500014
input_acl_set_interface sw_if_index 1 l2-table 1
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace

eth2p-ethip6-ip6base-ip6dhcpproxy-func

DHCPv6 proxy test cases

  • [Top] Network Topologies: TG = DUT with two links between the nodes.
  • [Cfg] DUT configuration: DUT is configured with DHCPv6 proxy.
  • [Ver] TG verification: Test DHCPv6 packets are sent on TG on first link to DUT and received on TG on second link. On receive TG verifies if DHCPv6 packets are valid
  • [Ref] Applicable standard specifications: RFC 3315
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: vpp proxies valid dhcpv6 request to dhcpv6 server
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 3ffe:62::1/64
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_add_del_address sw_if_index 1 3ffe:63::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_add_del_route ff02::1:2/128 local count 1
ip_neighbor_add_del sw_if_index 1 dst 3ffe:63::2 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
dhcp_proxy_config svr 3ffe:63::2 src 3ffe:62::1
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace

eth2p-ethip6-ip6base-ip6ecmp-func

Ipv6 Multipath routing test cases

  • [Top] Network topologies: TG=DUT 2-node topology with two links between nodes.
  • [Cfg] DUT configuration: On DUT configure interfaces IPv4 adresses, and multipath routing.
  • [Ver] TG verification: Test packets are sent from TG on the first link to DUT. Packet is received on TG on the second link from DUT1.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: ipv6 equal-cost multipath routing
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:61::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 2 3ffe:62::1/64
sw_interface_set_flags sw_if_index 2 admin-up
ip_neighbor_add_del sw_if_index 2 dst 3ffe:62::2 mac 02:00:00:00:00:02
ip_neighbor_add_del sw_if_index 2 dst 3ffe:62::3 mac 02:00:00:00:00:03
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
ip_add_del_route 3ffe:71::1/64 via 3ffe:62::2 sw_if_index 2 count 1 multipath
ip_add_del_route 3ffe:71::1/64 via 3ffe:62::3 sw_if_index 2 count 1 multipath
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace

eth2p-ethip6-ip6base-ip6ra-func

IPv6 Router Advertisement test cases RFC4861 Neighbor Discovery. Encapsulations: Eth-IPv6-RA on links TG-DUT1. IPv6 Router Advertisement tests use 3-node topology TG - DUT1 - DUT2 - TG with one link between the nodes. DUT1 and DUT2 are configured with IPv6 routing and static routes. TG verifies received RA packets.

Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut transmits ra on ipv6 enabled interface
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:62::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_ip6nd_ra_config sw_if_index 1 interval 2
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
exec show trace
tc02: dut retransmits ra on ipv6 enabled interface after a set interval
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:62::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_ip6nd_ra_config sw_if_index 1 interval 2
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
exec show trace
tc03: dut responds to router solicitation request
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:62::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
exec show trace
tc04: dut responds to router solicitation request sent from link local address
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 3ffe:62::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
exec show trace

eth2p-ethip6-ip6base-ipolicemarkbase-func

IPv6 policer test cases

  • [Top] Network topologies: TG=DUT1 2-node topology with two links between nodes.
  • [Cfg] DUT configuration: On DUT1 configure interfaces IPv6 adresses, and static neighbor record on the second interface.
  • [Ver] TG verification: Test packet is sent from TG on the first link to DUT1. Packet is received on TG on the second link from DUT1.
  • [Ref] Applicable standard specifications: RFC2474, RFC2697, RFC2698.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: vpp policer 2r3c color-aware marks packet
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 3ffe:5f::1/64
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_add_del_address sw_if_index 1 3ffe:60::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:60::2 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
policer_add_del name policer1 cir 100 eir 150 cb 200 eb 300 rate_type pps round_type closest type 2r3c-2698 conform_action transmit exceed_action mark-and-transmit AF22 violate_action drop color-aware
classify_add_del_table mask l3 ip6 src
classify_add_del_session policer-hit-next 0 exceed-color table-index 0 skip_n 1 match_n 2 match l3 ip6 src 3ffe:5f::2
policer_classify_set_interface sw_if_index 2 ip6-table 0
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc02: vpp policer 2r3c color-blind marks packet
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 3ffe:5f::1/64
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_add_del_address sw_if_index 1 3ffe:60::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:60::2 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
policer_add_del name policer1 cir 100 eir 150 cb 200 eb 300 rate_type pps round_type closest type 2r3c-2698 conform_action mark-and-transmit AF22 exceed_action transmit violate_action drop
classify_add_del_table mask l3 ip6 src
classify_add_del_session policer-hit-next 0 conform-color table-index 0 skip_n 1 match_n 2 match l3 ip6 src 3ffe:5f::2
policer_classify_set_interface sw_if_index 2 ip6-table 0
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc03: vpp policer 1r3c color-aware marks packet
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 3ffe:5f::1/64
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_add_del_address sw_if_index 1 3ffe:60::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:60::2 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
policer_add_del name policer1 cir 1 eir 0 cb 2 eb 300 rate_type pps round_type closest type 1r3c conform_action transmit exceed_action mark-and-transmit AF22 violate_action drop color-aware
classify_add_del_table mask l3 ip6 src
classify_add_del_session policer-hit-next 0 exceed-color table-index 0 skip_n 1 match_n 2 match l3 ip6 src 3ffe:5f::2
policer_classify_set_interface sw_if_index 2 ip6-table 0
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc04: vpp policer 1r3c color-blind marks packet
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 3ffe:5f::1/64
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_add_del_address sw_if_index 1 3ffe:60::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 3ffe:60::2 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
policer_add_del name policer1 cir 100 eir 0 cb 200 eb 0 rate_type pps round_type closest type 1r3c conform_action mark-and-transmit AF22 exceed_action transmit violate_action drop
classify_add_del_table mask l3 ip6 src
classify_add_del_session policer-hit-next 0 conform-color table-index 0 skip_n 1 match_n 2 match l3 ip6 src 3ffe:5f::2
policer_classify_set_interface sw_if_index 2 ip6-table 0
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace

eth2p-ethip6-ip6basevrf-func

Vpn routed forwarding - baseline IPv6

  • [Top] Network Topologies: TG=DUT1=DUT2=TG 3-node topology with two links in between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv6-ICMPv6
  • [Cfg] DUT configuration: Each DUT is configured with two VRF tables; Separation of traffic is tested by IP packets; Neighbors and Routes are set on DUT nodes; IP addresses are set on DUT interfaces.
  • [Ver] TG verification: Test ICMPv6 Echo Request packets are sent by TG on link to DUT1, DUT2 or back to TG; On receipt TG verifies packets for correctness and their IPv6 src-addr, dst-addr, and MAC addresses.
  • [Ref] Applicable standard specifications:
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: tg packets routed to dut ingress interface, vpp configured with two vrfs
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9 ipv6
ip_table_add_del table 99 ipv6
sw_interface_set_table sw_if_index 4 vrf 9 ipv6
sw_interface_set_table sw_if_index 3 vrf 99 ipv6
sw_interface_set_table sw_if_index 2 vrf 9 ipv6
sw_interface_set_table sw_if_index 1 vrf 99 ipv6
sw_interface_add_del_address sw_if_index 2 2001:62::3/64
sw_interface_add_del_address sw_if_index 1 2001:62::4/64
sw_interface_add_del_address sw_if_index 4 2002:62::1/64
sw_interface_add_del_address sw_if_index 3 2002:62::2/64
ip_neighbor_add_del sw_if_index 2 dst 2001:62::1 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:8b:22:01
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:7d:01:09
ip_add_del_route 2003:62::1/64 via 2002:62::3 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 2003:62::2/64 via 2002:62::4 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9 ipv6
ip_table_add_del table 99 ipv6
sw_interface_set_table sw_if_index 4 vrf 9 ipv6
sw_interface_set_table sw_if_index 3 vrf 99 ipv6
sw_interface_set_table sw_if_index 2 vrf 9 ipv6
sw_interface_set_table sw_if_index 1 vrf 99 ipv6
sw_interface_add_del_address sw_if_index 2 2003:62::3/64
sw_interface_add_del_address sw_if_index 1 2003:62::4/64
sw_interface_add_del_address sw_if_index 4 2002:62::3/64
sw_interface_add_del_address sw_if_index 3 2002:62::4/64
ip_neighbor_add_del sw_if_index 2 dst 2003:62::1 mac fa:16:3e:2d:85:3a
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:9e:4b:60
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:db:58:4f
ip_add_del_route 2001:62::1/64 via 2002:62::1 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 2001:62::2/64 via 2002:62::2 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc02: tg packets routed to dut egress interface, vpp configured with two vrfs
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9 ipv6
ip_table_add_del table 99 ipv6
sw_interface_set_table sw_if_index 4 vrf 9 ipv6
sw_interface_set_table sw_if_index 3 vrf 99 ipv6
sw_interface_set_table sw_if_index 2 vrf 9 ipv6
sw_interface_set_table sw_if_index 1 vrf 99 ipv6
sw_interface_add_del_address sw_if_index 2 2001:62::3/64
sw_interface_add_del_address sw_if_index 1 2001:62::4/64
sw_interface_add_del_address sw_if_index 4 2002:62::1/64
sw_interface_add_del_address sw_if_index 3 2002:62::2/64
ip_neighbor_add_del sw_if_index 2 dst 2001:62::1 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:8b:22:01
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:7d:01:09
ip_add_del_route 2003:62::1/64 via 2002:62::3 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 2003:62::2/64 via 2002:62::4 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9 ipv6
ip_table_add_del table 99 ipv6
sw_interface_set_table sw_if_index 4 vrf 9 ipv6
sw_interface_set_table sw_if_index 3 vrf 99 ipv6
sw_interface_set_table sw_if_index 2 vrf 9 ipv6
sw_interface_set_table sw_if_index 1 vrf 99 ipv6
sw_interface_add_del_address sw_if_index 2 2003:62::3/64
sw_interface_add_del_address sw_if_index 1 2003:62::4/64
sw_interface_add_del_address sw_if_index 4 2002:62::3/64
sw_interface_add_del_address sw_if_index 3 2002:62::4/64
ip_neighbor_add_del sw_if_index 2 dst 2003:62::1 mac fa:16:3e:2d:85:3a
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:9e:4b:60
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:db:58:4f
ip_add_del_route 2001:62::1/64 via 2002:62::1 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 2001:62::2/64 via 2002:62::2 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc03: tg packets routed to dut2 ingress interface through dut1, vpp configured with two vrfs
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9 ipv6
ip_table_add_del table 99 ipv6
sw_interface_set_table sw_if_index 4 vrf 9 ipv6
sw_interface_set_table sw_if_index 3 vrf 99 ipv6
sw_interface_set_table sw_if_index 2 vrf 9 ipv6
sw_interface_set_table sw_if_index 1 vrf 99 ipv6
sw_interface_add_del_address sw_if_index 2 2001:62::3/64
sw_interface_add_del_address sw_if_index 1 2001:62::4/64
sw_interface_add_del_address sw_if_index 4 2002:62::1/64
sw_interface_add_del_address sw_if_index 3 2002:62::2/64
ip_neighbor_add_del sw_if_index 2 dst 2001:62::1 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:8b:22:01
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:7d:01:09
ip_add_del_route 2003:62::1/64 via 2002:62::3 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 2003:62::2/64 via 2002:62::4 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9 ipv6
ip_table_add_del table 99 ipv6
sw_interface_set_table sw_if_index 4 vrf 9 ipv6
sw_interface_set_table sw_if_index 3 vrf 99 ipv6
sw_interface_set_table sw_if_index 2 vrf 9 ipv6
sw_interface_set_table sw_if_index 1 vrf 99 ipv6
sw_interface_add_del_address sw_if_index 2 2003:62::3/64
sw_interface_add_del_address sw_if_index 1 2003:62::4/64
sw_interface_add_del_address sw_if_index 4 2002:62::3/64
sw_interface_add_del_address sw_if_index 3 2002:62::4/64
ip_neighbor_add_del sw_if_index 2 dst 2003:62::1 mac fa:16:3e:2d:85:3a
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:9e:4b:60
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:db:58:4f
ip_add_del_route 2001:62::1/64 via 2002:62::1 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 2001:62::2/64 via 2002:62::2 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc04: tg packets routed to dut2 egress interface through dut1, vpp configured with two vrfs
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9 ipv6
ip_table_add_del table 99 ipv6
sw_interface_set_table sw_if_index 4 vrf 9 ipv6
sw_interface_set_table sw_if_index 3 vrf 99 ipv6
sw_interface_set_table sw_if_index 2 vrf 9 ipv6
sw_interface_set_table sw_if_index 1 vrf 99 ipv6
sw_interface_add_del_address sw_if_index 2 2001:62::3/64
sw_interface_add_del_address sw_if_index 1 2001:62::4/64
sw_interface_add_del_address sw_if_index 4 2002:62::1/64
sw_interface_add_del_address sw_if_index 3 2002:62::2/64
ip_neighbor_add_del sw_if_index 2 dst 2001:62::1 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:8b:22:01
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:7d:01:09
ip_add_del_route 2003:62::1/64 via 2002:62::3 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 2003:62::2/64 via 2002:62::4 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9 ipv6
ip_table_add_del table 99 ipv6
sw_interface_set_table sw_if_index 4 vrf 9 ipv6
sw_interface_set_table sw_if_index 3 vrf 99 ipv6
sw_interface_set_table sw_if_index 2 vrf 9 ipv6
sw_interface_set_table sw_if_index 1 vrf 99 ipv6
sw_interface_add_del_address sw_if_index 2 2003:62::3/64
sw_interface_add_del_address sw_if_index 1 2003:62::4/64
sw_interface_add_del_address sw_if_index 4 2002:62::3/64
sw_interface_add_del_address sw_if_index 3 2002:62::4/64
ip_neighbor_add_del sw_if_index 2 dst 2003:62::1 mac fa:16:3e:2d:85:3a
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:9e:4b:60
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:db:58:4f
ip_add_del_route 2001:62::1/64 via 2002:62::1 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 2001:62::2/64 via 2002:62::2 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc05: tg packets routed to tg through dut1 and dut2, vpp configured with two vrfs
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9 ipv6
ip_table_add_del table 99 ipv6
sw_interface_set_table sw_if_index 4 vrf 9 ipv6
sw_interface_set_table sw_if_index 3 vrf 99 ipv6
sw_interface_set_table sw_if_index 2 vrf 9 ipv6
sw_interface_set_table sw_if_index 1 vrf 99 ipv6
sw_interface_add_del_address sw_if_index 2 2001:62::3/64
sw_interface_add_del_address sw_if_index 1 2001:62::4/64
sw_interface_add_del_address sw_if_index 4 2002:62::1/64
sw_interface_add_del_address sw_if_index 3 2002:62::2/64
ip_neighbor_add_del sw_if_index 2 dst 2001:62::1 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:8b:22:01
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:7d:01:09
ip_add_del_route 2003:62::1/64 via 2002:62::3 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 2003:62::2/64 via 2002:62::4 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9 ipv6
ip_table_add_del table 99 ipv6
sw_interface_set_table sw_if_index 4 vrf 9 ipv6
sw_interface_set_table sw_if_index 3 vrf 99 ipv6
sw_interface_set_table sw_if_index 2 vrf 9 ipv6
sw_interface_set_table sw_if_index 1 vrf 99 ipv6
sw_interface_add_del_address sw_if_index 2 2003:62::3/64
sw_interface_add_del_address sw_if_index 1 2003:62::4/64
sw_interface_add_del_address sw_if_index 4 2002:62::3/64
sw_interface_add_del_address sw_if_index 3 2002:62::4/64
ip_neighbor_add_del sw_if_index 2 dst 2003:62::1 mac fa:16:3e:2d:85:3a
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:9e:4b:60
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:db:58:4f
ip_add_del_route 2001:62::1/64 via 2002:62::1 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 2001:62::2/64 via 2002:62::2 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc06: tg packets not routed to dut ingress interface in different vrf, vpp configured with two vrfs
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9 ipv6
ip_table_add_del table 99 ipv6
sw_interface_set_table sw_if_index 4 vrf 9 ipv6
sw_interface_set_table sw_if_index 3 vrf 99 ipv6
sw_interface_set_table sw_if_index 2 vrf 9 ipv6
sw_interface_set_table sw_if_index 1 vrf 99 ipv6
sw_interface_add_del_address sw_if_index 2 2001:62::3/64
sw_interface_add_del_address sw_if_index 1 2001:62::4/64
sw_interface_add_del_address sw_if_index 4 2002:62::1/64
sw_interface_add_del_address sw_if_index 3 2002:62::2/64
ip_neighbor_add_del sw_if_index 2 dst 2001:62::1 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:8b:22:01
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:7d:01:09
ip_add_del_route 2003:62::1/64 via 2002:62::3 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 2003:62::2/64 via 2002:62::4 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9 ipv6
ip_table_add_del table 99 ipv6
sw_interface_set_table sw_if_index 4 vrf 9 ipv6
sw_interface_set_table sw_if_index 3 vrf 99 ipv6
sw_interface_set_table sw_if_index 2 vrf 9 ipv6
sw_interface_set_table sw_if_index 1 vrf 99 ipv6
sw_interface_add_del_address sw_if_index 2 2003:62::3/64
sw_interface_add_del_address sw_if_index 1 2003:62::4/64
sw_interface_add_del_address sw_if_index 4 2002:62::3/64
sw_interface_add_del_address sw_if_index 3 2002:62::4/64
ip_neighbor_add_del sw_if_index 2 dst 2003:62::1 mac fa:16:3e:2d:85:3a
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:9e:4b:60
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:db:58:4f
ip_add_del_route 2001:62::1/64 via 2002:62::1 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 2001:62::2/64 via 2002:62::2 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc07: tg packets not routed to dut egress interface in different vrf, vpp configured with two vrfs
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9 ipv6
ip_table_add_del table 99 ipv6
sw_interface_set_table sw_if_index 4 vrf 9 ipv6
sw_interface_set_table sw_if_index 3 vrf 99 ipv6
sw_interface_set_table sw_if_index 2 vrf 9 ipv6
sw_interface_set_table sw_if_index 1 vrf 99 ipv6
sw_interface_add_del_address sw_if_index 2 2001:62::3/64
sw_interface_add_del_address sw_if_index 1 2001:62::4/64
sw_interface_add_del_address sw_if_index 4 2002:62::1/64
sw_interface_add_del_address sw_if_index 3 2002:62::2/64
ip_neighbor_add_del sw_if_index 2 dst 2001:62::1 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:8b:22:01
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:7d:01:09
ip_add_del_route 2003:62::1/64 via 2002:62::3 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 2003:62::2/64 via 2002:62::4 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9 ipv6
ip_table_add_del table 99 ipv6
sw_interface_set_table sw_if_index 4 vrf 9 ipv6
sw_interface_set_table sw_if_index 3 vrf 99 ipv6
sw_interface_set_table sw_if_index 2 vrf 9 ipv6
sw_interface_set_table sw_if_index 1 vrf 99 ipv6
sw_interface_add_del_address sw_if_index 2 2003:62::3/64
sw_interface_add_del_address sw_if_index 1 2003:62::4/64
sw_interface_add_del_address sw_if_index 4 2002:62::3/64
sw_interface_add_del_address sw_if_index 3 2002:62::4/64
ip_neighbor_add_del sw_if_index 2 dst 2003:62::1 mac fa:16:3e:2d:85:3a
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:9e:4b:60
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:db:58:4f
ip_add_del_route 2001:62::1/64 via 2002:62::1 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 2001:62::2/64 via 2002:62::2 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc08: tg packets not routed to dut2 ingress interface in different vrf through dut1, vpp configured with two vrfs
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9 ipv6
ip_table_add_del table 99 ipv6
sw_interface_set_table sw_if_index 4 vrf 9 ipv6
sw_interface_set_table sw_if_index 3 vrf 99 ipv6
sw_interface_set_table sw_if_index 2 vrf 9 ipv6
sw_interface_set_table sw_if_index 1 vrf 99 ipv6
sw_interface_add_del_address sw_if_index 2 2001:62::3/64
sw_interface_add_del_address sw_if_index 1 2001:62::4/64
sw_interface_add_del_address sw_if_index 4 2002:62::1/64
sw_interface_add_del_address sw_if_index 3 2002:62::2/64
ip_neighbor_add_del sw_if_index 2 dst 2001:62::1 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:8b:22:01
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:7d:01:09
ip_add_del_route 2003:62::1/64 via 2002:62::3 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 2003:62::2/64 via 2002:62::4 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9 ipv6
ip_table_add_del table 99 ipv6
sw_interface_set_table sw_if_index 4 vrf 9 ipv6
sw_interface_set_table sw_if_index 3 vrf 99 ipv6
sw_interface_set_table sw_if_index 2 vrf 9 ipv6
sw_interface_set_table sw_if_index 1 vrf 99 ipv6
sw_interface_add_del_address sw_if_index 2 2003:62::3/64
sw_interface_add_del_address sw_if_index 1 2003:62::4/64
sw_interface_add_del_address sw_if_index 4 2002:62::3/64
sw_interface_add_del_address sw_if_index 3 2002:62::4/64
ip_neighbor_add_del sw_if_index 2 dst 2003:62::1 mac fa:16:3e:2d:85:3a
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:9e:4b:60
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:db:58:4f
ip_add_del_route 2001:62::1/64 via 2002:62::1 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 2001:62::2/64 via 2002:62::2 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc09: tg packets not routed to dut2 egress interface in different vrf through dut1, vpp configured with two vrfs
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9 ipv6
ip_table_add_del table 99 ipv6
sw_interface_set_table sw_if_index 4 vrf 9 ipv6
sw_interface_set_table sw_if_index 3 vrf 99 ipv6
sw_interface_set_table sw_if_index 2 vrf 9 ipv6
sw_interface_set_table sw_if_index 1 vrf 99 ipv6
sw_interface_add_del_address sw_if_index 2 2001:62::3/64
sw_interface_add_del_address sw_if_index 1 2001:62::4/64
sw_interface_add_del_address sw_if_index 4 2002:62::1/64
sw_interface_add_del_address sw_if_index 3 2002:62::2/64
ip_neighbor_add_del sw_if_index 2 dst 2001:62::1 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:8b:22:01
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:7d:01:09
ip_add_del_route 2003:62::1/64 via 2002:62::3 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 2003:62::2/64 via 2002:62::4 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9 ipv6
ip_table_add_del table 99 ipv6
sw_interface_set_table sw_if_index 4 vrf 9 ipv6
sw_interface_set_table sw_if_index 3 vrf 99 ipv6
sw_interface_set_table sw_if_index 2 vrf 9 ipv6
sw_interface_set_table sw_if_index 1 vrf 99 ipv6
sw_interface_add_del_address sw_if_index 2 2003:62::3/64
sw_interface_add_del_address sw_if_index 1 2003:62::4/64
sw_interface_add_del_address sw_if_index 4 2002:62::3/64
sw_interface_add_del_address sw_if_index 3 2002:62::4/64
ip_neighbor_add_del sw_if_index 2 dst 2003:62::1 mac fa:16:3e:2d:85:3a
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:9e:4b:60
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:db:58:4f
ip_add_del_route 2001:62::1/64 via 2002:62::1 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 2001:62::2/64 via 2002:62::2 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace
tc10: tg packets not routed to tg in different vrf through dut1 and dut2, vpp configured with two vrfs
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9 ipv6
ip_table_add_del table 99 ipv6
sw_interface_set_table sw_if_index 4 vrf 9 ipv6
sw_interface_set_table sw_if_index 3 vrf 99 ipv6
sw_interface_set_table sw_if_index 2 vrf 9 ipv6
sw_interface_set_table sw_if_index 1 vrf 99 ipv6
sw_interface_add_del_address sw_if_index 2 2001:62::3/64
sw_interface_add_del_address sw_if_index 1 2001:62::4/64
sw_interface_add_del_address sw_if_index 4 2002:62::1/64
sw_interface_add_del_address sw_if_index 3 2002:62::2/64
ip_neighbor_add_del sw_if_index 2 dst 2001:62::1 mac fa:16:3e:d2:8b:9f
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:8b:22:01
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:7d:01:09
ip_add_del_route 2003:62::1/64 via 2002:62::3 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 2003:62::2/64 via 2002:62::4 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 9 ipv6
ip_table_add_del table 99 ipv6
sw_interface_set_table sw_if_index 4 vrf 9 ipv6
sw_interface_set_table sw_if_index 3 vrf 99 ipv6
sw_interface_set_table sw_if_index 2 vrf 9 ipv6
sw_interface_set_table sw_if_index 1 vrf 99 ipv6
sw_interface_add_del_address sw_if_index 2 2003:62::3/64
sw_interface_add_del_address sw_if_index 1 2003:62::4/64
sw_interface_add_del_address sw_if_index 4 2002:62::3/64
sw_interface_add_del_address sw_if_index 3 2002:62::4/64
ip_neighbor_add_del sw_if_index 2 dst 2003:62::1 mac fa:16:3e:2d:85:3a
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:9e:4b:60
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:db:58:4f
ip_add_del_route 2001:62::1/64 via 2002:62::1 vrf 9 sw_if_index 4 resolve-attempts 10 count 1
ip_add_del_route 2001:62::2/64 via 2002:62::2 vrf 99 sw_if_index 3 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
exec show trace

ip6 tunnels

lisp

eth2p-ethip6lisp-l2bdbasemaclrn-func

l2-lispgpe-ip6 encapsulation test cases

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IP6-ICMPv6-LISPGpe-IP6
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with L2 bridge domains and neighbors. LISPoIPv6 tunnel is configured between DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv6 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv6 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC6830.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: route ipv6 packet through lisp with bridge domain setup.
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::1/64
sw_interface_add_del_address sw_if_index 1 2001:cdba:1::1/64
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:7d:01:09
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
lisp_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 5 bd_index 10
lisp_add_del_local_eid vni 5 eid 08:22:22:22:22:11 locator-set tst_locator
lisp_add_del_map_resolver 2001:cdba:2::2
lisp_add_del_remote_mapping add vni 5 eid 08:22:22:22:22:22 seid 08:22:22:22:22:11 rloc 2001:cdba:3::2
lisp_add_del_adjacency add vni 5 reid 08:22:22:22:22:22 leid 08:22:22:22:22:11
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::2/64
sw_interface_add_del_address sw_if_index 1 2001:cdba:2::1/64
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:2::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:db:58:4f
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
lisp_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 5 bd_index 10
lisp_add_del_local_eid vni 5 eid 08:22:22:22:22:22 locator-set tst_locator
lisp_add_del_map_resolver 2001:cdba:1::2
lisp_add_del_remote_mapping add vni 5 eid 08:22:22:22:22:11 seid 08:22:22:22:22:22 rloc 2001:cdba:3::1
lisp_add_del_adjacency add vni 5 reid 08:22:22:22:22:11 leid 08:22:22:22:22:22
exec show trace

eth2p-ethip6lispgpe-ip4base-func

LISP static adjacency test cases

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv6-LISP-IPv4-ICMPv4 on DUT1-DUT2, Eth-IPv4-ICMPv4 on TG-DUTn for IPv4 routing over LISPoIPv6 tunnel.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with IPv4 routing and static routes. LISPoIPv6 tunnel is configured between DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC6830.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 route ipv4 bidirectionally over lispoipv6 tunnel
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 6:0:3::1/64
sw_interface_add_del_address sw_if_index 1 6.0.1.1/24
ip_neighbor_add_del sw_if_index 1 dst 6.0.1.2 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_add_del_locator_set locator-set ls1
lisp_add_del_locator locator-set ls1 sw_if_index 3 p 1 w 1
lisp_add_del_local_eid vni 0 eid 6.0.1.0/24 locator-set ls1
lisp_add_del_remote_mapping add vni 0 eid 6.0.2.0/24 seid 6.0.1.0/24 rloc 6:0:3::2
lisp_add_del_adjacency add vni 0 reid 6.0.2.0/24 leid 6.0.1.0/24
lisp_add_del_remote_mapping del vni 0 eid 6.0.2.0/24 seid 6.0.1.0/24 rloc 6:0:3::2
lisp_add_del_adjacency del vni 0 reid 6.0.2.0/24 leid 6.0.1.0/24
ip_neighbor_add_del sw_if_index 3 dst 6:0:3::20 mac fa:16:3e:7d:01:09
lisp_add_del_remote_mapping add vni 0 eid 6.0.2.0/24 seid 6.0.1.0/24 rloc 6:0:3::20
lisp_add_del_adjacency add vni 0 reid 6.0.2.0/24 leid 6.0.1.0/24
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 6:0:3::2/64
sw_interface_add_del_address sw_if_index 1 6.0.2.1/24
ip_neighbor_add_del sw_if_index 1 dst 6.0.2.2 mac fa:16:3e:4f:5b:43
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_add_del_locator_set locator-set ls1
lisp_add_del_locator locator-set ls1 sw_if_index 3 p 1 w 1
lisp_add_del_local_eid vni 0 eid 6.0.2.0/24 locator-set ls1
lisp_add_del_remote_mapping add vni 0 eid 6.0.1.0/24 seid 6.0.2.0/24 rloc 6:0:3::1
lisp_add_del_adjacency add vni 0 reid 6.0.1.0/24 leid 6.0.2.0/24
sw_interface_add_del_address sw_if_index 3 del-all
sw_interface_add_del_address sw_if_index 3 6:0:3::20/64
ip_neighbor_add_del sw_if_index 3 dst 6:0:3::1 mac fa:16:3e:db:58:4f
exec show trace

eth2p-ethip6lispgpe-ip6base-func

ip6-lispgpe-ip6 encapsulation test cases

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv6-LISP-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUTn for IPv6 routing over LISPoIPv6 tunnel.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with IPv6 routing and static routes. LISPoIPv6 tunnel is configured between DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv6 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv6 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC6830.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 route ipv6 bidirectionally over lisp gpe tunnel using physical interfaces
 DUT1:  
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:1::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:7d:01:09
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 2001:cdba:1::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 2001:cdba:2::0/64 seid 2001:cdba:1::0/64 rloc 2001:cdba:3::2
lisp_add_del_adjacency add vni 0 reid 2001:cdba:2::0/64 leid 2001:cdba:1::0/64
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::2/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:2::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:2::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:db:58:4f
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 2001:cdba:2::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 2001:cdba:1::0/64 seid 2001:cdba:2::0/64 rloc 2001:cdba:3::1
lisp_add_del_adjacency add vni 0 reid 2001:cdba:1::0/64 leid 2001:cdba:2::0/64
exec show trace

eth2p-ethip6lispgpe-ip6basevrf-func

ip6-lispgpe-ip6 encapsulation test cases

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv6-LISP-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUTn for IPv6 routing over LISPoIPv6 tunnel.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with IPv6 routing and static routes. LISPoIPv6 tunnel is configured between DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv6 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv6 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC6830.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 route ipv6 bidirectionally over lisp gpe tunnel using physical interfaces and vrf is enabled
 DUT1:  
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 1 ipv6
sw_interface_set_table sw_if_index 1 vrf 1 ipv6
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:1::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:7d:01:09
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 1 vrf 1
lisp_add_del_local_eid vni 1 eid 2001:cdba:1::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 1 eid 2001:cdba:2::0/64 seid 2001:cdba:1::0/64 rloc 2001:cdba:3::2
lisp_add_del_adjacency add vni 1 reid 2001:cdba:2::0/64 leid 2001:cdba:1::0/64
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 1 ipv6
sw_interface_set_table sw_if_index 1 vrf 1 ipv6
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::2/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:2::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:2::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:db:58:4f
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 1 vrf 1
lisp_add_del_local_eid vni 1 eid 2001:cdba:2::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 1 eid 2001:cdba:1::0/64 seid 2001:cdba:2::0/64 rloc 2001:cdba:3::1
lisp_add_del_adjacency add vni 1 reid 2001:cdba:1::0/64 leid 2001:cdba:2::0/64
exec show trace

vxlan

eth2p-ethip6vxlan-l2bdbasemaclrn-func

Bridge-domain with VXLAN test cases - IPv6

  • [Top] Network topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet encapsulations: Eth-IPv6-VXLAN-Eth-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUTn for L2 switching of IPv6.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with L2 bridge-domain (L2BD) switching combined with MAC learning enabled; VXLAN tunnels are configured between L2BDs on DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv6 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv6 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC7348.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 with l2bd and vxlanoipv6 tunnels switch icmpv6 between tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 3ffe:64::1/64
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
vxlan_add_del_tunnel src 3ffe:64::1 dst 3ffe:64::2 vni 23
sw_interface_dump
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=10)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 3ffe:64::2/64
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
vxlan_add_del_tunnel src 3ffe:64::2 dst 3ffe:64::1 vni 23
sw_interface_dump
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=10)
exec show trace

eth4p-ethip6vxlan-l2bdbasemaclrn-l2shg-func

L2BD with SHG combined with VXLAN test cases - IPv6

  • [Top] Network topologies: TG=DUT1=DUT2=TG 3-node circular topology with double parallel links.
  • [Enc] Packet encapsulations: th-IPv6-VXLAN-Eth-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUTn for L2 switching of IPv6.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with L2 bridge-domain (L2BD) switching combined with MAC learning enabled and Split Horizon Groups (SHG); VXLAN tunnels are configured between L2BDs on DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv6 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC7348.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 with l2bd and vxlanoipv6 tunnels in shg switch icmpv6 between tg links
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 3ffe:64::1/64
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
vxlan_add_del_tunnel src 3ffe:64::1 dst 3ffe:64::2 vni 23
sw_interface_dump
vxlan_add_del_tunnel src 3ffe:64::1 dst 3ffe:64::2 vni 35
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_dump
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=2,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=1,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=1,port_type=0,bd_id=10)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 3ffe:64::2/64
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
vxlan_add_del_tunnel src 3ffe:64::2 dst 3ffe:64::1 vni 23
sw_interface_dump
vxlan_add_del_tunnel src 3ffe:64::2 dst 3ffe:64::1 vni 35
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_dump
bridge_domain_add_del(bd_id=20,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=2,enable=1,shg=0,port_type=0,bd_id=20)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=20)
bridge_domain_add_del(bd_id=30,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=30)
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=0,port_type=0,bd_id=30)
exec show trace
tc02: dut1 and dut2 with l2bd and vxlanoipv6 tunnels in different shgs switch icmpv6 between tg links
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 3ffe:64::1/64
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
vxlan_add_del_tunnel src 3ffe:64::1 dst 3ffe:64::2 vni 23
sw_interface_dump
vxlan_add_del_tunnel src 3ffe:64::1 dst 3ffe:64::2 vni 35
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_dump
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=2,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=1,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=2,port_type=0,bd_id=10)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 3ffe:64::2/64
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
vxlan_add_del_tunnel src 3ffe:64::2 dst 3ffe:64::1 vni 23
sw_interface_dump
vxlan_add_del_tunnel src 3ffe:64::2 dst 3ffe:64::1 vni 35
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_dump
bridge_domain_add_del(bd_id=20,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=2,enable=1,shg=0,port_type=0,bd_id=20)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=20)
bridge_domain_add_del(bd_id=30,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=30)
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=0,port_type=0,bd_id=30)
exec show trace

l2bd

eth2p-dot1ad–dot1q-l2bdbasemaclrn-vlantrans21-func

L2BD with VLAN tag rewrite test cases - transalte-2-1

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet encapsulations: Eth-dot1ad-IPv4-ICMPv4 or Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1, Eth-dot1q-IPv4-ICMPv4 or Eth-dot1q-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv4-ICMPv4 or Eth-IPv6-ICMPv6 on TG-DUT2 for L2 switching of IPv4/IPv6.
  • [Cfg] DUT configuration: DUT1 is configured with bridge domain (L2BD) switching combined with MAC learning enabled and added VLAN sub-interface with VLAN tag rewrite translate-2-1 method of interface towards TG and interface towards DUT2. DUT2 is configured with L2 bridge domain (L2BD) switching between VLAN sub-interface with VLAN tag rewrite pop-1 method of interface towards DUT1 and interface towards TG.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent from TG on link to DUT1 and received in TG on link form DUT2; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: IEEE 802.1q, IEEE 802.1ad.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 with l2bd and vlan translate-2-1 (dut1) switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=7,tag2=0,push_dot1q=1,tag1=120,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_vlan_subif sw_if_index 3 vlan 120
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=3,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace
tc02: dut1 and dut2 with l2bd and vlan translate-2-1 with wrong tag used (dut1) switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=7,tag2=0,push_dot1q=1,tag1=150,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_vlan_subif sw_if_index 3 vlan 120
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=3,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace
tc03: dut1 and dut2 with l2bd and vlan translate-2-1 (dut1) switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=7,tag2=0,push_dot1q=1,tag1=120,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_vlan_subif sw_if_index 3 vlan 120
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=3,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace
tc04: dut1 and dut2 with l2bd and vlan translate-2-1 with wrong tag used (dut1) switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=7,tag2=0,push_dot1q=1,tag1=150,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_vlan_subif sw_if_index 3 vlan 120
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=3,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

eth2p-dot1ad-l2bdbasemaclrn-vlantrans22-func

L2BD with VLAN tag rewrite test cases - translate-2-2

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet encapsulations: Eth-dot1ad-IPv4-ICMPv4 or Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1 and DUT1-DUT2, Eth-IPv4-ICMPv4 or Eth-IPv6-ICMPv6 on TG-DUT2 for L2 switching of IPv4/IPv6.
  • [Cfg] DUT configuration: DUT1 is configured with bridge domain (L2BD) switching combined with MAC learning enabled and added VLAN sub-interface with VLAN tag rewrite translate-2-2 method of interface towards TG and interface towards DUT2. DUT2 is configured with L2 bridge domain (L2BD) switching between VLAN sub-interface with VLAN tag rewrite pop-2 method of interface towards DUT1 and interface towards TG.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent from TG on link to DUT1 and received in TG on link form DUT2; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: IEEE 802.1q, IEEE 802.1ad.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 with l2bd and vlan translate-2-2 switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=8,tag2=220,push_dot1q=0,tag1=120,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace
tc02: dut1 and dut2 with l2bd and vlan translate-2-2 with wrong inner tag used (dut1) switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=8,tag2=250,push_dot1q=0,tag1=120,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace
tc03: dut1 and dut2 with l2bd and vlan translate-2-2 with wrong outer tag used (dut1) switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=8,tag2=220,push_dot1q=0,tag1=150,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace
tc04: dut1 and dut2 with l2bd and vlan translate-2-2 with wrong outer and inner tags used (dut1) switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=8,tag2=250,push_dot1q=0,tag1=150,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace
tc05: dut1 and dut2 with l2bd and vlan translate-2-2 switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=8,tag2=220,push_dot1q=0,tag1=120,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace
tc06: dut1 and dut2 with l2bd and vlan translate-2-2 with wrong inner tag used (dut1) switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=8,tag2=250,push_dot1q=0,tag1=120,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace
tc07: dut1 and dut2 with l2bd and vlan translate-2-2 with wrong outer tag used (dut1) switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=8,tag2=220,push_dot1q=0,tag1=150,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace
tc08: dut1 and dut2 with l2bd and vlan translate-2-2 with wrong outer and inner tags used (dut1) switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=8,tag2=250,push_dot1q=0,tag1=150,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

eth2p-dot1q–dot1ad-l2bdbasemaclrn-vlantrans12-func

L2BD with VLAN tag rewrite test cases - translate-1-2

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet encapsulations: Eth-dot1q-IPv4-ICMPv4 or Eth-dot1q-IPv6-ICMPv6 on TG-DUT1, Eth-dot1ad-IPv4-ICMPv4 or Eth-dot1ad-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv4-ICMPv4 or Eth-IPv6-ICMPv6 on TG-DUT2 for L2 switching of IPv4/IPv6.
  • [Cfg] DUT configuration: DUT1 is configured with bridge domain (L2BD) switching combined with MAC learning enabled and added VLAN sub-interface with VLAN tag rewrite translate-1-2 method of interface towards TG and interface towards DUT2. DUT2 is configured with L2 bridge domain (L2BD) switching between VLAN sub-interface with VLAN tag rewrite pop-2 method of interface towards DUT1 and interface towards TG.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent from TG on link to DUT1 and received in TG on link form DUT2; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: IEEE 802.1q, IEEE 802.1ad.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 with l2bd and vlan translate-1-2 (dut1) switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=6,tag2=210,push_dot1q=0,tag1=120,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace
tc02: dut1 and dut2 with l2bd and vlan translate-1-2 with wrong inner tag used (dut1) switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=6,tag2=250,push_dot1q=0,tag1=120,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace
tc03: dut1 and dut2 with l2bd and vlan translate-1-2 with wrong outer tag used (dut1) switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=6,tag2=210,push_dot1q=0,tag1=150,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace
tc04: dut1 and dut2 with l2bd and vlan translate-1-2 with wrong outer and inner tag used (dut1) switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=6,tag2=250,push_dot1q=0,tag1=150,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace
tc05: dut1 and dut2 with l2bd and vlan translate-1-2 (dut1) switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=6,tag2=220,push_dot1q=0,tag1=120,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace
tc06: dut1 and dut2 with l2bd and vlan translate-1-2 with wrong inner tag used (dut1) switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=6,tag2=250,push_dot1q=0,tag1=120,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace
tc07: dut1 and dut2 with l2bd and vlan translate-1-2 with wrong outer tag used (dut1) switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=6,tag2=220,push_dot1q=0,tag1=150,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace
tc08: dut1 and dut2 with l2bd and vlan translate-1-2 with wrong outer and inner tag used (dut1) switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=6,tag2=250,push_dot1q=0,tag1=150,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

eth2p-dot1q-l2bdbasemaclrn-vlantrans11-func

L2BD with VLAN tag rewrite test cases - translate-1-1

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet encapsulations: Eth-dot1q-IPv4-ICMPv4 or Eth-dot1q-IPv6-ICMPv6 on TG-DUT1 and DUT1-DUT2, Eth-IPv4-ICMPv4 or Eth-IPv6-ICMPv6 on TG-DUT2 for L2 switching of IPv4/IPv6.
  • [Cfg] DUT configuration: DUT1 is configured with bridge domain (L2BD) switching combined with MAC learning enabled and added VLAN sub-interface with VLAN tag rewrite translate-1-1 method of interface towards TG and interface towards DUT2. DUT2 is configured with L2 bridge domain (L2BD) switching between VLAN sub-interface with VLAN tag rewrite pop-1 method of interface towards DUT1 and interface towards TG.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent from TG on link to DUT1 and received in TG on link form DUT2; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: IEEE 802.1q, IEEE 802.1ad.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 with l2bd and vlan translate-1-1 (dut1) switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=5,tag2=0,push_dot1q=1,tag1=120,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_vlan_subif sw_if_index 3 vlan 120
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=3,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace
tc02: dut1 and dut2 with l2bd and vlan translate-1-1 with wrong tag used (dut1) switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=5,tag2=0,push_dot1q=1,tag1=150,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_vlan_subif sw_if_index 3 vlan 120
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=3,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace
tc03: dut1 and dut2 with l2bd and vlan translate-1-1 (dut1) switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=5,tag2=0,push_dot1q=1,tag1=120,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_vlan_subif sw_if_index 3 vlan 120
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=3,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace
tc04: dut1 and dut2 with l2bd and vlan translate-1-1 with wrong tag used (dut1) switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=5,tag2=0,push_dot1q=1,tag1=150,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_vlan_subif sw_if_index 3 vlan 120
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=3,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

eth2p-eth-l2bdbasemaclrn-func

L2 bridge-domain test cases

  • [Top] Network Topologies: TG=DUT1 2-node topology with two links between nodes; TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 for L2 switching of IPv4; Eth-IPv6-ICMPv6 for L2 switching of IPv6 use. Both apply to all links.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with L2 bridge-domain (L2BD) switching combined with MAC learning enabled.
  • [Ver] TG verification: Test ICMPv4 (or ICMPv6) Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv4 (IPv6) src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications:
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut reports active interfaces
 DUT1:  
exec show trace

DUT2:
exec show trace
tc02: dut with l2bd (mac learning) switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=2,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
exec show trace
tc03: dut1 and dut2 with l2bd (mac learning) switch between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
bridge_domain_add_del(bd_id=2,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=2)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=2)
exec show trace

eth2p-eth-l2bdbasemacstc-func

L2 bridge-domain test cases

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 for L2 switching of IPv4; Eth-IPv6-ICMPv6 for L2 switching of IPv6 use. Both apply to all links.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with L2 bridge-domain (L2BD) switching combined with static MACs.
  • [Ver] TG verification: Test ICMPv4 (or ICMPv6) Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv4 (IPv6) src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications:
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 with l2bd (static macs) switch between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=0,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
l2fib_add_del(static_mac=1,filter_mac=0,bd_id=1,is_add=1,mac=xfa>,x99`,sw_if_index=1,bvi_mac=0)
l2fib_add_del(static_mac=1,filter_mac=0,bd_id=1,is_add=1,mac=xfa>O[C,sw_if_index=3,bvi_mac=0)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
bridge_domain_add_del(bd_id=2,is_add=1,arp_term=0,flood=1,learn=0,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=2)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=2)
l2fib_add_del(static_mac=1,filter_mac=0,bd_id=2,is_add=1,mac=xfa>,x99`,sw_if_index=3,bvi_mac=0)
l2fib_add_del(static_mac=1,filter_mac=0,bd_id=2,is_add=1,mac=xfa>O[C,sw_if_index=1,bvi_mac=0)
exec show trace

eth4p-eth-l2bdbasemaclrn-l2shg-func

L2 bridge-domain test cases

  • [Top] Network Topologies: TG=DUT1=DUT2=TG 3-node circular topology with double parallel links.
  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 for L2 switching of IPv4; Eth-IPv6-ICMPv6 for L2 switching of IPv6 use. Both apply to all links.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with L2 bridge-domain (L2BD) switching combined with MAC learning enabled and Split Horizon Groups (SHG).
  • [Ver] TG verification: Test ICMPv4 (or ICMPv6) Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv4 (IPv6) src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications:
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 with l2bd (mac learn) and shg switch between four tg links
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=2,enable=1,shg=3,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=3,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
bridge_domain_add_del(bd_id=2,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=2,enable=1,shg=4,port_type=0,bd_id=2)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=4,port_type=0,bd_id=2)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=2)
exec show trace

l2xc

eth2p-dot1ad–dot1q-l2xcbase-vlantrans21-func

L2XC with VLAN tag rewrite test cases - translate-2-1

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet encapsulations: Eth-dot1ad-IPv4-ICMPv4 or Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1, Eth-dot1q-IPv4-ICMPv4 or Eth-dot1aq-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv4-ICMPv4 on TG-DUT2 for L2 switching of IPv4/IPv6.
  • [Cfg] DUT configuration: DUT1 is configured with L2 cross-connect (L2XC) switching between VLAN sub-interface with VLAN tag rewrite translate-2-1 method of interface towards TG and interface towards DUT2. DUT2 is configured configured with L2 cross-connect (L2XC) switching between VLAN sub-interface with VLAN tag rewrite pop-1 method of interface towards DUT1 and interface towards TG.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent from TG on link to DUT1 and received in TG on link form DUT2; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: IEEE 802.1q, IEEE 802.1ad.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 with l2xc and vlan translate-2-1 (dut1) switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=7,tag2=0,push_dot1q=1,tag1=120,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_vlan_subif sw_if_index 3 vlan 120
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=3,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace
tc02: dut1 and dut2 with l2xc and vlan translate-2-1 with wrong tag used (dut1) switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=7,tag2=0,push_dot1q=1,tag1=150,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_vlan_subif sw_if_index 3 vlan 120
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=3,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace
tc03: dut1 and dut2 with l2xc and vlan translate-2-1 (dut1) switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=7,tag2=0,push_dot1q=1,tag1=120,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_vlan_subif sw_if_index 3 vlan 120
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=3,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace
tc04: dut1 and dut2 with l2xc and vlan translate-2-1 with wrong tag used (dut1) switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=7,tag2=0,push_dot1q=1,tag1=150,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_vlan_subif sw_if_index 3 vlan 120
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=3,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace

eth2p-dot1ad-l2xcbase-func

L2 cross-connect with QinQ test cases

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet encapsulations: Eth-dot1ad-IPv4-ICMPv4 on DUT1-DUT2, Eth-IPv4-ICMPv4 on TG-DUTn for L2 switching of IPv4.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with L2 cross-connect (L2XC) switching with 802.1ad QinQ VLAN tag push and pop.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: IEEE 802.1ad.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 with l2xc and two vlan push-pop switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 100 inner_vlan_id 200 two_tags
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 100 inner_vlan_id 200 two_tags
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace

eth2p-dot1ad-l2xcbase-vlantrans22-func

L2XC with VLAN tag rewrite test cases - translate-2-2

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet encapsulations: Eth-dot1ad-IPv4-ICMPv4 or Eth-dot1ad-IPv6-ICMPv6 on TG-DUT1 and DUT1-DUT2, Eth-IPv4-ICMPv4 or Eth-IPv6-ICMPv6 on TG-DUT2 for L2 switching of IPv4/IPv6.
  • [Cfg] DUT configuration: DUT1 is configured with L2 cross-connect (L2XC) switching between VLAN sub-interface with VLAN tag rewrite translate-2-2 method of interface towards TG and interface towards DUT2. DUT2 is configured configured with L2 cross-connect (L2XC) switching between VLAN sub-interface with VLAN tag rewrite pop-2 method of interface towards DUT1 and interface towards TG.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent from TG on link to DUT1 and received in TG on link form DUT2; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: IEEE 802.1q, IEEE 802.1ad.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 with l2xc and vlan translate-2-2 switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=8,tag2=220,push_dot1q=0,tag1=120,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace
tc02: dut1 and dut2 with l2xc and vlan translate-2-2 with wrong inner tag used (dut1) switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=8,tag2=250,push_dot1q=0,tag1=120,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace
tc03: dut1 and dut2 with l2xc and vlan translate-2-2 with wrong outer tag used (dut1) switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=8,tag2=220,push_dot1q=0,tag1=150,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace
tc04: dut1 and dut2 with l2xc and vlan translate-2-2 with wrong outer and inner tags used (dut1) switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=8,tag2=250,push_dot1q=0,tag1=150,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace
tc05: dut1 and dut2 with l2xc and vlan translate-2-2 switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=8,tag2=220,push_dot1q=0,tag1=120,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace
tc06: dut1 and dut2 with l2xc and vlan translate-2-2 with wrong inner tag used (dut1) switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=8,tag2=250,push_dot1q=0,tag1=120,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace
tc07: dut1 and dut2 with l2xc and vlan translate-2-2 with wrong outer tag used (dut1) switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=8,tag2=220,push_dot1q=0,tag1=150,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace
tc08: dut1 and dut2 with l2xc and vlan translate-2-2 with wrong outer and inner tags used (dut1) switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_subif sw_if_index 1 sub_id 10 outer_vlan_id 110 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=8,tag2=250,push_dot1q=0,tag1=150,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace

eth2p-dot1q–dot1ad-l2xcbase-vlantrans12-func

L2XC with VLAN tag rewrite test cases - translate-1-2

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet encapsulations: Eth-dot1q-IPv4-ICMPv4 or Eth-dot1q-IPv6-ICMPv6 on TG-DUT1, Eth-dot1ad-IPv4-ICMPv4 or Eth-dot1ad-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv4-ICMPv4 or Eth-IPv6-ICMPv6 on TG-DUT2 for L2 switching of IPv4/IPv6.
  • [Cfg] DUT configuration: DUT1 is configured with L2 cross-connect (L2XC) switching between VLAN sub-interface with VLAN tag rewrite translate-1-2 method of interface towards TG and interface towards DUT2. DUT2 is configured configured with L2 cross-connect (L2XC) switching between VLAN sub-interface with VLAN tag rewrite pop-2 method of interface towards DUT1 and interface towards TG.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent from TG on link to DUT1 and received in TG on link form DUT2; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: IEEE 802.1q, IEEE 802.1ad.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 with l2xc and vlan translate-1-2 (dut1) switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=6,tag2=210,push_dot1q=0,tag1=120,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace
tc02: dut1 and dut2 with l2xc and vlan translate-1-2 with wrong inner tag used (dut1) switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=6,tag2=250,push_dot1q=0,tag1=120,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace
tc03: dut1 and dut2 with l2xc and vlan translate-1-2 with wrong outer tag used (dut1) switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=6,tag2=210,push_dot1q=0,tag1=150,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace
tc04: dut1 and dut2 with l2xc and vlan translate-1-2 with wrong outer and inner tag used (dut1) switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=6,tag2=250,push_dot1q=0,tag1=150,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 210 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace
tc05: dut1 and dut2 with l2xc and vlan translate-1-2 (dut1) switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=6,tag2=220,push_dot1q=0,tag1=120,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace
tc06: dut1 and dut2 with l2xc and vlan translate-1-2 with wrong inner tag used (dut1) switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=6,tag2=250,push_dot1q=0,tag1=120,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace
tc07: dut1 and dut2 with l2xc and vlan translate-1-2 with wrong outer tag used (dut1) switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=6,tag2=220,push_dot1q=0,tag1=150,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace
tc08: dut1 and dut2 with l2xc and vlan translate-1-2 with wrong outer and inner tag used (dut1) switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=6,tag2=250,push_dot1q=0,tag1=150,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_subif sw_if_index 3 sub_id 10 outer_vlan_id 120 inner_vlan_id 220 two_tags dot1ad
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite(vtr_op=4,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace

eth2p-dot1q-l2xcbase-vlantrans11-func

L2XC with VLAN tag rewrite test cases - translate-1-1

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet encapsulations: Eth-dot1q-IPv4-ICMPv4 or Eth-dot1q-IPv6-ICMPv6 on TG-DUT1 and DUT1-DUT2, Eth-IPv4-ICMPv4 or Eth-IPv4-ICMPv4 on TG-DUT2 for L2 switching of IPv4/IPv6.
  • [Cfg] DUT configuration: DUT1 is configured with L2 cross-connect (L2XC) switching between VLAN sub-interface with VLAN tag rewrite translate-1-1 method of interface towards TG and interface towards DUT2. DUT2 is configured configured with L2 cross-connect (L2XC) switching between VLAN sub-interface with VLAN tag rewrite pop-1 method of interface towards DUT1 and interface towards TG.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent from TG on link to DUT1 and received in TG on link form DUT2; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: IEEE 802.1q, IEEE 802.1ad.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 with l2xc and vlan translate-1-1 (dut1) switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=5,tag2=0,push_dot1q=1,tag1=120,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_vlan_subif sw_if_index 3 vlan 120
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=3,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace
tc02: dut1 and dut2 with l2xc and vlan translate-1-1 with wrong tag used (dut1) switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=5,tag2=0,push_dot1q=1,tag1=150,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_vlan_subif sw_if_index 3 vlan 120
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=3,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace
tc03: dut1 and dut2 with l2xc and vlan translate-1-1 (dut1) switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=5,tag2=0,push_dot1q=1,tag1=120,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_vlan_subif sw_if_index 3 vlan 120
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=3,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace
tc04: dut1 and dut2 with l2xc and vlan translate-1-1 with wrong tag used (dut1) switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=5,tag2=0,push_dot1q=1,tag1=150,sw_if_index=5)
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=3)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
create_vlan_subif sw_if_index 3 vlan 120
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
l2_interface_vlan_tag_rewrite(vtr_op=3,tag2=0,push_dot1q=1,tag1=0,sw_if_index=5)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=1)
exec show trace

eth2p-eth-l2xcbase-func

L2 cross-connect test cases

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 for L2 switching of IPv4; Eth-IPv6-ICMPv6 for L2 switching of IPv6 use. Both apply to all links.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with L2 cross-connect (L2XC) switching.
  • [Ver] TG verification: Test ICMPv4 (or ICMPv6) Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv4 (IPv6) src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications:
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 with l2xc switch icmpv4 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_dump
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
sw_interface_dump
exec show trace
tc02: dut1 and dut2 with l2xc switch icmpv6 between two tg links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_dump
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
sw_interface_dump
exec show trace

eth2p-eth-l2xcbase-iaclbase-func

Ingress ACL test cases

  • [Top] Network Topologies: TG - DUT1 - DUT2 - TG with one link between the nodes.
  • [Cfg] DUT configuration: DUT2 is configured with L2 Cross connect. DUT1 is configured with iACL classification on link to TG,
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent in one direction by TG on link to DUT1 and received on TG link to DUT2. On receive TG verifies if packets are dropped.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut with iacl mac src-addr drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
classify_add_del_table mask l2 src
classify_add_del_session acl-hit-next deny table-index 0 skip_n 0 match_n 1 match l2 src fa:16:3e:2c:99:60
input_acl_set_interface sw_if_index 1 l2-table 0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
exec show trace
tc02: dut with iacl mac dst-addr drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
classify_add_del_table mask l2 dst
classify_add_del_session acl-hit-next deny table-index 0 skip_n 0 match_n 1 match l2 dst fa:16:3e:4f:5b:43
input_acl_set_interface sw_if_index 1 l2-table 0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
exec show trace
tc03: dut with iacl mac src-addr and dst-addr drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
classify_add_del_table mask l2 src
classify_add_del_session acl-hit-next deny table-index 0 skip_n 0 match_n 1 match l2 src fa:16:3e:2c:99:60
classify_add_del_table mask l2 dst
classify_add_del_session acl-hit-next deny table-index 1 skip_n 0 match_n 1 match l2 dst fa:16:3e:2c:99:60
input_acl_set_interface sw_if_index 1 l2-table 0
input_acl_set_interface sw_if_index 1 l2-table 1
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
exec show trace
tc04: dut with iacl ethertype drops matching pkts
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
classify_add_del_table mask hex 000000000000000000000000ffff
classify_add_del_session acl-hit-next deny table-index 0 skip_n 0 match_n 1 match hex 0000000000000000000000000800
input_acl_set_interface sw_if_index 1 l2-table 0
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=3,enable=1,tx_sw_if_index=1)
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=3)
exec show trace

telemetry

eth2p-ethip4-ip4base-ip4ipfixbase-func

IPFIX ipv4 test cases IPFIX tests use 3-node topology TG - DUT1 - DUT2 - TG with one link between the nodes. DUT1 is configured with IPv4 routing and static routes. IPFIX is configured on DUT1 with DUT1->TG interface as collector. Test packets are sent from TG to DUT1. TG listens for flow report packets and verifies that they contains flow record of test packets sent.

Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut sends ipfix template and data packets
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:2c:99:60
classify_add_del_table mask l3 ip4 src
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 1 match l3 ip4 src 192.168.1.2
flow_classify_set_interface sw_if_index 1 ip4-table 0
set_ipfix_exporter collector_address 192.168.1.2 src_address 192.168.1.1 template_interval 5
set_ipfix_classify_stream domain 1
ipfix_classify_table_add_del table 0 ip4 add
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
exec show trace
tc02: dut reports packet flow for traffic by source address
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:2c:99:60
classify_add_del_table mask l3 ip4 src
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 1 match l3 ip4 src 192.168.1.2
flow_classify_set_interface sw_if_index 1 ip4-table 0
set_ipfix_exporter collector_address 192.168.1.2 src_address 192.168.1.1 template_interval 5
set_ipfix_classify_stream domain 1
ipfix_classify_table_add_del table 0 ip4 add
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
exec show trace
tc03: dut reports packet flow for traffic with local destination address
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:2c:99:60
classify_add_del_table mask l3 ip4 dst
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 dst 192.168.1.1
flow_classify_set_interface sw_if_index 1 ip4-table 0
set_ipfix_exporter collector_address 192.168.1.2 src_address 192.168.1.1 template_interval 5
set_ipfix_classify_stream domain 1
ipfix_classify_table_add_del table 0 ip4 add
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
exec show trace
tc04: dut reports packet flow for traffic with remote destination address
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 192.168.2.1 mac fa:16:3e:7d:01:09
classify_add_del_table mask l3 ip4 dst
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 dst 192.168.2.1
flow_classify_set_interface sw_if_index 1 ip4-table 0
set_ipfix_exporter collector_address 192.168.1.2 src_address 192.168.1.1 template_interval 5
set_ipfix_classify_stream domain 1
ipfix_classify_table_add_del table 0 ip4 add
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
exec show trace
tc05: dut reports packet flow for traffic by source and destination port
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:2c:99:60
classify_add_del_table mask l3 ip4 src proto l4 src_port dst_port
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 80 dst_port 80
flow_classify_set_interface sw_if_index 1 ip4-table 0
set_ipfix_exporter collector_address 192.168.1.2 src_address 192.168.1.1 template_interval 5
set_ipfix_classify_stream domain 1
ipfix_classify_table_add_del table 0 ip4 add
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
exec show trace

eth2p-ethip4-ip4base-ip4ipfixscale-func

IPFIX ipv4 test cases IPFIX tests use 3-node topology TG - DUT1 - DUT2 - TG with one link between the nodes. DUT1 is configured with IPv4 routing and static routes. IPFIX is configured on DUT1 with DUT1->TG interface as collector. Test packets are sent from TG to DUT1. TG listens for flow report packets and verifies that they contains flow record of test packets sent.

Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut reports packet flow with a large number of packets
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:2c:99:60
classify_add_del_table mask l3 ip4 src
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 1 match l3 ip4 src 192.168.1.2
flow_classify_set_interface sw_if_index 1 ip4-table 0
set_ipfix_exporter collector_address 192.168.1.2 src_address 192.168.1.1 template_interval 5
set_ipfix_classify_stream domain 1
ipfix_classify_table_add_del table 0 ip4 add
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
exec show trace
tc02: dut reports packet flow when multiple sessions are configured
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:2c:99:60
classify_add_del_table mask l3 ip4 src proto l4 src_port dst_port
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 0 dst_port 0
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 1 dst_port 1
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 2 dst_port 2
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 3 dst_port 3
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 4 dst_port 4
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 5 dst_port 5
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 6 dst_port 6
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 7 dst_port 7
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 8 dst_port 8
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 9 dst_port 9
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 10 dst_port 10
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 11 dst_port 11
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 12 dst_port 12
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 13 dst_port 13
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 14 dst_port 14
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 15 dst_port 15
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 16 dst_port 16
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 17 dst_port 17
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 18 dst_port 18
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 19 dst_port 19
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 20 dst_port 20
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 21 dst_port 21
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 22 dst_port 22
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 23 dst_port 23
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 24 dst_port 24
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 25 dst_port 25
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 26 dst_port 26
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 27 dst_port 27
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 28 dst_port 28
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 29 dst_port 29
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 30 dst_port 30
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 31 dst_port 31
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 32 dst_port 32
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 33 dst_port 33
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 34 dst_port 34
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 35 dst_port 35
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 36 dst_port 36
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 37 dst_port 37
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 38 dst_port 38
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 39 dst_port 39
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 40 dst_port 40
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 41 dst_port 41
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 42 dst_port 42
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 43 dst_port 43
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 44 dst_port 44
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 45 dst_port 45
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 46 dst_port 46
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 47 dst_port 47
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 48 dst_port 48
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 49 dst_port 49
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 50 dst_port 50
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 51 dst_port 51
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 52 dst_port 52
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 53 dst_port 53
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 54 dst_port 54
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 55 dst_port 55
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 56 dst_port 56
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 57 dst_port 57
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 58 dst_port 58
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 59 dst_port 59
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 60 dst_port 60
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 61 dst_port 61
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 62 dst_port 62
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 63 dst_port 63
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 64 dst_port 64
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 65 dst_port 65
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 66 dst_port 66
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 67 dst_port 67
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 68 dst_port 68
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 69 dst_port 69
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 70 dst_port 70
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 71 dst_port 71
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 72 dst_port 72
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 73 dst_port 73
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 74 dst_port 74
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 75 dst_port 75
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 76 dst_port 76
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 77 dst_port 77
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 78 dst_port 78
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip4 src 192.168.1.2 proto 6 l4 src_port 79 dst_port 79
flow_classify_set_interface sw_if_index 1 ip4-table 0
set_ipfix_exporter collector_address 192.168.1.2 src_address 192.168.1.1 path_mtu 1450 template_interval 5
set_ipfix_classify_stream domain 1
ipfix_classify_table_add_del table 0 ip4 add
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
exec show trace

eth2p-ethip4-ip4base-spanrx-func

SPAN test suite

  • [Top] Network Topologies: TG=DUT1 2-node topology with two links between nodes.
  • [Cfg] DUT configuration: DUT1 is configured with SPAN mirroring from the first DUT1-TG interface to the second one.
  • [Ver] TG verification: Test ARP or ICMP packets are sent by TG on first link to DUT1; On receipt through second link TG verifies the copy of packet sent and the copy of DUT’s reply packet.
  • [Ref] Applicable standard specifications: None?
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut mirrors l2 packets from one interface to another
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 192.168.1.2/24
sw_interface_span_enable_disable src_sw_if_index 2 dst_sw_if_index 1
exec show trace

DUT2:
exec show trace
tc02: dut mirrors ipv4 packets from one interface to another
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 192.168.1.2/24
ip_neighbor_add_del sw_if_index 2 dst 192.168.1.1 mac fa:16:3e:d2:8b:9f
sw_interface_span_enable_disable src_sw_if_index 2 dst_sw_if_index 1
exec show trace

DUT2:
exec show trace

eth2p-ethip6-ip6base-ip6ipfixbase-func

IPFIX ipv6 test cases IPFIX tests use 3-node topology TG - DUT1 - DUT2 - TG with one link between the nodes. DUT1 is configured with IPv4 and IPV6 routing and static routes. IPFIX is configured on DUT1 with DUT1->TG interface as collector.Test packets are sent from TG to or through DUT1. TG listens for flow report packets and verifies that they contains flow records of test packets sent.

Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut reports packet flow for traffic by source address
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 10::10/64
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 1 dst 12::10 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
classify_add_del_table mask l3 ip6 src
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip6 src 12::10
flow_classify_set_interface sw_if_index 1 ip6-table 0
set_ipfix_exporter collector_address 192.168.1.2 src_address 192.168.1.1 template_interval 5
set_ipfix_classify_stream domain 1
ipfix_classify_table_add_del table 0 ip6 add
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
exec show trace
tc02: dut reports packet flow for traffic with local destination address
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 10::10/64
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 1 dst 12::10 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
classify_add_del_table mask l3 ip6 dst
classify_add_del_session acl-hit-next permit table-index 0 skip_n 2 match_n 2 match l3 ip6 dst 10::10
flow_classify_set_interface sw_if_index 1 ip6-table 0
set_ipfix_exporter collector_address 192.168.1.2 src_address 192.168.1.1 template_interval 5
set_ipfix_classify_stream domain 1
ipfix_classify_table_add_del table 0 ip6 add
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
exec show trace
tc03: dut reports packet flow for traffic with remote destination address
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 10::10/64
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 1 dst 12::10 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 11::10 mac fa:16:3e:7d:01:09
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
classify_add_del_table mask l3 ip6 dst
classify_add_del_session acl-hit-next permit table-index 0 skip_n 2 match_n 2 match l3 ip6 dst 11::10
flow_classify_set_interface sw_if_index 1 ip6-table 0
set_ipfix_exporter collector_address 192.168.1.2 src_address 192.168.1.1 template_interval 5
set_ipfix_classify_stream domain 1
ipfix_classify_table_add_del table 0 ip6 add
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
exec show trace
tc04: dut reports packet flow for traffic by source and destination port
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 10::10/64
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 1 dst 12::10 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
classify_add_del_table mask l3 ip6 src proto l4 src_port dst_port
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 80 dst_port 80
flow_classify_set_interface sw_if_index 1 ip6-table 0
set_ipfix_exporter collector_address 192.168.1.2 src_address 192.168.1.1 template_interval 5
set_ipfix_classify_stream domain 1
ipfix_classify_table_add_del table 0 ip6 add
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
exec show trace

eth2p-ethip6-ip6base-ip6ipfixscale-func

IPFIX ipv6 test cases IPFIX tests use 3-node topology TG - DUT1 - DUT2 - TG with one link between the nodes. DUT1 is configured with IPv4 and IPV6 routing and static routes. IPFIX is configured on DUT1 with DUT1->TG interface as collector.Test packets are sent from TG to or through DUT1. TG listens for flow report packets and verifies that they contains flow records of test packets sent.

Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut reports packet flow with a large number of packets
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 10::10/64
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 1 dst 12::10 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
classify_add_del_table mask l3 ip6 src
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 2 match l3 ip6 src 12::10
flow_classify_set_interface sw_if_index 1 ip6-table 0
set_ipfix_exporter collector_address 192.168.1.2 src_address 192.168.1.1 template_interval 5
set_ipfix_classify_stream domain 1
ipfix_classify_table_add_del table 0 ip6 add
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
exec show trace
tc02: dut reports packet flow when multiple sessions are configured
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 1 10::10/64
sw_interface_add_del_address sw_if_index 1 192.168.1.1/24
ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 1 dst 12::10 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
classify_add_del_table mask l3 ip6 src proto l4 src_port dst_port
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 0 dst_port 0
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 1 dst_port 1
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 2 dst_port 2
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 3 dst_port 3
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 4 dst_port 4
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 5 dst_port 5
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 6 dst_port 6
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 7 dst_port 7
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 8 dst_port 8
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 9 dst_port 9
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 10 dst_port 10
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 11 dst_port 11
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 12 dst_port 12
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 13 dst_port 13
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 14 dst_port 14
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 15 dst_port 15
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 16 dst_port 16
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 17 dst_port 17
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 18 dst_port 18
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 19 dst_port 19
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 20 dst_port 20
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 21 dst_port 21
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 22 dst_port 22
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 23 dst_port 23
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 24 dst_port 24
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 25 dst_port 25
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 26 dst_port 26
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 27 dst_port 27
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 28 dst_port 28
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 29 dst_port 29
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 30 dst_port 30
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 31 dst_port 31
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 32 dst_port 32
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 33 dst_port 33
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 34 dst_port 34
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 35 dst_port 35
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 36 dst_port 36
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 37 dst_port 37
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 38 dst_port 38
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 39 dst_port 39
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 40 dst_port 40
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 41 dst_port 41
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 42 dst_port 42
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 43 dst_port 43
classify_add_del_session acl-hit-next permit table-index 0 skip_n 1 match_n 3 match l3 ip6 src 12::10 proto 6 l4 src_port 44 dst_port 44
flow_classify_set_interface sw_if_index 1 ip6-table 0
set_ipfix_exporter collector_address 192.168.1.2 src_address 192.168.1.1 path_mtu 1450 template_interval 5
set_ipfix_classify_stream domain 1
ipfix_classify_table_add_del table 0 ip6 add
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
exec show trace

eth2p-ethip6-ip6base-spanrx-func

SPAN test suite

  • [Top] Network Topologies: TG=DUT1 2-node topology with two links between nodes.
  • [Cfg] DUT configuration: DUT1 is configured with SPAN mirroring from the first DUT1-TG interface to the second one.
  • [Ver] TG verification: Test ARP or ICMP packets are sent by TG on first link to DUT1; On receipt through second link TG verifies the copy of packet sent and the copy of DUT’s reply packet.
  • [Ref] Applicable standard specifications: None?
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut mirrors ipv6 packets from one interface to another
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_add_del_address sw_if_index 2 10::1/24
sw_interface_set_flags sw_if_index 2 admin-up
ip_neighbor_add_del sw_if_index 2 dst 11::1 mac fa:16:3e:d2:8b:9f
ip_add_del_route 11::1/24 via 10::1 sw_if_index 2 resolve-attempts 10 count 1
sw_interface_span_enable_disable src_sw_if_index 2 dst_sw_if_index 1
exec show trace

DUT2:
exec show trace

vm vhost

ip4

eth2p-ethip4-ip4base-eth-2vhost-1vm

eth2p-ethip4-ip4base-eth-2vhost-1vm

IPv4 routing test cases with vhost user interface RFC791 IPv4, RFC826 ARP, RFC792 ICMPv4. Encapsulations: Eth-IPv4-ICMPv4 on links TG=DUT1. IPv4 routing tests use circular 2-node topology TG - DUT1 - TG with two link between the nodes. DUT is configured with IPv4 routing and static routes. Test sends packets by TG on links to DUT and received on TG link on the other side of circular topology. On receive TG verifies packets IPv4 src-addr, dst-addr and MAC addresses.

Name VPP API Test Commands History - Commands Used Per Test Case
tc01: ipv4 forward via vhost to another vrf
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
ip_table_add_del table 20
sw_interface_set_table sw_if_index 6 vrf 20
sw_interface_set_table sw_if_index 1 vrf 20
sw_interface_add_del_address sw_if_index 2 10.0.1.1/24
sw_interface_add_del_address sw_if_index 5 10.0.2.1/24
sw_interface_add_del_address sw_if_index 6 10.0.2.2/24
sw_interface_add_del_address sw_if_index 1 10.0.3.1/24
sw_interface_dump
ip_add_del_route 10.0.3.0/24 via 10.0.2.2 sw_if_index 5
ip_add_del_route 10.0.1.0/24 via 10.0.2.1 vrf 20 sw_if_index 6
ip_neighbor_add_del sw_if_index 5 dst 10.0.2.2 mac 02:fe:76:f4:e8:4e
ip_neighbor_add_del sw_if_index 1 dst 10.0.3.2 mac fa:16:3e:2c:99:60
exec show trace

DUT2:
exec show trace

eth2p-ethip4ipsectptlispgpe-ip4base-eth-2vhost-1vm-func

IPv4-ip4-ipsec-lispgpe-ip4 - main fib, vrf (gpe_vni-to-vrf)

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: ICMPv4-IPv4-IPSec-LISPGPE-IPv4-ICMPv4.
  • [Cfg] DUT configuration: Each DUT is configured with LISP and IPsec. IPsec is in transport mode. Tests cases are for IPsec configured both on RLOC interface or lisp_gpe0 interface.
  • [Ver] TG verification: Packet is send from TG(if1) across the DUT1 via VM to DUT2 where it is forwarded to TG(if2).
  • [Ref] Applicable standard specifications: RFC6830, RFC4303.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 route ipv4 over vhost to lisp gpe tunnel using ipsec (transport) on rloc int.
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 0
sw_interface_set_table sw_if_index 1 vrf 0
sw_interface_add_del_address sw_if_index 3 6.6.3.1/24
sw_interface_add_del_address sw_if_index 1 6.6.1.1/24
ip_neighbor_add_del sw_if_index 1 dst 6.6.1.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:7d:01:09
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_add_del_address sw_if_index 6 6.6.1.9/24
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_dump
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 6.6.1.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 6.6.2.0/24 seid 6.6.1.0/24 rloc 6.6.3.2
lisp_add_del_adjacency add vni 0 reid 6.6.2.0/24 leid 6.6.1.0/24
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 57543338425357497570743576484d73 integ-alg sha1-96 integ-key 525a376d3639516979553562367a326164393577
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 57543338425357497570743576484d73 integ-alg sha1-96 integ-key 525a376d3639516979553562367a326164393577
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 6.6.3.1 - 6.6.3.1 remote-ip-range 6.6.3.2 - 6.6.3.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 6.6.3.1 - 6.6.3.1 remote-ip-range 6.6.3.2 - 6.6.3.2
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 0
sw_interface_set_table sw_if_index 1 vrf 0
sw_interface_add_del_address sw_if_index 3 6.6.3.2/24
sw_interface_add_del_address sw_if_index 1 6.6.2.1/24
ip_neighbor_add_del sw_if_index 1 dst 6.6.2.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:db:58:4f
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 6.6.2.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 6.6.1.0/24 seid 6.6.2.0/24 rloc 6.6.3.1
lisp_add_del_adjacency add vni 0 reid 6.6.1.0/24 leid 6.6.2.0/24
exec ipsec sa add 10 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 57543338425357497570743576484d73 integ-alg sha1-96 integ-key 525a376d3639516979553562367a326164393577
exec ipsec sa add 20 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 57543338425357497570743576484d73 integ-alg sha1-96 integ-key 525a376d3639516979553562367a326164393577
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 6.6.3.2 - 6.6.3.2 remote-ip-range 6.6.3.1 - 6.6.3.1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 6.6.3.2 - 6.6.3.2 remote-ip-range 6.6.3.1 - 6.6.3.1
exec show trace
tc02: dut1 and dut2 route ipv4 over vhost to lisp gpe tunnel using ipsec (transport) on lisp_gpe0 int.
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 0
sw_interface_set_table sw_if_index 1 vrf 0
sw_interface_add_del_address sw_if_index 3 6.6.3.1/24
sw_interface_add_del_address sw_if_index 1 6.6.1.1/24
ip_neighbor_add_del sw_if_index 1 dst 6.6.1.2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:7d:01:09
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_add_del_address sw_if_index 6 6.6.1.9/24
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_dump
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 6.6.1.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 6.6.2.0/24 seid 6.6.1.0/24 rloc 6.6.3.2
lisp_add_del_adjacency add vni 0 reid 6.6.2.0/24 leid 6.6.1.0/24
sw_interface_dump
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 4c4d543279626844474b353777794145 integ-alg sha1-96 integ-key 7155387677786d33576839516d4a6a6a43716d43
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 4c4d543279626844474b353777794145 integ-alg sha1-96 integ-key 7155387677786d33576839516d4a6a6a43716d43
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 7 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 6.6.3.1 - 6.6.3.1 remote-ip-range 6.6.3.2 - 6.6.3.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 6.6.3.1 - 6.6.3.1 remote-ip-range 6.6.3.2 - 6.6.3.2
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 0
sw_interface_set_table sw_if_index 1 vrf 0
sw_interface_add_del_address sw_if_index 3 6.6.3.2/24
sw_interface_add_del_address sw_if_index 1 6.6.2.1/24
ip_neighbor_add_del sw_if_index 1 dst 6.6.2.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:db:58:4f
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 6.6.2.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 6.6.1.0/24 seid 6.6.2.0/24 rloc 6.6.3.1
lisp_add_del_adjacency add vni 0 reid 6.6.1.0/24 leid 6.6.2.0/24
sw_interface_dump
exec ipsec sa add 10 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 4c4d543279626844474b353777794145 integ-alg sha1-96 integ-key 7155387677786d33576839516d4a6a6a43716d43
exec ipsec sa add 20 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 4c4d543279626844474b353777794145 integ-alg sha1-96 integ-key 7155387677786d33576839516d4a6a6a43716d43
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 6.6.3.2 - 6.6.3.2 remote-ip-range 6.6.3.1 - 6.6.3.1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 6.6.3.2 - 6.6.3.2 remote-ip-range 6.6.3.1 - 6.6.3.1
exec show trace

eth2p-ethip4ipsectptlispgpe-ip6base-eth-2vhost-1vm-func

IPv6 - ip4-ipsec-lispgpe-ip6 - main fib, vrf, virt2lisp, phy2lisp

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-LISPGPE-IPSec-IPv6-ICMP, Eth-IPv4-IPSec-LISPGPE-IPv6-ICMP
  • [Cfg] DUT configuration: Each DUT is configured with LISP and IPsec. IPsec is in transport mode. Tests cases are for IPsec configured both on RLOC interface or lisp_gpe0 interface.
  • [Ver] TG verification: Packet is send from TG(if1) across the DUT1 via VM to DUT2 where it is forwarded to TG(if2).
  • [Ref] Applicable standard specifications: RFC6830, RFC4303.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 route ipv6 over vhost to lisp gpe tunnel using ipsec (transport) on rloc int.
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 6.6.3.1/24
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:1::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:7d:01:09
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 2001:cdba:1::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 2001:cdba:2::0/64 seid 2001:cdba:1::0/64 rloc 6.6.3.2
lisp_add_del_adjacency add vni 0 reid 2001:cdba:2::0/64 leid 2001:cdba:1::0/64
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_add_del_address sw_if_index 8 2001:cdba:6::3/64
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_flags sw_if_index 8 admin-up link-up
sw_interface_ip6nd_ra_config sw_if_index 8 surpress
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=7,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_dump
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 546850584256456e6c4b585738494473 integ-alg sha1-96 integ-key 50475a4f6844364c4e6377545037614762466e36
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 546850584256456e6c4b585738494473 integ-alg sha1-96 integ-key 50475a4f6844364c4e6377545037614762466e36
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 6.6.3.1 - 6.6.3.1 remote-ip-range 6.6.3.2 - 6.6.3.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 6.6.3.1 - 6.6.3.1 remote-ip-range 6.6.3.2 - 6.6.3.2
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 6.6.3.2/24
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:2::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:2::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:db:58:4f
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 2001:cdba:2::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 2001:cdba:1::0/64 seid 2001:cdba:2::0/64 rloc 6.6.3.1
lisp_add_del_adjacency add vni 0 reid 2001:cdba:1::0/64 leid 2001:cdba:2::0/64
exec ipsec sa add 10 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 546850584256456e6c4b585738494473 integ-alg sha1-96 integ-key 50475a4f6844364c4e6377545037614762466e36
exec ipsec sa add 20 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 546850584256456e6c4b585738494473 integ-alg sha1-96 integ-key 50475a4f6844364c4e6377545037614762466e36
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 6.6.3.2 - 6.6.3.2 remote-ip-range 6.6.3.1 - 6.6.3.1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 6.6.3.2 - 6.6.3.2 remote-ip-range 6.6.3.1 - 6.6.3.1
exec show trace
tc02: dut1 and dut2 route ipv6 over vhost to lisp gpe tunnel using ipsec (transport) on lisp_gpe0 int.
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 6.6.3.1/24
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:1::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:7d:01:09
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 2001:cdba:1::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 2001:cdba:2::0/64 seid 2001:cdba:1::0/64 rloc 6.6.3.2
lisp_add_del_adjacency add vni 0 reid 2001:cdba:2::0/64 leid 2001:cdba:1::0/64
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_add_del_address sw_if_index 8 2001:cdba:6::3/64
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_flags sw_if_index 8 admin-up link-up
sw_interface_ip6nd_ra_config sw_if_index 8 surpress
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=7,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_dump
sw_interface_dump
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 6553744d783158306d7a3839526e6b78 integ-alg sha1-96 integ-key 5444737167706e78696e4e724a70784c56724f56
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 6553744d783158306d7a3839526e6b78 integ-alg sha1-96 integ-key 5444737167706e78696e4e724a70784c56724f56
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 6.6.3.1 - 6.6.3.1 remote-ip-range 6.6.3.2 - 6.6.3.2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 6.6.3.1 - 6.6.3.1 remote-ip-range 6.6.3.2 - 6.6.3.2
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 6.6.3.2/24
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:2::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:2::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:db:58:4f
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 2001:cdba:2::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 2001:cdba:1::0/64 seid 2001:cdba:2::0/64 rloc 6.6.3.1
lisp_add_del_adjacency add vni 0 reid 2001:cdba:1::0/64 leid 2001:cdba:2::0/64
sw_interface_dump
exec ipsec sa add 10 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 6553744d783158306d7a3839526e6b78 integ-alg sha1-96 integ-key 5444737167706e78696e4e724a70784c56724f56
exec ipsec sa add 20 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 6553744d783158306d7a3839526e6b78 integ-alg sha1-96 integ-key 5444737167706e78696e4e724a70784c56724f56
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 6.6.3.2 - 6.6.3.2 remote-ip-range 6.6.3.1 - 6.6.3.1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 6.6.3.2 - 6.6.3.2 remote-ip-range 6.6.3.1 - 6.6.3.1
exec show trace

eth2p-ethip4lispgpe-ip4base-eth-2vhost-1vm-func

ip4-lispgpe-ip4 encapsulation test cases

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-LISP-IPv4-ICMPv4 on DUT1-DUT2, Eth-IPv4-ICMPv4 on TG-DUTn for IPv4 routing over LISPoIPv4 tunnel.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with IPv4 routing and static routes. LISPoIPv4 tunnel is configured between DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC6830.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 route ipv4 bidirectionally over lisp gpe tunnel using vhost interfaces
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 6.0.4.1/24
sw_interface_add_del_address sw_if_index 1 6.0.1.2/24
ip_neighbor_add_del sw_if_index 1 dst 6.0.1.1 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.2 mac fa:16:3e:7d:01:09
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 6.0.1.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 6.0.5.0/24 seid 6.0.1.0/24 rloc 6.0.4.2
lisp_add_del_adjacency add vni 0 reid 6.0.5.0/24 leid 6.0.1.0/24
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
ip_table_add_del table 0
sw_interface_set_table sw_if_index 8 vrf 0
sw_interface_add_del_address sw_if_index 8 6.6.1.3/24
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_flags sw_if_index 8 admin-up link-up
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=7,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_dump
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 6.0.4.2/24
sw_interface_add_del_address sw_if_index 1 6.0.5.1/24
ip_neighbor_add_del sw_if_index 1 dst 6.0.5.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.1 mac fa:16:3e:db:58:4f
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 6.0.5.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 6.0.1.0/24 seid 6.0.5.0/24 rloc 6.0.4.1
lisp_add_del_adjacency add vni 0 reid 6.0.1.0/24 leid 6.0.5.0/24
exec show trace

eth2p-ethip4lispgpe-ip4basevrf-eth-2vhost-1vm-func

ip4-lispgpe-ip4 encapsulation test cases

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-LISP-IPv4-ICMPv4 on DUT1-DUT2, Eth-IPv4-ICMPv4 on TG-DUTn for IPv4 routing over LISPoIPv4 tunnel.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with IPv4 routing and static routes. LISPoIPv4 tunnel is configured between DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC6830.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 route ipv4 bidirectionally over lisp gpe tunnel using vhost interfaces and vrf is enabled
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 1
sw_interface_set_table sw_if_index 1 vrf 1
ip_neighbor_add_del sw_if_index 1 dst 6.0.1.1 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.2 mac fa:16:3e:7d:01:09
sw_interface_add_del_address sw_if_index 3 6.0.4.1/24
sw_interface_add_del_address sw_if_index 1 6.0.1.2/24
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 1 vrf 1
lisp_add_del_local_eid vni 1 eid 6.0.1.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 1 eid 6.0.5.0/24 seid 6.0.1.0/24 rloc 6.0.4.2
lisp_add_del_adjacency add vni 1 reid 6.0.5.0/24 leid 6.0.1.0/24
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
ip_table_add_del table 1
sw_interface_set_table sw_if_index 9 vrf 1
sw_interface_add_del_address sw_if_index 9 6.6.1.3/24
sw_interface_set_flags sw_if_index 8 admin-up link-up
sw_interface_set_flags sw_if_index 9 admin-up link-up
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 8 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=8,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_dump
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 1
sw_interface_set_table sw_if_index 1 vrf 1
ip_neighbor_add_del sw_if_index 1 dst 6.0.5.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.1 mac fa:16:3e:db:58:4f
sw_interface_add_del_address sw_if_index 3 6.0.4.2/24
sw_interface_add_del_address sw_if_index 1 6.0.5.1/24
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 1 vrf 1
lisp_add_del_local_eid vni 1 eid 6.0.5.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 1 eid 6.0.1.0/24 seid 6.0.5.0/24 rloc 6.0.4.1
lisp_add_del_adjacency add vni 1 reid 6.0.1.0/24 leid 6.0.5.0/24
exec show trace

eth2p-ethip4lispgpe-ip6base-eth-2vhost-1vm-func

LISP static adjacency test cases

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-LISP-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUTn for IPv6 routing over LISPoIPv4 tunnel.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with IPv6 routing and static routes. LISPoIPv4 tunnel is configured between DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv6 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv6 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC6830.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 route ipv6 bidirectionally over lisp gpe tunnel using vhost interfaces
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 6.0.3.1/24
sw_interface_add_del_address sw_if_index 1 6:0:1::1/64
ip_neighbor_add_del sw_if_index 1 dst 6:0:1::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.2 mac fa:16:3e:7d:01:09
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set ls1
lisp_add_del_locator locator-set ls1 sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 6:0:1::0/64 locator-set ls1
lisp_add_del_remote_mapping add vni 0 eid 6:0:2::0/64 seid 6:0:1::0/64 rloc 6.0.3.2
lisp_add_del_adjacency add vni 0 reid 6:0:2::0/64 leid 6:0:1::0/64
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_add_del_address sw_if_index 8 6:6:1::3/64
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_flags sw_if_index 8 admin-up link-up
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=7,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_dump
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 6.0.3.2/24
sw_interface_add_del_address sw_if_index 1 6:0:2::1/64
ip_neighbor_add_del sw_if_index 1 dst 6:0:2::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.1 mac fa:16:3e:db:58:4f
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set ls1
lisp_add_del_locator locator-set ls1 sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 6:0:2::0/64 locator-set ls1
lisp_add_del_remote_mapping add vni 0 eid 6:0:1::0/64 seid 6:0:2::0/64 rloc 6.0.3.1
lisp_add_del_adjacency add vni 0 reid 6:0:1::0/64 leid 6:0:2::0/64
exec show trace

ip6

eth2p-ethip6ipsectptlispgpe-ip4base-eth-2vhost-1vm-func

IPv6 - ip4-ipsec-lispgpe-ip6 - main fib, virt2lisp, phy2lisp

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv6-LISPGPE-IPSec-IPv4-ICMP, Eth-IPv6-IPSec-LISPGPE-IPv4-ICMP
  • [Cfg] DUT configuration: Each DUT is configured with LISP and IPsec. IPsec is in transport mode. Test cases are for IPsec configured both on RLOC interface or lisp_gpe0 interface.
  • [Ver] TG verification: Packet is send from TG(if1) across the DUT1 to DUT2 where it is forwarded to TG(if2).
  • [Ref] Applicable standard specifications: RFC6830, RFC4303.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 route ipv4 over vhost to lisp gpe tunnel using ipsec (transport) on rloc int.
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 6.0.1.1/24
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:7d:01:09
ip_neighbor_add_del sw_if_index 1 dst 6.0.1.2 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 6.0.1.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 6.0.2.0/24 seid 6.0.1.0/24 rloc 2001:cdba:3::2
lisp_add_del_adjacency add vni 0 reid 6.0.2.0/24 leid 6.0.1.0/24
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_add_del_address sw_if_index 8 6.6.1.3/24
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_flags sw_if_index 8 admin-up link-up
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=7,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_dump
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 52686859596f634263454a4e32503158 integ-alg sha1-96 integ-key 7757444a446a45684e734e7a7941494a68764f6d
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 52686859596f634263454a4e32503158 integ-alg sha1-96 integ-key 7757444a446a45684e734e7a7941494a68764f6d
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 2001:cdba:3::1 - 2001:cdba:3::1 remote-ip-range 2001:cdba:3::2 - 2001:cdba:3::2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 2001:cdba:3::1 - 2001:cdba:3::1 remote-ip-range 2001:cdba:3::2 - 2001:cdba:3::2
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::2/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 6.0.2.1/24
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 6.0.2.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:db:58:4f
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 6.0.2.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 6.0.1.0/24 seid 6.0.2.0/24 rloc 2001:cdba:3::1
lisp_add_del_adjacency add vni 0 reid 6.0.1.0/24 leid 6.0.2.0/24
exec ipsec sa add 10 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 52686859596f634263454a4e32503158 integ-alg sha1-96 integ-key 7757444a446a45684e734e7a7941494a68764f6d
exec ipsec sa add 20 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 52686859596f634263454a4e32503158 integ-alg sha1-96 integ-key 7757444a446a45684e734e7a7941494a68764f6d
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 2001:cdba:3::2 - 2001:cdba:3::2 remote-ip-range 2001:cdba:3::1 - 2001:cdba:3::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 2001:cdba:3::2 - 2001:cdba:3::2 remote-ip-range 2001:cdba:3::1 - 2001:cdba:3::1
exec show trace
tc02: dut1 and dut2 route ipv4 over vhost to lisp gpe tunnel using ipsec (transport) on lisp_gpe0 int.
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 6.0.1.1/24
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:7d:01:09
ip_neighbor_add_del sw_if_index 1 dst 6.0.1.2 mac fa:16:3e:2c:99:60
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 6.0.1.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 6.0.2.0/24 seid 6.0.1.0/24 rloc 2001:cdba:3::2
lisp_add_del_adjacency add vni 0 reid 6.0.2.0/24 leid 6.0.1.0/24
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_add_del_address sw_if_index 8 6.6.1.3/24
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_flags sw_if_index 8 admin-up link-up
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=7,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_dump
sw_interface_dump
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 724e51644957337a677356306c623752 integ-alg sha1-96 integ-key 3369654d4772565a72754375676c4e6e74736967
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 724e51644957337a677356306c623752 integ-alg sha1-96 integ-key 3369654d4772565a72754375676c4e6e74736967
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 2001:cdba:3::1 - 2001:cdba:3::1 remote-ip-range 2001:cdba:3::2 - 2001:cdba:3::2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 2001:cdba:3::1 - 2001:cdba:3::1 remote-ip-range 2001:cdba:3::2 - 2001:cdba:3::2
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::2/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 6.0.2.1/24
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 6.0.2.2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:db:58:4f
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 6.0.2.0/24 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 6.0.1.0/24 seid 6.0.2.0/24 rloc 2001:cdba:3::1
lisp_add_del_adjacency add vni 0 reid 6.0.1.0/24 leid 6.0.2.0/24
sw_interface_dump
exec ipsec sa add 10 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 724e51644957337a677356306c623752 integ-alg sha1-96 integ-key 3369654d4772565a72754375676c4e6e74736967
exec ipsec sa add 20 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 724e51644957337a677356306c623752 integ-alg sha1-96 integ-key 3369654d4772565a72754375676c4e6e74736967
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 2001:cdba:3::2 - 2001:cdba:3::2 remote-ip-range 2001:cdba:3::1 - 2001:cdba:3::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 2001:cdba:3::2 - 2001:cdba:3::2 remote-ip-range 2001:cdba:3::1 - 2001:cdba:3::1
exec show trace

eth2p-ethip6ipsectptlispgpe-ip6base-eth-2vhost-1vm-func

IPv6 - ip6-ipsec-lispgpe-ip6 - main fib, vrf (gpe_vni-to-vrf), phy2lisp, virt2lisp

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv6-IPSec-LISPGPE-IPv6-ICMPv6,
  • [Cfg] DUT configuration: Each DUT is configured with LISP and IPsec. IPsec is in transport mode. Tests cases are for IPsec configured both on RLOC interface or lisp_gpe0 interface.
  • [Ver] TG verification: Packet is send from TG(if1) across the DUT1 via VM to DUT2 where it is forwarded to TG(if2).
  • [Ref] Applicable standard specifications: RFC6830, RFC4303.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 route ipv6 over vhost to lisp gpe tunnel using ipsec (transport) on rloc int.
 DUT1:  
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:1::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:7d:01:09
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_add_del_address sw_if_index 6 2001:cdba:1::9/64
sw_interface_set_flags sw_if_index 6 admin-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_ip6nd_ra_config sw_if_index 6 surpress
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_dump
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 2001:cdba:1::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 2001:cdba:2::0/64 seid 2001:cdba:1::0/64 rloc 2001:cdba:3::2
lisp_add_del_adjacency add vni 0 reid 2001:cdba:2::0/64 leid 2001:cdba:1::0/64
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 337479557a587a326d6d566864455042 integ-alg sha1-96 integ-key 423572445748686e444b71416250414c71583861
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 337479557a587a326d6d566864455042 integ-alg sha1-96 integ-key 423572445748686e444b71416250414c71583861
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 2001:cdba:3::1 - 2001:cdba:3::1 remote-ip-range 2001:cdba:3::2 - 2001:cdba:3::2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 2001:cdba:3::1 - 2001:cdba:3::1 remote-ip-range 2001:cdba:3::2 - 2001:cdba:3::2
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::2/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:2::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:2::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:db:58:4f
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 2001:cdba:2::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 2001:cdba:1::0/64 seid 2001:cdba:2::0/64 rloc 2001:cdba:3::1
lisp_add_del_adjacency add vni 0 reid 2001:cdba:1::0/64 leid 2001:cdba:2::0/64
exec ipsec sa add 10 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 337479557a587a326d6d566864455042 integ-alg sha1-96 integ-key 423572445748686e444b71416250414c71583861
exec ipsec sa add 20 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 337479557a587a326d6d566864455042 integ-alg sha1-96 integ-key 423572445748686e444b71416250414c71583861
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 2001:cdba:3::2 - 2001:cdba:3::2 remote-ip-range 2001:cdba:3::1 - 2001:cdba:3::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 2001:cdba:3::2 - 2001:cdba:3::2 remote-ip-range 2001:cdba:3::1 - 2001:cdba:3::1
exec show trace
tc02: dut1 and dut2 route ipv6 over vhost to lisp gpe tunnel using ipsec (transport) on lisp_gpe0 int.
 DUT1:  
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:1::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:7d:01:09
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_add_del_address sw_if_index 6 2001:cdba:1::9/64
sw_interface_set_flags sw_if_index 6 admin-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_ip6nd_ra_config sw_if_index 6 surpress
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_dump
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 2001:cdba:1::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 2001:cdba:2::0/64 seid 2001:cdba:1::0/64 rloc 2001:cdba:3::2
lisp_add_del_adjacency add vni 0 reid 2001:cdba:2::0/64 leid 2001:cdba:1::0/64
sw_interface_dump
exec ipsec sa add 10 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 5534654554494e47724f507a68704433 integ-alg sha1-96 integ-key 59466467434737345568347336716c54746f4a61
exec ipsec sa add 20 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 5534654554494e47724f507a68704433 integ-alg sha1-96 integ-key 59466467434737345568347336716c54746f4a61
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 7 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 2001:cdba:3::1 - 2001:cdba:3::1 remote-ip-range 2001:cdba:3::2 - 2001:cdba:3::2
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 2001:cdba:3::1 - 2001:cdba:3::1 remote-ip-range 2001:cdba:3::2 - 2001:cdba:3::2
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::2/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:2::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:2::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:db:58:4f
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 2001:cdba:2::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 2001:cdba:1::0/64 seid 2001:cdba:2::0/64 rloc 2001:cdba:3::1
lisp_add_del_adjacency add vni 0 reid 2001:cdba:1::0/64 leid 2001:cdba:2::0/64
sw_interface_dump
exec ipsec sa add 10 esp spi 1000 crypto-alg aes-cbc-128 crypto-key 5534654554494e47724f507a68704433 integ-alg sha1-96 integ-key 59466467434737345568347336716c54746f4a61
exec ipsec sa add 20 esp spi 1001 crypto-alg aes-cbc-128 crypto-key 5534654554494e47724f507a68704433 integ-alg sha1-96 integ-key 59466467434737345568347336716c54746f4a61
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
exec ipsec policy add spd 1 priority 100 inbound action bypass protocol 50
exec ipsec policy add spd 1 priority 100 outbound action bypass protocol 50
exec ipsec policy add spd 1 priority 10 inbound action protect sa 20 local-ip-range 2001:cdba:3::2 - 2001:cdba:3::2 remote-ip-range 2001:cdba:3::1 - 2001:cdba:3::1
exec ipsec policy add spd 1 priority 10 outbound action protect sa 10 local-ip-range 2001:cdba:3::2 - 2001:cdba:3::2 remote-ip-range 2001:cdba:3::1 - 2001:cdba:3::1
exec show trace

eth2p-ethip6lispgpe-ip6base-eth-2vhost-1vm-func

ip6-lispgpe-ip6 encapsulation test cases

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv6-LISP-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUTn for IPv6 routing over LISPoIPv6 tunnel.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with IPv6 routing and static routes. LISPoIPv6 tunnel is configured between DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv6 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv6 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC6830.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 route ipv6 bidirectionally over lisp gpe tunnel using vhost interfaces
 DUT1:  
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:1::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:7d:01:09
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 2001:cdba:1::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 2001:cdba:2::0/64 seid 2001:cdba:1::0/64 rloc 2001:cdba:3::2
lisp_add_del_adjacency add vni 0 reid 2001:cdba:2::0/64 leid 2001:cdba:1::0/64
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
ip_table_add_del table 0 ipv6
sw_interface_set_table sw_if_index 8 vrf 0 ipv6
sw_interface_add_del_address sw_if_index 8 2001:cdba:6::9/64
sw_interface_set_flags sw_if_index 8 admin-up
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_flags sw_if_index 8 admin-up link-up
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=7,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_dump
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::2/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:2::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:2::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:db:58:4f
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 0 vrf 0
lisp_add_del_local_eid vni 0 eid 2001:cdba:2::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 0 eid 2001:cdba:1::0/64 seid 2001:cdba:2::0/64 rloc 2001:cdba:3::1
lisp_add_del_adjacency add vni 0 reid 2001:cdba:1::0/64 leid 2001:cdba:2::0/64
exec show trace

eth2p-ethip6lispgpe-ip6basevrf-eth-2vhost-1vm-func

ip6-lispgpe-ip6 encapsulation test cases

  • [Top] Network Topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv6-LISP-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUTn for IPv6 routing over LISPoIPv6 tunnel.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with IPv6 routing and static routes. LISPoIPv6 tunnel is configured between DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv6 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv6 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC6830.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut1 and dut2 route ipv6 bidirectionally over lisp gpe tunnel using vhost interfaces and vrf is enabled
 DUT1:  
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 1 ipv6
sw_interface_set_table sw_if_index 1 vrf 1 ipv6
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:1::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:2c:99:60
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:7d:01:09
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 1 vrf 1
lisp_add_del_local_eid vni 1 eid 2001:cdba:1::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 1 eid 2001:cdba:2::0/64 seid 2001:cdba:1::0/64 rloc 2001:cdba:3::2
lisp_add_del_adjacency add vni 1 reid 2001:cdba:2::0/64 leid 2001:cdba:1::0/64
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
ip_table_add_del table 1 ipv6
sw_interface_set_table sw_if_index 9 vrf 1 ipv6
sw_interface_add_del_address sw_if_index 9 2001:cdba:6::9/64
sw_interface_set_flags sw_if_index 9 admin-up
sw_interface_set_flags sw_if_index 8 admin-up link-up
sw_interface_set_flags sw_if_index 9 admin-up link-up
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_flags sw_if_index 8 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=8,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_dump
exec show trace

DUT2:
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
ip_table_add_del table 1 ipv6
sw_interface_set_table sw_if_index 1 vrf 1 ipv6
sw_interface_add_del_address sw_if_index 3 2001:cdba:3::2/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 1 2001:cdba:2::1/64
sw_interface_set_flags sw_if_index 1 admin-up
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:2::2 mac fa:16:3e:4f:5b:43
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:db:58:4f
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
lisp_enable_disable enable
lisp_gpe_enable_disable enable
lisp_add_del_locator_set locator-set tst_locator
lisp_add_del_locator locator-set tst_locator sw_if_index 3 p 1 w 1
lisp_eid_table_add_del_map vni 1 vrf 1
lisp_add_del_local_eid vni 1 eid 2001:cdba:2::0/64 locator-set tst_locator
lisp_add_del_remote_mapping add vni 1 eid 2001:cdba:1::0/64 seid 2001:cdba:2::0/64 rloc 2001:cdba:3::1
lisp_add_del_adjacency add vni 1 reid 2001:cdba:1::0/64 leid 2001:cdba:2::0/64
exec show trace

l2bd

eth2p-dot1q-l2bdbasemaclrn-eth-2vhost-1vm-func

L2 bridge domain with VLAN tag over VM test cases

  • [Top] Network Topologies: TG=DUT 2-node circular topology with double links between nodes.
  • [Enc] Packet encapsulations: Eth-dot1q-IPv4-ICMPv4 or Eth-dot1q-IPv6-ICMPv6 on TG=DUT and on DUT=VM.
  • [Cfg] DUT configuration: DUT is configured with two bridge domains (L2BD) with MAC learning enabled; each one with added VLAN sub-interface towards TG and vhost-user interface to local VM. Configure linux bridge on VM to pass traffic between both vhost-user interfaces.
  • [Ver] TG verification: Make TG send ICMPv4/ICMPv6 Echo Req between two of its interfaces to be switched by DUT via VM; verify packets are switched between these TG interfaces; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr, MAC addresses and VLAN tag.
  • [Ref] Applicable standard specifications: IEEE 802.1q.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: eth2p-dot1q-l2bdbasemaclrn-eth-2vhost-1vm - ipv4
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 2 admin-up link-up
create_vlan_subif sw_if_index 2 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 6 admin-up link-up
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_flags sw_if_index 8 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=7,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=0,port_type=0,bd_id=2)
sw_interface_set_flags sw_if_index 8 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=8,enable=1,shg=0,port_type=0,bd_id=2)
exec show trace

DUT2:
exec show trace
tc01: eth2p-dot1q-l2bdbasemaclrn-eth-2vhost-1vm - ipv6
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_set_flags sw_if_index 2 admin-up link-up
create_vlan_subif sw_if_index 2 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
create_vlan_subif sw_if_index 1 vlan 110
sw_interface_dump
sw_interface_dump
exec show interfaces
sw_interface_set_flags sw_if_index 6 admin-up link-up
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_flags sw_if_index 8 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=7,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=0,port_type=0,bd_id=2)
sw_interface_set_flags sw_if_index 8 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=8,enable=1,shg=0,port_type=0,bd_id=2)
exec show trace

DUT2:
exec show trace

eth2p-eth-l2bdbasemaclrn-eth-2vhost-1vm-func

L2 bridge-domain test cases

  • [Top] Network Topologies: TG=DUT=VM 3-node topology with VM and double parallel links.
  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 for L2 switching of IPv4; Eth-IPv6-ICMPv6 for L2 switching of IPv6 use. Both apply to all links.
  • [Cfg] DUT configuration: DUT1 is configured with two L2 bridge-domains (L2BD) switching combined with MAC learning enabled.
  • [Ver] TG verification: Test ICMPv4 (or ICMPv6) Echo Request packets are sent in both directions by TG on links to DUT1 via VM; on receive TG verifies packets for correctness and their IPv4 (IPv6) src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications:
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut with two l2bds (mac learn) switches icmpv4 between tg and vm links
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=2,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
bridge_domain_add_del(bd_id=2,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=2)
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=0,port_type=0,bd_id=2)
exec show trace

DUT2:
exec show trace
tc02: dut with two l2bds (mac learn) switches icmpv6 between tg and vm links
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=2,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
bridge_domain_add_del(bd_id=2,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=2)
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=0,port_type=0,bd_id=2)
exec show trace

DUT2:
exec show trace

eth2p-eth-l2bdbasemacstc-eth-2vhost-1vm-func

L2 bridge-domain test cases

  • [Top] Network Topologies: TG=DUT=VM 3-node topology with VM and double parallel links.
  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 for L2 switching of IPv4; Eth-IPv6-ICMPv6 for L2 switching of IPv6 use. Both apply to all links.
  • [Cfg] DUT configuration: DUT1 is configured with two L2 bridge-domains (L2BD) switching combined with static MACs.
  • [Ver] TG verification: Test ICMPv4 (or ICMPv6) Echo Request packets are sent in both directions by TG on links to DUT1 via VM; on receive TG verifies packets for correctness and their IPv4 (IPv6) src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications:
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut with two l2bds (static macs) switches icmpv4 between tg and vm links
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=0,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=2,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
l2fib_add_del(static_mac=1,filter_mac=0,bd_id=1,is_add=1,mac=xfa>xd2x8bx9f,sw_if_index=2,bvi_mac=0)
l2fib_add_del(static_mac=1,filter_mac=0,bd_id=1,is_add=1,mac=xfa>,x99`,sw_if_index=5,bvi_mac=0)
bridge_domain_add_del(bd_id=2,is_add=1,arp_term=0,flood=1,learn=0,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=2)
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=0,port_type=0,bd_id=2)
l2fib_add_del(static_mac=1,filter_mac=0,bd_id=2,is_add=1,mac=xfa>,x99`,sw_if_index=1,bvi_mac=0)
l2fib_add_del(static_mac=1,filter_mac=0,bd_id=2,is_add=1,mac=xfa>xd2x8bx9f,sw_if_index=6,bvi_mac=0)
exec show trace

DUT2:
exec show trace
tc02: dut with two l2bds (static macs) switches icmpv6 between tg and vm links
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
bridge_domain_add_del(bd_id=1,is_add=1,arp_term=0,flood=1,learn=0,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=2,enable=1,shg=0,port_type=0,bd_id=1)
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=1)
l2fib_add_del(static_mac=1,filter_mac=0,bd_id=1,is_add=1,mac=xfa>xd2x8bx9f,sw_if_index=2,bvi_mac=0)
l2fib_add_del(static_mac=1,filter_mac=0,bd_id=1,is_add=1,mac=xfa>,x99`,sw_if_index=5,bvi_mac=0)
bridge_domain_add_del(bd_id=2,is_add=1,arp_term=0,flood=1,learn=0,forward=1,uu_flood=1)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=2)
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=0,port_type=0,bd_id=2)
l2fib_add_del(static_mac=1,filter_mac=0,bd_id=2,is_add=1,mac=xfa>,x99`,sw_if_index=1,bvi_mac=0)
l2fib_add_del(static_mac=1,filter_mac=0,bd_id=2,is_add=1,mac=xfa>xd2x8bx9f,sw_if_index=6,bvi_mac=0)
exec show trace

DUT2:
exec show trace

eth2p-ethip4-l2bdbase-vhost-client-reconnect-2vm-func

Vhost-User Interface Traffic Tests

  • [Top] Network Topologies: TG=DUT1 2-node topology with two links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-VXLAN-ETH-IP on TG-DUT link. ETH-IP on VirtualEthernet-VM interface.
  • [Cfg] DUT configuration: On DUT is running 2 VM with 2 vhost-user interface on each VM. DUT is configured with VXLAN and vhost-user interfaces in bridge-domain (L2BD).
  • [Cfg] VM configuration: VM has both vhost-user interfaces added into Linux Bridge.
  • [Ver] TG verification: VXLAN packet is send to DUT where is decapsulated and send bridged to vhost-user inteface. VM forwards frame to its second interface and VPP encapsulates it to another VXLAN tunnel. Packets are sent and received by TG on link to DUT.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: qemu reconnects to vpps vhost-user when qemu is killed and restarted
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 192.168.0.2/24
ip_neighbor_add_del sw_if_index 2 dst 192.168.0.1 mac fa:16:3e:d2:8b:9f
vxlan_add_del_tunnel src 192.168.0.2 dst 192.168.0.1 vni 101
sw_interface_dump
vxlan_add_del_tunnel src 192.168.0.2 dst 192.168.0.1 vni 102
sw_interface_dump
vxlan_add_del_tunnel src 192.168.0.2 dst 192.168.0.1 vni 103
sw_interface_dump
vxlan_add_del_tunnel src 192.168.0.2 dst 192.168.0.1 vni 104
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_flags sw_if_index 8 admin-up link-up
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock3
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock4
sw_interface_dump
sw_interface_dump
sw_interface_set_flags sw_if_index 9 admin-up link-up
sw_interface_set_flags sw_if_index 10 admin-up link-up
sw_interface_set_flags sw_if_index 11 admin-up link-up
sw_interface_set_flags sw_if_index 12 admin-up link-up
bridge_domain_add_del(bd_id=101,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=101)
sw_interface_set_l2_bridge(rx_sw_if_index=9,enable=1,shg=0,port_type=0,bd_id=101)
bridge_domain_add_del(bd_id=102,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=0,port_type=0,bd_id=102)
sw_interface_set_l2_bridge(rx_sw_if_index=10,enable=1,shg=0,port_type=0,bd_id=102)
bridge_domain_add_del(bd_id=103,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=7,enable=1,shg=0,port_type=0,bd_id=103)
sw_interface_set_l2_bridge(rx_sw_if_index=11,enable=1,shg=0,port_type=0,bd_id=103)
bridge_domain_add_del(bd_id=104,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=8,enable=1,shg=0,port_type=0,bd_id=104)
sw_interface_set_l2_bridge(rx_sw_if_index=12,enable=1,shg=0,port_type=0,bd_id=104)
exec show trace

DUT2:
exec show trace
tc02: vpp reconnects to qemu vhost-user when restart vpp and reconfigured
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 192.168.0.2/24
ip_neighbor_add_del sw_if_index 2 dst 192.168.0.1 mac fa:16:3e:d2:8b:9f
vxlan_add_del_tunnel src 192.168.0.2 dst 192.168.0.1 vni 101
sw_interface_dump
vxlan_add_del_tunnel src 192.168.0.2 dst 192.168.0.1 vni 102
sw_interface_dump
vxlan_add_del_tunnel src 192.168.0.2 dst 192.168.0.1 vni 103
sw_interface_dump
vxlan_add_del_tunnel src 192.168.0.2 dst 192.168.0.1 vni 104
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_flags sw_if_index 8 admin-up link-up
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock3
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock4
sw_interface_dump
sw_interface_dump
sw_interface_set_flags sw_if_index 9 admin-up link-up
sw_interface_set_flags sw_if_index 10 admin-up link-up
sw_interface_set_flags sw_if_index 11 admin-up link-up
sw_interface_set_flags sw_if_index 12 admin-up link-up
bridge_domain_add_del(bd_id=101,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=101)
sw_interface_set_l2_bridge(rx_sw_if_index=9,enable=1,shg=0,port_type=0,bd_id=101)
bridge_domain_add_del(bd_id=102,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=0,port_type=0,bd_id=102)
sw_interface_set_l2_bridge(rx_sw_if_index=10,enable=1,shg=0,port_type=0,bd_id=102)
bridge_domain_add_del(bd_id=103,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=7,enable=1,shg=0,port_type=0,bd_id=103)
sw_interface_set_l2_bridge(rx_sw_if_index=11,enable=1,shg=0,port_type=0,bd_id=103)
bridge_domain_add_del(bd_id=104,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=8,enable=1,shg=0,port_type=0,bd_id=104)
sw_interface_set_l2_bridge(rx_sw_if_index=12,enable=1,shg=0,port_type=0,bd_id=104)
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 192.168.0.2/24
ip_neighbor_add_del sw_if_index 2 dst 192.168.0.1 mac fa:16:3e:d2:8b:9f
vxlan_add_del_tunnel src 192.168.0.2 dst 192.168.0.1 vni 101
sw_interface_dump
vxlan_add_del_tunnel src 192.168.0.2 dst 192.168.0.1 vni 102
sw_interface_dump
vxlan_add_del_tunnel src 192.168.0.2 dst 192.168.0.1 vni 103
sw_interface_dump
vxlan_add_del_tunnel src 192.168.0.2 dst 192.168.0.1 vni 104
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_flags sw_if_index 8 admin-up link-up
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock3
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock4
sw_interface_dump
sw_interface_dump
sw_interface_set_flags sw_if_index 9 admin-up link-up
sw_interface_set_flags sw_if_index 10 admin-up link-up
sw_interface_set_flags sw_if_index 11 admin-up link-up
sw_interface_set_flags sw_if_index 12 admin-up link-up
bridge_domain_add_del(bd_id=101,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=101)
sw_interface_set_l2_bridge(rx_sw_if_index=9,enable=1,shg=0,port_type=0,bd_id=101)
bridge_domain_add_del(bd_id=102,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=0,port_type=0,bd_id=102)
sw_interface_set_l2_bridge(rx_sw_if_index=10,enable=1,shg=0,port_type=0,bd_id=102)
bridge_domain_add_del(bd_id=103,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=7,enable=1,shg=0,port_type=0,bd_id=103)
sw_interface_set_l2_bridge(rx_sw_if_index=11,enable=1,shg=0,port_type=0,bd_id=103)
bridge_domain_add_del(bd_id=104,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=8,enable=1,shg=0,port_type=0,bd_id=104)
sw_interface_set_l2_bridge(rx_sw_if_index=12,enable=1,shg=0,port_type=0,bd_id=104)
exec show trace

DUT2:
exec show trace

eth2p-ethip4vxlan-l2bdbasemaclrn-eth-2vhost-1vm-func

L2BD with VM combined with VXLAN test cases - IPv4

  • [Top] Network topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet encapsulations: Eth-IPv4-VXLAN-Eth-IPv4-ICMPv4 on DUT1-DUT2, Eth-IPv4-ICMPv4 on TG-DUTn for L2 switching of IPv4.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with L2 bridge-domain (L2BD) switching combined with MAC learning enabled; VXLAN tunnels are configured between L2BDs on DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC7348.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01:dut1 and dut2 with two l2bds and vxlanoipv4 tunnel switch icmpv4 between tg links and vm links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_add_del_address sw_if_index 3 172.16.0.1/24
vxlan_add_del_tunnel src 172.16.0.1 dst 172.16.0.2 vni 23
sw_interface_dump
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=10)
bridge_domain_add_del(bd_id=20,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=7,enable=1,shg=0,port_type=0,bd_id=20)
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=0,port_type=0,bd_id=20)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_add_del_address sw_if_index 3 172.16.0.2/24
vxlan_add_del_tunnel src 172.16.0.2 dst 172.16.0.1 vni 23
sw_interface_dump
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=10)
bridge_domain_add_del(bd_id=20,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=7,enable=1,shg=0,port_type=0,bd_id=20)
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=0,port_type=0,bd_id=20)
exec show trace

eth2p-ethip6vxlan-l2bdbasemaclrn-eth-2vhost-1vm-func

L2BD with VM combined with VXLAN test cases - IPv6

  • [Top] Network topologies: TG-DUT1-DUT2-TG 3-node circular topology with single links between nodes.
  • [Enc] Packet encapsulations: Eth-IPv6-VXLAN-Eth-IPv6-ICMPv6 on DUT1-DUT2, Eth-IPv6-ICMPv6 on TG-DUTn for L2 switching of IPv6.
  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with L2 bridge-domain (L2BD) switching combined with MAC learning enabled; VXLAN tunnels are configured between L2BDs on DUT1 and DUT2.
  • [Ver] TG verification: Test ICMPv6 Echo Request packets are sent in both directions by TG on links to DUT1 and DUT2; on receive TG verifies packets for correctness and their IPv6 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC7348.
Name VPP API Test Commands History - Commands Used Per Test Case
tc01:dut1 and dut2 with two l2bds and vxlanoipv6 tunnel switch icmpv6 between tg links and vm links
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_add_del_address sw_if_index 3 3ffe:64::1/64
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
sw_interface_ip6nd_ra_config sw_if_index 6 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
vxlan_add_del_tunnel src 3ffe:64::1 dst 3ffe:64::2 vni 23
sw_interface_dump
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=10)
bridge_domain_add_del(bd_id=20,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=7,enable=1,shg=0,port_type=0,bd_id=20)
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=0,port_type=0,bd_id=20)
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_dump
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_add_del_address sw_if_index 3 3ffe:64::2/64
sw_interface_ip6nd_ra_config sw_if_index 6 surpress
sw_interface_ip6nd_ra_config sw_if_index 5 surpress
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
vxlan_add_del_tunnel src 3ffe:64::2 dst 3ffe:64::1 vni 23
sw_interface_dump
bridge_domain_add_del(bd_id=10,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=10)
sw_interface_set_l2_bridge(rx_sw_if_index=5,enable=1,shg=0,port_type=0,bd_id=10)
bridge_domain_add_del(bd_id=20,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_l2_bridge(rx_sw_if_index=7,enable=1,shg=0,port_type=0,bd_id=20)
sw_interface_set_l2_bridge(rx_sw_if_index=6,enable=1,shg=0,port_type=0,bd_id=20)
exec show trace

l2xc

eth2p-eth-l2xcbase-eth-2vhost-1vm-func

L2 cross-connect test cases

  • [Top] Network Topologies: TG=DUT=VM 3-node topology with VM and double parallel links.
  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 for L2 switching of IPv4; Eth-IPv6-ICMPv6 for L2 switching of IPv6 use. Both apply to all links.
  • [Cfg] DUT configuration: DUT1 is configured with L2 cross-connect (L2XC) switching.
  • [Ver] TG verification: Test ICMPv4 (or ICMPv6) Echo Request packets are sent in both directions by TG on links to DUT1 via VM; on receive TG verifies packets for correctness and their IPv4 (IPv6) src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications:
Name VPP API Test Commands History - Commands Used Per Test Case
tc01: dut with two l2xcs switches icmpv4 between tg and local vm links
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=2,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=2)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=6)
sw_interface_set_l2_xconnect(rx_sw_if_index=6,enable=1,tx_sw_if_index=1)
exec show trace

DUT2:
exec show trace
tc02: dut with two l2xcs switches icmpv6 between tg and local vm links
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_dump
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=2,enable=1,tx_sw_if_index=5)
sw_interface_set_l2_xconnect(rx_sw_if_index=5,enable=1,tx_sw_if_index=2)
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_xconnect(rx_sw_if_index=1,enable=1,tx_sw_if_index=6)
sw_interface_set_l2_xconnect(rx_sw_if_index=6,enable=1,tx_sw_if_index=1)
exec show trace

DUT2:
exec show trace