8.3.1. default

8.3.1.1. 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 5434526f54564f77707030556f4d7a52 integ_alg sha1-96 integ_key 554b6668717849634647715a70694c6568513356 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 5434526f54564f77707030556f4d7a52 integ_alg sha1-96 integ_key 554b6668717849634647715a70694c6568513356 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 4b786353516c7264326243306f696b3552646c63707a6f34 integ_alg sha1-96 integ_key 5754683538636a4f3172756d41396a42774e754c 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 4b786353516c7264326243306f696b3552646c63707a6f34 integ_alg sha1-96 integ_key 5754683538636a4f3172756d41396a42774e754c 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 4b5a556b70453532447241587953744c687758436a677867426674696a65704c integ_alg sha1-96 integ_key 584f33347532316b65347663654f7a43674a6842 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 4b5a556b70453532447241587953744c687758436a677867426674696a65704c integ_alg sha1-96 integ_key 584f33347532316b65347663654f7a43674a6842 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 4345367479657467627061774a6e3576 integ_alg sha-256-128 integ_key 4976506d467061636676413430786b4c74666d47504b38434138664d426a5732 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 4345367479657467627061774a6e3576 integ_alg sha-256-128 integ_key 4976506d467061636676413430786b4c74666d47504b38434138664d426a5732 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 5a6e5572587176665774524e3671793864646b5153544c34 integ_alg sha-256-128 integ_key 75726d5a4936704d59505843574d34424b6739304f34586972336e3767333645 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 5a6e5572587176665774524e3671793864646b5153544c34 integ_alg sha-256-128 integ_key 75726d5a4936704d59505843574d34424b6739304f34586972336e3767333645 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 666a794663336f364d7768747a4e484f4175684c497177754465436c49375a43 integ_alg sha-256-128 integ_key 746e6d6a3844395a48557441344b34455a54686542425370325748616b437841 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 666a794663336f364d7768747a4e484f4175684c497177754465436c49375a43 integ_alg sha-256-128 integ_key 746e6d6a3844395a48557441344b34455a54686542425370325748616b437841 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 6c594a3637477759574e436d33596a43 integ_alg sha-384-192 integ_key 734e34684a486f4c5373447533794b30524146716e433235714e4445375855715865385846446a717a4e6b4a70437738 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 6c594a3637477759574e436d33596a43 integ_alg sha-384-192 integ_key 734e34684a486f4c5373447533794b30524146716e433235714e4445375855715865385846446a717a4e6b4a70437738 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 49713969326250754e615a66627476386b34527449717969 integ_alg sha-384-192 integ_key 6146566158417a7244786d33415152516c72446136436d374566484a33776433546a6332425235436f49316632465055 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 49713969326250754e615a66627476386b34527449717969 integ_alg sha-384-192 integ_key 6146566158417a7244786d33415152516c72446136436d374566484a33776433546a6332425235436f49316632465055 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 395345773867696f794a4b5770483452306b385a4b4c54545a31697764617547 integ_alg sha-384-192 integ_key 616b445676754c3133316d30587777546138637568434559325738334949495a694a64456976356752514a384a4e6b71 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 395345773867696f794a4b5770483452306b385a4b4c54545a31697764617547 integ_alg sha-384-192 integ_key 616b445676754c3133316d30587777546138637568434559325738334949495a694a64456976356752514a384a4e6b71 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 506944756e7a456b7750676144777945 integ_alg sha-512-256 integ_key 51514869436e635479536c654d6f6171554f4d4e55436e6c716d334a7a5a4b5138764e794b6e3573785442686e7736493469597a7364746f4a6643767a466330 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 506944756e7a456b7750676144777945 integ_alg sha-512-256 integ_key 51514869436e635479536c654d6f6171554f4d4e55436e6c716d334a7a5a4b5138764e794b6e3573785442686e7736493469597a7364746f4a6643767a466330 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 4c746a6d7276414b637a396635715165527847644b527845 integ_alg sha-512-256 integ_key 626973637046517a35774e59584764746546567954387247335852583078384b766d4e75664b345458344c59634a614134566a6556344b3448527373445a6b78 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 4c746a6d7276414b637a396635715165527847644b527845 integ_alg sha-512-256 integ_key 626973637046517a35774e59584764746546567954387247335852583078384b766d4e75664b345458344c59634a614134566a6556344b3448527373445a6b78 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 784a554e386477656f6e65714766657265704378704d324375566c314d4c716a integ_alg sha-512-256 integ_key 497a466e5931536676434c704762794231543773585a6858796a70306e574b544232503259314d54766b614a375450676436586d7333634a4a5144423741346d 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 784a554e386477656f6e65714766657265704378704d324375566c314d4c716a integ_alg sha-512-256 integ_key 497a466e5931536676434c704762794231543773585a6858796a70306e574b544232503259314d54766b614a375450676436586d7333634a4a5144423741346d 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 526a46554c377a764366744c36795656 integ_alg sha1-96 integ_key 45664b7441535864415139536d67545872417551 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 526a46554c377a764366744c36795656 integ_alg sha1-96 integ_key 45664b7441535864415139536d67545872417551 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 38455a44376a765637676554714e546a integ_alg sha1-96 integ_key 34777439634a6468546d7950516f456c6c357156 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 38455a44376a765637676554714e546a integ_alg sha1-96 integ_key 34777439634a6468546d7950516f456c6c357156 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 5a554774467a4366704d463031534e43 integ_alg sha1-96 integ_key 434b48394f6f4c54533562454a76304b31366352 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 5a554774467a4366704d463031534e43 integ_alg sha1-96 integ_key 434b48394f6f4c54533562454a76304b31366352 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 68666867456d6b427a7779705749576b integ_alg sha1-96 integ_key 38455767626f70584d376f624744627265686b73 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 68666867456d6b427a7779705749576b integ_alg sha1-96 integ_key 38455767626f70584d376f624744627265686b73 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 65514e706452544d4b6f317156503130 integ_key 61314270514369736937737a4534456142724d6e
ipsec_sa_set_key sa_id 20 crypto_key 65514e706452544d4b6f317156503130 integ_key 61314270514369736937737a4534456142724d6e
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 38387774696e34395949673259664473 integ_alg sha1-96 integ_key 52356445467a4e58626a77537030495452326971 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 38387774696e34395949673259664473 integ_alg sha1-96 integ_key 52356445467a4e58626a77537030495452326971 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 65714b684778323667756463426c4944 integ_key 7765376e796d444b7345743471794f6d6c395169
ipsec_sa_set_key sa_id 20 crypto_key 65714b684778323667756463426c4944 integ_key 7765376e796d444b7345743471794f6d6c395169
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 464a5078586b33693634734448794c4f integ_alg sha1-96 integ_key 656c7532767449496b643063524f63536f684a39 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 464a5078586b33693634734448794c4f integ_alg sha1-96 integ_key 656c7532767449496b643063524f63536f684a39 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 6a48784758657131796c426d436c5731 integ_key 3056504a4d5046743838754976554e4942415847
ipsec_sa_set_key sa_id 20 crypto_key 6a48784758657131796c426d436c5731 integ_key 3056504a4d5046743838754976554e4942415847
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 364e307a3334483965464d436e4b776c integ_alg sha1-96 integ_key 51306e716b466d644162536d424742784e45636e 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 364e307a3334483965464d436e4b776c integ_alg sha1-96 integ_key 51306e716b466d644162536d424742784e45636e 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 3875303473707759704a38534a4a6532 integ_key 497041786442797a593445734a74317467525248
ipsec_sa_set_key sa_id 20 crypto_key 3875303473707759704a38534a4a6532 integ_key 497041786442797a593445734a74317467525248
exec show trace

DUT2:
exec show trace

8.3.1.2. 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 334e426353377247316f357449677175 integ_alg sha1-96 integ_key 59553663536c754f79756c47495775576b435141
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 334e426353377247316f357449677175 integ_alg sha1-96 integ_key 59553663536c754f79756c47495775576b435141
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 4567784f336b5234654f526e5868324e744e794348425575 integ_alg sha1-96 integ_key 654a7553494152615444367a4534334a417a3773
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 4567784f336b5234654f526e5868324e744e794348425575 integ_alg sha1-96 integ_key 654a7553494152615444367a4534334a417a3773
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 50756f65366254396b71694c6f3034717462746d4d586b534d6d525637534a64 integ_alg sha1-96 integ_key 47364b453677426a587534796e5a525162477965
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 50756f65366254396b71694c6f3034717462746d4d586b534d6d525637534a64 integ_alg sha1-96 integ_key 47364b453677426a587534796e5a525162477965
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 503234554d7353365043684532624e51 integ_alg sha-256-128 integ_key 67774d366c436a62694a6f334361656a42425a415332416d41724a3237483656
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 503234554d7353365043684532624e51 integ_alg sha-256-128 integ_key 67774d366c436a62694a6f334361656a42425a415332416d41724a3237483656
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 45393135646b6657685179516d695359393035486a763851 integ_alg sha-256-128 integ_key 334e433656616f5335566f7649764130414b4467646f4c736a304a546f577354
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 45393135646b6657685179516d695359393035486a763851 integ_alg sha-256-128 integ_key 334e433656616f5335566f7649764130414b4467646f4c736a304a546f577354
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 716a56547448736a6730684d42534d4a76627a7651505358697a4f4b71643061 integ_alg sha-256-128 integ_key 427572544c77536c327232424d38426869707338596e6654434d564437487167
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 716a56547448736a6730684d42534d4a76627a7651505358697a4f4b71643061 integ_alg sha-256-128 integ_key 427572544c77536c327232424d38426869707338596e6654434d564437487167
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 35306d4c304f50354166464154545954 integ_alg sha-384-192 integ_key 476e4f39563638393465364e4d58384f49477151696578684c74473977595645794d5a52674653336c704c3965484a72
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 35306d4c304f50354166464154545954 integ_alg sha-384-192 integ_key 476e4f39563638393465364e4d58384f49477151696578684c74473977595645794d5a52674653336c704c3965484a72
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 456e484e3139763359794e353854435654765756544d5251 integ_alg sha-384-192 integ_key 6438635666335976466769756944355262676b33467251626f3964413770397a4c344b50497958535855665171796f43
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 456e484e3139763359794e353854435654765756544d5251 integ_alg sha-384-192 integ_key 6438635666335976466769756944355262676b33467251626f3964413770397a4c344b50497958535855665171796f43
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 414f6c62586343424a4f7043597a58653155754d577172485544444777565959 integ_alg sha-384-192 integ_key 66324e527a773270346c466f6d77635153763943414244544275327339345574484251427468436e7761475961737777
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 414f6c62586343424a4f7043597a58653155754d577172485544444777565959 integ_alg sha-384-192 integ_key 66324e527a773270346c466f6d77635153763943414244544275327339345574484251427468436e7761475961737777
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 4e3368674c3071485a6c426534453763 integ_alg sha-512-256 integ_key 6f4a6837656d4b425a7a574762646d416a616650524c65414569484f7745486676544d54716156625752574b6249765375365064386c57417435424f4852327a
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4e3368674c3071485a6c426534453763 integ_alg sha-512-256 integ_key 6f4a6837656d4b425a7a574762646d416a616650524c65414569484f7745486676544d54716156625752574b6249765375365064386c57417435424f4852327a
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 4d68544c327a6b305a68636d6a6d6d716d45494230537a39 integ_alg sha-512-256 integ_key 4d48724c544b6d3678336370465261726f37597a485238357534657951507553515a367935714c5a42387a51674d715254426761396369705442544556353177
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 4d68544c327a6b305a68636d6a6d6d716d45494230537a39 integ_alg sha-512-256 integ_key 4d48724c544b6d3678336370465261726f37597a485238357534657951507553515a367935714c5a42387a51674d715254426761396369705442544556353177
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 4376716a67704c6850676b4d684a4f5246524746696d374d48594e7147684a57 integ_alg sha-512-256 integ_key 566146333169364e4552355266336b527657306c70414770474a476a66644f6b3359666849373147397a7634386b65374f534b4a786b70674c30433847526875
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 4376716a67704c6850676b4d684a4f5246524746696d374d48594e7147684a57 integ_alg sha-512-256 integ_key 566146333169364e4552355266336b527657306c70414770474a476a66644f6b3359666849373147397a7634386b65374f534b4a786b70674c30433847526875
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 74367276634f49457249413063574c4d integ_alg sha1-96 integ_key 414b61435234696b336f4873754e33616a526d39
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 74367276634f49457249413063574c4d integ_alg sha1-96 integ_key 414b61435234696b336f4873754e33616a526d39
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 39594b45495032714b3870763571396a integ_alg sha1-96 integ_key 467a62426a4f316e4238724f3971555530674a4d
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 39594b45495032714b3870763571396a integ_alg sha1-96 integ_key 467a62426a4f316e4238724f3971555530674a4d
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 3672566b63524c475764377248343837 integ_alg sha1-96 integ_key 4a4764314d443336334a6f7a796a474a36565462
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 3672566b63524c475764377248343837 integ_alg sha1-96 integ_key 4a4764314d443336334a6f7a796a474a36565462
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 4d70534b576e78365153666a71694d71 integ_alg sha1-96 integ_key 7476386c733238414f6368744650573967623367
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4d70534b576e78365153666a71694d71 integ_alg sha1-96 integ_key 7476386c733238414f6368744650573967623367
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 6a73574d6369624267336132746f306a integ_key 6e4c563946647375645372356c474d33704c3631
ipsec_sa_set_key sa_id 20 crypto_key 6a73574d6369624267336132746f306a integ_key 6e4c563946647375645372356c474d33704c3631
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 38705a7868484d77745a545769347439 integ_alg sha1-96 integ_key 55736f3047567551327463313461327832754b4f
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 38705a7868484d77745a545769347439 integ_alg sha1-96 integ_key 55736f3047567551327463313461327832754b4f
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 4b4b523031426a715774726a784b786b integ_key 61495454766454415a64444361626c6a50646a37
ipsec_sa_set_key sa_id 20 crypto_key 4b4b523031426a715774726a784b786b integ_key 61495454766454415a64444361626c6a50646a37
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 7063534e525a57375548574974334466 integ_alg sha1-96 integ_key 594b716a746876576a35546d626b4a4150465874
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 7063534e525a57375548574974334466 integ_alg sha1-96 integ_key 594b716a746876576a35546d626b4a4150465874
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 37306e52596d633342756b754331436c integ_key 335542586b6850504f52516b354a41425932694e
ipsec_sa_set_key sa_id 20 crypto_key 37306e52596d633342756b754331436c integ_key 335542586b6850504f52516b354a41425932694e
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 57664b304d686b444f746949336e4b6b integ_alg sha1-96 integ_key 35703739784a31323832724844697879386f3773
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 57664b304d686b444f746949336e4b6b integ_alg sha1-96 integ_key 35703739784a31323832724844697879386f3773
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 5a6c47445974667065616a476d595a5a integ_key 535178677a646a3132494b37455a735a39584763
ipsec_sa_set_key sa_id 20 crypto_key 5a6c47445974667065616a476d595a5a integ_key 535178677a646a3132494b37455a735a39584763
exec show trace

