8.2.10. LISP Overlay Tunnels

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

DUT2:
no VAT command executed
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

DUT2:
no VAT command executed
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

DUT2:
no VAT command executed
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

DUT2:
no VAT command executed
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

DUT2:
no VAT command executed

8.2.10.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
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:8c:0b:8f
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:d9:0d:a5
create_vhost_user_if socket /tmp/sock1
create_vhost_user_if socket /tmp/sock2
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 544c6b59553449733546766b4641714a integ_alg sha1-96 integ_key 4a7557514b6c4d684a53674776414a5350447978
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 544c6b59553449733546766b4641714a integ_alg sha1-96 integ_key 4a7557514b6c4d684a53674776414a5350447978
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

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_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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:67:a3:48
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 544c6b59553449733546766b4641714a integ_alg sha1-96 integ_key 4a7557514b6c4d684a53674776414a5350447978
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 544c6b59553449733546766b4641714a integ_alg sha1-96 integ_key 4a7557514b6c4d684a53674776414a5350447978
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
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_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:8c:0b:8f
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:d9:0d:a5
create_vhost_user_if socket /tmp/sock1
create_vhost_user_if socket /tmp/sock2
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 46494b526a5a4c6350473844546a5650 integ_alg sha1-96 integ_key 52653059394b4b4b75714d76334e7243424f474e
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 46494b526a5a4c6350473844546a5650 integ_alg sha1-96 integ_key 52653059394b4b4b75714d76334e7243424f474e
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

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_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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:67:a3:48
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 46494b526a5a4c6350473844546a5650 integ_alg sha1-96 integ_key 52653059394b4b4b75714d76334e7243424f474e
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 46494b526a5a4c6350473844546a5650 integ_alg sha1-96 integ_key 52653059394b4b4b75714d76334e7243424f474e
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

8.2.10.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
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:8c:0b:8f
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:d9:0d:a5
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 7a37343572565259527055737a4f6b6b integ_alg sha1-96 integ_key 7946324c6239424f667933307337596d48553071
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 7a37343572565259527055737a4f6b6b integ_alg sha1-96 integ_key 7946324c6239424f667933307337596d48553071
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

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_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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:67:a3:48
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 7a37343572565259527055737a4f6b6b integ_alg sha1-96 integ_key 7946324c6239424f667933307337596d48553071
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 7a37343572565259527055737a4f6b6b integ_alg sha1-96 integ_key 7946324c6239424f667933307337596d48553071
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
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
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:8c:0b:8f
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:d9:0d:a5
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 41505557347476573244387158644a4b integ_alg sha1-96 integ_key 5141424a456b6b536f694e36435046736b355745
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 41505557347476573244387158644a4b integ_alg sha1-96 integ_key 5141424a456b6b536f694e36435046736b355745
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

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_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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:67:a3:48
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 41505557347476573244387158644a4b integ_alg sha1-96 integ_key 5141424a456b6b536f694e36435046736b355745
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 41505557347476573244387158644a4b integ_alg sha1-96 integ_key 5141424a456b6b536f694e36435046736b355745
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
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
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:8c:0b:8f
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:d9:0d:a5
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 7770534d723730456a385144694a6173 integ_alg sha1-96 integ_key 3676334258576162484b447251727039566d464b
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 7770534d723730456a385144694a6173 integ_alg sha1-96 integ_key 3676334258576162484b447251727039566d464b
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

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_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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:67:a3:48
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 7770534d723730456a385144694a6173 integ_alg sha1-96 integ_key 3676334258576162484b447251727039566d464b
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 7770534d723730456a385144694a6173 integ_alg sha1-96 integ_key 3676334258576162484b447251727039566d464b
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
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
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:8c:0b:8f
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.2 mac fa:16:3e:d9:0d:a5
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 4d535257336d4a7956334b51794c4653 integ_alg sha1-96 integ_key 49684d7a6e717967627441614d3935504d764b31
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 4d535257336d4a7956334b51794c4653 integ_alg sha1-96 integ_key 49684d7a6e717967627441614d3935504d764b31
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

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_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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:67:a3:48
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 4d535257336d4a7956334b51794c4653 integ_alg sha1-96 integ_key 49684d7a6e717967627441614d3935504d764b31
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 4d535257336d4a7956334b51794c4653 integ_alg sha1-96 integ_key 49684d7a6e717967627441614d3935504d764b31
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

