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 (VAT) 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 6f5a66456f7851496d5077786c5a676c integ_alg sha1-96 integ_key 485630364f596362646745386f656372616b7375 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 6f5a66456f7851496d5077786c5a676c integ_alg sha1-96 integ_key 485630364f596362646745386f656372616b7375 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 656f6f4a346c39424d4c5467305376586a415037336c6342 integ_alg sha1-96 integ_key 55734f4937314252676935744d644b64596c6643 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 656f6f4a346c39424d4c5467305376586a415037336c6342 integ_alg sha1-96 integ_key 55734f4937314252676935744d644b64596c6643 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 777567656e34757446307876454a537045476969337048446643756843646448 integ_alg sha1-96 integ_key 5951724a495133676b3753644e716b6a72477341 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 777567656e34757446307876454a537045476969337048446643756843646448 integ_alg sha1-96 integ_key 5951724a495133676b3753644e716b6a72477341 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 5531573157424c3962683547505a5873 integ_alg sha-256-128 integ_key 5a6141644c4f54636363456b5957626c65596e744c6c534467544845477a3842 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 5531573157424c3962683547505a5873 integ_alg sha-256-128 integ_key 5a6141644c4f54636363456b5957626c65596e744c6c534467544845477a3842 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 634a355841466c61765a6750616f52686d674e58666f5a6d integ_alg sha-256-128 integ_key 3963613477455a75336270773431524d424564585461527a367a767154785736 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 634a355841466c61765a6750616f52686d674e58666f5a6d integ_alg sha-256-128 integ_key 3963613477455a75336270773431524d424564585461527a367a767154785736 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 764b74626a45517464693038545976413267584b486b6e4c667863756a4b6873 integ_alg sha-256-128 integ_key 77694d6a4b76346d674e684b643356354b383470556e383151744475444c6376 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 764b74626a45517464693038545976413267584b486b6e4c667863756a4b6873 integ_alg sha-256-128 integ_key 77694d6a4b76346d674e684b643356354b383470556e383151744475444c6376 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 7471376664727a6c5446386544734453 integ_alg sha-384-192 integ_key 4f3948517954683566377564683038656d4d6d5a324137614c7746377667334e396a786b515073735158767a67714b44 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 7471376664727a6c5446386544734453 integ_alg sha-384-192 integ_key 4f3948517954683566377564683038656d4d6d5a324137614c7746377667334e396a786b515073735158767a67714b44 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 795839585266484a3152546f34386d587674663848487a6a integ_alg sha-384-192 integ_key 6f4a4c556f304e4b35703534324832416e416c535150355a695666723639483679713438727a5a57546273334b704654 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 795839585266484a3152546f34386d587674663848487a6a integ_alg sha-384-192 integ_key 6f4a4c556f304e4b35703534324832416e416c535150355a695666723639483679713438727a5a57546273334b704654 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 476853464b6e7753687a7a3546315875683339486c66424b564c3279376e6e78 integ_alg sha-384-192 integ_key 616946383536744f644b6e78533655546d5a5034586e3749346543506a4c616f5a4a7762586c36596837774247315431 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 476853464b6e7753687a7a3546315875683339486c66424b564c3279376e6e78 integ_alg sha-384-192 integ_key 616946383536744f644b6e78533655546d5a5034586e3749346543506a4c616f5a4a7762586c36596837774247315431 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 46426c654b4a6f784f517a5733737247 integ_alg sha-512-256 integ_key 6e34624765624d496356726379554743313163694e4d4d4b784c6f757844454163657531344774444874417875385656375970315969476d366d673130767836 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 46426c654b4a6f784f517a5733737247 integ_alg sha-512-256 integ_key 6e34624765624d496356726379554743313163694e4d4d4b784c6f757844454163657531344774444874417875385656375970315969476d366d673130767836 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 714e566a784a6e487031746170494e794857677554556365 integ_alg sha-512-256 integ_key 363773705258365257596d597539304e483341354a4c554b586a67484456563338776f6f7652353679334147386f365a6959584b6159674d735a414554465747 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 714e566a784a6e487031746170494e794857677554556365 integ_alg sha-512-256 integ_key 363773705258365257596d597539304e483341354a4c554b586a67484456563338776f6f7652353679334147386f365a6959584b6159674d735a414554465747 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 424b7663555249745a3273367967714c38474d6f5574706f6b72635062397144 integ_alg sha-512-256 integ_key 4f7a37764f4968443543736e454e6e706c62495856593473674a465a4233304d6d666a4553577846436c7771414c664956664a544e67746a3346594d44324241 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 424b7663555249745a3273367967714c38474d6f5574706f6b72635062397144 integ_alg sha-512-256 integ_key 4f7a37764f4968443543736e454e6e706c62495856593473674a465a4233304d6d666a4553577846436c7771414c664956664a544e67746a3346594d44324241 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 574d687033614e7266324f5256645a7a integ_alg sha1-96 integ_key 6e475473616f6963613378655848685253524366 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 574d687033614e7266324f5256645a7a integ_alg sha1-96 integ_key 6e475473616f6963613378655848685253524366 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 526c32384e37634e7355626c4278354b integ_alg sha1-96 integ_key 59656a51534c4f517174355a6f6e7647316d3238 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 526c32384e37634e7355626c4278354b integ_alg sha1-96 integ_key 59656a51534c4f517174355a6f6e7647316d3238 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 4f484c6b55517853415764436d4d6d59 integ_alg sha1-96 integ_key 335533346543335267666a364479467845427541 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4f484c6b55517853415764436d4d6d59 integ_alg sha1-96 integ_key 335533346543335267666a364479467845427541 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 554636364673574976386b5576394374 integ_alg sha1-96 integ_key 57574b525762366a473761546f4f6f655a734659 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 554636364673574976386b5576394374 integ_alg sha1-96 integ_key 57574b525762366a473761546f4f6f655a734659 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_sa_set_key sa_id 10 crypto_key 4f57566b73336e49464a4a597559336e integ_key 635856346f38463032386b44416d6c4871364d66
ipsec_sa_set_key sa_id 20 crypto_key 4f57566b73336e49464a4a597559336e integ_key 635856346f38463032386b44416d6c4871364d66
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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 494c376c5874353153585a53614e686c integ_alg sha1-96 integ_key 6159505a755167466d44637a5a3041464e4b4330 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 494c376c5874353153585a53614e686c integ_alg sha1-96 integ_key 6159505a755167466d44637a5a3041464e4b4330 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_sa_set_key sa_id 10 crypto_key 705a747a4230776f544754527252666b integ_key 33644c7131506b3861367241374f683569625059
ipsec_sa_set_key sa_id 20 crypto_key 705a747a4230776f544754527252666b integ_key 33644c7131506b3861367241374f683569625059
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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 4b6d687361666a467a3161377977397a integ_alg sha1-96 integ_key 6f5946375147754b6b357375453176656d6f4939 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4b6d687361666a467a3161377977397a integ_alg sha1-96 integ_key 6f5946375147754b6b357375453176656d6f4939 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_sa_set_key sa_id 10 crypto_key 32384436785652566772444f526f454c integ_key 6e386e4d665448536c5a394e5032497a484a7169
ipsec_sa_set_key sa_id 20 crypto_key 32384436785652566772444f526f454c integ_key 6e386e4d665448536c5a394e5032497a484a7169
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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 6d54514d63586736564d486857336671 integ_alg sha1-96 integ_key 4e6268354b51745356675a393941625556684f53 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 6d54514d63586736564d486857336671 integ_alg sha1-96 integ_key 4e6268354b51745356675a393941625556684f53 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_sa_set_key sa_id 10 crypto_key 694d456a61336a6e6334565233747164 integ_key 346a386744394d313630374c385630384e4b5041
ipsec_sa_set_key sa_id 20 crypto_key 694d456a61336a6e6334565233747164 integ_key 346a386744394d313630374c385630384e4b5041
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 (VAT) 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 45366261673759656f325a4e4b4f766a integ_alg sha1-96 integ_key 7068644e6161535266564359554e574e39564533
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 45366261673759656f325a4e4b4f766a integ_alg sha1-96 integ_key 7068644e6161535266564359554e574e39564533
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 6555485a4277445a5652747146456b634e4b6b46546a3474 integ_alg sha1-96 integ_key 6a717852364761574b6969595166696969335771
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 6555485a4277445a5652747146456b634e4b6b46546a3474 integ_alg sha1-96 integ_key 6a717852364761574b6969595166696969335771
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 366d6a3674767a4a764d51556a373444486572676d793955696e33466f467a6e integ_alg sha1-96 integ_key 78573447314e45414c536171616d4f6b69796c49
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 366d6a3674767a4a764d51556a373444486572676d793955696e33466f467a6e integ_alg sha1-96 integ_key 78573447314e45414c536171616d4f6b69796c49
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 323132786b6b7248493869726d513548 integ_alg sha-256-128 integ_key 453271644a706e76536a3141554e3257614c516d356c61463746786450356653
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 323132786b6b7248493869726d513548 integ_alg sha-256-128 integ_key 453271644a706e76536a3141554e3257614c516d356c61463746786450356653
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 59414b5265334c4e3458324633644349796858766e6b3741 integ_alg sha-256-128 integ_key 54674a7233575047615266387a384f436e7435435274503972484f3637534c4c
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 59414b5265334c4e3458324633644349796858766e6b3741 integ_alg sha-256-128 integ_key 54674a7233575047615266387a384f436e7435435274503972484f3637534c4c
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 597143524655616f746f7047687870776463646f786352636a47656535484c77 integ_alg sha-256-128 integ_key 6962703849394c737865424e4a70565149664d733631497849337a434c423238
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 597143524655616f746f7047687870776463646f786352636a47656535484c77 integ_alg sha-256-128 integ_key 6962703849394c737865424e4a70565149664d733631497849337a434c423238
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 664e6a374a48697a795672374f646138 integ_alg sha-384-192 integ_key 466e724b4a4c745a75704f6254416f49355841456b64327a36736e5964583733494f727549747178616d566d63746a57
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 664e6a374a48697a795672374f646138 integ_alg sha-384-192 integ_key 466e724b4a4c745a75704f6254416f49355841456b64327a36736e5964583733494f727549747178616d566d63746a57
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 715a6836676170746b53534175465771765a47316c654e4b integ_alg sha-384-192 integ_key 464e643244363633656274456a343442375368646552786f41634d554f52457a545a324b454d556d3743447449787770
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 715a6836676170746b53534175465771765a47316c654e4b integ_alg sha-384-192 integ_key 464e643244363633656274456a343442375368646552786f41634d554f52457a545a324b454d556d3743447449787770
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 694178426a737a65664d4e6b6b705974646c6f376d4c71386575554356756b4d integ_alg sha-384-192 integ_key 4354335a523159784c73324237364e337249654a36574b50655368585571436347666431687a35596c76743148786f46
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 694178426a737a65664d4e6b6b705974646c6f376d4c71386575554356756b4d integ_alg sha-384-192 integ_key 4354335a523159784c73324237364e337249654a36574b50655368585571436347666431687a35596c76743148786f46
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 494b375769777862396d314e52307a52 integ_alg sha-512-256 integ_key 3834306b4746797875484344436b4d4637764d413438516c534d504267424977323757666869374f464578744b78396e3355743351696248793365686a747738
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 494b375769777862396d314e52307a52 integ_alg sha-512-256 integ_key 3834306b4746797875484344436b4d4637764d413438516c534d504267424977323757666869374f464578744b78396e3355743351696248793365686a747738
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 526a484d6444724e53725158746a414e415a336768653372 integ_alg sha-512-256 integ_key 426b5a5658475a3631506976414e5233413143556c726c32315853724a7264535a506259466c6b544a356569724f4d623759476d5537714e637a72784f775550
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 526a484d6444724e53725158746a414e415a336768653372 integ_alg sha-512-256 integ_key 426b5a5658475a3631506976414e5233413143556c726c32315853724a7264535a506259466c6b544a356569724f4d623759476d5537714e637a72784f775550
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 386d627237453576796f664458766d554d624237795955677832437343583476 integ_alg sha-512-256 integ_key 44664d5a47544a61343563516331416e636a696d726879335142365a4648755658786b686b566551376f6d6863776165764a644e524d46535134496b584c3662
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 386d627237453576796f664458766d554d624237795955677832437343583476 integ_alg sha-512-256 integ_key 44664d5a47544a61343563516331416e636a696d726879335142365a4648755658786b686b566551376f6d6863776165764a644e524d46535134496b584c3662
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 675575566f337247766e345738304945 integ_alg sha1-96 integ_key 6243466a4744517051437a565345623139794877
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 675575566f337247766e345738304945 integ_alg sha1-96 integ_key 6243466a4744517051437a565345623139794877
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 57764653344b4f59596d6572324b3438 integ_alg sha1-96 integ_key 446d354d4f7571644c72394a654269584b6c6152
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 57764653344b4f59596d6572324b3438 integ_alg sha1-96 integ_key 446d354d4f7571644c72394a654269584b6c6152
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 47335a6d354147716970564e76393170 integ_alg sha1-96 integ_key 6465496b387955306e3547754942414f6c706e46
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 47335a6d354147716970564e76393170 integ_alg sha1-96 integ_key 6465496b387955306e3547754942414f6c706e46
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 654b44364f646c767978756666373766 integ_alg sha1-96 integ_key 554d37556148434e46323676706f6e4776523871
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 654b44364f646c767978756666373766 integ_alg sha1-96 integ_key 554d37556148434e46323676706f6e4776523871
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_sa_set_key sa_id 10 crypto_key 4f41455a327a65556b62596f70545663 integ_key 4379504449726c334d4b33567343653569736d37
ipsec_sa_set_key sa_id 20 crypto_key 4f41455a327a65556b62596f70545663 integ_key 4379504449726c334d4b33567343653569736d37
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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 4e76494965455a68443263696348384c integ_alg sha1-96 integ_key 42706c3267514333634553363557556448365235
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4e76494965455a68443263696348384c integ_alg sha1-96 integ_key 42706c3267514333634553363557556448365235
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_sa_set_key sa_id 10 crypto_key 627157736f7033356376494450504350 integ_key 4656737a794569354b544d523131654543567659
ipsec_sa_set_key sa_id 20 crypto_key 627157736f7033356376494450504350 integ_key 4656737a794569354b544d523131654543567659
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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 7156654c5967346545454c57584f5476 integ_alg sha1-96 integ_key 4c47375261366231567145644d634b6b6d775666
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 7156654c5967346545454c57584f5476 integ_alg sha1-96 integ_key 4c47375261366231567145644d634b6b6d775666
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_sa_set_key sa_id 10 crypto_key 556f30615a62654d515633314a446762 integ_key 72574441316e5156355969795456794d39496c31
ipsec_sa_set_key sa_id 20 crypto_key 556f30615a62654d515633314a446762 integ_key 72574441316e5156355969795456794d39496c31
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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 785a4c73746a514e7352666c4b717776 integ_alg sha1-96 integ_key 5144524c58745850667553324d6477656f334848
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 785a4c73746a514e7352666c4b717776 integ_alg sha1-96 integ_key 5144524c58745850667553324d6477656f334848
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_sa_set_key sa_id 10 crypto_key 624b376e4f347a6b4c4a477374577678 integ_key 52414f4565634447526e755659305830757a6337
ipsec_sa_set_key sa_id 20 crypto_key 624b376e4f347a6b4c4a477374577678 integ_key 52414f4565634447526e755659305830757a6337
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 (VAT) 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:4b:11:dd
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 5a464f4d313252334c5a67374e6f4367 integ_alg sha1-96 integ_key 646e6f684e6471733066584d6176554e56495337
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 5a464f4d313252334c5a67374e6f4367 integ_alg sha1-96 integ_key 646e6f684e6471733066584d6176554e56495337
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 6.6.3.1 laddr_stop 6.6.3.1 raddr_start 6.6.3.2 raddr_stop 6.6.3.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 6.6.3.1 laddr_stop 6.6.3.1 raddr_start 6.6.3.2 raddr_stop 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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:eb:a1:f3
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1000 crypto_alg aes-cbc-128 crypto_key 5a464f4d313252334c5a67374e6f4367 integ_alg sha1-96 integ_key 646e6f684e6471733066584d6176554e56495337
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 5a464f4d313252334c5a67374e6f4367 integ_alg sha1-96 integ_key 646e6f684e6471733066584d6176554e56495337
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 6.6.3.2 laddr_stop 6.6.3.2 raddr_start 6.6.3.1 raddr_stop 6.6.3.1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 6.6.3.2 laddr_stop 6.6.3.2 raddr_start 6.6.3.1 raddr_stop 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:4b:11:dd
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 4d595166734b5a6f6169757764745041 integ_alg sha1-96 integ_key 5748564b364e3465567567724278517762736375
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4d595166734b5a6f6169757764745041 integ_alg sha1-96 integ_key 5748564b364e3465567567724278517762736375
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 6.6.1.2 laddr_stop 6.6.1.2 raddr_start 6.6.2.2 raddr_stop 6.6.2.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 6.6.1.2 laddr_stop 6.6.1.2 raddr_start 6.6.2.2 raddr_stop 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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:eb:a1:f3
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1000 crypto_alg aes-cbc-128 crypto_key 4d595166734b5a6f6169757764745041 integ_alg sha1-96 integ_key 5748564b364e3465567567724278517762736375
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 4d595166734b5a6f6169757764745041 integ_alg sha1-96 integ_key 5748564b364e3465567567724278517762736375
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 6.6.2.2 laddr_stop 6.6.2.2 raddr_start 6.6.1.2 raddr_stop 6.6.1.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 6.6.2.2 laddr_stop 6.6.2.2 raddr_start 6.6.1.2 raddr_stop 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:4b:11:dd
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 493757456474713738665a4e454c6e73 integ_alg sha1-96 integ_key 6a704c72704564764a6966485174457358345a65
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 493757456474713738665a4e454c6e73 integ_alg sha1-96 integ_key 6a704c72704564764a6966485174457358345a65
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 6.6.3.1 laddr_stop 6.6.3.1 raddr_start 6.6.3.2 raddr_stop 6.6.3.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 6.6.3.1 laddr_stop 6.6.3.1 raddr_start 6.6.3.2 raddr_stop 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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:eb:a1:f3
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1000 crypto_alg aes-cbc-128 crypto_key 493757456474713738665a4e454c6e73 integ_alg sha1-96 integ_key 6a704c72704564764a6966485174457358345a65
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 493757456474713738665a4e454c6e73 integ_alg sha1-96 integ_key 6a704c72704564764a6966485174457358345a65
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 6.6.3.2 laddr_stop 6.6.3.2 raddr_start 6.6.3.1 raddr_stop 6.6.3.1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 6.6.3.2 laddr_stop 6.6.3.2 raddr_start 6.6.3.1 raddr_stop 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:4b:11:dd
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 4e67526967346252756d6155466b7844 integ_alg sha1-96 integ_key 45367747396c566631364e6f4c6a466f4c4c3939
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4e67526967346252756d6155466b7844 integ_alg sha1-96 integ_key 45367747396c566631364e6f4c6a466f4c4c3939
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 6.6.1.2 laddr_stop 6.6.1.2 raddr_start 6.6.2.2 raddr_stop 6.6.2.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 6.6.1.2 laddr_stop 6.6.1.2 raddr_start 6.6.2.2 raddr_stop 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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:eb:a1:f3
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1000 crypto_alg aes-cbc-128 crypto_key 4e67526967346252756d6155466b7844 integ_alg sha1-96 integ_key 45367747396c566631364e6f4c6a466f4c4c3939
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 4e67526967346252756d6155466b7844 integ_alg sha1-96 integ_key 45367747396c566631364e6f4c6a466f4c4c3939
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 6.6.2.2 laddr_stop 6.6.2.2 raddr_start 6.6.1.2 raddr_stop 6.6.1.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 6.6.2.2 laddr_stop 6.6.2.2 raddr_start 6.6.1.2 raddr_stop 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 (VAT) 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:4b:11:dd
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 4e414837756f6176424b4b6349367644 integ_alg sha1-96 integ_key 384d34397a754573366b47664158307976664967
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4e414837756f6176424b4b6349367644 integ_alg sha1-96 integ_key 384d34397a754573366b47664158307976664967
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 6.6.3.1 laddr_stop 6.6.3.1 raddr_start 6.6.3.2 raddr_stop 6.6.3.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 6.6.3.1 laddr_stop 6.6.3.1 raddr_start 6.6.3.2 raddr_stop 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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:eb:a1:f3
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1000 crypto_alg aes-cbc-128 crypto_key 4e414837756f6176424b4b6349367644 integ_alg sha1-96 integ_key 384d34397a754573366b47664158307976664967
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 4e414837756f6176424b4b6349367644 integ_alg sha1-96 integ_key 384d34397a754573366b47664158307976664967
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 6.6.3.2 laddr_stop 6.6.3.2 raddr_start 6.6.3.1 raddr_stop 6.6.3.1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 6.6.3.2 laddr_stop 6.6.3.2 raddr_start 6.6.3.1 raddr_stop 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:4b:11:dd
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 5a4a72374a6b56684145316d78755766 integ_alg sha1-96 integ_key 6361746c6175376977536144467a54326f396275
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 5a4a72374a6b56684145316d78755766 integ_alg sha1-96 integ_key 6361746c6175376977536144467a54326f396275
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 6.6.3.1 laddr_stop 6.6.3.1 raddr_start 6.6.3.2 raddr_stop 6.6.3.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 6.6.3.1 laddr_stop 6.6.3.1 raddr_start 6.6.3.2 raddr_stop 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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:eb:a1:f3
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1000 crypto_alg aes-cbc-128 crypto_key 5a4a72374a6b56684145316d78755766 integ_alg sha1-96 integ_key 6361746c6175376977536144467a54326f396275
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 5a4a72374a6b56684145316d78755766 integ_alg sha1-96 integ_key 6361746c6175376977536144467a54326f396275
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 6.6.3.2 laddr_stop 6.6.3.2 raddr_start 6.6.3.1 raddr_stop 6.6.3.1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 6.6.3.2 laddr_stop 6.6.3.2 raddr_start 6.6.3.1 raddr_stop 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 (VAT) 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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 386e35386359474f384f643341656f50 integ_alg sha1-96 integ_key 36445355704e5451457363557874453170735752
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 386e35386359474f384f643341656f50 integ_alg sha1-96 integ_key 36445355704e5451457363557874453170735752
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 6.6.3.1 laddr_stop 6.6.3.1 raddr_start 6.6.3.2 raddr_stop 6.6.3.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 6.6.3.1 laddr_stop 6.6.3.1 raddr_start 6.6.3.2 raddr_stop 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:4b:11:dd
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1000 crypto_alg aes-cbc-128 crypto_key 386e35386359474f384f643341656f50 integ_alg sha1-96 integ_key 36445355704e5451457363557874453170735752
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 386e35386359474f384f643341656f50 integ_alg sha1-96 integ_key 36445355704e5451457363557874453170735752
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 6.6.3.2 laddr_stop 6.6.3.2 raddr_start 6.6.3.1 raddr_stop 6.6.3.1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 6.6.3.2 laddr_stop 6.6.3.2 raddr_start 6.6.3.1 raddr_stop 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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:eb:a1:f3
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 (VAT) 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 59725057436d6d5879626e4b634d6c47 integ_alg sha1-96 integ_key 6d456c7568445042336358353570463745323079 tunnel_src 3ffe:5f::2 tunnel_dst 3ffe:5f::1
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 59725057436d6d5879626e4b634d6c47 integ_alg sha1-96 integ_key 6d456c7568445042336358353570463745323079 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 3ffe:60::3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 626e524f304133325669353052666b494444515a5362627a integ_alg sha1-96 integ_key 7a4437664b394274476b4138365231625758706e tunnel_src 3ffe:5f::2 tunnel_dst 3ffe:5f::1
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 626e524f304133325669353052666b494444515a5362627a integ_alg sha1-96 integ_key 7a4437664b394274476b4138365231625758706e 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 3ffe:60::3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 4e567634375048697878504d6f59504242334c6f63794867494849417559307a integ_alg sha1-96 integ_key 434e334e51396c70435739567a764b724e6b5739 tunnel_src 3ffe:5f::2 tunnel_dst 3ffe:5f::1
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 4e567634375048697878504d6f59504242334c6f63794867494849417559307a integ_alg sha1-96 integ_key 434e334e51396c70435739567a764b724e6b5739 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 3ffe:60::3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 757a4c535638567163736f6330553651 integ_alg sha-256-128 integ_key 36673175454f636e374438665a5068414d4c364d46466c435050756657486c38 tunnel_src 3ffe:5f::2 tunnel_dst 3ffe:5f::1
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 757a4c535638567163736f6330553651 integ_alg sha-256-128 integ_key 36673175454f636e374438665a5068414d4c364d46466c435050756657486c38 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 3ffe:60::3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 354535337861416c58776a5147366675376b6546685a6861 integ_alg sha-256-128 integ_key 5259305856473567557350637445726679366c43466a3046777267546f333452 tunnel_src 3ffe:5f::2 tunnel_dst 3ffe:5f::1
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 354535337861416c58776a5147366675376b6546685a6861 integ_alg sha-256-128 integ_key 5259305856473567557350637445726679366c43466a3046777267546f333452 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 3ffe:60::3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 6e41746a566b585130757958625432516e4163747243526243524a6b35327351 integ_alg sha-256-128 integ_key 7555475171376f6a73504330576a386d4c746e6a7a31553945366b4549426165 tunnel_src 3ffe:5f::2 tunnel_dst 3ffe:5f::1
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 6e41746a566b585130757958625432516e4163747243526243524a6b35327351 integ_alg sha-256-128 integ_key 7555475171376f6a73504330576a386d4c746e6a7a31553945366b4549426165 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 3ffe:60::3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 5159766a4d614d426f3431357151466a integ_alg sha-384-192 integ_key 79774a6772696d517959496646636e4e414350477a744876664f53745843736c794a74424e797264476e7056796b3941 tunnel_src 3ffe:5f::2 tunnel_dst 3ffe:5f::1
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 5159766a4d614d426f3431357151466a integ_alg sha-384-192 integ_key 79774a6772696d517959496646636e4e414350477a744876664f53745843736c794a74424e797264476e7056796b3941 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 3ffe:60::3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 534432306d63625a6b6139315646364a764f63535068586a integ_alg sha-384-192 integ_key 72323944356d6c6f6875786f456850527a496f48775846794d54694b65663552764355326b5934384732574543334c69 tunnel_src 3ffe:5f::2 tunnel_dst 3ffe:5f::1
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 534432306d63625a6b6139315646364a764f63535068586a integ_alg sha-384-192 integ_key 72323944356d6c6f6875786f456850527a496f48775846794d54694b65663552764355326b5934384732574543334c69 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 3ffe:60::3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 4d6c30596a736f6f6253716348704758556d474d5141376f496e6a6744497a76 integ_alg sha-384-192 integ_key 4b50436e6879784151397a68636b647949656561794e6d48566a33324f4b6a7a4a4345645141784a376d697259634146 tunnel_src 3ffe:5f::2 tunnel_dst 3ffe:5f::1
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 4d6c30596a736f6f6253716348704758556d474d5141376f496e6a6744497a76 integ_alg sha-384-192 integ_key 4b50436e6879784151397a68636b647949656561794e6d48566a33324f4b6a7a4a4345645141784a376d697259634146 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 3ffe:60::3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 6f415371314e69374f3767394732556c integ_alg sha-512-256 integ_key 6e72415670566e584f576e784c7944654b52595a795278526845536d4e7653464c69574678763350436338574e50557941554232324137486b5578756b4d6345 tunnel_src 3ffe:5f::2 tunnel_dst 3ffe:5f::1
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 6f415371314e69374f3767394732556c integ_alg sha-512-256 integ_key 6e72415670566e584f576e784c7944654b52595a795278526845536d4e7653464c69574678763350436338574e50557941554232324137486b5578756b4d6345 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 3ffe:60::3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 4730785456636d456469736b53554f746551686959474362 integ_alg sha-512-256 integ_key 757952634139573246415348554e7261636f4d55546d486b3446486f39364d3674474f58373543485a5232616c6453706456725059714d6b6e5a493466764d77 tunnel_src 3ffe:5f::2 tunnel_dst 3ffe:5f::1
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 4730785456636d456469736b53554f746551686959474362 integ_alg sha-512-256 integ_key 757952634139573246415348554e7261636f4d55546d486b3446486f39364d3674474f58373543485a5232616c6453706456725059714d6b6e5a493466764d77 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 3ffe:60::3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 374862784b4643366e4d797a68484c345a6b6847553738466d4f494479764e70 integ_alg sha-512-256 integ_key 58586c46686852777a33563166646c656a5448555753354e6e73624f427731626f62316b7661553171726431734c51546b534f626d79654247613154444e7570 tunnel_src 3ffe:5f::2 tunnel_dst 3ffe:5f::1
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 374862784b4643366e4d797a68484c345a6b6847553738466d4f494479764e70 integ_alg sha-512-256 integ_key 58586c46686852777a33563166646c656a5448555753354e6e73624f427731626f62316b7661553171726431734c51546b534f626d79654247613154444e7570 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 3ffe:60::3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 736d484a4f4361457369534555664472 integ_alg sha1-96 integ_key 6a686a3471694f7a4556585051676b4c694e4c4e tunnel_src 3ffe:5f::2 tunnel_dst 3ffe:5f::1
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 736d484a4f4361457369534555664472 integ_alg sha1-96 integ_key 6a686a3471694f7a4556585051676b4c694e4c4e 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 3ffe:60::3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 63645562495a45463546704c64334358 integ_alg sha1-96 integ_key 52304577636a785258586a446f4856734d416846 tunnel_src 3ffe:5f::2 tunnel_dst 3ffe:5f::1
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 63645562495a45463546704c64334358 integ_alg sha1-96 integ_key 52304577636a785258586a446f4856734d416846 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 3ffe:60::3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 4339666772485233794c375758474d34 integ_alg sha1-96 integ_key 4e57426665556b6b5a4556484665797a54617352 tunnel_src 3ffe:5f::2 tunnel_dst 3ffe:5f::1
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4339666772485233794c375758474d34 integ_alg sha1-96 integ_key 4e57426665556b6b5a4556484665797a54617352 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 3ffe:60::3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 4f376155426d31555a574b734e6a3448 integ_alg sha1-96 integ_key 646f694e574863516e4b3048646277654b387947 tunnel_src 3ffe:5f::2 tunnel_dst 3ffe:5f::1
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4f376155426d31555a574b734e6a3448 integ_alg sha1-96 integ_key 646f694e574863516e4b3048646277654b387947 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 3ffe:60::3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 3ffe:60::3
ipsec_sa_set_key sa_id 10 crypto_key 55775946724c523448613069504d3450 integ_key 413779696a6b6869725853693477685032613032
ipsec_sa_set_key sa_id 20 crypto_key 55775946724c523448613069504d3450 integ_key 413779696a6b6869725853693477685032613032
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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 4d7848446c686e7a4277516c6b505974 integ_alg sha1-96 integ_key 357438684f744f4e49315a3969597a4368474d6b tunnel_src 3ffe:5f::2 tunnel_dst 3ffe:5f::1
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4d7848446c686e7a4277516c6b505974 integ_alg sha1-96 integ_key 357438684f744f4e49315a3969597a4368474d6b 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 3ffe:60::3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 3ffe:60::3
ipsec_sa_set_key sa_id 10 crypto_key 554e374f444f617a416e3344704c6d66 integ_key 614f75514c6e314d526f50494b3136796d624b55
ipsec_sa_set_key sa_id 20 crypto_key 554e374f444f617a416e3344704c6d66 integ_key 614f75514c6e314d526f50494b3136796d624b55
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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 4f754276474d506b4568797a504e6f75 integ_alg sha1-96 integ_key 444b416a347873443961456d443930556e6c3468 tunnel_src 3ffe:5f::2 tunnel_dst 3ffe:5f::1
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4f754276474d506b4568797a504e6f75 integ_alg sha1-96 integ_key 444b416a347873443961456d443930556e6c3468 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 3ffe:60::3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 3ffe:60::3
ipsec_sa_set_key sa_id 10 crypto_key 6a753434546370384847354b626a716f integ_key 4274456648384d44374c723743594548385a7865
ipsec_sa_set_key sa_id 20 crypto_key 6a753434546370384847354b626a716f integ_key 4274456648384d44374c723743594548385a7865
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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 4473504b6e4552795875725764354b62 integ_alg sha1-96 integ_key 5051535a564f3556466e6b32635954546a764965 tunnel_src 3ffe:5f::2 tunnel_dst 3ffe:5f::1
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4473504b6e4552795875725764354b62 integ_alg sha1-96 integ_key 5051535a564f3556466e6b32635954546a764965 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 3ffe:60::3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:60::4 laddr_stop 3ffe:60::4 raddr_start 3ffe:60::3 raddr_stop 3ffe:60::3
ipsec_sa_set_key sa_id 10 crypto_key 48647964637548774742496a30766a45 integ_key 4a37707541714f5743434d6f52377039514e6d4f
ipsec_sa_set_key sa_id 20 crypto_key 48647964637548774742496a30766a45 integ_key 4a37707541714f5743434d6f52377039514e6d4f
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 (VAT) 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 3271534e4e4954343950647a574c386c integ_alg sha1-96 integ_key 705a7759636a626e6f48716b6a3055736e616b37
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 3271534e4e4954343950647a574c386c integ_alg sha1-96 integ_key 705a7759636a626e6f48716b6a3055736e616b37
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 3ffe:5f::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 6f4f6c384879536650315841316f764168486d796e473746 integ_alg sha1-96 integ_key 794c54796d32533174324733506f767966584533
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 6f4f6c384879536650315841316f764168486d796e473746 integ_alg sha1-96 integ_key 794c54796d32533174324733506f767966584533
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 3ffe:5f::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 35484c6f456d436e594f38457a497a78673541465934697652575335744f7177 integ_alg sha1-96 integ_key 7544354d4f7748546e6e617845326c437934314e
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 35484c6f456d436e594f38457a497a78673541465934697652575335744f7177 integ_alg sha1-96 integ_key 7544354d4f7748546e6e617845326c437934314e
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 3ffe:5f::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 56466a706c69336b6e3374304c763243 integ_alg sha-256-128 integ_key 6f7847424c4a527368374239693174587a72316d6775553055534a494f466c6d
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 56466a706c69336b6e3374304c763243 integ_alg sha-256-128 integ_key 6f7847424c4a527368374239693174587a72316d6775553055534a494f466c6d
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 3ffe:5f::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 7a7334663931543574774e663242767573494d55624d5665 integ_alg sha-256-128 integ_key 4c4f4b704b44676d436371426a397553316547696a5038516d5246724c536d47
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 7a7334663931543574774e663242767573494d55624d5665 integ_alg sha-256-128 integ_key 4c4f4b704b44676d436371426a397553316547696a5038516d5246724c536d47
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 3ffe:5f::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 5867696233514374536a4d374466506a79546c615a743837434256466d707656 integ_alg sha-256-128 integ_key 346173386c31313879314b71436d6e6369477a31673545594f674f314647724d
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 5867696233514374536a4d374466506a79546c615a743837434256466d707656 integ_alg sha-256-128 integ_key 346173386c31313879314b71436d6e6369477a31673545594f674f314647724d
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 3ffe:5f::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 4832687a43426a326a57574b6646724c integ_alg sha-384-192 integ_key 496a714f594b4a72766e626732493677535a724a726a326e6d52354d63754e67496f4244674372396e4a394b79686d4d
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4832687a43426a326a57574b6646724c integ_alg sha-384-192 integ_key 496a714f594b4a72766e626732493677535a724a726a326e6d52354d63754e67496f4244674372396e4a394b79686d4d
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 3ffe:5f::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 45487044567951446d5136366546454c70684239756f6d35 integ_alg sha-384-192 integ_key 36446b683249414a763063534573567142707a477078563567687a663074345a67586b64694d50376f577a584d635a71
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 45487044567951446d5136366546454c70684239756f6d35 integ_alg sha-384-192 integ_key 36446b683249414a763063534573567142707a477078563567687a663074345a67586b64694d50376f577a584d635a71
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 3ffe:5f::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 554a63684948354e4b467a325939614f546c575341675178577558627a474830 integ_alg sha-384-192 integ_key 567661626d754e726f344c564c684564314c7074444a355766327050325563674449784677654c344958595a4b7a4f6e
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 554a63684948354e4b467a325939614f546c575341675178577558627a474830 integ_alg sha-384-192 integ_key 567661626d754e726f344c564c684564314c7074444a355766327050325563674449784677654c344958595a4b7a4f6e
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 3ffe:5f::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 316e3057637a6e7a6247586b4c356777 integ_alg sha-512-256 integ_key 3165467331314850757547506f733372434f43536b4d534d55736f383966326f577951524f6169307037474c744858624650385757324445654f41556d684b67
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 316e3057637a6e7a6247586b4c356777 integ_alg sha-512-256 integ_key 3165467331314850757547506f733372434f43536b4d534d55736f383966326f577951524f6169307037474c744858624650385757324445654f41556d684b67
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 3ffe:5f::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 7875594e6d6a6a6936757559416a38623452787150776e54 integ_alg sha-512-256 integ_key 347561654468533756424c5868414d33497276654d5144566372637a7a47564b663875784d44745746494243576a6f35763134447136614e6e47504f73426765
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 7875594e6d6a6a6936757559416a38623452787150776e54 integ_alg sha-512-256 integ_key 347561654468533756424c5868414d33497276654d5144566372637a7a47564b663875784d44745746494243576a6f35763134447136614e6e47504f73426765
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 3ffe:5f::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 79566459326b4c766f6f453043574b4a634c7350713230737636663867375835 integ_alg sha-512-256 integ_key 72494a6b5045705563487a387057464b4d3145453578736f375061486d6638763336794e4b72616e42363034486a706341754a624e4677464e6c6d69614a3539
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 79566459326b4c766f6f453043574b4a634c7350713230737636663867375835 integ_alg sha-512-256 integ_key 72494a6b5045705563487a387057464b4d3145453578736f375061486d6638763336794e4b72616e42363034486a706341754a624e4677464e6c6d69614a3539
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 3ffe:5f::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 7973525679694d66745254307651786f integ_alg sha1-96 integ_key 76637265525461637678644f706c556b5266426f
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 7973525679694d66745254307651786f integ_alg sha1-96 integ_key 76637265525461637678644f706c556b5266426f
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 3ffe:5f::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 55684d6b36435a374235663672307530 integ_alg sha1-96 integ_key 4b445068384b30676c6e3653564a494764327361
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 55684d6b36435a374235663672307530 integ_alg sha1-96 integ_key 4b445068384b30676c6e3653564a494764327361
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 3ffe:5f::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 5248664e724656505a6e454e51436d55 integ_alg sha1-96 integ_key 4b6f49393151317877593665653459763563344d
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 5248664e724656505a6e454e51436d55 integ_alg sha1-96 integ_key 4b6f49393151317877593665653459763563344d
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 3ffe:5f::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 68527a654c586547487442744a6c4853 integ_alg sha1-96 integ_key 6274466836366d5a44476b4e6878777a4c427258
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 68527a654c586547487442744a6c4853 integ_alg sha1-96 integ_key 6274466836366d5a44476b4e6878777a4c427258
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 3ffe:5f::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 3ffe:5f::1
ipsec_sa_set_key sa_id 10 crypto_key 6932613439547163423768504f425168 integ_key 54567650544d7750347537646e74547264417842
ipsec_sa_set_key sa_id 20 crypto_key 6932613439547163423768504f425168 integ_key 54567650544d7750347537646e74547264417842
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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 413038724d7347493564464d506f4b67 integ_alg sha1-96 integ_key 6a796a424c6c66506f68324b506538364d484a41
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 413038724d7347493564464d506f4b67 integ_alg sha1-96 integ_key 6a796a424c6c66506f68324b506538364d484a41
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 3ffe:5f::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 3ffe:5f::1
ipsec_sa_set_key sa_id 10 crypto_key 5233676e346b6c7a35665830504c4b7a integ_key 54436d634a454169497a4b3351624649444a5356
ipsec_sa_set_key sa_id 20 crypto_key 5233676e346b6c7a35665830504c4b7a integ_key 54436d634a454169497a4b3351624649444a5356
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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 77484833753671464567473051426b74 integ_alg sha1-96 integ_key 6c55566a4b456b7a584b47777a375530556a5649
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 77484833753671464567473051426b74 integ_alg sha1-96 integ_key 6c55566a4b456b7a584b47777a375530556a5649
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 3ffe:5f::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 3ffe:5f::1
ipsec_sa_set_key sa_id 10 crypto_key 6a7a42676c616638724b44374948714b integ_key 587062485232463366593974586d486e74317763
ipsec_sa_set_key sa_id 20 crypto_key 6a7a42676c616638724b44374948714b integ_key 587062485232463366593974586d486e74317763
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:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 337236794d5178685844487948615841 integ_alg sha1-96 integ_key 784f436e304f6b634a653644656e376548716570
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 337236794d5178685844487948615841 integ_alg sha1-96 integ_key 784f436e304f6b634a653644656e376548716570
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 3ffe:5f::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 3ffe:5f::2 laddr_stop 3ffe:5f::2 raddr_start 3ffe:5f::1 raddr_stop 3ffe:5f::1
ipsec_sa_set_key sa_id 10 crypto_key 6c4779485877636c7736626751445a30 integ_key 3931484736765856557a564a6c79675273746662
ipsec_sa_set_key sa_id 20 crypto_key 6c4779485877636c7736626751445a30 integ_key 3931484736765856557a564a6c79675273746662
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 (VAT) 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:4b:11:dd
ip_neighbor_add_del sw_if_index 1 dst 6.0.1.2 mac fa:16:3e:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 566736527152664957554c345061326e integ_alg sha1-96 integ_key 55564543614e663061346b66345051386776375a
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 566736527152664957554c345061326e integ_alg sha1-96 integ_key 55564543614e663061346b66345051386776375a
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 2001:cdba:3::1 laddr_stop 2001:cdba:3::1 raddr_start 2001:cdba:3::2 raddr_stop 2001:cdba:3::2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 2001:cdba:3::1 laddr_stop 2001:cdba:3::1 raddr_start 2001:cdba:3::2 raddr_stop 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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:eb:a1:f3
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1000 crypto_alg aes-cbc-128 crypto_key 566736527152664957554c345061326e integ_alg sha1-96 integ_key 55564543614e663061346b66345051386776375a
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 566736527152664957554c345061326e integ_alg sha1-96 integ_key 55564543614e663061346b66345051386776375a
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 2001:cdba:3::2 laddr_stop 2001:cdba:3::2 raddr_start 2001:cdba:3::1 raddr_stop 2001:cdba:3::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 2001:cdba:3::2 laddr_stop 2001:cdba:3::2 raddr_start 2001:cdba:3::1 raddr_stop 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:4b:11:dd
ip_neighbor_add_del sw_if_index 1 dst 6.0.1.2 mac fa:16:3e:89:0a:f8
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 53764f77456f42485a785876554b4a4f integ_alg sha1-96 integ_key 7548614276556c30656758675745306151624e30
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 53764f77456f42485a785876554b4a4f integ_alg sha1-96 integ_key 7548614276556c30656758675745306151624e30
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 2001:cdba:3::1 laddr_stop 2001:cdba:3::1 raddr_start 2001:cdba:3::2 raddr_stop 2001:cdba:3::2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 2001:cdba:3::1 laddr_stop 2001:cdba:3::1 raddr_start 2001:cdba:3::2 raddr_stop 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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:eb:a1:f3
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1000 crypto_alg aes-cbc-128 crypto_key 53764f77456f42485a785876554b4a4f integ_alg sha1-96 integ_key 7548614276556c30656758675745306151624e30
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 53764f77456f42485a785876554b4a4f integ_alg sha1-96 integ_key 7548614276556c30656758675745306151624e30
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 2001:cdba:3::2 laddr_stop 2001:cdba:3::2 raddr_start 2001:cdba:3::1 raddr_stop 2001:cdba:3::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 2001:cdba:3::2 laddr_stop 2001:cdba:3::2 raddr_start 2001:cdba:3::1 raddr_stop 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 (VAT) 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:4b:11:dd
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 44326833717a33336931655565644c39 integ_alg sha1-96 integ_key 324164464d6843496e5644594869646d6d675731
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 44326833717a33336931655565644c39 integ_alg sha1-96 integ_key 324164464d6843496e5644594869646d6d675731
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 2001:cdba:3::1 laddr_stop 2001:cdba:3::1 raddr_start 2001:cdba:3::2 raddr_stop 2001:cdba:3::2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 2001:cdba:3::1 laddr_stop 2001:cdba:3::1 raddr_start 2001:cdba:3::2 raddr_stop 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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:eb:a1:f3
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1000 crypto_alg aes-cbc-128 crypto_key 44326833717a33336931655565644c39 integ_alg sha1-96 integ_key 324164464d6843496e5644594869646d6d675731
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 44326833717a33336931655565644c39 integ_alg sha1-96 integ_key 324164464d6843496e5644594869646d6d675731
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 2001:cdba:3::2 laddr_stop 2001:cdba:3::2 raddr_start 2001:cdba:3::1 raddr_stop 2001:cdba:3::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 2001:cdba:3::2 laddr_stop 2001:cdba:3::2 raddr_start 2001:cdba:3::1 raddr_stop 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:4b:11:dd
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 757079386e6861337470494a67436446 integ_alg sha1-96 integ_key 5a705438484d375935534a743248693053586173
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 757079386e6861337470494a67436446 integ_alg sha1-96 integ_key 5a705438484d375935534a743248693053586173
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 2001:cdba:1::2 laddr_stop 2001:cdba:1::2 raddr_start 2001:cdba:2::2 raddr_stop 2001:cdba:2::2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 2001:cdba:1::2 laddr_stop 2001:cdba:1::2 raddr_start 2001:cdba:2::2 raddr_stop 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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:eb:a1:f3
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1000 crypto_alg aes-cbc-128 crypto_key 757079386e6861337470494a67436446 integ_alg sha1-96 integ_key 5a705438484d375935534a743248693053586173
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 757079386e6861337470494a67436446 integ_alg sha1-96 integ_key 5a705438484d375935534a743248693053586173
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 2001:cdba:2::2 laddr_stop 2001:cdba:2::2 raddr_start 2001:cdba:1::2 raddr_stop 2001:cdba:1::2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 2001:cdba:2::2 laddr_stop 2001:cdba:2::2 raddr_start 2001:cdba:1::2 raddr_stop 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 (VAT) 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 6a525349655a6752547553746b366d4a integ_alg sha1-96 integ_key 50434351356b416b67523445317a4a6c4a425959 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 6a525349655a6752547553746b366d4a integ_alg sha1-96 integ_key 50434351356b416b67523445317a4a6c4a425959 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 756c6a52777538583135514a735a4a316231664a614b6665 integ_alg sha1-96 integ_key 584358684b784732375473546e4b5964594f7055 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 756c6a52777538583135514a735a4a316231664a614b6665 integ_alg sha1-96 integ_key 584358684b784732375473546e4b5964594f7055 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 524a31303747485833383348456d57375448367a4a794b6c4356537754453542 integ_alg sha1-96 integ_key 624d753332776863594b33475257774c566d396a tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 524a31303747485833383348456d57375448367a4a794b6c4356537754453542 integ_alg sha1-96 integ_key 624d753332776863594b33475257774c566d396a 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 326b584a5a54334b32376d704943476f integ_alg sha-256-128 integ_key 306957386f37466a374836434472336669566d3064534c4a44556f4c69744157 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 326b584a5a54334b32376d704943476f integ_alg sha-256-128 integ_key 306957386f37466a374836434472336669566d3064534c4a44556f4c69744157 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 7650355a5a61767958685364564732636b355575454a6e4d integ_alg sha-256-128 integ_key 66735638366f716e506b4639584552343432666a4b6b4e4b6271616e4261424a tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 7650355a5a61767958685364564732636b355575454a6e4d integ_alg sha-256-128 integ_key 66735638366f716e506b4639584552343432666a4b6b4e4b6271616e4261424a 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 4f585a483437376c78434a763834354c71485a32327a543372316b7847766f37 integ_alg sha-256-128 integ_key 6b563530523649715739476e646a6c7965334a615669314a35446c794e6e5346 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 4f585a483437376c78434a763834354c71485a32327a543372316b7847766f37 integ_alg sha-256-128 integ_key 6b563530523649715739476e646a6c7965334a615669314a35446c794e6e5346 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 434355744953344e57496f7670716d55 integ_alg sha-384-192 integ_key 77476f77566b685a5336317366706367447374693342574a446b6e39455153766c76716b747337455553374f7a4f6445 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 434355744953344e57496f7670716d55 integ_alg sha-384-192 integ_key 77476f77566b685a5336317366706367447374693342574a446b6e39455153766c76716b747337455553374f7a4f6445 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 4470364e565763573965714e645537553651456230346636 integ_alg sha-384-192 integ_key 38454477776d384746514d3347504c49626575393830385051304e33634c7876524e677358736a787671306b43394d4e tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 4470364e565763573965714e645537553651456230346636 integ_alg sha-384-192 integ_key 38454477776d384746514d3347504c49626575393830385051304e33634c7876524e677358736a787671306b43394d4e 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 6c65416d4d58555a567a43476a4a7a7a7362726451733051336752344369314a integ_alg sha-384-192 integ_key 374f537562724863366b68345a756f77737456327741663275396e6f77574a516e48654d317547517a646673376c726a tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 6c65416d4d58555a567a43476a4a7a7a7362726451733051336752344369314a integ_alg sha-384-192 integ_key 374f537562724863366b68345a756f77737456327741663275396e6f77574a516e48654d317547517a646673376c726a 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 6872334830554c555734503863445641 integ_alg sha-512-256 integ_key 415451436b734a6242564a3678687a58794f4c76447471523350586366386b446c7254435a584467726756437670497345576244455552573864456a77567446 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 6872334830554c555734503863445641 integ_alg sha-512-256 integ_key 415451436b734a6242564a3678687a58794f4c76447471523350586366386b446c7254435a584467726756437670497345576244455552573864456a77567446 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 434a373052796b4c31553341564473794342396d50753775 integ_alg sha-512-256 integ_key 335a4872676b4a775a3553645652444b454173533764635969636477417a54563062394434354c3268324d5254687a783770624a3156457a4c586b6879653639 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 434a373052796b4c31553341564473794342396d50753775 integ_alg sha-512-256 integ_key 335a4872676b4a775a3553645652444b454173533764635969636477417a54563062394434354c3268324d5254687a783770624a3156457a4c586b6879653639 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 68437a594c4d36794f556d7333386649564d584c5a6d434d6b7a394e59634571 integ_alg sha-512-256 integ_key 527a38464849364e6d597838576d7a64387357586476547751334342364b6464574663464748394f6c6d5151576136517157634c5a4631794a49655374507a59 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 68437a594c4d36794f556d7333386649564d584c5a6d434d6b7a394e59634571 integ_alg sha-512-256 integ_key 527a38464849364e6d597838576d7a64387357586476547751334342364b6464574663464748394f6c6d5151576136517157634c5a4631794a49655374507a59 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 53734c4a624c51737071616f38376866 integ_alg sha1-96 integ_key 6a7a6c54554f6561666234354269416c6c31356a tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 53734c4a624c51737071616f38376866 integ_alg sha1-96 integ_key 6a7a6c54554f6561666234354269416c6c31356a 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 4b5339654a5256346e304f486e474a4c integ_alg sha1-96 integ_key 5265524f46347a5835326a6e50463451756e3761 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4b5339654a5256346e304f486e474a4c integ_alg sha1-96 integ_key 5265524f46347a5835326a6e50463451756e3761 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 315a4678476b4f344b7072496367444c integ_alg sha1-96 integ_key 55336a754e47346a69716f784c767644767a5246 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 315a4678476b4f344b7072496367444c integ_alg sha1-96 integ_key 55336a754e47346a69716f784c767644767a5246 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 4a4b6a62346d507a49396836554b6a6d integ_alg sha1-96 integ_key 4c68414271714e58354a6570563949666f424f77 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4a4b6a62346d507a49396836554b6a6d integ_alg sha1-96 integ_key 4c68414271714e58354a6570563949666f424f77 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_sa_set_key sa_id 10 crypto_key 444c43586f6944684b457a4f6f535451 integ_key 4f335a4a4d764546746e5844774f777167553079
ipsec_sa_set_key sa_id 20 crypto_key 444c43586f6944684b457a4f6f535451 integ_key 4f335a4a4d764546746e5844774f777167553079
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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 7737315a6452773736504b744a38626f integ_alg sha1-96 integ_key 6848377665455348773764706731376d496c4e69 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 7737315a6452773736504b744a38626f integ_alg sha1-96 integ_key 6848377665455348773764706731376d496c4e69 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_sa_set_key sa_id 10 crypto_key 474c4835507457776d76796251304765 integ_key 7173774144397545637961774853754c774a3234
ipsec_sa_set_key sa_id 20 crypto_key 474c4835507457776d76796251304765 integ_key 7173774144397545637961774853754c774a3234
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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 6437345450763976516c795a784e394a integ_alg sha1-96 integ_key 6870426159747872397a5054694530576b326933 tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 6437345450763976516c795a784e394a integ_alg sha1-96 integ_key 6870426159747872397a5054694530576b326933 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_sa_set_key sa_id 10 crypto_key 32706e78565041476279535171677478 integ_key 35614d616143697646503873333951495246396e
ipsec_sa_set_key sa_id 20 crypto_key 32706e78565041476279535171677478 integ_key 35614d616143697646503873333951495246396e
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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 51627645414f4b5759517666626e5651 integ_alg sha1-96 integ_key 6f524372626f677241334439656e72625441577a tunnel_src 192.168.100.3 tunnel_dst 192.168.100.2
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 51627645414f4b5759517666626e5651 integ_alg sha1-96 integ_key 6f524372626f677241334439656e72625441577a 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
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.4.4 laddr_stop 192.168.4.4 raddr_start 192.168.3.3 raddr_stop 192.168.3.3
ipsec_sa_set_key sa_id 10 crypto_key 7a6e6a70546e4d37624f586d31384867 integ_key 44567267375359626d664f3341434a425a785433
ipsec_sa_set_key sa_id 20 crypto_key 7a6e6a70546e4d37624f586d31384867 integ_key 44567267375359626d664f3341434a425a785433
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 (VAT) 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 314739656b7564486644616e64527557 integ_alg sha1-96 integ_key 37313768377152314d7533554170326a6c656541
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 314739656b7564486644616e64527557 integ_alg sha1-96 integ_key 37313768377152314d7533554170326a6c656541
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 366373684747365a4f3252646154456e49384e7536486674 integ_alg sha1-96 integ_key 556a73726e38756c355051765a4c6f58476d6273
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 366373684747365a4f3252646154456e49384e7536486674 integ_alg sha1-96 integ_key 556a73726e38756c355051765a4c6f58476d6273
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 3076326c6c6c4b746659564c6968796c737834505358666962674d6e53345338 integ_alg sha1-96 integ_key 4a69526a44426135725832484c336d696a466a77
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 3076326c6c6c4b746659564c6968796c737834505358666962674d6e53345338 integ_alg sha1-96 integ_key 4a69526a44426135725832484c336d696a466a77
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 54796d426b396a7949464d5553444e55 integ_alg sha-256-128 integ_key 4f5471616646676a58663050526668494c6d6d33646c776f57574a737458564a
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 54796d426b396a7949464d5553444e55 integ_alg sha-256-128 integ_key 4f5471616646676a58663050526668494c6d6d33646c776f57574a737458564a
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 50556f66566c7743764a716171766c546b58455472675570 integ_alg sha-256-128 integ_key 614550307472765942655078784c7949636a506d6a3537424c79736777317145
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 50556f66566c7743764a716171766c546b58455472675570 integ_alg sha-256-128 integ_key 614550307472765942655078784c7949636a506d6a3537424c79736777317145
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 685054476238473872477474527755776f6350684a6e724153483348366a474f integ_alg sha-256-128 integ_key 5842583677385a344a624a61306f385734396535534f41586b525474356f3138
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 685054476238473872477474527755776f6350684a6e724153483348366a474f integ_alg sha-256-128 integ_key 5842583677385a344a624a61306f385734396535534f41586b525474356f3138
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 6c6f536a4c6b4269794e516458795834 integ_alg sha-384-192 integ_key 564e3054696a4742424a4c6f355a67793644566e6a547a4175754d4d59376c45646534584268514c45525364717a4141
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 6c6f536a4c6b4269794e516458795834 integ_alg sha-384-192 integ_key 564e3054696a4742424a4c6f355a67793644566e6a547a4175754d4d59376c45646534584268514c45525364717a4141
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 70326654346a75416d38546d5148693830456b4867436d6a integ_alg sha-384-192 integ_key 6e6d6c76466b6746677236355556474a6f35526c46356b716c36435a56664a4c6a3075636f396c41364e674770714258
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 70326654346a75416d38546d5148693830456b4867436d6a integ_alg sha-384-192 integ_key 6e6d6c76466b6746677236355556474a6f35526c46356b716c36435a56664a4c6a3075636f396c41364e674770714258
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 4a3078434832704e476a5847746f6e4a6866506f4f4368726c394a4a6c35434f integ_alg sha-384-192 integ_key 4d396c5838304a797137744c53466b694e71394e76484d61306b72765773736333317650644136445434334a34356648
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 4a3078434832704e476a5847746f6e4a6866506f4f4368726c394a4a6c35434f integ_alg sha-384-192 integ_key 4d396c5838304a797137744c53466b694e71394e76484d61306b72765773736333317650644136445434334a34356648
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 647a6b4c69325a656177653757677532 integ_alg sha-512-256 integ_key 5675396972434c4f374b536c46355867734f794b43744a7241307134626d523543457658476969614c586345326e3353354e6c59547a72554370585038535776
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 647a6b4c69325a656177653757677532 integ_alg sha-512-256 integ_key 5675396972434c4f374b536c46355867734f794b43744a7241307134626d523543457658476969614c586345326e3353354e6c59547a72554370585038535776
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-192 crypto_key 385255476779554b414235373577526b653858786b46716c integ_alg sha-512-256 integ_key 6c39556d76636c4c6e6a574648714e4e774b4d6f6379346f364e5439746c50683151654f64504a4a766f65735a763458774e48616d42446d4c4f7a7137704c62
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 385255476779554b414235373577526b653858786b46716c integ_alg sha-512-256 integ_key 6c39556d76636c4c6e6a574648714e4e774b4d6f6379346f364e5439746c50683151654f64504a4a766f65735a763458774e48616d42446d4c4f7a7137704c62
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-256 crypto_key 787258365563527075494447576251347458686f5353536b6f78686f6d724633 integ_alg sha-512-256 integ_key 4e4c4d347a6e5546726f47496f6e6a647a725777546e4d63425375593359644a50384b436b42366a63554b543475524372584e343351546673384c3879574276
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 787258365563527075494447576251347458686f5353536b6f78686f6d724633 integ_alg sha-512-256 integ_key 4e4c4d347a6e5546726f47496f6e6a647a725777546e4d63425375593359644a50384b436b42366a63554b543475524372584e343351546673384c3879574276
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 6d4f31714d584853426f33483261554b integ_alg sha1-96 integ_key 395a4a6e4a7075504a676f71646f445147346e7a
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 6d4f31714d584853426f33483261554b integ_alg sha1-96 integ_key 395a4a6e4a7075504a676f71646f445147346e7a
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 727a5a726e3470586456356f7961686b integ_alg sha1-96 integ_key 54306837636a54706250454e49346d52584d3830
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 727a5a726e3470586456356f7961686b integ_alg sha1-96 integ_key 54306837636a54706250454e49346d52584d3830
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 666765645730476753375a6c71655a42 integ_alg sha1-96 integ_key 4936534f735646316e316b744e776e596637686c
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 666765645730476753375a6c71655a42 integ_alg sha1-96 integ_key 4936534f735646316e316b744e776e596637686c
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 6570577079355839354d596f6c657872 integ_alg sha1-96 integ_key 69526463714458744e4a43714555543662666269
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 6570577079355839354d596f6c657872 integ_alg sha1-96 integ_key 69526463714458744e4a43714555543662666269
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_sa_set_key sa_id 10 crypto_key 64784f33525a6e34524446467a6e6d30 integ_key 44416d666d693851396768643363763558744347
ipsec_sa_set_key sa_id 20 crypto_key 64784f33525a6e34524446467a6e6d30 integ_key 44416d666d693851396768643363763558744347
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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 49624a6a51677651764b3977484c3463 integ_alg sha1-96 integ_key 6e597069314a6d437147353574587a376e5a4358
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 49624a6a51677651764b3977484c3463 integ_alg sha1-96 integ_key 6e597069314a6d437147353574587a376e5a4358
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_sa_set_key sa_id 10 crypto_key 6148636765314f365579653668523677 integ_key 786c697630366375746132653869514764735266
ipsec_sa_set_key sa_id 20 crypto_key 6148636765314f365579653668523677 integ_key 786c697630366375746132653869514764735266
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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 377551657745736b7878396d6f683355 integ_alg sha1-96 integ_key 7276776a76376a6878753130774c6b796252707a
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 377551657745736b7878396d6f683355 integ_alg sha1-96 integ_key 7276776a76376a6878753130774c6b796252707a
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_sa_set_key sa_id 10 crypto_key 39327654724f6d715243523178305756 integ_key 4678785847343555496b4368367a55547451344e
ipsec_sa_set_key sa_id 20 crypto_key 39327654724f6d715243523178305756 integ_key 4678785847343555496b4368367a55547451344e
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:89:0a:f8
ip_add_del_route 192.168.3.3/24 via 192.168.100.2 sw_if_index 1 resolve-attempts 10 count 1
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 393377586b6f567565316c3577524954 integ_alg sha1-96 integ_key 4c5577623570586a794b56536d55694152504948
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 393377586b6f567565316c3577524954 integ_alg sha1-96 integ_key 4c5577623570586a794b56536d55694152504948
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 1 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 192.168.100.3 laddr_stop 192.168.100.3 raddr_start 192.168.100.2 raddr_stop 192.168.100.2
ipsec_sa_set_key sa_id 10 crypto_key 573265625249375946527877326f4950 integ_key 6949696d454848313650425a5138766f63336b61
ipsec_sa_set_key sa_id 20 crypto_key 573265625249375946527877326f4950 integ_key 6949696d454848313650425a5138766f63336b61
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 (VAT) 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_connect tapname tap_int1
exec show hardware detail
exec show hardware detail
tap_connect tapname tap_int2
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
tap_modify sw_if_index 5 tapname tap_int1MOD
sw_interface_tap_dump
tap_delete sw_if_index 5
sw_interface_tap_dump
sw_interface_tap_dump
tap_delete sw_if_index 6
sw_interface_tap_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 (VAT) 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_connect tapname tap_int1
exec show hardware detail
exec show hardware detail
tap_connect tapname tap_int2
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
bridge_domain_add_del bd_id 20 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 20 shg 0 enable
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 20 shg 0 enable
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 6 bd_id 19 shg 0 enable
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 19 shg 0 enable
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 (VAT) 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_connect tapname tap_int1
exec show hardware detail
exec show hardware detail
tap_connect tapname tap_int2
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 21 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 21 shg 2 enable
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 6 bd_id 21 shg 3 enable
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_connect tapname tap_int1
exec show hardware detail
exec show hardware detail
tap_connect tapname tap_int2
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 21 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 21 shg 2 enable
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 6 bd_id 21 shg 2 enable
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 (VAT) 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_connect tapname tap_int1
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:62:16:8a
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_connect tapname tap_int1
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:62:16:8a
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 (VAT) 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:62:16:8a
ip_neighbor_add_del sw_if_index 5 dst 192.168.100.2 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 6 dst 192.168.200.2 mac fa:16:3e:89:0a:f8
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:62:16:8a
ip_neighbor_add_del sw_if_index 5 dst 192.168.100.2 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 6 dst 192.168.200.2 mac fa:16:3e:89:0a:f8
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:62:16:8a
ip_neighbor_add_del sw_if_index 5 dst 192.168.100.2 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 6 dst 192.168.200.2 mac fa:16:3e:89:0a:f8
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 (VAT) 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 192.168.2.2 mac fa:16:3e:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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 (VAT) 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 192.168.2.2 mac fa:16:3e:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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 (VAT) Commands History - Commands Used Per Test Case
tc01: dut replies to icmpv4 echo req to its ingress interface
 DUT1:  