DUT2:
exec show trace

8.3.1.3. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:2a:6a:63
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 675441786c4851665547435152656e6f integ_alg sha1-96 integ_key 4949464b544466304e7954755334777431434956
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 675441786c4851665547435152656e6f integ_alg sha1-96 integ_key 4949464b544466304e7954755334777431434956
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:15:1b:c9
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 675441786c4851665547435152656e6f integ_alg sha1-96 integ_key 4949464b544466304e7954755334777431434956
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 675441786c4851665547435152656e6f integ_alg sha1-96 integ_key 4949464b544466304e7954755334777431434956
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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:2a:6a:63
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 784951756e4b347035394572646a3736 integ_alg sha1-96 integ_key 6c6d4e4a53524b65474b757a6b6a5a6157464b4b
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 784951756e4b347035394572646a3736 integ_alg sha1-96 integ_key 6c6d4e4a53524b65474b757a6b6a5a6157464b4b
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:15:1b:c9
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 784951756e4b347035394572646a3736 integ_alg sha1-96 integ_key 6c6d4e4a53524b65474b757a6b6a5a6157464b4b
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 784951756e4b347035394572646a3736 integ_alg sha1-96 integ_key 6c6d4e4a53524b65474b757a6b6a5a6157464b4b
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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:2a:6a:63
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 63683159434871326e4b656f34516843 integ_alg sha1-96 integ_key 747a395377726731315141535336746670484252
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 63683159434871326e4b656f34516843 integ_alg sha1-96 integ_key 747a395377726731315141535336746670484252
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:15:1b:c9
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 63683159434871326e4b656f34516843 integ_alg sha1-96 integ_key 747a395377726731315141535336746670484252
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 63683159434871326e4b656f34516843 integ_alg sha1-96 integ_key 747a395377726731315141535336746670484252
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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:2a:6a:63
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 45584e356545547a6375536d624d7776 integ_alg sha1-96 integ_key 44365a58794d687538397542774e51744c647733
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 45584e356545547a6375536d624d7776 integ_alg sha1-96 integ_key 44365a58794d687538397542774e51744c647733
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:15:1b:c9
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 45584e356545547a6375536d624d7776 integ_alg sha1-96 integ_key 44365a58794d687538397542774e51744c647733
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 45584e356545547a6375536d624d7776 integ_alg sha1-96 integ_key 44365a58794d687538397542774e51744c647733
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

8.3.1.4. 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
sw_interface_set_flags sw_if_index 3 admin-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:2a:6a:63
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:b4:0a:23
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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 54595a54575853393557346441625152 integ_alg sha1-96 integ_key 316a75486f5857646b4975633270666764656c4f
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 54595a54575853393557346441625152 integ_alg sha1-96 integ_key 316a75486f5857646b4975633270666764656c4f
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:15:1b:c9
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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 54595a54575853393557346441625152 integ_alg sha1-96 integ_key 316a75486f5857646b4975633270666764656c4f
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 54595a54575853393557346441625152 integ_alg sha1-96 integ_key 316a75486f5857646b4975633270666764656c4f
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
sw_interface_set_flags sw_if_index 3 admin-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:2a:6a:63
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:b4:0a:23
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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 364772356b646d746241564f6754336a integ_alg sha1-96 integ_key 30387a64526a514e734a444f5268705a47494370
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 364772356b646d746241564f6754336a integ_alg sha1-96 integ_key 30387a64526a514e734a444f5268705a47494370
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:15:1b:c9
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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 364772356b646d746241564f6754336a integ_alg sha1-96 integ_key 30387a64526a514e734a444f5268705a47494370
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 364772356b646d746241564f6754336a integ_alg sha1-96 integ_key 30387a64526a514e734a444f5268705a47494370
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

8.3.1.5. 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
sw_interface_set_flags sw_if_index 3 admin-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 66707957475648386a5746694e464f43 integ_alg sha1-96 integ_key 764279644c5a6b4d7337724763476d6271506f57
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 66707957475648386a5746694e464f43 integ_alg sha1-96 integ_key 764279644c5a6b4d7337724763476d6271506f57
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
sw_interface_set_flags sw_if_index 3 admin-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:2a:6a:63
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:b4:0a:23
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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
sw_interface_set_flags sw_if_index 3 admin-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 66707957475648386a5746694e464f43 integ_alg sha1-96 integ_key 764279644c5a6b4d7337724763476d6271506f57
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 66707957475648386a5746694e464f43 integ_alg sha1-96 integ_key 764279644c5a6b4d7337724763476d6271506f57
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:15:1b:c9
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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