8.2.10.4. 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:d9:0d:a5
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:8c:0b:8f
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
create_vhost_user_if socket /tmp/sock2
sw_interface_add_del_address sw_if_index 8 2001:cdba:1::3/64
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 784c77517674673044706c6a7551396f integ_alg sha1-96 integ_key 6951497759516c445a72673848365a4a46706c4d
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 784c77517674673044706c6a7551396f integ_alg sha1-96 integ_key 6951497759516c445a72673848365a4a46706c4d
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

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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:67:a3:48
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 784c77517674673044706c6a7551396f integ_alg sha1-96 integ_key 6951497759516c445a72673848365a4a46706c4d
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 784c77517674673044706c6a7551396f integ_alg sha1-96 integ_key 6951497759516c445a72673848365a4a46706c4d
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
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:d9:0d:a5
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:8c:0b:8f
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
create_vhost_user_if socket /tmp/sock2
sw_interface_add_del_address sw_if_index 8 2001:cdba:1::3/64
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 72684450523446366732694e5a5a594f integ_alg sha1-96 integ_key 485157735a736f7962516f34384c585379543661
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 72684450523446366732694e5a5a594f integ_alg sha1-96 integ_key 485157735a736f7962516f34384c585379543661
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

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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:67:a3:48
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 72684450523446366732694e5a5a594f integ_alg sha1-96 integ_key 485157735a736f7962516f34384c585379543661
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 72684450523446366732694e5a5a594f integ_alg sha1-96 integ_key 485157735a736f7962516f34384c585379543661
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

8.2.10.5. 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:d9:0d:a5
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:8c:0b:8f
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 344141376d7658516a465359446b3841 integ_alg sha1-96 integ_key 64566c6a38547443446d4e75386e555334575678
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 344141376d7658516a465359446b3841 integ_alg sha1-96 integ_key 64566c6a38547443446d4e75386e555334575678
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

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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:67:a3:48
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 344141376d7658516a465359446b3841 integ_alg sha1-96 integ_key 64566c6a38547443446d4e75386e555334575678
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 344141376d7658516a465359446b3841 integ_alg sha1-96 integ_key 64566c6a38547443446d4e75386e555334575678
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
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:d9:0d:a5
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:8c:0b:8f
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 685452786d55444258676f7437766746 integ_alg sha1-96 integ_key 4245466d7754497171474878775631576f676e52
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 685452786d55444258676f7437766746 integ_alg sha1-96 integ_key 4245466d7754497171474878775631576f676e52
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

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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:67:a3:48
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 685452786d55444258676f7437766746 integ_alg sha1-96 integ_key 4245466d7754497171474878775631576f676e52
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 685452786d55444258676f7437766746 integ_alg sha1-96 integ_key 4245466d7754497171474878775631576f676e52
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

8.2.10.6. 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
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 647a4c525552686a705a687446424e6f integ_alg sha1-96 integ_key 4d71623666615a6568777367387031597656454e
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 647a4c525552686a705a687446424e6f integ_alg sha1-96 integ_key 4d71623666615a6568777367387031597656454e
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:d9:0d:a5
ip_neighbor_add_del sw_if_index 1 dst 2001:cdba:1::2 mac fa:16:3e:8c:0b:8f
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

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_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 647a4c525552686a705a687446424e6f integ_alg sha1-96 integ_key 4d71623666615a6568777367387031597656454e
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 647a4c525552686a705a687446424e6f integ_alg sha1-96 integ_key 4d71623666615a6568777367387031597656454e
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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 6.6.3.1 mac fa:16:3e:67:a3:48
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

8.2.10.7. 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:8c:0b:8f
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

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:f7:92:c8
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

8.2.10.8. 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:8c:0b:8f
ip_neighbor_add_del sw_if_index 3 dst 10.0.3.2 mac fa:16:3e:d9:0d:a5
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

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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 10.0.3.1 mac fa:16:3e:67:a3:48
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

8.2.10.9. 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:8c:0b:8f
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.2 mac fa:16:3e:d9:0d:a5
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
create_vhost_user_if socket /tmp/sock2
sw_interface_set_table sw_if_index 8 vrf 0
sw_interface_add_del_address sw_if_index 8 6.0.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

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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.1 mac fa:16:3e:67:a3:48
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

8.2.10.10. 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:8c:0b:8f
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.2 mac fa:16:3e:d9:0d:a5
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

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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.1 mac fa:16:3e:67:a3:48
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