exec show trace

DUT2:
exec show trace
tc02: dut routes ipv4 to its egress interface
 DUT1:  
exec show trace

DUT2:
exec show trace
tc03: dut1 routes ipv4 to dut2 ingress interface
 DUT1:  
exec show trace

DUT2:
exec show trace
tc04: dut1 routes ipv4 to dut2 egress interface
 DUT1:  
exec show trace

DUT2:
exec show trace
tc05: dut1 and dut2 route ipv4 between tg interfaces
 DUT1:  
exec show trace

DUT2:
exec show trace
tc06: dut replies to icmpv4 echo reqs with size 64b-to-1500b-incr-1b
 DUT1:  
exec show trace

DUT2:
exec show trace
tc08: dut replies to arp request
 DUT1:  
exec show trace

DUT2:
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 (VAT) 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:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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 (VAT) 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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 1 tx_sw_if_index 3
exec show trace

eth2p-ethip4-ip4base-ip4dhcpclient-func

DHCPv4 Client related test cases

Name VPP API Test (VAT) 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:62:16:8a
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 (VAT) 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:89:0a:f8
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:89:0a:f8
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 (VAT) 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 (VAT) 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 (VAT) 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:89:0a:f8
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:89:0a:f8
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:89:0a:f8
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:89:0a:f8
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 (VAT) 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:2f:23:cd
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:89:0a:f8
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:2f:23:cd
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:89:0a:f8
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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 (VAT) 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:62:16:8a
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:c0:2e:0c
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:4b:11:dd
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:23:27:d4
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:9a:df:a0
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:eb:a1:f3
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:62:16:8a
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:c0:2e:0c
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:4b:11:dd
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:23:27:d4
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:9a:df:a0
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:eb:a1:f3
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:62:16:8a
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:c0:2e:0c
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:4b:11:dd
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:23:27:d4
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:9a:df:a0
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:eb:a1:f3
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:62:16:8a
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:c0:2e:0c
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:4b:11:dd
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:23:27:d4
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:9a:df:a0
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:eb:a1:f3
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:62:16:8a
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:c0:2e:0c
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:4b:11:dd
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:23:27:d4
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:9a:df:a0
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:eb:a1:f3
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:62:16:8a
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:c0:2e:0c
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:4b:11:dd
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:23:27:d4
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:9a:df:a0
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:eb:a1:f3
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:62:16:8a
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:c0:2e:0c
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:4b:11:dd
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:23:27:d4
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:9a:df:a0
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:eb:a1:f3
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:62:16:8a
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:c0:2e:0c
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:4b:11:dd
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:23:27:d4
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:9a:df:a0
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:eb:a1:f3
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:62:16:8a
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:c0:2e:0c
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:4b:11:dd
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:23:27:d4
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:9a:df:a0
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:eb:a1:f3
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:62:16:8a
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:c0:2e:0c
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:4b:11:dd
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:23:27:d4
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:9a:df:a0
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:eb:a1:f3
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 (VAT) 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:2f:23:cd
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:89:0a:f8
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:62:16:8a
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:89:0a:f8
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:89:0a:f8
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:62:16:8a
ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:89:0a:f8
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 (VAT) 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 (VAT) 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:89:0a:f8
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:2f:23:cd
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 (VAT) 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 10.0.3.2 mac fa:16:3e:4b:11:dd
bridge_domain_add_del bd_id 10 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 10.0.3.1 mac fa:16:3e:eb:a1:f3
bridge_domain_add_del bd_id 10 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
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 (VAT) 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.2 mac fa:16:3e:4b:11:dd
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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.1 mac fa:16:3e:eb:a1:f3
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 (VAT) 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.2 mac fa:16:3e:4b:11:dd
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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.1 mac fa:16:3e:eb:a1:f3
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 (VAT) 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.2 mac fa:16:3e:4b:11:dd
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:4b:11:dd
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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.1 mac fa:16:3e:eb:a1:f3
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:eb:a1:f3
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 (VAT) 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.2 mac fa:16:3e:4b:11:dd
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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.1 mac fa:16:3e:eb:a1:f3
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 (VAT) 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:4b:11:dd
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 1 bd_id 23 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 6 bd_id 23 shg 0 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
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:eb:a1:f3
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 1 bd_id 23 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 6 bd_id 23 shg 0 enable
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 (VAT) 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:4b:11:dd
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 5 bd_id 10 shg 0 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
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:eb:a1:f3
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 5 bd_id 10 shg 0 enable
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 (VAT) 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:4b:11:dd
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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:eb:a1:f3
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 (VAT) 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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 10 shg 0 enable
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 10 shg 1 enable
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 6 bd_id 10 shg 1 enable
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 20 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 20 shg 0 enable
bridge_domain_add_del bd_id 30 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 30 shg 0 enable
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 6 bd_id 30 shg 0 enable
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 10 shg 0 enable
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 10 shg 1 enable
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 6 bd_id 10 shg 2 enable
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 20 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 20 shg 0 enable
bridge_domain_add_del bd_id 30 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 30 shg 0 enable
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 6 bd_id 30 shg 0 enable
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 (VAT) 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 3ffe:63::2 mac fa:16:3e:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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 (VAT) 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 3ffe:63::2 mac fa:16:3e:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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 (VAT) Commands History - Commands Used Per Test Case
tc01: dut replies to icmpv6 echo req to its ingress interface
 DUT1:  