8.3.1.6. 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 67716b39706433514d73744477554c66 integ_alg sha1-96 integ_key 4d5a796349537577726b77393063774673583776 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 67716b39706433514d73744477554c66 integ_alg sha1-96 integ_key 4d5a796349537577726b77393063774673583776 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 5a6e474f62524e4c593032734a305350534f4f7347336b4b integ_alg sha1-96 integ_key 6863477676664155357a386f303866775343726a 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 5a6e474f62524e4c593032734a305350534f4f7347336b4b integ_alg sha1-96 integ_key 6863477676664155357a386f303866775343726a 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 4d38466a46743858436c795258664a32594f79494467377333456c7578334675 integ_alg sha1-96 integ_key 524c41366462497767614557345a79456d63464c 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 4d38466a46743858436c795258664a32594f79494467377333456c7578334675 integ_alg sha1-96 integ_key 524c41366462497767614557345a79456d63464c 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 7532706b74786f326c65617a42727758 integ_alg sha-256-128 integ_key 5444545262745143354a43554978486f58684c706f7052743065303950686175 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 7532706b74786f326c65617a42727758 integ_alg sha-256-128 integ_key 5444545262745143354a43554978486f58684c706f7052743065303950686175 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 63473277506b6c6b6b3477446e39774159374b5938557343 integ_alg sha-256-128 integ_key 6e786a45496d787657574864667745395a696a30473537354a6b30793670704a 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 63473277506b6c6b6b3477446e39774159374b5938557343 integ_alg sha-256-128 integ_key 6e786a45496d787657574864667745395a696a30473537354a6b30793670704a 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 4a3339637858697871655669617370454d724865397049324770633375386679 integ_alg sha-256-128 integ_key 4844367749354e524d63535a4d4730617141525552396c4a5a4e52546b4a7972 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 4a3339637858697871655669617370454d724865397049324770633375386679 integ_alg sha-256-128 integ_key 4844367749354e524d63535a4d4730617141525552396c4a5a4e52546b4a7972 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 6751716649676c37534c63336457714f integ_alg sha-384-192 integ_key 34346a6c6d58576a654d76536a51777432316b426236616f4d68584953583141484c755545484d745a33594b66545235 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 6751716649676c37534c63336457714f integ_alg sha-384-192 integ_key 34346a6c6d58576a654d76536a51777432316b426236616f4d68584953583141484c755545484d745a33594b66545235 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 643241654b6d313156697642305774456e58584b78527965 integ_alg sha-384-192 integ_key 56345a703243705a5577526632314a64394e7530374c4a4e5579365844636f767931677972467442343275484e6b7574 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 643241654b6d313156697642305774456e58584b78527965 integ_alg sha-384-192 integ_key 56345a703243705a5577526632314a64394e7530374c4a4e5579365844636f767931677972467442343275484e6b7574 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 4635476a39584c6477327a74776e676265314256524a39616b61644f47374c37 integ_alg sha-384-192 integ_key 733551774a793262524f4556475347464e556352574c5a6c3777387478326b517062715934623751695a345134365833 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 4635476a39584c6477327a74776e676265314256524a39616b61644f47374c37 integ_alg sha-384-192 integ_key 733551774a793262524f4556475347464e556352574c5a6c3777387478326b517062715934623751695a345134365833 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 4a796b3548493652647435674c626950 integ_alg sha-512-256 integ_key 426d636d5a4f5758306a4b304a4262306a344239624b4671527a6f5459556249534553433469674a6b31616c4e64364735527874444d506e594d336137524c76 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 4a796b3548493652647435674c626950 integ_alg sha-512-256 integ_key 426d636d5a4f5758306a4b304a4262306a344239624b4671527a6f5459556249534553433469674a6b31616c4e64364735527874444d506e594d336137524c76 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 553630746e476262386833717055386f3065784b7470674b integ_alg sha-512-256 integ_key 6c426b69326d4366307752516d333552484b4a35794e3276746d34556c736c666754745041654f31496a736575537344657a54516a55547449597a474e7a656b 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 553630746e476262386833717055386f3065784b7470674b integ_alg sha-512-256 integ_key 6c426b69326d4366307752516d333552484b4a35794e3276746d34556c736c666754745041654f31496a736575537344657a54516a55547449597a474e7a656b 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 42354733457a4d794b4e624f5469366762636174716e716f69334e42736d4473 integ_alg sha-512-256 integ_key 7a527956723643544d41726249734f654b336c537a317474796374386a745872633833325a71357939484651675a7138356351444835704939574a784274544a 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 42354733457a4d794b4e624f5469366762636174716e716f69334e42736d4473 integ_alg sha-512-256 integ_key 7a527956723643544d41726249734f654b336c537a317474796374386a745872633833325a71357939484651675a7138356351444835704939574a784274544a 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 6648326e72634871645a574532663655 integ_alg sha1-96 integ_key 4f76563347544f446743767738476c72744f5756 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 6648326e72634871645a574532663655 integ_alg sha1-96 integ_key 4f76563347544f446743767738476c72744f5756 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 784176536f4776706254476c43577831 integ_alg sha1-96 integ_key 614e7663464b6d795956305a6b4b4a6534644451 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 784176536f4776706254476c43577831 integ_alg sha1-96 integ_key 614e7663464b6d795956305a6b4b4a6534644451 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 36526f78444872663962346a57513848 integ_alg sha1-96 integ_key 4e61384532764530437538377a35585062524e49 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 36526f78444872663962346a57513848 integ_alg sha1-96 integ_key 4e61384532764530437538377a35585062524e49 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 57504a5265566d4957564d6971634a72 integ_alg sha1-96 integ_key 477739544b6d3245336a6a7a45647a3135485265 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 57504a5265566d4957564d6971634a72 integ_alg sha1-96 integ_key 477739544b6d3245336a6a7a45647a3135485265 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 3965727155786633347a49444c377632 integ_key 715a376468426277487065566f4d524f30366655
ipsec_sa_set_key sa_id 20 crypto_key 3965727155786633347a49444c377632 integ_key 715a376468426277487065566f4d524f30366655
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 55476a794b38427a475044346475794f integ_alg sha1-96 integ_key 4f494b34636647495876725256646e4f795a516b 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 55476a794b38427a475044346475794f integ_alg sha1-96 integ_key 4f494b34636647495876725256646e4f795a516b 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 326e676d376f6a50726151704672724a integ_key 646848617246416a6b3538307856374330756630
ipsec_sa_set_key sa_id 20 crypto_key 326e676d376f6a50726151704672724a integ_key 646848617246416a6b3538307856374330756630
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 6b6a7a465550776d654b563858494474 integ_alg sha1-96 integ_key 57383331656b756b46426b4f5879565039364975 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 6b6a7a465550776d654b563858494474 integ_alg sha1-96 integ_key 57383331656b756b46426b4f5879565039364975 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 61733630566f545343733968694c7047 integ_key 463966674b4e656b4647354c6b414d6b6378486e
ipsec_sa_set_key sa_id 20 crypto_key 61733630566f545343733968694c7047 integ_key 463966674b4e656b4647354c6b414d6b6378486e
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 644743426548586f71686748436c6441 integ_alg sha1-96 integ_key 394c4c474e51314e5378466c4c42634a49713050 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 644743426548586f71686748436c6441 integ_alg sha1-96 integ_key 394c4c474e51314e5378466c4c42634a49713050 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 514d306a4f795a44464a5562654b686d integ_key 7957705335306a494c57653168467a6d4e6f4d72
ipsec_sa_set_key sa_id 20 crypto_key 514d306a4f795a44464a5562654b686d integ_key 7957705335306a494c57653168467a6d4e6f4d72
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

8.3.1.7. 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 7435594b3649766a7974727131677858 integ_alg sha1-96 integ_key 63394e66653368496c33374b5665524759466454
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 7435594b3649766a7974727131677858 integ_alg sha1-96 integ_key 63394e66653368496c33374b5665524759466454
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 334c6652326b3633575654765a4d31566c77657776683451 integ_alg sha1-96 integ_key 514731754e553965305933427468314974676775
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 334c6652326b3633575654765a4d31566c77657776683451 integ_alg sha1-96 integ_key 514731754e553965305933427468314974676775
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 666d7035766767436b5558506c335046656b4f67703659737750563730615565 integ_alg sha1-96 integ_key 474b4f4356414e6d3853565569776671394c7a6d
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 666d7035766767436b5558506c335046656b4f67703659737750563730615565 integ_alg sha1-96 integ_key 474b4f4356414e6d3853565569776671394c7a6d
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 564c4a5a6f777348584b4e4950784541 integ_alg sha-256-128 integ_key 366a66414e543631684776756647316c3230395256666f704b316a4556377752
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 564c4a5a6f777348584b4e4950784541 integ_alg sha-256-128 integ_key 366a66414e543631684776756647316c3230395256666f704b316a4556377752
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 5a51486d505541707553543778656f384c4234645835374f integ_alg sha-256-128 integ_key 4f7654764b664f47336858434a514f7959384373787155515268415930395962
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 5a51486d505541707553543778656f384c4234645835374f integ_alg sha-256-128 integ_key 4f7654764b664f47336858434a514f7959384373787155515268415930395962
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 55736d375566556c71574269364e546c37716961707746696873596970646c53 integ_alg sha-256-128 integ_key 44655558735947716f636d55564448563837586d664b38464d37644939454c52
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 55736d375566556c71574269364e546c37716961707746696873596970646c53 integ_alg sha-256-128 integ_key 44655558735947716f636d55564448563837586d664b38464d37644939454c52
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 4c49633131315543726c3233456b4d56 integ_alg sha-384-192 integ_key 7247796572534b6a723467424666757830777552524c5746364c36556631586268526b4b6e3877387163666d446d4d57
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4c49633131315543726c3233456b4d56 integ_alg sha-384-192 integ_key 7247796572534b6a723467424666757830777552524c5746364c36556631586268526b4b6e3877387163666d446d4d57
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 74705452784536384a67586a7650716d35704c746f677867 integ_alg sha-384-192 integ_key 734b64457039433575436a696572487a67586e48416a596871756d44463173523563344630485846366b6664414f6a6d
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 74705452784536384a67586a7650716d35704c746f677867 integ_alg sha-384-192 integ_key 734b64457039433575436a696572487a67586e48416a596871756d44463173523563344630485846366b6664414f6a6d
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 4237745268785a46445a5256314e39313276753063376a36427947704b476f6a integ_alg sha-384-192 integ_key 49737255667070693333336b6578464768344639693235424f6a34784f684b6e4f445054567851504e32586d76436d41
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 4237745268785a46445a5256314e39313276753063376a36427947704b476f6a integ_alg sha-384-192 integ_key 49737255667070693333336b6578464768344639693235424f6a34784f684b6e4f445054567851504e32586d76436d41
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 5058663942466a3356584a5372594d58 integ_alg sha-512-256 integ_key 4e5962473854724e39504753776a6b734d316e6b76556f684d71656f78436d42704d3264415161483667486145493031536f4449754967473873627057777a48
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 5058663942466a3356584a5372594d58 integ_alg sha-512-256 integ_key 4e5962473854724e39504753776a6b734d316e6b76556f684d71656f78436d42704d3264415161483667486145493031536f4449754967473873627057777a48
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 61785853423761776b6959436257774e4e534a373436576d integ_alg sha-512-256 integ_key 6e6f56796c314731337274614662735a304d596e494432504574433247517776673455337864427358305259697567486d6f6761775047775672774b72387866
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 61785853423761776b6959436257774e4e534a373436576d integ_alg sha-512-256 integ_key 6e6f56796c314731337274614662735a304d596e494432504574433247517776673455337864427358305259697567486d6f6761775047775672774b72387866
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 487354375133473654357051786c653163445352587138526664746255353858 integ_alg sha-512-256 integ_key 77376b4c7936336b726737566b454630453347764c484475636970746b76774c753736754758764938663547745a74376334573945536e545077706f616d4358
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 487354375133473654357051786c653163445352587138526664746255353858 integ_alg sha-512-256 integ_key 77376b4c7936336b726737566b454630453347764c484475636970746b76774c753736754758764938663547745a74376334573945536e545077706f616d4358
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 69684371753749745769436261484530 integ_alg sha1-96 integ_key 674f475a6143385a69796a55584733774d525542
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 69684371753749745769436261484530 integ_alg sha1-96 integ_key 674f475a6143385a69796a55584733774d525542
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 304572467a364c436252523878564b79 integ_alg sha1-96 integ_key 6176704e4b6f4c476337324d4446526f7a67326b
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 304572467a364c436252523878564b79 integ_alg sha1-96 integ_key 6176704e4b6f4c476337324d4446526f7a67326b
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 3461506e6d50537333626345394e624c integ_alg sha1-96 integ_key 684c7a365670623262426a786a34686e65767032
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 3461506e6d50537333626345394e624c integ_alg sha1-96 integ_key 684c7a365670623262426a786a34686e65767032
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 644675587334357961346b5179595a67 integ_alg sha1-96 integ_key 6f4150466a457873663061704a54525539685359
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 644675587334357961346b5179595a67 integ_alg sha1-96 integ_key 6f4150466a457873663061704a54525539685359
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 72556d47366e5a717231657857504275 integ_key 386a57447367336350327073363072416763716b
ipsec_sa_set_key sa_id 20 crypto_key 72556d47366e5a717231657857504275 integ_key 386a57447367336350327073363072416763716b
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 4a4c4644673361506d714d597868697a integ_alg sha1-96 integ_key 4d69356d4d42645557454d306d795a434e355035
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4a4c4644673361506d714d597868697a integ_alg sha1-96 integ_key 4d69356d4d42645557454d306d795a434e355035
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 616a4b346456386b32384264384e3475 integ_key 45674d6e3966345a5a3050646959466b516e3274
ipsec_sa_set_key sa_id 20 crypto_key 616a4b346456386b32384264384e3475 integ_key 45674d6e3966345a5a3050646959466b516e3274
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 683653316469765a62495065466c7466 integ_alg sha1-96 integ_key 394442656c69536241506562504e6255556d5a6f
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 683653316469765a62495065466c7466 integ_alg sha1-96 integ_key 394442656c69536241506562504e6255556d5a6f
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 78716e62774c744f4f766d506350744c integ_key 496a337345466c46385968564d524f5842486453
ipsec_sa_set_key sa_id 20 crypto_key 78716e62774c744f4f766d506350744c integ_key 496a337345466c46385968564d524f5842486453
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 575376654652445274666d776c576a6b integ_alg sha1-96 integ_key 6e6a727930325362505764694262546c4e32517a
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 575376654652445274666d776c576a6b integ_alg sha1-96 integ_key 6e6a727930325362505764694262546c4e32517a
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 6f33556d46474c6656306b774a774d49 integ_key 446a44775975436d624a694669464356476b4d37
ipsec_sa_set_key sa_id 20 crypto_key 6f33556d46474c6656306b774a774d49 integ_key 446a44775975436d624a694669464356476b4d37
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