8.2.10.11. 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
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:8c:0b:8f
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.2 mac fa:16:3e:d9:0d:a5
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
create_vhost_user_if socket /tmp/sock2
sw_interface_set_table sw_if_index 9 vrf 1
sw_interface_add_del_address sw_if_index 9 6.0.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

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_table sw_if_index 1 vrf 1
ip_neighbor_add_del sw_if_index 1 dst 6.0.5.2 mac fa:16:3e:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.1 mac fa:16:3e:67:a3:48
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

8.2.10.12. 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
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:8c:0b:8f
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.2 mac fa:16:3e:d9:0d:a5
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

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_table sw_if_index 1 vrf 1
ip_neighbor_add_del sw_if_index 1 dst 6.0.5.2 mac fa:16:3e:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 6.0.4.1 mac fa:16:3e:67:a3:48
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

8.2.10.13. 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:8c:0b:8f
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.2 mac fa:16:3e:d9:0d:a5
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
create_vhost_user_if socket /tmp/sock2
sw_interface_add_del_address sw_if_index 8 6:0: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

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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.1 mac fa:16:3e:67:a3:48
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

8.2.10.14. 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:8c:0b:8f
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.2 mac fa:16:3e:d9:0d:a5
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:d9:0d:a5
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

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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.1 mac fa:16:3e:67:a3:48
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:67:a3:48

8.2.10.15. 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
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:8c:0b:8f
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.2 mac fa:16:3e:d9:0d:a5
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
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

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_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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 6.0.3.1 mac fa:16:3e:67:a3:48
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
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

8.2.10.16. 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:d9:0d:a5
ip_neighbor_add_del sw_if_index 1 dst 6.0.1.2 mac fa:16:3e:8c:0b:8f
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
create_vhost_user_if socket /tmp/sock2
sw_interface_add_del_address sw_if_index 8 6.0.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 386865467531485a4f6e384775384b47 integ_alg sha1-96 integ_key 547a3879544d4b5435776b3152574e674e704e55
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 386865467531485a4f6e384775384b47 integ_alg sha1-96 integ_key 547a3879544d4b5435776b3152574e674e704e55
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

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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:67:a3:48
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 386865467531485a4f6e384775384b47 integ_alg sha1-96 integ_key 547a3879544d4b5435776b3152574e674e704e55
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 386865467531485a4f6e384775384b47 integ_alg sha1-96 integ_key 547a3879544d4b5435776b3152574e674e704e55
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
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:d9:0d:a5
ip_neighbor_add_del sw_if_index 1 dst 6.0.1.2 mac fa:16:3e:8c:0b:8f
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
create_vhost_user_if socket /tmp/sock2
sw_interface_add_del_address sw_if_index 8 6.0.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 6144444b45505478677670795836464a integ_alg sha1-96 integ_key 67594f35366570516e4877754845627a77355867
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 6144444b45505478677670795836464a integ_alg sha1-96 integ_key 67594f35366570516e4877754845627a77355867
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

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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:67:a3:48
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 6144444b45505478677670795836464a integ_alg sha1-96 integ_key 67594f35366570516e4877754845627a77355867
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 6144444b45505478677670795836464a integ_alg sha1-96 integ_key 67594f35366570516e4877754845627a77355867
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

8.2.10.17. 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:d9:0d:a5
ip_neighbor_add_del sw_if_index 1 dst 6.0.1.2 mac fa:16:3e:8c:0b:8f
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 626d4251324f6847364146676e674b4d integ_alg sha1-96 integ_key 5a4273726d7561306f4f7a5750375a354851586b
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 626d4251324f6847364146676e674b4d integ_alg sha1-96 integ_key 5a4273726d7561306f4f7a5750375a354851586b
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

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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:67:a3:48
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 626d4251324f6847364146676e674b4d integ_alg sha1-96 integ_key 5a4273726d7561306f4f7a5750375a354851586b
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 626d4251324f6847364146676e674b4d integ_alg sha1-96 integ_key 5a4273726d7561306f4f7a5750375a354851586b
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
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:d9:0d:a5
ip_neighbor_add_del sw_if_index 1 dst 6.0.1.2 mac fa:16:3e:8c:0b:8f
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 55764c5a436a75655938704764344f36 integ_alg sha1-96 integ_key 5857496f643074486352315344674d5372596154
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 55764c5a436a75655938704764344f36 integ_alg sha1-96 integ_key 5857496f643074486352315344674d5372596154
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

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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:67:a3:48
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 55764c5a436a75655938704764344f36 integ_alg sha1-96 integ_key 5857496f643074486352315344674d5372596154
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 55764c5a436a75655938704764344f36 integ_alg sha1-96 integ_key 5857496f643074486352315344674d5372596154
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