exec show trace

DUT2:
exec show trace
tc02: dut replies to icmpv6 echo req pkt with size 64b-to-1500b-incr-1b
 DUT1:  
exec show trace

DUT2:
exec show trace
tc04: dut routes to its egress interface
 DUT1:  
exec show trace

DUT2:
exec show trace
tc05: dut1 routes to dut2 ingress interface
 DUT1:  
exec show trace

DUT2:
exec show trace
tc06: dut1 routes to dut2 egress interface
 DUT1:  
exec show trace

DUT2:
exec show trace
tc07: dut1 and dut2 route between tg interfaces
 DUT1:  
exec show trace

DUT2:
exec show trace
tc08: dut replies to ipv6 neighbor solicitation
 DUT1:  
exec show trace

DUT2:
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 (VAT) 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:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:89:0a:f8
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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 (VAT) 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:89:0a:f8
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 (VAT) 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 (VAT) 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 (VAT) 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:89:0a:f8
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:89:0a:f8
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:89:0a:f8
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:89:0a:f8
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 (VAT) 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:62:16:8a
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:c0:2e:0c
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:4b:11:dd
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:23:27:d4
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:9a:df:a0
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:eb:a1:f3
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:62:16:8a
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:c0:2e:0c
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:4b:11:dd
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:23:27:d4
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:9a:df:a0
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:eb:a1:f3
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:62:16:8a
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:c0:2e:0c
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:4b:11:dd
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:23:27:d4
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:9a:df:a0
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:eb:a1:f3
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:62:16:8a
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:c0:2e:0c
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:4b:11:dd
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:23:27:d4
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:9a:df:a0
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:eb:a1:f3
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:62:16:8a
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:c0:2e:0c
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:4b:11:dd
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:23:27:d4
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:9a:df:a0
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:eb:a1:f3
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:62:16:8a
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:c0:2e:0c
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:4b:11:dd
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:23:27:d4
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:9a:df:a0
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:eb:a1:f3
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:62:16:8a
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:c0:2e:0c
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:4b:11:dd
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:23:27:d4
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:9a:df:a0
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:eb:a1:f3
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:62:16:8a
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:c0:2e:0c
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:4b:11:dd
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:23:27:d4
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:9a:df:a0
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:eb:a1:f3
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:62:16:8a
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:c0:2e:0c
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:4b:11:dd
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:23:27:d4
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:9a:df:a0
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:eb:a1:f3
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:62:16:8a
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:c0:2e:0c
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:4b:11:dd
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:23:27:d4
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:9a:df:a0
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:eb:a1:f3
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 (VAT) 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:4b:11:dd
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:eb:a1:f3
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
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 (VAT) 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:89:0a:f8
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:4b:11:dd
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:2f:23:cd
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:eb:a1:f3
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 (VAT) 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:4b:11:dd
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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:eb:a1:f3
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 (VAT) 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:4b:11:dd
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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:eb:a1:f3
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 (VAT) 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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 5 bd_id 10 shg 0 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
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 5 bd_id 10 shg 0 enable
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 (VAT) 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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 10 shg 0 enable
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 10 shg 1 enable
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 6 bd_id 10 shg 1 enable
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 20 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 20 shg 0 enable
bridge_domain_add_del bd_id 30 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 30 shg 0 enable
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 6 bd_id 30 shg 0 enable
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 10 shg 0 enable
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 10 shg 1 enable
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 6 bd_id 10 shg 2 enable
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 20 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 20 shg 0 enable
bridge_domain_add_del bd_id 30 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 30 shg 0 enable
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 6 bd_id 30 shg 0 enable
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 (VAT) 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 sw_if_index 5 translate-2-1 tag1 120
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-1
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 sw_if_index 5 translate-2-1 tag1 150
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-1
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 sw_if_index 5 translate-2-1 tag1 120
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-1
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 sw_if_index 5 translate-2-1 tag1 150
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-1
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 (VAT) 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 sw_if_index 5 translate-2-2 push_dot1q 0 tag1 120 tag2 220
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-2
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 sw_if_index 5 translate-2-2 push_dot1q 0 tag1 120 tag2 250
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-2
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 sw_if_index 5 translate-2-2 push_dot1q 0 tag1 150 tag2 220
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-2
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 sw_if_index 5 translate-2-2 push_dot1q 0 tag1 150 tag2 250
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-2
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 sw_if_index 5 translate-2-2 push_dot1q 0 tag1 120 tag2 220
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-2
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 sw_if_index 5 translate-2-2 push_dot1q 0 tag1 120 tag2 250
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-2
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 sw_if_index 5 translate-2-2 push_dot1q 0 tag1 150 tag2 220
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-2
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 sw_if_index 5 translate-2-2 push_dot1q 0 tag1 150 tag2 250
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-2
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 (VAT) 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 sw_if_index 5 translate-1-2 push_dot1q 0 tag1 120 tag2 210
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-2
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 sw_if_index 5 translate-1-2 push_dot1q 0 tag1 120 tag2 250
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-2
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 sw_if_index 5 translate-1-2 push_dot1q 0 tag1 150 tag2 210
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-2
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 sw_if_index 5 translate-1-2 push_dot1q 0 tag1 150 tag2 250
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-2
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 sw_if_index 5 translate-1-2 push_dot1q 0 tag1 120 tag2 220
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-2
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 sw_if_index 5 translate-1-2 push_dot1q 0 tag1 120 tag2 250
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-2
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 sw_if_index 5 translate-1-2 push_dot1q 0 tag1 150 tag2 220
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-2
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 sw_if_index 5 translate-1-2 push_dot1q 0 tag1 150 tag2 250
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-2
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 (VAT) 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 sw_if_index 5 translate-1-1 tag1 120
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-1
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 sw_if_index 5 translate-1-1 tag1 150
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-1
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 sw_if_index 5 translate-1-1 tag1 120
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-1
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 sw_if_index 5 translate-1-1 tag1 150
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 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
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 sw_if_index 5 pop-1
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
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 (VAT) 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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 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
bridge_domain_add_del bd_id 2 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 2 shg 0 enable
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 2 shg 0 enable
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 (VAT) 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 flood 1 uu-flood 1 forward 1 learn 0 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
l2fib_add_del mac fa:16:3e:89:0a:f8 bd_id 1 sw_if_index 1
l2fib_add_del mac fa:16:3e:2f:23:cd bd_id 1 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
bridge_domain_add_del bd_id 2 flood 1 uu-flood 1 forward 1 learn 0 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 2 shg 0 enable
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 2 shg 0 enable
l2fib_add_del mac fa:16:3e:89:0a:f8 bd_id 2 sw_if_index 3
l2fib_add_del mac fa:16:3e:2f:23:cd bd_id 2 sw_if_index 1
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 (VAT) 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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 1 shg 3 enable
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 3 enable
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 2 shg 4 enable
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 2 shg 4 enable
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 2 shg 0 enable
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 (VAT) 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 sw_if_index 5 translate-2-1 tag1 120
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-1
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 translate-2-1 tag1 150
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-1
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 translate-2-1 tag1 120
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-1
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 translate-2-1 tag1 150
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-1
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 (VAT) 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 sw_if_index 5 pop-2
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-2
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 (VAT) 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 sw_if_index 5 translate-2-2 push_dot1q 0 tag1 120 tag2 220
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-2
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 translate-2-2 push_dot1q 0 tag1 120 tag2 250
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-2
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 translate-2-2 push_dot1q 0 tag1 150 tag2 220
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-2
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 translate-2-2 push_dot1q 0 tag1 150 tag2 250
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-2
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 translate-2-2 push_dot1q 0 tag1 120 tag2 220
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-2
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 translate-2-2 push_dot1q 0 tag1 120 tag2 250
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-2
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 translate-2-2 push_dot1q 0 tag1 150 tag2 220
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-2
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 translate-2-2 push_dot1q 0 tag1 150 tag2 250
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-2
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 (VAT) 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 sw_if_index 5 translate-1-2 push_dot1q 0 tag1 120 tag2 210
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-2
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 translate-1-2 push_dot1q 0 tag1 120 tag2 250
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-2
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 translate-1-2 push_dot1q 0 tag1 150 tag2 210
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-2
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 translate-1-2 push_dot1q 0 tag1 150 tag2 250
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-2
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 translate-1-2 push_dot1q 0 tag1 120 tag2 220
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-2
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 translate-1-2 push_dot1q 0 tag1 120 tag2 250
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-2
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 translate-1-2 push_dot1q 0 tag1 150 tag2 220
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-2
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 translate-1-2 push_dot1q 0 tag1 150 tag2 250
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-2
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 (VAT) 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 sw_if_index 5 translate-1-1 tag1 120
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-1
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 translate-1-1 tag1 150
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-1
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 translate-1-1 tag1 120
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-1
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 translate-1-1 tag1 150
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 sw_if_index 5 pop-1
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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 (VAT) 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 tx_sw_if_index 3
sw_interface_set_l2_xconnect rx_sw_if_index 3 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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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 tx_sw_if_index 3
sw_interface_set_l2_xconnect rx_sw_if_index 3 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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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 (VAT) 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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:89:0a:f8
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:2f:23:cd
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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:89:0a:f8
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:89:0a:f8
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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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 tx_sw_if_index 1
sw_interface_set_l2_xconnect rx_sw_if_index 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 (VAT) 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:89:0a:f8
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:89:0a:f8
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:89:0a:f8
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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 192.168.2.1 mac fa:16:3e:4b:11:dd
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:89:0a:f8
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 (VAT) 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:89:0a:f8
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:89:0a:f8
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 (VAT) 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:62:16:8a
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 (VAT) 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:89:0a:f8
ip_neighbor_add_del sw_if_index 1 dst 12::10 mac fa:16:3e:89:0a:f8
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:89:0a:f8
ip_neighbor_add_del sw_if_index 1 dst 12::10 mac fa:16:3e:89:0a:f8
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:89:0a:f8
ip_neighbor_add_del sw_if_index 1 dst 12::10 mac fa:16:3e:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 11::10 mac fa:16:3e:4b:11:dd
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:89:0a:f8
ip_neighbor_add_del sw_if_index 1 dst 12::10 mac fa:16:3e:89:0a:f8
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 (VAT) 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:89:0a:f8
ip_neighbor_add_del sw_if_index 1 dst 12::10 mac fa:16:3e:89:0a:f8
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:89:0a:f8
ip_neighbor_add_del sw_if_index 1 dst 12::10 mac fa:16:3e:89:0a:f8
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 (VAT) 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:62:16:8a
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 (VAT) 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:27:c9:d1:e5
ip_neighbor_add_del sw_if_index 1 dst 10.0.3.2 mac fa:16:3e:89:0a:f8
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 (VAT) 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:4b:11:dd
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 10 shg 0 enable
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 73675543766c585171566f6b566b534d integ_alg sha1-96 integ_key 56794d7a6c4e4552756256637564334f4c4d6433
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 73675543766c585171566f6b566b534d integ_alg sha1-96 integ_key 56794d7a6c4e4552756256637564334f4c4d6433
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 6.6.3.1 laddr_stop 6.6.3.1 raddr_start 6.6.3.2 raddr_stop 6.6.3.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 6.6.3.1 laddr_stop 6.6.3.1 raddr_start 6.6.3.2 raddr_stop 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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:eb:a1:f3
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1000 crypto_alg aes-cbc-128 crypto_key 73675543766c585171566f6b566b534d integ_alg sha1-96 integ_key 56794d7a6c4e4552756256637564334f4c4d6433
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 73675543766c585171566f6b566b534d integ_alg sha1-96 integ_key 56794d7a6c4e4552756256637564334f4c4d6433
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 6.6.3.2 laddr_stop 6.6.3.2 raddr_start 6.6.3.1 raddr_stop 6.6.3.1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 6.6.3.2 laddr_stop 6.6.3.2 raddr_start 6.6.3.1 raddr_stop 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:4b:11:dd
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 10 shg 0 enable
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 347a4c387670365a654d4b4170585778 integ_alg sha1-96 integ_key 4a33416566325132314d464d5a794a5464423843
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 347a4c387670365a654d4b4170585778 integ_alg sha1-96 integ_key 4a33416566325132314d464d5a794a5464423843
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 7 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 6.6.3.1 laddr_stop 6.6.3.1 raddr_start 6.6.3.2 raddr_stop 6.6.3.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 6.6.3.1 laddr_stop 6.6.3.1 raddr_start 6.6.3.2 raddr_stop 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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:eb:a1:f3
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1000 crypto_alg aes-cbc-128 crypto_key 347a4c387670365a654d4b4170585778 integ_alg sha1-96 integ_key 4a33416566325132314d464d5a794a5464423843
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 347a4c387670365a654d4b4170585778 integ_alg sha1-96 integ_key 4a33416566325132314d464d5a794a5464423843
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 6.6.3.2 laddr_stop 6.6.3.2 raddr_start 6.6.3.1 raddr_stop 6.6.3.1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 6.6.3.2 laddr_stop 6.6.3.2 raddr_start 6.6.3.1 raddr_stop 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 (VAT) 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:4b:11:dd
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:89:0a:f8
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 7 bd_id 10 shg 0 enable
sw_interface_dump
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 49687978397a4761595a417468344552 integ_alg sha1-96 integ_key 724e4430714866694361616e50766c3973683761
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 49687978397a4761595a417468344552 integ_alg sha1-96 integ_key 724e4430714866694361616e50766c3973683761
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 6.6.3.1 laddr_stop 6.6.3.1 raddr_start 6.6.3.2 raddr_stop 6.6.3.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 6.6.3.1 laddr_stop 6.6.3.1 raddr_start 6.6.3.2 raddr_stop 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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:eb:a1:f3
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1000 crypto_alg aes-cbc-128 crypto_key 49687978397a4761595a417468344552 integ_alg sha1-96 integ_key 724e4430714866694361616e50766c3973683761
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 49687978397a4761595a417468344552 integ_alg sha1-96 integ_key 724e4430714866694361616e50766c3973683761
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 6.6.3.2 laddr_stop 6.6.3.2 raddr_start 6.6.3.1 raddr_stop 6.6.3.1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 6.6.3.2 laddr_stop 6.6.3.2 raddr_start 6.6.3.1 raddr_stop 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:4b:11:dd
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:89:0a:f8
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 7 bd_id 10 shg 0 enable
sw_interface_dump
sw_interface_dump
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 4f6f38644f6b6e50334d75435866526b integ_alg sha1-96 integ_key 43334f5365794845697137544f33494a52646670
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4f6f38644f6b6e50334d75435866526b integ_alg sha1-96 integ_key 43334f5365794845697137544f33494a52646670
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 6.6.3.1 laddr_stop 6.6.3.1 raddr_start 6.6.3.2 raddr_stop 6.6.3.2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 6.6.3.1 laddr_stop 6.6.3.1 raddr_start 6.6.3.2 raddr_stop 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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:eb:a1:f3
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1000 crypto_alg aes-cbc-128 crypto_key 4f6f38644f6b6e50334d75435866526b integ_alg sha1-96 integ_key 43334f5365794845697137544f33494a52646670
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 4f6f38644f6b6e50334d75435866526b integ_alg sha1-96 integ_key 43334f5365794845697137544f33494a52646670
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 6.6.3.2 laddr_stop 6.6.3.2 raddr_start 6.6.3.1 raddr_stop 6.6.3.1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 6.6.3.2 laddr_stop 6.6.3.2 raddr_start 6.6.3.1 raddr_stop 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 (VAT) 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.2 mac fa:16:3e:4b:11:dd
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 7 bd_id 10 shg 0 enable
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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.1 mac fa:16:3e:eb:a1:f3
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 (VAT) 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.2 mac fa:16:3e:4b:11:dd
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_flags sw_if_index 8 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 8 bd_id 10 shg 0 enable
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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.1 mac fa:16:3e:eb:a1:f3
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 (VAT) 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.2 mac fa:16:3e:4b:11:dd
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 7 bd_id 10 shg 0 enable
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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.1 mac fa:16:3e:eb:a1:f3
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 (VAT) 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:4b:11:dd
ip_neighbor_add_del sw_if_index 1 dst 6.0.1.2 mac fa:16:3e:89:0a:f8
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 7 bd_id 10 shg 0 enable
sw_interface_dump
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 5a446247696746453367456d51374332 integ_alg sha1-96 integ_key 54334b416956696c567855584e626377636c5652
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 5a446247696746453367456d51374332 integ_alg sha1-96 integ_key 54334b416956696c567855584e626377636c5652
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 2001:cdba:3::1 laddr_stop 2001:cdba:3::1 raddr_start 2001:cdba:3::2 raddr_stop 2001:cdba:3::2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 2001:cdba:3::1 laddr_stop 2001:cdba:3::1 raddr_start 2001:cdba:3::2 raddr_stop 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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:eb:a1:f3
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1000 crypto_alg aes-cbc-128 crypto_key 5a446247696746453367456d51374332 integ_alg sha1-96 integ_key 54334b416956696c567855584e626377636c5652
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 5a446247696746453367456d51374332 integ_alg sha1-96 integ_key 54334b416956696c567855584e626377636c5652
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 2001:cdba:3::2 laddr_stop 2001:cdba:3::2 raddr_start 2001:cdba:3::1 raddr_stop 2001:cdba:3::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 2001:cdba:3::2 laddr_stop 2001:cdba:3::2 raddr_start 2001:cdba:3::1 raddr_stop 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:4b:11:dd
ip_neighbor_add_del sw_if_index 1 dst 6.0.1.2 mac fa:16:3e:89:0a:f8
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 7 bd_id 10 shg 0 enable
sw_interface_dump
sw_interface_dump
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 4a5251724a4f6732686132524a444d69 integ_alg sha1-96 integ_key 58766657757a6462456179615a6b70676f595544
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4a5251724a4f6732686132524a444d69 integ_alg sha1-96 integ_key 58766657757a6462456179615a6b70676f595544
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 2001:cdba:3::1 laddr_stop 2001:cdba:3::1 raddr_start 2001:cdba:3::2 raddr_stop 2001:cdba:3::2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 2001:cdba:3::1 laddr_stop 2001:cdba:3::1 raddr_start 2001:cdba:3::2 raddr_stop 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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:eb:a1:f3
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1000 crypto_alg aes-cbc-128 crypto_key 4a5251724a4f6732686132524a444d69 integ_alg sha1-96 integ_key 58766657757a6462456179615a6b70676f595544
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 4a5251724a4f6732686132524a444d69 integ_alg sha1-96 integ_key 58766657757a6462456179615a6b70676f595544
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 2001:cdba:3::2 laddr_stop 2001:cdba:3::2 raddr_start 2001:cdba:3::1 raddr_stop 2001:cdba:3::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 2001:cdba:3::2 laddr_stop 2001:cdba:3::2 raddr_start 2001:cdba:3::1 raddr_stop 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 (VAT) 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:4b:11:dd
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 10 shg 0 enable
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 365578356f544c72367130763057676b integ_alg sha1-96 integ_key 586e30387255324f46566c567a3463517555536c
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 365578356f544c72367130763057676b integ_alg sha1-96 integ_key 586e30387255324f46566c567a3463517555536c
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 2001:cdba:3::1 laddr_stop 2001:cdba:3::1 raddr_start 2001:cdba:3::2 raddr_stop 2001:cdba:3::2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 2001:cdba:3::1 laddr_stop 2001:cdba:3::1 raddr_start 2001:cdba:3::2 raddr_stop 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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:eb:a1:f3
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1000 crypto_alg aes-cbc-128 crypto_key 365578356f544c72367130763057676b integ_alg sha1-96 integ_key 586e30387255324f46566c567a3463517555536c
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 365578356f544c72367130763057676b integ_alg sha1-96 integ_key 586e30387255324f46566c567a3463517555536c
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 3 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 2001:cdba:3::2 laddr_stop 2001:cdba:3::2 raddr_start 2001:cdba:3::1 raddr_stop 2001:cdba:3::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 2001:cdba:3::2 laddr_stop 2001:cdba:3::2 raddr_start 2001:cdba:3::1 raddr_stop 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:4b:11:dd
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 10 shg 0 enable
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1001 crypto_alg aes-cbc-128 crypto_key 66497552476268647268533468576761 integ_alg sha1-96 integ_key 774876684f5876566e49527a4774445a68483441
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 66497552476268647268533468576761 integ_alg sha1-96 integ_key 774876684f5876566e49527a4774445a68483441
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 7 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 2001:cdba:3::1 laddr_stop 2001:cdba:3::1 raddr_start 2001:cdba:3::2 raddr_stop 2001:cdba:3::2
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 2001:cdba:3::1 laddr_stop 2001:cdba:3::1 raddr_start 2001:cdba:3::2 raddr_stop 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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:eb:a1:f3
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
ipsec_sad_add_del_entry esp sad_id 10 spi 1000 crypto_alg aes-cbc-128 crypto_key 66497552476268647268533468576761 integ_alg sha1-96 integ_key 774876684f5876566e49527a4774445a68483441
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 66497552476268647268533468576761 integ_alg sha1-96 integ_key 774876684f5876566e49527a4774445a68483441
ipsec_spd_add_del spd_id 1
ipsec_interface_add_del_spd sw_if_index 5 spd_id 1
ipsec_spd_add_del_entry spd_id 1 priority 100 inbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 100 outbound action bypass protocol 50
ipsec_spd_add_del_entry spd_id 1 priority 10 inbound action protectsa_id 20 laddr_start 2001:cdba:3::2 laddr_stop 2001:cdba:3::2 raddr_start 2001:cdba:3::1 raddr_stop 2001:cdba:3::1
ipsec_spd_add_del_entry spd_id 1 priority 10 outbound action protectsa_id 10 laddr_start 2001:cdba:3::2 laddr_stop 2001:cdba:3::2 raddr_start 2001:cdba:3::1 raddr_stop 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 (VAT) 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:4b:11:dd
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 7 bd_id 10 shg 0 enable
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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:eb:a1:f3
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 (VAT) 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:89:0a:f8
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:4b:11:dd
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_flags sw_if_index 8 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 8 bd_id 10 shg 0 enable
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:2f:23:cd
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:eb:a1:f3
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 (VAT) 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 sw_if_index 5 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 7 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 6 bd_id 2 shg 0 enable
sw_interface_set_flags sw_if_index 8 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 8 bd_id 2 shg 0 enable
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 sw_if_index 5 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 7 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 6 bd_id 2 shg 0 enable
sw_interface_set_flags sw_if_index 8 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 8 bd_id 2 shg 0 enable
exec show trace