8.3.1.8. 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
sw_interface_set_flags sw_if_index 3 admin-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:2a:6a:63
ip_neighbor_add_del sw_if_index 1 dst 6.0.1.2 mac fa:16:3e:b4:0a:23
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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 334f7955485074393431384165747336 integ_alg sha1-96 integ_key 74466f7a35744a4633326b6c653836585a703945
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 334f7955485074393431384165747336 integ_alg sha1-96 integ_key 74466f7a35744a4633326b6c653836585a703945
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:15:1b:c9
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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 334f7955485074393431384165747336 integ_alg sha1-96 integ_key 74466f7a35744a4633326b6c653836585a703945
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 334f7955485074393431384165747336 integ_alg sha1-96 integ_key 74466f7a35744a4633326b6c653836585a703945
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
sw_interface_set_flags sw_if_index 3 admin-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:2a:6a:63
ip_neighbor_add_del sw_if_index 1 dst 6.0.1.2 mac fa:16:3e:b4:0a:23
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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 4d64554967314c424454577651534330 integ_alg sha1-96 integ_key 3434757338444b76444d67556c77576965344661
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4d64554967314c424454577651534330 integ_alg sha1-96 integ_key 3434757338444b76444d67556c77576965344661
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:15:1b:c9
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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 4d64554967314c424454577651534330 integ_alg sha1-96 integ_key 3434757338444b76444d67556c77576965344661
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 4d64554967314c424454577651534330 integ_alg sha1-96 integ_key 3434757338444b76444d67556c77576965344661
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

8.3.1.9. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:2a:6a:63
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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 6d686a5770574753664779695354396d integ_alg sha1-96 integ_key 69797267445335676e697278446f447268754d37
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 6d686a5770574753664779695354396d integ_alg sha1-96 integ_key 69797267445335676e697278446f447268754d37
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:15:1b:c9
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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 6d686a5770574753664779695354396d integ_alg sha1-96 integ_key 69797267445335676e697278446f447268754d37
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 6d686a5770574753664779695354396d integ_alg sha1-96 integ_key 69797267445335676e697278446f447268754d37
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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:2a:6a:63
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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 666733313970563776344d706e414667 integ_alg sha1-96 integ_key 3432594b726b756432435271547473595639454e
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 666733313970563776344d706e414667 integ_alg sha1-96 integ_key 3432594b726b756432435271547473595639454e
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:15:1b:c9
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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 666733313970563776344d706e414667 integ_alg sha1-96 integ_key 3432594b726b756432435271547473595639454e
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 666733313970563776344d706e414667 integ_alg sha1-96 integ_key 3432594b726b756432435271547473595639454e
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

8.3.2. sw device

8.3.2.1. 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 76637556525632536d74383071434354 integ_alg sha1-96 integ_key 6676326636676844347a36594843427430664973 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 76637556525632536d74383071434354 integ_alg sha1-96 integ_key 6676326636676844347a36594843427430664973 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 7744396942743371457338616a39516b4347706f6e6b4e5a integ_alg sha1-96 integ_key 674a70367937414f654d4e4641534d4561427752 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 7744396942743371457338616a39516b4347706f6e6b4e5a integ_alg sha1-96 integ_key 674a70367937414f654d4e4641534d4561427752 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 576850657234767735445363415671546d71346f45774e6e7131456b56324368 integ_alg sha1-96 integ_key 6d5258666c5632694a6d78717139397a36477162 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 576850657234767735445363415671546d71346f45774e6e7131456b56324368 integ_alg sha1-96 integ_key 6d5258666c5632694a6d78717139397a36477162 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 4b39546d484a73546b476b3066314e41 integ_alg sha-256-128 integ_key 526a797846316462646f785030726844725a53673264466a564b684344483532 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 4b39546d484a73546b476b3066314e41 integ_alg sha-256-128 integ_key 526a797846316462646f785030726844725a53673264466a564b684344483532 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 336a54707a5a51375a6c5247734357367238476432474769 integ_alg sha-256-128 integ_key 595066634e546f6b62414a7143464a6c7656574270345873626768634a323879 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 336a54707a5a51375a6c5247734357367238476432474769 integ_alg sha-256-128 integ_key 595066634e546f6b62414a7143464a6c7656574270345873626768634a323879 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 574351346268333952326761496a7562514e703133596c36343332576a576b30 integ_alg sha-256-128 integ_key 354157794a4856536f345067666446345651625833614477754a496471354c34 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 574351346268333952326761496a7562514e703133596c36343332576a576b30 integ_alg sha-256-128 integ_key 354157794a4856536f345067666446345651625833614477754a496471354c34 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 626c5776324b66706169426e6f5a7266 integ_alg sha-384-192 integ_key 793471657277514450786932486448785a38684c557266696f6c706c64634e70614c7453464372327653437133797a41 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 626c5776324b66706169426e6f5a7266 integ_alg sha-384-192 integ_key 793471657277514450786932486448785a38684c557266696f6c706c64634e70614c7453464372327653437133797a41 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 684c434c556a5051676531557361746e4133436c474f4b6e integ_alg sha-384-192 integ_key 5a31774a374e44624131796452516e3831506f3248524470764d4d353956736c386f7074725735416677456850583337 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 684c434c556a5051676531557361746e4133436c474f4b6e integ_alg sha-384-192 integ_key 5a31774a374e44624131796452516e3831506f3248524470764d4d353956736c386f7074725735416677456850583337 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 733650643863327a526773725a445a553074716364515947414361613533354a integ_alg sha-384-192 integ_key 305830696d4f7741615053537075743856674872394a5058617654656f6c53796179595a4536563450433670354a3777 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 733650643863327a526773725a445a553074716364515947414361613533354a integ_alg sha-384-192 integ_key 305830696d4f7741615053537075743856674872394a5058617654656f6c53796179595a4536563450433670354a3777 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 61673772654e6f375a6f395048484652 integ_alg sha-512-256 integ_key 61387052494453444c574e476b31645367744a7a524c784865623353444c507a344d7a587933676a73776841496e46786556376f7a58714c626e754a78466d6d 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 61673772654e6f375a6f395048484652 integ_alg sha-512-256 integ_key 61387052494453444c574e476b31645367744a7a524c784865623353444c507a344d7a587933676a73776841496e46786556376f7a58714c626e754a78466d6d 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 30414f50396f45696537746c4d6c677a6c46617330655942 integ_alg sha-512-256 integ_key 314138353262316c554d704548504e5a43495968566566413641364631777534437157455655585455594e70725a584a397a3945367845417764317074335939 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 30414f50396f45696537746c4d6c677a6c46617330655942 integ_alg sha-512-256 integ_key 314138353262316c554d704548504e5a43495968566566413641364631777534437157455655585455594e70725a584a397a3945367845417764317074335939 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 696832556962766169394c46304159666e5456727539676f44346c736a655730 integ_alg sha-512-256 integ_key 436434675063746548626a66554f714f3063756444676a686b674c594d4b514f4969514e6a7461357738785268516641435a4679316376384f46446c754a6675 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 696832556962766169394c46304159666e5456727539676f44346c736a655730 integ_alg sha-512-256 integ_key 436434675063746548626a66554f714f3063756444676a686b674c594d4b514f4969514e6a7461357738785268516641435a4679316376384f46446c754a6675 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 59385373447138303358676e556a4376 integ_alg sha1-96 integ_key 656a6e704649466c54703173776559464f786c49 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 59385373447138303358676e556a4376 integ_alg sha1-96 integ_key 656a6e704649466c54703173776559464f786c49 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 5a65753045555a456131483755727933 integ_alg sha1-96 integ_key 65495274784e733658516a4368484a434d433457 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 5a65753045555a456131483755727933 integ_alg sha1-96 integ_key 65495274784e733658516a4368484a434d433457 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 4256357132336d6d316147765256456f integ_alg sha1-96 integ_key 476f66446158527a734d437474624c6c41664d57 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 4256357132336d6d316147765256456f integ_alg sha1-96 integ_key 476f66446158527a734d437474624c6c41664d57 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 686554617245654b70576c53366a4c6b integ_alg sha1-96 integ_key 6153795851774535783363657730466e565a7232 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 686554617245654b70576c53366a4c6b integ_alg sha1-96 integ_key 6153795851774535783363657730466e565a7232 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 414e3454696555554d41367836324e39 integ_key 70694d443451595869775130644f356f69476b4e
ipsec_sa_set_key sa_id 20 crypto_key 414e3454696555554d41367836324e39 integ_key 70694d443451595869775130644f356f69476b4e
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 5141766b6a4a5a61514d7748694c3031 integ_alg sha1-96 integ_key 674e6c504439694d74716f59757531537a6a4f6d 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 5141766b6a4a5a61514d7748694c3031 integ_alg sha1-96 integ_key 674e6c504439694d74716f59757531537a6a4f6d 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 39764c6e64796333377a76334c337936 integ_key 684b646f4b676e494e4577784144527367336733
ipsec_sa_set_key sa_id 20 crypto_key 39764c6e64796333377a76334c337936 integ_key 684b646f4b676e494e4577784144527367336733
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 67473834715a694c45394d6642437345 integ_alg sha1-96 integ_key 4a3053554d46666a583474724e62743757566547 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 67473834715a694c45394d6642437345 integ_alg sha1-96 integ_key 4a3053554d46666a583474724e62743757566547 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 5861335a577a7332386259436d44506c integ_key 44783031466241463162476b74654d796d347356
ipsec_sa_set_key sa_id 20 crypto_key 5861335a577a7332386259436d44506c integ_key 44783031466241463162476b74654d796d347356
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 4c3172347a3276687676694a6f4a3865 integ_alg sha1-96 integ_key 687069707862587958646d39453743484c384353 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 4c3172347a3276687676694a6f4a3865 integ_alg sha1-96 integ_key 687069707862587958646d39453743484c384353 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 7467457232437130616c38624f714548 integ_key 4867625a3453497850387178646b4b5769637970
ipsec_sa_set_key sa_id 20 crypto_key 7467457232437130616c38624f714548 integ_key 4867625a3453497850387178646b4b5769637970
exec show trace

DUT2:
exec show trace