8.2.10.18. 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:8c:0b:8f
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:d9:0d:a5
create_vhost_user_if socket /tmp/sock1
create_vhost_user_if socket /tmp/sock2
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
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 473266534f636438524c5155566c556c integ_alg sha1-96 integ_key 64745035436246576331675a6755436d49416b44
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 473266534f636438524c5155566c556c integ_alg sha1-96 integ_key 64745035436246576331675a6755436d49416b44
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

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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:67:a3:48
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 473266534f636438524c5155566c556c integ_alg sha1-96 integ_key 64745035436246576331675a6755436d49416b44
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 473266534f636438524c5155566c556c integ_alg sha1-96 integ_key 64745035436246576331675a6755436d49416b44
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
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:8c:0b:8f
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:d9:0d:a5
create_vhost_user_if socket /tmp/sock1
create_vhost_user_if socket /tmp/sock2
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
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 5a5366637976756b726f706749733639 integ_alg sha1-96 integ_key 7431774f5061466132363673444b6a6877584f30
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 5a5366637976756b726f706749733639 integ_alg sha1-96 integ_key 7431774f5061466132363673444b6a6877584f30
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

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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:67:a3:48
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 5a5366637976756b726f706749733639 integ_alg sha1-96 integ_key 7431774f5061466132363673444b6a6877584f30
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 5a5366637976756b726f706749733639 integ_alg sha1-96 integ_key 7431774f5061466132363673444b6a6877584f30
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

8.2.10.19. 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:8c:0b:8f
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:d9:0d:a5
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 75724e7951725a53565a4963537a3757 integ_alg sha1-96 integ_key 51723377763972594c4f4e4a6966527158324d4c
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 75724e7951725a53565a4963537a3757 integ_alg sha1-96 integ_key 51723377763972594c4f4e4a6966527158324d4c
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

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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:67:a3:48
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 75724e7951725a53565a4963537a3757 integ_alg sha1-96 integ_key 51723377763972594c4f4e4a6966527158324d4c
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 75724e7951725a53565a4963537a3757 integ_alg sha1-96 integ_key 51723377763972594c4f4e4a6966527158324d4c
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
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:8c:0b:8f
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:d9:0d:a5
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 716d4d36624c45376f764f685a447162 integ_alg sha1-96 integ_key 366438783272634d33326a77424d4e6f69395832
ipsec_sad_add_del_entry esp sad_id 20 spi 1000 crypto_alg aes-cbc-128 crypto_key 716d4d36624c45376f764f685a447162 integ_alg sha1-96 integ_key 366438783272634d33326a77424d4e6f69395832
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

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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:67:a3:48
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 716d4d36624c45376f764f685a447162 integ_alg sha1-96 integ_key 366438783272634d33326a77424d4e6f69395832
ipsec_sad_add_del_entry esp sad_id 20 spi 1001 crypto_alg aes-cbc-128 crypto_key 716d4d36624c45376f764f685a447162 integ_alg sha1-96 integ_key 366438783272634d33326a77424d4e6f69395832
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

8.2.10.20. 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:8c:0b:8f
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:d9:0d:a5
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

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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:67:a3:48
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

8.2.10.21. 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:8c:0b:8f
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:d9:0d:a5
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

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:f7:92:c8
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:67:a3:48

8.2.10.22. 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:8c:0b:8f
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:d9:0d:a5
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
create_vhost_user_if socket /tmp/sock2
sw_interface_set_table sw_if_index 8 vrf 0 ipv6
sw_interface_add_del_address sw_if_index 8 2001:cdba:1::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

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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:67:a3:48
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

8.2.10.23. 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:8c:0b:8f
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:d9:0d:a5
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

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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:67:a3:48
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

8.2.10.24. 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
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:8c:0b:8f
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:d9:0d:a5
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
create_vhost_user_if socket /tmp/sock2
sw_interface_set_table sw_if_index 9 vrf 1 ipv6
sw_interface_add_del_address sw_if_index 9 2001:cdba:1::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

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_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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:67:a3:48
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

8.2.10.25. 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
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:8c:0b:8f
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::2 mac fa:16:3e:d9:0d:a5
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

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_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:f7:92:c8
ip_neighbor_add_del sw_if_index 3 dst 2001:cdba:3::1 mac fa:16:3e:67:a3:48
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