DUT2:
exec show trace

eth2p-dot1q-l2bdbasemaclrn-eth-4vhost-2vm-fds-provider-nets-func

Provider network FDS related. Test suite uses 3-node topology TG - DUT1 - DUT2 - TG with one link between nodes. Test packets are sent in both directions between namespaces in DUT1 and DUT2 with both positive and negative scenarios tested.

Name VPP API Test (VAT) Commands History - Commands Used Per Test Case
provider network test cases with provider physical networks (vlan)
 DUT1:  
sw_interface_add_del_address sw_if_index 3 16.0.0.1/16
sw_interface_set_flags sw_if_index 3 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
bridge_domain_add_del bd_id 23 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
bridge_domain_add_del bd_id 24 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
create_vlan_subif sw_if_index 3 vlan 60
sw_interface_dump
sw_interface_dump
exec show interfaces
create_vlan_subif sw_if_index 9 vlan 50
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite sw_if_index 5 push-1 tag1 60
l2_interface_vlan_tag_rewrite sw_if_index 6 push-1 tag1 60
l2_interface_vlan_tag_rewrite sw_if_index 7 push-1 tag1 50
l2_interface_vlan_tag_rewrite sw_if_index 8 push-1 tag1 50
sw_interface_set_flags sw_if_index 9 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 9 bd_id 23 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 23 shg 0 enable
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 6 bd_id 23 shg 0 enable
sw_interface_set_flags sw_if_index 10 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 10 bd_id 24 shg 0 enable
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 7 bd_id 24 shg 0 enable
sw_interface_set_flags sw_if_index 8 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 8 bd_id 24 shg 0 enable
exec show trace