8.3.2.2. 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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 7035433744583238567536506d4f6c75 integ_alg sha1-96 integ_key 39504a564a313936344d4b786c4c693952496542
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 7035433744583238567536506d4f6c75 integ_alg sha1-96 integ_key 39504a564a313936344d4b786c4c693952496542
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 7438496e63707668366c474e5177546b4943687656413472 integ_alg sha1-96 integ_key 7a375554746479486949726e69374b7332366252
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 7438496e63707668366c474e5177546b4943687656413472 integ_alg sha1-96 integ_key 7a375554746479486949726e69374b7332366252
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 6237633473754c75734f6c724c557a694331437771757758445a614343355230 integ_alg sha1-96 integ_key 4d556671586e766b6971675a334d784a65656d4d
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 6237633473754c75734f6c724c557a694331437771757758445a614343355230 integ_alg sha1-96 integ_key 4d556671586e766b6971675a334d784a65656d4d
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 4c7a4a746d364634526f736659516454 integ_alg sha-256-128 integ_key 7168774749656d446a69323545764778523778425276705466704c79756b794a
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4c7a4a746d364634526f736659516454 integ_alg sha-256-128 integ_key 7168774749656d446a69323545764778523778425276705466704c79756b794a
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 6f576b705248446163467664744965364275717370334e53 integ_alg sha-256-128 integ_key 67336f5039704c356678397736517269656f5179577153436a71757666346c76
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 6f576b705248446163467664744965364275717370334e53 integ_alg sha-256-128 integ_key 67336f5039704c356678397736517269656f5179577153436a71757666346c76
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 774e3841694f6d4d36616f35564c31596e786b346f62763170794d3547454c6a integ_alg sha-256-128 integ_key 5539774531436e6e6255305a5a6679444f6f366c31794f63517364514754764f
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 774e3841694f6d4d36616f35564c31596e786b346f62763170794d3547454c6a integ_alg sha-256-128 integ_key 5539774531436e6e6255305a5a6679444f6f366c31794f63517364514754764f
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 78596a65757967376e464c4b6d387743 integ_alg sha-384-192 integ_key 457355377631304a38525372686c7467667a444778524b346437526235496570677a6a567231764b39454172617a7649
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 78596a65757967376e464c4b6d387743 integ_alg sha-384-192 integ_key 457355377631304a38525372686c7467667a444778524b346437526235496570677a6a567231764b39454172617a7649
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 31513661494f5467375874723972534d6f50725934414d4a integ_alg sha-384-192 integ_key 51386a68424a58596a3774443233516e53326c67454c57504f376565395a30564342564b77446834623370764d316373
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 31513661494f5467375874723972534d6f50725934414d4a integ_alg sha-384-192 integ_key 51386a68424a58596a3774443233516e53326c67454c57504f376565395a30564342564b77446834623370764d316373
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 5758476c51333146654b4d334f303471616354503154446f434d78643973455a integ_alg sha-384-192 integ_key 4c4377476755383379623667703231577435725954485153775376745475763458354168717862593748675532765554
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 5758476c51333146654b4d334f303471616354503154446f434d78643973455a integ_alg sha-384-192 integ_key 4c4377476755383379623667703231577435725954485153775376745475763458354168717862593748675532765554
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 547461565a384f675454785233345671 integ_alg sha-512-256 integ_key 6b3368503779664877567a33464b63505474624b395a644f3363566443397952464c436a54434736726b6153547554674e58776c426779504f756475595a4256
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 547461565a384f675454785233345671 integ_alg sha-512-256 integ_key 6b3368503779664877567a33464b63505474624b395a644f3363566443397952464c436a54434736726b6153547554674e58776c426779504f756475595a4256
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 30746f79705245615a645a44667074346b6445577841654e integ_alg sha-512-256 integ_key 5368524472714b53394b4962514a7a6d3472514c7a34634b336d6e7368716e7252685546396e76657a6f54426238763671474e3763447734345a363755596f76
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-192 crypto_key 30746f79705245615a645a44667074346b6445577841654e integ_alg sha-512-256 integ_key 5368524472714b53394b4962514a7a6d3472514c7a34634b336d6e7368716e7252685546396e76657a6f54426238763671474e3763447734345a363755596f76
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 356950354c51684447354d483559726f4d3553464c584c484d4c4a396c6f4145 integ_alg sha-512-256 integ_key 414a53686769367449306a5a55526d6a33367a493468724a35317a706e533452306167346f4a3464365846306e45624c69775a514335684c7369727535355257
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-256 crypto_key 356950354c51684447354d483559726f4d3553464c584c484d4c4a396c6f4145 integ_alg sha-512-256 integ_key 414a53686769367449306a5a55526d6a33367a493468724a35317a706e533452306167346f4a3464365846306e45624c69775a514335684c7369727535355257
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 4556444b6f4e4b797855597537646762 integ_alg sha1-96 integ_key 69673734355a347674724d68456a623830567345
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4556444b6f4e4b797855597537646762 integ_alg sha1-96 integ_key 69673734355a347674724d68456a623830567345
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 4a50737751497138767461504e585741 integ_alg sha1-96 integ_key 376b69525370614c444a32333861317648784432
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4a50737751497138767461504e585741 integ_alg sha1-96 integ_key 376b69525370614c444a32333861317648784432
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 4f386244774b7630784e626c58767a46 integ_alg sha1-96 integ_key 317471385041733951623478367a536f72507471
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4f386244774b7630784e626c58767a46 integ_alg sha1-96 integ_key 317471385041733951623478367a536f72507471
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 31315248394668716534794f6c4f767a integ_alg sha1-96 integ_key 5565334675627141676e77303867365242776c4d
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 31315248394668716534794f6c4f767a integ_alg sha1-96 integ_key 5565334675627141676e77303867365242776c4d
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 75443569776549777a57417850483036 integ_key 6b5662703647636d50626b4b7935796c59325849
ipsec_sa_set_key sa_id 20 crypto_key 75443569776549777a57417850483036 integ_key 6b5662703647636d50626b4b7935796c59325849
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 304e4f654b58696e446f4d3347544f6d integ_alg sha1-96 integ_key 6f667645714e58505a6e38697a5656366838674d
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 304e4f654b58696e446f4d3347544f6d integ_alg sha1-96 integ_key 6f667645714e58505a6e38697a5656366838674d
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 6f466b7a555a6861624c56306c6e7353 integ_key 77433943526252667239504e6369436d355a3250
ipsec_sa_set_key sa_id 20 crypto_key 6f466b7a555a6861624c56306c6e7353 integ_key 77433943526252667239504e6369436d355a3250
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 38394158564747345a78626374774d4f integ_alg sha1-96 integ_key 4b38494e314477483878724b7377633063654562
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 38394158564747345a78626374774d4f integ_alg sha1-96 integ_key 4b38494e314477483878724b7377633063654562
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 76427743544a4d4b4479514e6d433258 integ_key 6d5064394677586b4d66775043794e6d7a4b6f6e
ipsec_sa_set_key sa_id 20 crypto_key 76427743544a4d4b4479514e6d433258 integ_key 6d5064394677586b4d66775043794e6d7a4b6f6e
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
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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 6561487944363272685a435465575978 integ_alg sha1-96 integ_key 61374435467859564d366a6e37334b30554e4a65
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 6561487944363272685a435465575978 integ_alg sha1-96 integ_key 61374435467859564d366a6e37334b30554e4a65
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 6e50454479363568456e63396f624337 integ_key 695a315150686e73563437596d46394b57383242
ipsec_sa_set_key sa_id 20 crypto_key 6e50454479363568456e63396f624337 integ_key 695a315150686e73563437596d46394b57383242
exec show trace

DUT2:
exec show trace

8.3.2.2.1. interfaces

8.3.3. 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
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 6 admin-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

8.3.4. 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
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 6 admin-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
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
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
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
sw_interface_set_l2_bridge sw_if_index 1 bd_id 19 shg 0 enable
exec show trace

DUT2:
exec show trace

8.3.5. 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
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 6 admin-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
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
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
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
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 6 admin-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
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
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
sw_interface_set_l2_bridge sw_if_index 6 bd_id 21 shg 2 enable
exec show trace

DUT2:
exec show trace

8.3.6. 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
sw_interface_set_flags sw_if_index 1 admin-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
ip_neighbor_add_del sw_if_index 2 dst 192.168.0.2 mac fa:16:3e:5d:55:fe
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
sw_interface_set_flags sw_if_index 1 admin-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
ip_neighbor_add_del sw_if_index 2 dst 192.168.0.2 mac fa:16:3e:5d:55:fe
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

8.3.7. 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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
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
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
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:5d:55:fe
ip_neighbor_add_del sw_if_index 5 dst 192.168.100.2 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 6 dst 192.168.200.2 mac fa:16:3e:b4:0a:23
exec show trace

DUT2:
exec show trace
tc02: process tagged send untagged
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
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
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
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:5d:55:fe
ip_neighbor_add_del sw_if_index 5 dst 192.168.100.2 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 6 dst 192.168.200.2 mac fa:16:3e:b4:0a:23
exec show trace

DUT2:
exec show trace
tc03: process tagged send tagged
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
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
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
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:5d:55:fe
ip_neighbor_add_del sw_if_index 5 dst 192.168.100.2 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 6 dst 192.168.200.2 mac fa:16:3e:b4:0a:23
exec show trace

DUT2:
exec show trace

8.3.8. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 192.168.2.2 mac fa:16:3e:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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

8.3.9. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 192.168.2.2 mac fa:16:3e:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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

8.3.10. 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

8.3.11. 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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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 2 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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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

8.3.12. 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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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

8.3.13. 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
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 1 admin-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:5d:55:fe
exec show trace

DUT2:
exec show trace

8.3.14. 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
sw_interface_set_flags sw_if_index 1 admin-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:b4:0a:23
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
sw_interface_set_flags sw_if_index 1 admin-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:b4:0a:23
dhcp_proxy_config svr 192.168.0.100 src 172.16.0.1
exec show trace

DUT2:
exec show trace

8.3.15. 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
sw_interface_set_flags sw_if_index 1 admin-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

8.3.16. 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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
exec show trace

8.3.17. 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
sw_interface_set_flags sw_if_index 1 admin-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:b4:0a:23
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
sw_interface_set_flags sw_if_index 1 admin-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:b4:0a:23
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
sw_interface_set_flags sw_if_index 1 admin-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:b4:0a:23
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
sw_interface_set_flags sw_if_index 1 admin-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:b4:0a:23
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

8.3.18. 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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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:b4:0a:23
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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:b4:0a:23
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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

8.3.19. 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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:5d:55:fe
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:ca:1c:05
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:a0:8c:b7
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:85:c0:96
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:15:1b:c9
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:5d:55:fe
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:ca:1c:05
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:a0:8c:b7
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:85:c0:96
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:15:1b:c9
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:5d:55:fe
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:ca:1c:05
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:a0:8c:b7
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:85:c0:96
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:15:1b:c9
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:5d:55:fe
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:ca:1c:05
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:a0:8c:b7
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:85:c0:96
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:15:1b:c9
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:5d:55:fe
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:ca:1c:05
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:a0:8c:b7
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:85:c0:96
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:15:1b:c9
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:5d:55:fe
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:ca:1c:05
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:a0:8c:b7
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:85:c0:96
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:15:1b:c9
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:5d:55:fe
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:ca:1c:05
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:a0:8c:b7
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:85:c0:96
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:15:1b:c9
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:5d:55:fe
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:ca:1c:05
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:a0:8c:b7
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:85:c0:96
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:15:1b:c9
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:5d:55:fe
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:ca:1c:05
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:a0:8c:b7
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:85:c0:96
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:15:1b:c9
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:5d:55:fe
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.3 mac fa:16:3e:ca:1c:05
ip_neighbor_add_del sw_if_index 1 dst 10.0.0.2 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.4 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:a0:8c:b7
ip_neighbor_add_del sw_if_index 4 dst 20.0.0.1 mac fa:16:3e:85:c0:96
ip_neighbor_add_del sw_if_index 1 dst 30.0.0.2 mac fa:16:3e:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 20.0.0.2 mac fa:16:3e:15:1b:c9
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

8.3.20. gre

8.3.20.1. 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
sw_interface_set_flags sw_if_index 3 admin-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
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
gre_add_del_tunnel src 192.168.1.2 dst 192.168.1.1
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 1 admin-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:b4:0a:23
gre_add_del_tunnel src 192.168.1.1 dst 192.168.1.2
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 1 admin-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:5d:55:fe
gre_add_del_tunnel src 192.168.1.1 dst 192.168.1.2
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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
gre_add_del_tunnel src 10.0.0.1 dst 10.0.0.3
sw_interface_set_flags sw_if_index 7 admin-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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-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:b4:0a:23
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
gre_add_del_tunnel src 10.0.0.1 dst 10.0.0.3
sw_interface_set_flags sw_if_index 7 admin-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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
create_loopback
sw_interface_dump
sw_interface_set_flags sw_if_index 5 admin-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:5d:55:fe
ip_neighbor_add_del sw_if_index 1 dst 192.168.1.2 mac fa:16:3e:b4:0a:23
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
gre_add_del_tunnel src 10.0.0.1 dst 10.0.0.3
sw_interface_set_flags sw_if_index 7 admin-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

8.3.21. lisp

8.3.21.1. 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

8.3.21.2. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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

8.3.21.3. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 10.0.3.2 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 10.0.3.1 mac fa:16:3e:15:1b:c9
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

8.3.21.4. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.2 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.1 mac fa:16:3e:15:1b:c9
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

8.3.21.5. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.2 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.1 mac fa:16:3e:15:1b:c9
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

8.3.21.6. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.2 mac fa:16:3e:2a:6a:63
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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:2a:6a:63
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.1 mac fa:16:3e:15:1b:c9
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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:15:1b:c9
exec show trace

8.3.21.7. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.2 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.1 mac fa:16:3e:15:1b:c9
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

8.3.22. softwire

8.3.22.1. eth2p-ethip4–ethip6ip4-ip4base–ip6base-swirelw46-func

Lightweight 4 over 6 test cases LW4o6 is a subset of MAP-E, with per-subscriber rules. It uses the same tunneling mechanism and configuration as MAP-E. It does not use embedded address bits.

  • [Top] Network Topologies: TG=DUT1 2-node topology with two links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-UDP on TG_if1-DUT, Eth-IPv6-IPv4-UDP on TG_if2_DUT.
  • [Cfg] DUT configuration: DUT1 is configured as lwAFTR.
  • [Ver] TG verification: Test UDP ICMP Echo Request in IPv4 are sent to lwAFTR and are verified by TG for correctness their encapsulation in IPv6 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC7596 RFC7597.
Name VPP API Test (VAT) Commands History - Commands Used Per Test Case
tc01: encapsulate ipv4 into ipv6. ipv6 dst depends on ipv4 and udp destination
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:b4:0a:23
ip_add_del_route 2001:1::2/128 via 2001:0::2 sw_if_index 1 count 1
map_add_domain ip4-pfx 20.0.0.1/32 ip6-pfx 2001:1::/64 ip6-src 2001:1::1 ea-bits-len 0 psid-offset 6 psid-len 8
map_add_del_rule index 0 psid 52 dst 2001:1::2
exec show trace

DUT2:
exec show trace
tc02: encapsulate ipv4 icmp into ipv6. ipv6 dst depends on ipv4 addr and icmp id
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:b4:0a:23
ip_add_del_route 2001:1::2/128 via 2001:0::2 sw_if_index 1 count 1
map_add_domain ip4-pfx 20.0.0.1/32 ip6-pfx 2001:1::/64 ip6-src 2001:1::1 ea-bits-len 0 psid-offset 6 psid-len 8
map_add_del_rule index 0 psid 52 dst 2001:1::2
exec show trace

DUT2:
exec show trace
tc03: decapsulate ipv4 udp from ipv6.
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.100 mac fa:16:3e:5d:55:fe
map_add_domain ip4-pfx 20.0.0.1/32 ip6-pfx 2001:1::/64 ip6-src 2001:1::1 ea-bits-len 0 psid-offset 6 psid-len 8
map_add_del_rule index 0 psid 52 dst 2001:1::2
exec show trace

DUT2:
exec show trace
tc04: hairpinning of traffic between two lwb4
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:b4:0a:23
ip_add_del_route 2001:1::3/128 via 2001:0::2 sw_if_index 1 count 1
map_add_domain ip4-pfx 20.0.0.1/32 ip6-pfx 2001:1::/64 ip6-src 2001:1::1 ea-bits-len 0 psid-offset 6 psid-len 8
map_add_del_rule index 0 psid 52 dst 2001:1::2
map_add_del_rule index 0 psid 22 dst 2001:1::3
exec show trace

DUT2:
exec show trace

8.3.22.2. eth2p-ethip4–ethip6ip4-ip4base–ip6base-swiremape-func

Test for Basic mapping rule for MAP-E

  • [Top] Network Topologies: TG - DUT1 - TG with two links between the nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-UDP on TG-to-DUT-if1. Eth-IPv6-IPv4-UDP on TG-to-DUT-if2.
  • [Cfg] DUT configuration: DUT is configured with IPv4 on one DUT-to-TG interface and IPv6 address on second DUT-to-TG interface. MAP-E domain is configured in test template based on test parameters.
  • [Ver] TG verification: UDP packets in IPv4 are sent by TG to destination in MAP domain. IPv6 packets with encapsulated IPv4 are received on TG interface.
  • [Ref] Applicable standard specifications: RFC7597.
Name VPP API Test (VAT) Commands History - Commands Used Per Test Case
tc01: bmr, then an ipv4 prefix is assigned
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_add_del_route ::/0 via 2001:0::2 sw_if_index 1
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:b4:0a:23
ip_add_del_route 1.0.0.1/32 via 10.0.0.2 sw_if_index 2
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.2 mac fa:16:3e:5d:55:fe
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 4 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 8 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 10 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 20 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 23 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.201.0/24 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 4 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.201.0/24 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 7 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
exec show trace

DUT2:
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
tc02: bmr, full ipv4 address is to be assigned
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_add_del_route ::/0 via 2001:0::2 sw_if_index 1
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:b4:0a:23
ip_add_del_route 1.0.0.1/32 via 10.0.0.2 sw_if_index 2
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.2 mac fa:16:3e:5d:55:fe
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 24 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.160.0.0/12 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 20 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.0.0/16 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.200.0/22 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 10 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.201.0/24 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 8 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.201.208/28 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 4 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.201.219/32 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 0 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8::/40 ip6-src 2001:db8:ffff::1 ea-bits-len 24 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.160.0.0/12 ip6-pfx 2001:db8::/44 ip6-src 2001:db8:ffff::1 ea-bits-len 20 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.0.0/16 ip6-pfx 2001:db8::/48 ip6-src 2001:db8:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.200.0/22 ip6-pfx 2001:db8::/54 ip6-src 2001:db8:ffff::1 ea-bits-len 10 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
exec show trace

DUT2:
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
tc03: bmr, shared ipv4 address is to be assigned
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_add_del_route ::/0 via 2001:0::2 sw_if_index 1
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:b4:0a:23
ip_add_del_route 1.0.0.1/32 via 10.0.0.2 sw_if_index 2
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.2 mac fa:16:3e:5d:55:fe
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::1 ea-bits-len 48 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.0.0/16 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::1 ea-bits-len 48 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.201.0/24 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::1 ea-bits-len 48 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.201.219/32 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::1 ea-bits-len 48 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001::/24 ip6-src 2001:db8:ffff::1 ea-bits-len 40 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.0.0/16 ip6-pfx 2001::/24 ip6-src 2001:db8:ffff::1 ea-bits-len 40 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.201.0/24 ip6-pfx 2001::/24 ip6-src 2001:db8:ffff::1 ea-bits-len 40 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.201.219/32 ip6-pfx 2001::/24 ip6-src 2001:db8:ffff::1 ea-bits-len 40 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.0.0/16 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::1 ea-bits-len 40 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.201.219/32 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::1 ea-bits-len 40 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 32 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.0.0/16 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 32 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.201.0/24 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 32 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.201.219/32 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 32 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.0.0/16 ip6-pfx 2001::/24 ip6-src 2001:db8:ffff::1 ea-bits-len 32 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.201.0/24 ip6-pfx 2001::/24 ip6-src 2001:db8:ffff::1 ea-bits-len 32 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.0.0/16 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::1 ea-bits-len 32 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.201.0/24 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::1 ea-bits-len 32 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.160.0.0/12 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 25 psid-offset 6 psid-len 5
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.0.0/16 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 25 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.201.0/24 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 25 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.201.219/32 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 25 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.192.0/20 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 17 psid-offset 6 psid-len 5
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.201.0/24 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 17 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.201.219/32 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 17 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.201.0/24 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 12 psid-offset 6 psid-len 4
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.201.219/32 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 12 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
exec show trace

DUT2:
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
tc04: end user ipv6 prefix is 64
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_add_del_route ::/0 via 2001:0::2 sw_if_index 1
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:b4:0a:23
ip_add_del_route 1.0.0.1/32 via 10.0.0.2 sw_if_index 2
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.2 mac fa:16:3e:5d:55:fe
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8:0012:3400::/56 ip6-src 2001:db8:ffff::1 ea-bits-len 8 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.201.208/28 ip6-pfx 2001:db8:0012:3400::/56 ip6-src 2001:db8:ffff::1 ea-bits-len 8 psid-offset 5 psid-len 4
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8:0012:3400::/64 ip6-src 2001:db8:ffff::1 ea-bits-len 0 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.201.219/32 ip6-pfx 2001:db8:0012:3400::/64 ip6-src 2001:db8:ffff::1 ea-bits-len 0 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
exec show trace

DUT2:
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
tc05: ipv4 prefix is 0
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_add_del_route ::/0 via 2001:0::2 sw_if_index 1
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:b4:0a:23
ip_add_del_route 1.0.0.1/32 via 10.0.0.2 sw_if_index 2
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.2 mac fa:16:3e:5d:55:fe
map_add_domain ip4-pfx 0.0.0.0/0 ip6-pfx 2001:db8:0000::/40 ip6-src 2001:db8:ffff::1 ea-bits-len 8 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 0.0.0.0/0 ip6-pfx 2001:db8:0000::/40 ip6-src 2001:db8:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 0.0.0.0/0 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 32 psid-offset 0 psid-len 0
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 0.0.0.0/0 ip6-pfx 2001:d00::/24 ip6-src 2001:db8:ffff::1 ea-bits-len 40 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 0.0.0.0/0 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::1 ea-bits-len 40 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
exec show trace

DUT2:
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
exec show trace
tc06: multiple domain and check with traffic script ipv4 source ipv6 destination
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_add_del_route ::/0 via 2001:0::2 sw_if_index 1
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:b4:0a:23
ip_add_del_route 0.0.0.0/0 via 10.0.0.2 sw_if_index 2
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.2 mac fa:16:3e:5d:55:fe
map_add_domain ip4-pfx 147.108.0.0/16 ip6-pfx 2001:936c::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 206.11.0.0/16 ip6-pfx 2001:ceb::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 107.127.0.0/16 ip6-pfx 2001:6b7f::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 133.207.0.0/16 ip6-pfx 2001:85cf::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 210.98.0.0/16 ip6-pfx 2001:d262::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
exec show trace

DUT2:
exec show trace
tc07: multiple domain and check with traffic script ipv6 source ipv6 destination
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_add_del_route ::/0 via 2001:0::2 sw_if_index 1
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:b4:0a:23
ip_add_del_route 0.0.0.0/0 via 10.0.0.2 sw_if_index 2
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.2 mac fa:16:3e:5d:55:fe
map_add_domain ip4-pfx 147.108.0.0/16 ip6-pfx 2001:936c::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 206.11.0.0/16 ip6-pfx 2001:ceb::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 107.127.0.0/16 ip6-pfx 2001:6b7f::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 133.207.0.0/16 ip6-pfx 2001:85cf::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 210.98.0.0/16 ip6-pfx 2001:d262::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
exec show trace