DUT2:
sw_interface_add_del_address sw_if_index 3 16.0.0.2/16
sw_interface_set_flags sw_if_index 3 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
bridge_domain_add_del bd_id 23 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
bridge_domain_add_del bd_id 24 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
create_vlan_subif sw_if_index 3 vlan 60
sw_interface_dump
sw_interface_dump
exec show interfaces
create_vlan_subif sw_if_index 9 vlan 50
sw_interface_dump
sw_interface_dump
exec show interfaces
l2_interface_vlan_tag_rewrite sw_if_index 5 push-1 tag1 60
l2_interface_vlan_tag_rewrite sw_if_index 6 push-1 tag1 60
l2_interface_vlan_tag_rewrite sw_if_index 7 push-1 tag1 50
l2_interface_vlan_tag_rewrite sw_if_index 8 push-1 tag1 50
sw_interface_set_flags sw_if_index 9 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 9 bd_id 23 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 23 shg 0 enable
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 6 bd_id 23 shg 0 enable
sw_interface_set_flags sw_if_index 10 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 10 bd_id 24 shg 0 enable
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 7 bd_id 24 shg 0 enable
sw_interface_set_flags sw_if_index 8 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 8 bd_id 24 shg 0 enable
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 (VAT) 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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
bridge_domain_add_del bd_id 2 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 2 shg 0 enable
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 6 bd_id 2 shg 0 enable
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
bridge_domain_add_del bd_id 2 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 2 shg 0 enable
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 6 bd_id 2 shg 0 enable
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 (VAT) 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 flood 1 uu-flood 1 forward 1 learn 0 arp-term 0
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
l2fib_add_del mac fa:16:3e:62:16:8a bd_id 1 sw_if_index 2
l2fib_add_del mac fa:16:3e:89:0a:f8 bd_id 1 sw_if_index 5
bridge_domain_add_del bd_id 2 flood 1 uu-flood 1 forward 1 learn 0 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 2 shg 0 enable
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 6 bd_id 2 shg 0 enable
l2fib_add_del mac fa:16:3e:89:0a:f8 bd_id 2 sw_if_index 1
l2fib_add_del mac fa:16:3e:62:16:8a bd_id 2 sw_if_index 6
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 flood 1 uu-flood 1 forward 1 learn 0 arp-term 0
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
l2fib_add_del mac fa:16:3e:62:16:8a bd_id 1 sw_if_index 2
l2fib_add_del mac fa:16:3e:89:0a:f8 bd_id 1 sw_if_index 5
bridge_domain_add_del bd_id 2 flood 1 uu-flood 1 forward 1 learn 0 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 2 shg 0 enable
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 6 bd_id 2 shg 0 enable
l2fib_add_del mac fa:16:3e:89:0a:f8 bd_id 2 sw_if_index 1
l2fib_add_del mac fa:16:3e:62:16:8a bd_id 2 sw_if_index 6
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 (VAT) 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:62:16:8a
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 5 bd_id 101 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 9 bd_id 101 shg 0 enable
bridge_domain_add_del bd_id 102 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 6 bd_id 102 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 10 bd_id 102 shg 0 enable
bridge_domain_add_del bd_id 103 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 7 bd_id 103 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 11 bd_id 103 shg 0 enable
bridge_domain_add_del bd_id 104 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 8 bd_id 104 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 12 bd_id 104 shg 0 enable
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:62:16:8a
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 5 bd_id 101 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 9 bd_id 101 shg 0 enable
bridge_domain_add_del bd_id 102 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 6 bd_id 102 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 10 bd_id 102 shg 0 enable
bridge_domain_add_del bd_id 103 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 7 bd_id 103 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 11 bd_id 103 shg 0 enable
bridge_domain_add_del bd_id 104 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 8 bd_id 104 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 12 bd_id 104 shg 0 enable
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:62:16:8a
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 5 bd_id 101 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 9 bd_id 101 shg 0 enable
bridge_domain_add_del bd_id 102 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 6 bd_id 102 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 10 bd_id 102 shg 0 enable
bridge_domain_add_del bd_id 103 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 7 bd_id 103 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 11 bd_id 103 shg 0 enable
bridge_domain_add_del bd_id 104 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 8 bd_id 104 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 12 bd_id 104 shg 0 enable
exec show trace

DUT2:
exec show trace

eth2p-ethip4vxlan-l2bdbasemaclrn–eth-4vhost-2vm-fds-tenant-nets-func

Tenant network FDS related. Test suite uses 3-node topology TG - DUT1 - DUT2 - TG with one link between nodes. Test packets are sent in both directions between namespaces in DUT1 and DUT2 with both positive and negative scenarios tested.

Name VPP API Test (VAT) Commands History - Commands Used Per Test Case
l2 test cases with tenant networks (vxlan)
 DUT1:  
sw_interface_add_del_address sw_if_index 3 16.0.0.1/16
sw_interface_set_flags sw_if_index 3 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
bridge_domain_add_del bd_id 23 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
bridge_domain_add_del bd_id 24 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
vxlan_add_del_tunnel src 16.0.0.1 dst 16.0.0.2 vni 23
sw_interface_dump
vxlan_add_del_tunnel src 16.0.0.1 dst 16.0.0.2 vni 24
sw_interface_dump
sw_interface_set_flags sw_if_index 9 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 9 bd_id 23 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 23 shg 0 enable
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 6 bd_id 23 shg 0 enable
sw_interface_set_flags sw_if_index 10 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 10 bd_id 24 shg 0 enable
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 7 bd_id 24 shg 0 enable
sw_interface_set_flags sw_if_index 8 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 8 bd_id 24 shg 0 enable
exec show trace