DUT2:
exec show trace
tc08: encapsulate ipv4 icmp into ipv6
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_add_del_route ::/0 via 2001:0::2 sw_if_index 1
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:b4:0a:23
ip_add_del_route 0.0.0.0/0 via 10.0.0.2 sw_if_index 2
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.2 mac fa:16:3e:5d:55:fe
map_add_domain ip4-pfx 147.108.0.0/16 ip6-pfx 2001:936c::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 206.11.0.0/16 ip6-pfx 2001:ceb::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 107.127.0.0/16 ip6-pfx 2001:6b7f::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 133.207.0.0/16 ip6-pfx 2001:85cf::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
map_add_domain ip4-pfx 210.98.0.0/16 ip6-pfx 2001:d262::/48 ip6-src 2001:ffff::1 ea-bits-len 16 psid-offset 0 psid-len 0
exec show trace

DUT2:
exec show trace
tc09: repeated ip neighbor command doesnt put fib to broken state
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_add_del_route 2001::/16 via 2001:0::2 sw_if_index 1
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:b4:0a:23
ip_add_del_route 0.0.0.0/0 via 10.0.0.2 sw_if_index 2
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.2 mac fa:16:3e:5d:55:fe
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::1 ea-bits-len 48 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
sw_interface_add_del_address sw_if_index 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_add_del_route 2001::/16 via 2001:0::2 sw_if_index 1
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:b4:0a:23
ip_add_del_route 0.0.0.0/0 via 10.0.0.2 sw_if_index 2
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.2 mac fa:16:3e:5d:55:fe
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::1 ea-bits-len 48 psid-offset 6 psid-len 8
map_del_domain index 0
exec show trace
exec show trace

DUT2:
exec show trace
exec show trace
exec show trace
bug: vpp-318
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
map_add_domain ip4-pfx 20.169.0.0/16 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::1 ea-bits-len 20 psid-offset 6 psid-len 8
exec show trace

DUT2:
exec show trace

8.3.22.3. eth2p-ethip4–ethip6ip4-ip4base–ip6base-swiremapt-func

Test for Basic mapping rule for MAP-T

  • [Top] Network Topologies: TG - DUT1 - TG with two links between the nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-UDP on TG-to-DUT-if1. Eth-IPv6-UDP on TG-to-DUT-if2.
  • [Cfg] DUT configuration: DUT is configured with IPv4 on one DUT-to-TG interface and IPv6 address on second DUT-to-TG interface. MAP-T domain is configured in test template based on test parameters.
  • [Ver] TG verification: UDP packets in IPv4 are sent by TG to destination in MAP domain. IPv6 packets with translated IPv4 addresses are received on TG interface.
  • [Ref] Applicable standard specifications: RFC7599
Name VPP API Test (VAT) Commands History - Commands Used Per Test Case
tc01: map-t test
 DUT1:  
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
sw_interface_add_del_address sw_if_index 2 10.0.0.1/24
sw_interface_add_del_address sw_if_index 1 2001:0::1/64
ip_add_del_route ::/0 via 2001:0::2 sw_if_index 1
ip_neighbor_add_del sw_if_index 1 dst 2001:0::2 mac fa:16:3e:b4:0a:23
ip_add_del_route 0.0.0.0/0 via 10.0.0.2 sw_if_index 2
ip_neighbor_add_del sw_if_index 2 dst 10.0.0.2 mac fa:16:3e:5d:55:fe
map_add_domain ip4-pfx 20.169.0.0/16 ip6-pfx 2001::/16 ip6-src 2001:db8:ffff::/96 ea-bits-len 40 psid-offset 0 psid-len 0 map-t
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.169.201.219/32 ip6-pfx 2001:db8::/32 ip6-src 2001:db8:ffff::/96 ea-bits-len 0 psid-offset 0 psid-len 0 map-t
map_del_domain index 0
exec show trace
map_add_domain ip4-pfx 20.0.0.0/8 ip6-pfx 2001:db8::/40 ip6-src 2001:db8:ffff::/96 ea-bits-len 24 psid-offset 0 psid-len 0 map-t
map_del_domain index 0
exec show trace
exec show trace

DUT2:
exec show trace
exec show trace
exec show trace
exec show trace

8.3.23. vxlan

8.3.23.1. 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
sw_interface_set_flags sw_if_index 3 admin-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
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:2a:6a:63
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
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
sw_interface_set_flags sw_if_index 3 admin-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
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:15:1b:c9
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
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

8.3.23.2. 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
sw_interface_set_flags sw_if_index 3 admin-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:2a:6a:63
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
sw_interface_set_flags sw_if_index 3 admin-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:15:1b:c9
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

8.3.23.3. 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
sw_interface_set_flags sw_if_index 3 admin-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:2a:6a:63
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:15:1b:c9
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
sw_interface_set_flags sw_if_index 5 admin-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

8.3.23.4. 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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 6 admin-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
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
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
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
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 6 admin-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
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
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
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
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 6 admin-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
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
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
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
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 6 admin-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
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
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
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
sw_interface_set_l2_bridge sw_if_index 6 bd_id 30 shg 0 enable
exec show trace

8.3.23.4.1. ip6

8.3.24. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 3ffe:63::2 mac fa:16:3e:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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

8.3.25. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 3ffe:63::2 mac fa:16:3e:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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

8.3.26. 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:  
want_stats enable
dump_stats_table
dump_stats_table
dump_stats_table
dump_stats_table
dump_stats_table
dump_stats_table
dump_stats_table
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

8.3.27. 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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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:b4:0a:23
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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

8.3.28. 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
sw_interface_set_flags sw_if_index 1 admin-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:b4:0a:23
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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

8.3.29. 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
sw_interface_set_flags sw_if_index 1 admin-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

8.3.30. 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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
exec show trace

8.3.31. 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
sw_interface_set_flags sw_if_index 1 admin-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:b4:0a:23
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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
sw_interface_set_flags sw_if_index 1 admin-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:b4:0a:23
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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
sw_interface_set_flags sw_if_index 1 admin-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:b4:0a:23
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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
sw_interface_set_flags sw_if_index 1 admin-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:b4:0a:23
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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

8.3.32. 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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:5d:55:fe
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:ca:1c:05
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:a0:8c:b7
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:85:c0:96
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:15:1b:c9
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:5d:55:fe
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:ca:1c:05
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:a0:8c:b7
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:85:c0:96
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:15:1b:c9
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:5d:55:fe
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:ca:1c:05
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:a0:8c:b7
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:85:c0:96
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:15:1b:c9
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:5d:55:fe
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:ca:1c:05
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:a0:8c:b7
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:85:c0:96
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:15:1b:c9
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:5d:55:fe
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:ca:1c:05
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:a0:8c:b7
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:85:c0:96
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:15:1b:c9
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:5d:55:fe
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:ca:1c:05
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:a0:8c:b7
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:85:c0:96
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:15:1b:c9
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:5d:55:fe
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:ca:1c:05
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:a0:8c:b7
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:85:c0:96
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:15:1b:c9
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:5d:55:fe
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:ca:1c:05
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:a0:8c:b7
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:85:c0:96
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:15:1b:c9
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:5d:55:fe
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:ca:1c:05
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:a0:8c:b7
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:85:c0:96
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:15:1b:c9
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:5d:55:fe
ip_neighbor_add_del sw_if_index 4 dst 2002:62::3 mac fa:16:3e:ca:1c:05
ip_neighbor_add_del sw_if_index 1 dst 2001:62::2 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 2002:62::4 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_set_flags sw_if_index 3 admin-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:a0:8c:b7
ip_neighbor_add_del sw_if_index 4 dst 2002:62::1 mac fa:16:3e:85:c0:96
ip_neighbor_add_del sw_if_index 1 dst 2003:62::2 mac fa:16:3e:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 2002:62::2 mac fa:16:3e:15:1b:c9
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

8.3.33. lisp

8.3.33.1. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:2a:6a:63
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:15:1b:c9
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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

8.3.33.2. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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:2a:6a:63
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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:15:1b:c9
exec show trace

8.3.33.3. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:2a:6a:63
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:15:1b:c9
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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

8.3.33.4. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:2a:6a:63
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:15:1b:c9
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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

8.3.34. vxlan

8.3.34.1. 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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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

8.3.34.2. 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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 6 admin-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
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
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
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
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 6 admin-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
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
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
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
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 6 admin-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
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
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
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
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 6 admin-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
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
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
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
sw_interface_set_l2_bridge sw_if_index 6 bd_id 30 shg 0 enable
exec show trace

8.3.34.2.1. l2bd

8.3.35. 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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
exec show trace

8.3.36. 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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
exec show trace

8.3.37. 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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
exec show trace

8.3.38. 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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
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
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
exec show trace

8.3.39. 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
sw_interface_set_flags sw_if_index 1 admin-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
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
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
sw_interface_set_flags sw_if_index 3 admin-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
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
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
sw_interface_set_flags sw_if_index 3 admin-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
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
sw_interface_set_l2_bridge sw_if_index 3 bd_id 2 shg 0 enable
exec show trace

8.3.40. 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
sw_interface_set_flags sw_if_index 3 admin-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
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
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
l2fib_add_del mac fa:16:3e:b4:0a:23 bd_id 1 sw_if_index 1
l2fib_add_del mac fa:16:3e:2b:9c:a9 bd_id 1 sw_if_index 3
exec show trace

DUT2:
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 3 admin-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
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
sw_interface_set_l2_bridge sw_if_index 3 bd_id 2 shg 0 enable
l2fib_add_del mac fa:16:3e:b4:0a:23 bd_id 2 sw_if_index 3
l2fib_add_del mac fa:16:3e:2b:9c:a9 bd_id 2 sw_if_index 1
exec show trace

8.3.41. 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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 3 admin-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
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
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
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 3 admin-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
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
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
sw_interface_set_l2_bridge sw_if_index 3 bd_id 2 shg 0 enable
exec show trace

8.3.42. 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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
l2_interface_vlan_tag_rewrite sw_if_index 5 pop-1
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
l2_interface_vlan_tag_rewrite sw_if_index 5 pop-1
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
l2_interface_vlan_tag_rewrite sw_if_index 5 pop-1
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
l2_interface_vlan_tag_rewrite sw_if_index 5 pop-1
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 5 admin-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

8.3.43. 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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
l2_interface_vlan_tag_rewrite sw_if_index 5 pop-2
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
l2_interface_vlan_tag_rewrite sw_if_index 5 pop-2
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 5 admin-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

8.3.44. 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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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

8.3.45. 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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
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
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
sw_interface_set_flags sw_if_index 5 admin-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

8.3.46. 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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
l2_interface_vlan_tag_rewrite sw_if_index 5 translate-1-1 tag1 120
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
l2_interface_vlan_tag_rewrite sw_if_index 5 pop-1
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
l2_interface_vlan_tag_rewrite sw_if_index 5 translate-1-1 tag1 150
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
l2_interface_vlan_tag_rewrite sw_if_index 5 pop-1
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
l2_interface_vlan_tag_rewrite sw_if_index 5 translate-1-1 tag1 120
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
l2_interface_vlan_tag_rewrite sw_if_index 5 pop-1
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
l2_interface_vlan_tag_rewrite sw_if_index 5 translate-1-1 tag1 150
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
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
l2_interface_vlan_tag_rewrite sw_if_index 5 pop-1
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 5 admin-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

8.3.47. 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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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

8.3.48. 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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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:b4:0a:23
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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:2b:9c:a9
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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:b4:0a:23
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:b4:0a:23
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_set_flags sw_if_index 1 admin-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

8.3.49. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 192.168.2.1 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
exec show trace

8.3.50. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
exec show trace

8.3.51. 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
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 1 admin-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:5d:55:fe
sw_interface_span_enable_disable src_sw_if_index 2 dst_sw_if_index 1
exec show trace

DUT2:
exec show trace

8.3.52. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 1 dst 12::10 mac fa:16:3e:b4:0a:23
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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 1 dst 12::10 mac fa:16:3e:b4:0a:23
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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 1 dst 12::10 mac fa:16:3e:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 11::10 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 1 dst 12::10 mac fa:16:3e:b4:0a:23
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
exec show trace

8.3.53. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 1 dst 12::10 mac fa:16:3e:b4:0a:23
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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 1 dst 12::10 mac fa:16:3e:b4:0a:23
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
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_dump
exec show trace

8.3.54. 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
sw_interface_set_flags sw_if_index 1 admin-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:5d:55:fe
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

8.3.55. ip4

8.3.55.1. 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
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 6 admin-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:1e:9e:b8:14
ip_neighbor_add_del sw_if_index 1 dst 10.0.3.2 mac fa:16:3e:b4:0a:23
exec show trace

DUT2:
exec show trace

8.3.55.2. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 6 admin-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
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
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 6d304f32554e475143674a70314c4761 integ_alg sha1-96 integ_key 5448694d6e5643685743745a7354555a68507a4d
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 6d304f32554e475143674a70314c4761 integ_alg sha1-96 integ_key 5448694d6e5643685743745a7354555a68507a4d
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:15:1b:c9
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 6d304f32554e475143674a70314c4761 integ_alg sha1-96 integ_key 5448694d6e5643685743745a7354555a68507a4d
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 6d304f32554e475143674a70314c4761 integ_alg sha1-96 integ_key 5448694d6e5643685743745a7354555a68507a4d
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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 6 admin-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
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
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 5430696e53593242536b5055414d5079 integ_alg sha1-96 integ_key 764e71314a7751546e7550734c5469695a4e5964
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 5430696e53593242536b5055414d5079 integ_alg sha1-96 integ_key 764e71314a7751546e7550734c5469695a4e5964
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:15:1b:c9
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 5430696e53593242536b5055414d5079 integ_alg sha1-96 integ_key 764e71314a7751546e7550734c5469695a4e5964
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 5430696e53593242536b5055414d5079 integ_alg sha1-96 integ_key 764e71314a7751546e7550734c5469695a4e5964
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

8.3.55.3. 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
sw_interface_set_flags sw_if_index 3 admin-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:2a:6a:63
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:b4:0a:23
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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
sw_interface_set_flags sw_if_index 8 admin-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
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
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 476b3154684949667148486978373334 integ_alg sha1-96 integ_key 4669454a3456436532594571514a48394d33675a
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 476b3154684949667148486978373334 integ_alg sha1-96 integ_key 4669454a3456436532594571514a48394d33675a
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:15:1b:c9
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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 476b3154684949667148486978373334 integ_alg sha1-96 integ_key 4669454a3456436532594571514a48394d33675a
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 476b3154684949667148486978373334 integ_alg sha1-96 integ_key 4669454a3456436532594571514a48394d33675a
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
sw_interface_set_flags sw_if_index 3 admin-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:2a:6a:63
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:b4:0a:23
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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
sw_interface_set_flags sw_if_index 8 admin-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
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
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 3672704a62494b7468364752554c706a integ_alg sha1-96 integ_key 54323330457a6c436c5a68537838445871586758
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 3672704a62494b7468364752554c706a integ_alg sha1-96 integ_key 54323330457a6c436c5a68537838445871586758
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:15:1b:c9
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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 3672704a62494b7468364752554c706a integ_alg sha1-96 integ_key 54323330457a6c436c5a68537838445871586758
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 3672704a62494b7468364752554c706a integ_alg sha1-96 integ_key 54323330457a6c436c5a68537838445871586758
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

8.3.55.4. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.2 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 8 admin-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
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
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.1 mac fa:16:3e:15:1b:c9
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

8.3.55.5. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.2 mac fa:16:3e:2a:6a:63
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
sw_interface_set_flags sw_if_index 9 admin-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
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
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.1 mac fa:16:3e:15:1b:c9
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

8.3.55.6. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.2 mac fa:16:3e:2a:6a:63
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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/24
sw_interface_set_flags sw_if_index 7 admin-up
sw_interface_set_flags sw_if_index 8 admin-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
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
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.1 mac fa:16:3e:15:1b:c9
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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

8.3.56. ip6

8.3.56.1. 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
sw_interface_set_flags sw_if_index 3 admin-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:2a:6a:63
ip_neighbor_add_del sw_if_index 1 dst 6.0.1.2 mac fa:16:3e:b4:0a:23
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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
sw_interface_set_flags sw_if_index 8 admin-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
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
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 6f4375355564754342516f47675a5736 integ_alg sha1-96 integ_key 6c334e365469354479455256434164314e45746e
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 6f4375355564754342516f47675a5736 integ_alg sha1-96 integ_key 6c334e365469354479455256434164314e45746e
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:15:1b:c9
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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 6f4375355564754342516f47675a5736 integ_alg sha1-96 integ_key 6c334e365469354479455256434164314e45746e
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 6f4375355564754342516f47675a5736 integ_alg sha1-96 integ_key 6c334e365469354479455256434164314e45746e
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
sw_interface_set_flags sw_if_index 3 admin-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:2a:6a:63
ip_neighbor_add_del sw_if_index 1 dst 6.0.1.2 mac fa:16:3e:b4:0a:23
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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
sw_interface_set_flags sw_if_index 8 admin-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
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
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 59684957785966724e4234555063314d integ_alg sha1-96 integ_key 4445424e44436c6a6d326c5858536c7276516e50
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 59684957785966724e4234555063314d integ_alg sha1-96 integ_key 4445424e44436c6a6d326c5858536c7276516e50
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:15:1b:c9
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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 59684957785966724e4234555063314d integ_alg sha1-96 integ_key 4445424e44436c6a6d326c5858536c7276516e50
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 59684957785966724e4234555063314d integ_alg sha1-96 integ_key 4445424e44436c6a6d326c5858536c7276516e50
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

8.3.56.2. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:2a:6a:63
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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
sw_interface_set_flags sw_if_index 6 admin-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
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
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 427467703438696c4c6132666e4a586b integ_alg sha1-96 integ_key 4a713956347556596b736d48576961435531765a
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 427467703438696c4c6132666e4a586b integ_alg sha1-96 integ_key 4a713956347556596b736d48576961435531765a
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:15:1b:c9
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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 427467703438696c4c6132666e4a586b integ_alg sha1-96 integ_key 4a713956347556596b736d48576961435531765a
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 427467703438696c4c6132666e4a586b integ_alg sha1-96 integ_key 4a713956347556596b736d48576961435531765a
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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:2a:6a:63
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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
sw_interface_set_flags sw_if_index 6 admin-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
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
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 696b49795a78574367706c7969677674 integ_alg sha1-96 integ_key 317158705132684a393579564779666879436770
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 696b49795a78574367706c7969677674 integ_alg sha1-96 integ_key 317158705132684a393579564779666879436770
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:15:1b:c9
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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 696b49795a78574367706c7969677674 integ_alg sha1-96 integ_key 317158705132684a393579564779666879436770
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 696b49795a78574367706c7969677674 integ_alg sha1-96 integ_key 317158705132684a393579564779666879436770
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

8.3.56.3. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:2a:6a:63
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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
sw_interface_set_flags sw_if_index 8 admin-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
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
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:15:1b:c9
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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

8.3.56.4. 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
sw_interface_set_flags sw_if_index 3 admin-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:b4:0a:23
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:2a:6a:63
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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
sw_interface_set_flags sw_if_index 9 admin-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
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
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
sw_interface_set_flags sw_if_index 3 admin-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:2b:9c:a9
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:15:1b:c9
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_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

8.3.57. l2bd

8.3.57.1. 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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 8 admin-up
sw_interface_set_flags sw_if_index 5 admin-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
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
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
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
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_dump
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
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
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
sw_interface_set_flags sw_if_index 8 admin-up
sw_interface_set_flags sw_if_index 5 admin-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
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
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
sw_interface_set_l2_bridge sw_if_index 8 bd_id 2 shg 0 enable
exec show trace

DUT2:
exec show trace

8.3.57.2. 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
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
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
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
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
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
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
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
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
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
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
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
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
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
sw_interface_set_l2_bridge sw_if_index 8 bd_id 24 shg 0 enable
exec show trace

8.3.57.3. 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
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 6 admin-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
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
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
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
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
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 6 admin-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
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
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
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
sw_interface_set_l2_bridge sw_if_index 6 bd_id 2 shg 0 enable
exec show trace

DUT2:
exec show trace

8.3.57.4. 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
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 6 admin-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
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
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
l2fib_add_del mac fa:16:3e:5d:55:fe bd_id 1 sw_if_index 2
l2fib_add_del mac fa:16:3e:b4:0a:23 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
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
sw_interface_set_l2_bridge sw_if_index 6 bd_id 2 shg 0 enable
l2fib_add_del mac fa:16:3e:b4:0a:23 bd_id 2 sw_if_index 1
l2fib_add_del mac fa:16:3e:5d:55:fe 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
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 6 admin-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
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
sw_interface_set_l2_bridge sw_if_index 5 bd_id 1 shg 0 enable
l2fib_add_del mac fa:16:3e:5d:55:fe bd_id 1 sw_if_index 2
l2fib_add_del mac fa:16:3e:b4:0a:23 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
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
sw_interface_set_l2_bridge sw_if_index 6 bd_id 2 shg 0 enable
l2fib_add_del mac fa:16:3e:b4:0a:23 bd_id 2 sw_if_index 1
l2fib_add_del mac fa:16:3e:5d:55:fe bd_id 2 sw_if_index 6
exec show trace

DUT2:
exec show trace

8.3.57.5. 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
sw_interface_set_flags sw_if_index 1 admin-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:5d:55:fe
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
sw_interface_set_flags sw_if_index 6 admin-up
sw_interface_set_flags sw_if_index 7 admin-up
sw_interface_set_flags sw_if_index 8 admin-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
sw_interface_set_flags sw_if_index 10 admin-up
sw_interface_set_flags sw_if_index 11 admin-up
sw_interface_set_flags sw_if_index 12 admin-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
sw_interface_set_flags sw_if_index 1 admin-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:5d:55:fe
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
sw_interface_set_flags sw_if_index 6 admin-up
sw_interface_set_flags sw_if_index 7 admin-up
sw_interface_set_flags sw_if_index 8 admin-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
sw_interface_set_flags sw_if_index 10 admin-up
sw_interface_set_flags sw_if_index 11 admin-up
sw_interface_set_flags sw_if_index 12 admin-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
sw_interface_set_flags sw_if_index 1 admin-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:5d:55:fe
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
sw_interface_set_flags sw_if_index 6 admin-up
sw_interface_set_flags sw_if_index 7 admin-up
sw_interface_set_flags sw_if_index 8 admin-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
sw_interface_set_flags sw_if_index 10 admin-up
sw_interface_set_flags sw_if_index 11 admin-up
sw_interface_set_flags sw_if_index 12 admin-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

8.3.57.6. 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
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
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
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
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
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
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
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
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
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
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
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
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
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
sw_interface_set_l2_bridge sw_if_index 8 bd_id 24 shg 0 enable
exec show trace

8.3.57.7. 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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 6 admin-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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 6 admin-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

8.3.57.8. 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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 6 admin-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
sw_interface_set_flags sw_if_index 3 admin-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
sw_interface_set_flags sw_if_index 6 admin-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

8.3.58. l2xc

8.3.58.1. 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
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 6 admin-up
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 6 admin-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
sw_interface_set_flags sw_if_index 1 admin-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
sw_interface_set_flags sw_if_index 6 admin-up
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_set_flags sw_if_index 5 admin-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
sw_interface_set_flags sw_if_index 6 admin-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