DUT2:
sw_interface_add_del_address sw_if_index 3 16.0.0.2/16
sw_interface_set_flags sw_if_index 3 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
bridge_domain_add_del bd_id 23 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
bridge_domain_add_del bd_id 24 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
vxlan_add_del_tunnel src 16.0.0.2 dst 16.0.0.1 vni 23
sw_interface_dump
vxlan_add_del_tunnel src 16.0.0.2 dst 16.0.0.1 vni 24
sw_interface_dump
sw_interface_set_flags sw_if_index 9 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 9 bd_id 23 shg 0 enable
sw_interface_set_flags sw_if_index 5 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 5 bd_id 23 shg 0 enable
sw_interface_set_flags sw_if_index 6 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 6 bd_id 23 shg 0 enable
sw_interface_set_flags sw_if_index 10 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 10 bd_id 24 shg 0 enable
sw_interface_set_flags sw_if_index 7 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 7 bd_id 24 shg 0 enable
sw_interface_set_flags sw_if_index 8 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 8 bd_id 24 shg 0 enable
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 (VAT) 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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 5 bd_id 10 shg 0 enable
bridge_domain_add_del bd_id 20 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 7 bd_id 20 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 6 bd_id 20 shg 0 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
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 5 bd_id 10 shg 0 enable
bridge_domain_add_del bd_id 20 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 7 bd_id 20 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 6 bd_id 20 shg 0 enable
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 (VAT) 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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 5 bd_id 10 shg 0 enable
bridge_domain_add_del bd_id 20 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 7 bd_id 20 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 6 bd_id 20 shg 0 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
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 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 1 bd_id 10 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 5 bd_id 10 shg 0 enable
bridge_domain_add_del bd_id 20 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_l2_bridge sw_if_index 7 bd_id 20 shg 0 enable
sw_interface_set_l2_bridge sw_if_index 6 bd_id 20 shg 0 enable
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 (VAT) 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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 tx_sw_if_index 6
sw_interface_set_l2_xconnect rx_sw_if_index 6 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 tx_sw_if_index 5
sw_interface_set_l2_xconnect rx_sw_if_index 5 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 tx_sw_if_index 6
sw_interface_set_l2_xconnect rx_sw_if_index 6 tx_sw_if_index 1
exec show trace

DUT2:
exec show trace