device

container memif

eth2p-eth-l2bdbasemaclrn-eth-2memif-1dcr-dev

eth2p-eth-l2bdbasemaclrn-eth-2memif-1dcr-dev

L2 bridge-domain test cases with memif interface

  • [Top] Network Topologies: TG-DUT1-TG 2-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 for L2 switching of IPv4; Eth-IPv6-ICMPv6 for L2 switching of IPv6 use. Both apply to all links.
  • [Cfg] DUT configuration: DUT1 is configured with L2 bridge-domain switching. Container is connected to VPP via Memif interface. Container is running same VPP version as running on DUT.
  • [Ver] TG verification: Test ICMPv4 (or ICMPv6) Echo Request packets are sent in both directions by TG on links to DUT1 and via container; on receive TG verifies packets for correctness and their IPv4 (IPv6) src-addr, dst-addr and MAC addresses.pecifications:** RFC792
Name VPP API Test (VAT) Commands History - Commands Used Per Test Case
eth2p-ethip4-l2bdbase-eth-2memif-1dcr-device
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_dump
memif_socket_filename_add_del add id 1 filename /tmp/memif-DUT1_CNF1_96e6d7be-8a90-4af8-b9bd-5393979edb77-1
memif_create id 1 socket-id 1 slave
memif_dump
memif_dump
memif_socket_filename_add_del add id 2 filename /tmp/memif-DUT1_CNF1_96e6d7be-8a90-4af8-b9bd-5393979edb77-2
memif_create id 1 socket-id 2 slave
memif_dump
memif_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
bridge_domain_add_del bd_id 2 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 2 shg 0 enable
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 4 bd_id 2 shg 0 enable
exec show trace
eth2p-ethip6-l2bdbase-eth-2memif-1dcr-device
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_dump
memif_socket_filename_add_del add id 1 filename /tmp/memif-DUT1_CNF1_96e6d7be-8a90-4af8-b9bd-5393979edb77-1
memif_create id 1 socket-id 1 slave
memif_dump
memif_dump
memif_socket_filename_add_del add id 2 filename /tmp/memif-DUT1_CNF1_96e6d7be-8a90-4af8-b9bd-5393979edb77-2
memif_create id 1 socket-id 2 slave
memif_dump
memif_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
bridge_domain_add_del bd_id 2 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 2 shg 0 enable
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 4 bd_id 2 shg 0 enable
exec show trace

eth2p-eth-l2xcbase-eth-2memif-1dcr-dev

eth2p-eth-l2xcbase-eth-2memif-1dcr-dev

L2 cross-connect test cases with memif interface

  • [Top] Network Topologies: TG-DUT1-TG 2-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 for L2 switching of IPv4; Eth-IPv6-ICMPv6 for L2 switching of IPv6.
  • [Cfg] DUT configuration: DUT1 is configured with L2 cross-connect (L2XC) switching. Container is connected to VPP via Memif interface. Container is running same VPP version as running on DUT.
  • [Ver] TG verification: Test ICMPv4 (or ICMPv6) Echo Request packets are sent in both directions by TG on links to DUT1 and via container; on receive TG verifies packets for correctness and their IPv4 (IPv6) src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC792
Name VPP API Test (VAT) Commands History - Commands Used Per Test Case
eth2p-ethip4-l2xcbase-eth-2memif-1dcr-device
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_dump
memif_socket_filename_add_del add id 1 filename /tmp/memif-DUT1_CNF1_96e6d7be-8a90-4af8-b9bd-5393979edb77-1
memif_create id 1 socket-id 1 slave
memif_dump
memif_dump
memif_socket_filename_add_del add id 2 filename /tmp/memif-DUT1_CNF1_96e6d7be-8a90-4af8-b9bd-5393979edb77-2
memif_create id 1 socket-id 2 slave
memif_dump
memif_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_xconnect rx_sw_if_index 1 tx_sw_if_index 3
sw_interface_set_l2_xconnect rx_sw_if_index 3 tx_sw_if_index 1
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_l2_xconnect rx_sw_if_index 2 tx_sw_if_index 4
sw_interface_set_l2_xconnect rx_sw_if_index 4 tx_sw_if_index 2
exec show trace
eth2p-ethip6-l2xcbase-eth-2memif-1dcr-device
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_dump
memif_socket_filename_add_del add id 1 filename /tmp/memif-DUT1_CNF1_96e6d7be-8a90-4af8-b9bd-5393979edb77-1
memif_create id 1 socket-id 1 slave
memif_dump
memif_dump
memif_socket_filename_add_del add id 2 filename /tmp/memif-DUT1_CNF1_96e6d7be-8a90-4af8-b9bd-5393979edb77-2
memif_create id 1 socket-id 2 slave
memif_dump
memif_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_xconnect rx_sw_if_index 1 tx_sw_if_index 3
sw_interface_set_l2_xconnect rx_sw_if_index 3 tx_sw_if_index 1
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_l2_xconnect rx_sw_if_index 2 tx_sw_if_index 4
sw_interface_set_l2_xconnect rx_sw_if_index 4 tx_sw_if_index 2
exec show trace

eth2p-ethip4-ip4base-eth-2memif-1dcr-dev

eth2p-ethip4-ip4base-eth-2memif-1dcr-dev

IPv4 routing test cases with memif interface

  • [Top] Network Topologies: TG-DUT1-TG 2-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 for IPv4 routing on both links.
  • [Cfg] DUT configuration: DUT1 is configured with IPv4 routing and two static IPv4 /24 route entries. Container is connected to VPP via Memif interface. Container is running same VPP version as running on DUT.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent in one direction by TG on links to DUT1 and via container; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC791, RFC826, RFC792
Name VPP API Test (VAT) Commands History - Commands Used Per Test Case
eth2p-ethip4-ip4base-eth-2memif-1dcr-device
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_dump
memif_socket_filename_add_del add id 1 filename /tmp/memif-DUT1_CNF1_96e6d7be-8a90-4af8-b9bd-5393979edb77-1
memif_create id 1 socket-id 1 slave
memif_dump
memif_dump
memif_socket_filename_add_del add id 2 filename /tmp/memif-DUT1_CNF1_96e6d7be-8a90-4af8-b9bd-5393979edb77-2
memif_create id 1 socket-id 2 slave
memif_dump
memif_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
ip_table_add_del table 20
sw_interface_set_table sw_if_index 4 vrf 20
sw_interface_set_table sw_if_index 2 vrf 20
sw_interface_add_del_address sw_if_index 1 10.0.1.1/24
sw_interface_add_del_address sw_if_index 3 10.0.2.1/24
sw_interface_add_del_address sw_if_index 4 10.0.2.2/24
sw_interface_add_del_address sw_if_index 2 10.0.3.1/24
ip_add_del_route 10.0.3.0/24 via 10.0.2.2 sw_if_index 3
ip_add_del_route 10.0.1.0/24 via 10.0.2.1 vrf 20 sw_if_index 4
ip_neighbor_add_del sw_if_index 3 dst 10.0.2.2 mac 02:fe:77:1a:56:01
ip_neighbor_add_del sw_if_index 2 dst 10.0.3.2 mac ba:dc:0f:fe:00:01
exec show trace

eth2p-ethip6-ip6base-eth-2memif-1dcr-dev

eth2p-ethip6-ip6base-eth-2memif-1dcr-dev

IPv4 routing test cases with memif interface

  • [Top] Network Topologies: TG-DUT1-TG 2-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv6-ICMPv6 for IPv6 routing on both links.
  • [Cfg] DUT configuration: DUT1 is configured with IPv6 routing and two static IPv6 /64 route entries. Container is connected to VPP via Memif interface. Container is running same VPP version as running on DUT.
  • [Ver] TG verification: Test ICMPv6 Echo Request packets are sent in one direction by TG on links to DUT1 and via container; on receive TG verifies packets for correctness and their IPv6 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC791, RFC826, RFC792
Name VPP API Test (VAT) Commands History - Commands Used Per Test Case
eth2p-ethip6-ip6base-eth-2memif-1dcr-device
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_dump
memif_socket_filename_add_del add id 1 filename /tmp/memif-DUT1_CNF1_96e6d7be-8a90-4af8-b9bd-5393979edb77-1
memif_create id 1 socket-id 1 slave
memif_dump
memif_dump
memif_socket_filename_add_del add id 2 filename /tmp/memif-DUT1_CNF1_96e6d7be-8a90-4af8-b9bd-5393979edb77-2
memif_create id 1 socket-id 2 slave
memif_dump
memif_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
ip_table_add_del table 20
sw_interface_set_table sw_if_index 4 vrf 20
sw_interface_set_table sw_if_index 2 vrf 20
sw_interface_add_del_address sw_if_index 1 2001:1::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 3 2001:2::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 4 2001:2::2/64
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_add_del_address sw_if_index 2 2001:3::1/64
sw_interface_set_flags sw_if_index 2 admin-up
ip_add_del_route 2001:3::0/64 via 2001:2::2 sw_if_index 3
ip_add_del_route 2001:1::0/64 via 2001:2::1 vrf 20 sw_if_index 4
ip_neighbor_add_del sw_if_index 3 dst 2001:2::2 mac 02:fe:7b:32:92:57
ip_neighbor_add_del sw_if_index 2 dst 2001:3::2 mac ba:dc:0f:fe:00:01
exec show trace

ip4

eth2p-ethip4-ip4base-dev

eth2p-ethip4-ip4base-dev

IPv4 routing test cases

  • [Top] Network Topologies: TG-DUT1-TG 2-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 for IPv4 routing on both links.
  • [Cfg] DUT configuration: DUT1 is configured with IPv4 routing and two static IPv4 /24 route entries.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent in one direction by TG on links to DUT1; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC791, RFC826, RFC792
Name VPP API Test (VAT) Commands History - Commands Used Per Test Case
eth2p-ethicmpv4-ip4base-device_echo-req-to-dut-ingress-interface
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_dump
ip_neighbor_add_del sw_if_index 1 dst 10.10.10.2 mac ba:dc:0f:fe:00:00
ip_neighbor_add_del sw_if_index 2 dst 20.20.20.2 mac ba:dc:0f:fe:00:01
sw_interface_add_del_address sw_if_index 1 10.10.10.1/24
sw_interface_add_del_address sw_if_index 2 20.20.20.1/24
sw_interface_dump
exec show trace
eth2p-ethicmpv4-ip4base-device_echo-req-to-dut-egress-interface
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_dump
ip_neighbor_add_del sw_if_index 1 dst 10.10.10.2 mac ba:dc:0f:fe:00:00
ip_neighbor_add_del sw_if_index 2 dst 20.20.20.2 mac ba:dc:0f:fe:00:01
sw_interface_add_del_address sw_if_index 1 10.10.10.1/24
sw_interface_add_del_address sw_if_index 2 20.20.20.1/24
sw_interface_dump
exec show trace
eth2p-ethicmpv4-ip4base-device_echo-req-to-tg-interface-for-local-ipv4-address
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_dump
ip_neighbor_add_del sw_if_index 1 dst 10.10.10.2 mac ba:dc:0f:fe:00:00
ip_neighbor_add_del sw_if_index 2 dst 20.20.20.2 mac ba:dc:0f:fe:00:01
sw_interface_add_del_address sw_if_index 1 10.10.10.1/24
sw_interface_add_del_address sw_if_index 2 20.20.20.1/24
sw_interface_dump
exec show trace
eth2p-ethicmpv4-ip4base-device_echo-req-to-tg-interface-for-remote-host-ipv4-address
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_dump
ip_neighbor_add_del sw_if_index 1 dst 10.10.10.2 mac ba:dc:0f:fe:00:00
ip_neighbor_add_del sw_if_index 2 dst 20.20.20.2 mac ba:dc:0f:fe:00:01
sw_interface_add_del_address sw_if_index 1 10.10.10.1/24
sw_interface_add_del_address sw_if_index 2 20.20.20.1/24
ip_add_del_route 192.168.0.1/32 via 10.10.10.2 sw_if_index 1 resolve-attempts 10 count 1
ip_add_del_route 192.168.0.2/32 via 20.20.20.2 sw_if_index 2 resolve-attempts 10 count 1
sw_interface_dump
exec show trace

ip6

eth2p-ethip6-ip6base-dev

eth2p-ethip6-ip6base-dev

IPv6 routing test cases

  • [Top] Network Topologies: TG-DUT1-TG 2-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv6-ICMPv6 for IPv6 routing on both links.
  • [Cfg] DUT configuration: DUT1 is configured with IPv6 routing and two static IPv6 /64 route entries.
  • [Ver] TG verification: Test ICMPv6 Echo Request packets are sent in one direction by TG on links to DUT1; on receive TG verifies packets for correctness and their IPv6 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC2460, RFC4443, RFC4861
Name VPP API Test (VAT) Commands History - Commands Used Per Test Case
eth2p-ethicmpv6-ip6base-device_echo-req-to-dut-ingress-interface
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_dump
ip_neighbor_add_del sw_if_index 1 dst 2001:1::2 mac ba:dc:0f:fe:00:00
ip_neighbor_add_del sw_if_index 2 dst 2001:2::2 mac ba:dc:0f:fe:00:01
sw_interface_add_del_address sw_if_index 1 2001:1::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 2 2001:2::1/64
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
sw_interface_dump
exec show trace
eth2p-ethicmpv6-ip6base-device_echo-req-to-dut-egress-interface
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_dump
ip_neighbor_add_del sw_if_index 1 dst 2001:1::2 mac ba:dc:0f:fe:00:00
ip_neighbor_add_del sw_if_index 2 dst 2001:2::2 mac ba:dc:0f:fe:00:01
sw_interface_add_del_address sw_if_index 1 2001:1::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 2 2001:2::1/64
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
sw_interface_dump
exec show trace
eth2p-ethicmpv6-ip6base-device_echo-req-to-tg-interface-for-local-ipv4-address
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_dump
ip_neighbor_add_del sw_if_index 1 dst 2001:1::2 mac ba:dc:0f:fe:00:00
ip_neighbor_add_del sw_if_index 2 dst 2001:2::2 mac ba:dc:0f:fe:00:01
sw_interface_add_del_address sw_if_index 1 2001:1::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 2 2001:2::1/64
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
sw_interface_dump
exec show trace
eth2p-ethicmpv6-ip6base-device_echo-req-to-tg-interface-for-remote-host-ipv4-address
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_dump
ip_neighbor_add_del sw_if_index 1 dst 2001:1::2 mac ba:dc:0f:fe:00:00
ip_neighbor_add_del sw_if_index 2 dst 2001:2::2 mac ba:dc:0f:fe:00:01
sw_interface_add_del_address sw_if_index 1 2001:1::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 2 2001:2::1/64
sw_interface_set_flags sw_if_index 2 admin-up
ip_add_del_route 3ffe:5f::1/128 via 2001:1::2 sw_if_index 1 resolve-attempts 10 count 1
ip_add_del_route 3ffe:5f::2/128 via 2001:2::2 sw_if_index 2 resolve-attempts 10 count 1
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
sw_interface_dump
exec show trace

l2bd

eth2p-eth-l2bdbasemaclrn-dev

eth2p-eth-l2bdbasemaclrn-dev

L2 bridge-domain test cases

  • [Top] Network Topologies: TG-DUT1-TG 2-node circular topology with single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 for L2 switching of IPv4; Eth-IPv6-ICMPv6 for L2 switching of IPv6 use. Both apply to all links.
  • [Cfg] DUT configuration: DUT1 is configured with L2 bridge-domain switching.
  • [Ver] TG verification: Test ICMPv4 (or ICMPv6) Echo Request packets are sent in both directions by TG on links to DUT1; on receive TG verifies packets for correctness and their IPv4 (IPv6) src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC792
Name VPP API Test (VAT) Commands History - Commands Used Per Test Case
eth2p-ethicmpv4-l2bdbase-device
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_dump
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 1 shg 0 enable
sw_interface_dump
exec show trace
eth2p-ethicmpv6-l2bdbase-device
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_dump
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 1 shg 0 enable
sw_interface_dump
exec show trace

l2xc

eth2p-ethicmp-l2xcbase-dev

eth2p-ethicmp-l2xcbase-dev

L2 cross-connect test cases

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

vm vhost

ip4

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

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

IPv4 routing test cases with vhost user interface

  • [Top] Network Topologies: TG-DUT1-TG 2-node circular topology with VM and single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 for IPv4 routing on both links.
  • [Cfg] DUT configuration: DUT1 is configured with IPv4 routing and two static IPv4 /24 route entries. Qemu Guest is connected to VPP via vhost-user interfaces. Guest is configured with linux bridge interconnecting vhost-user interfaces.
  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent in one direction by TG on links to DUT1; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC791, RFC826, RFC792
Name VPP API Test (VAT) Commands History - Commands Used Per Test Case
eth2p-ethip4-ip4base-eth-2vhost-1vm-device
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_dump
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
ip_table_add_del table 20
sw_interface_set_table sw_if_index 4 vrf 20
sw_interface_set_table sw_if_index 2 vrf 20
sw_interface_add_del_address sw_if_index 1 10.0.1.1/24
sw_interface_add_del_address sw_if_index 3 10.0.2.1/24
sw_interface_add_del_address sw_if_index 4 10.0.2.2/24
sw_interface_add_del_address sw_if_index 2 10.0.3.1/24
sw_interface_dump
ip_add_del_route 10.0.3.0/24 via 10.0.2.2 sw_if_index 3
ip_add_del_route 10.0.1.0/24 via 10.0.2.1 vrf 20 sw_if_index 4
ip_neighbor_add_del sw_if_index 3 dst 10.0.2.2 mac 02:fe:6d:d6:74:80
ip_neighbor_add_del sw_if_index 2 dst 10.0.3.2 mac ba:dc:0f:fe:00:01
exec show trace

ip6

eth2p-ethip6-ip6base-eth-2vhost-1vm-dev

eth2p-ethip6-ip6base-eth-2vhost-1vm-dev

IPv4 routing test cases with vhost user interface

  • [Top] Network Topologies: TG-DUT1-TG 2-node circular topology with VM and single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv6-ICMPv6 for IPv6 routing on both links.
  • [Cfg] DUT configuration: DUT1 is configured with IPv6 routing and two static IPv6 /64 route entries. Qemu Guest is connected to VPP via vhost-user interfaces. Guest is configured with linux bridge interconnecting vhost-user interfaces.
  • [Ver] TG verification: Test ICMPv6 Echo Request packets are sent in one direction by TG on links to DUT1; on receive TG verifies packets for correctness and their IPv6 src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC2460, RFC4443, RFC4861
Name VPP API Test (VAT) Commands History - Commands Used Per Test Case
eth2p-ethip6-ip6base-eth-2vhost-1vm-device
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_dump
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
ip_table_add_del table 20
sw_interface_set_table sw_if_index 4 vrf 20
sw_interface_set_table sw_if_index 2 vrf 20
sw_interface_add_del_address sw_if_index 1 2001:1::1/64
sw_interface_set_flags sw_if_index 1 admin-up
sw_interface_add_del_address sw_if_index 3 2001:2::1/64
sw_interface_set_flags sw_if_index 3 admin-up
sw_interface_add_del_address sw_if_index 4 2001:2::2/64
sw_interface_set_flags sw_if_index 4 admin-up
sw_interface_add_del_address sw_if_index 2 2001:3::1/64
sw_interface_set_flags sw_if_index 2 admin-up
sw_interface_ip6nd_ra_config sw_if_index 4 surpress
sw_interface_ip6nd_ra_config sw_if_index 3 surpress
sw_interface_ip6nd_ra_config sw_if_index 2 surpress
sw_interface_ip6nd_ra_config sw_if_index 1 surpress
sw_interface_dump
ip_add_del_route 2001:3::0/64 via 2001:2::2 sw_if_index 3
ip_add_del_route 2001:1::0/64 via 2001:2::1 vrf 20 sw_if_index 4
ip_neighbor_add_del sw_if_index 3 dst 2001:2::2 mac 02:fe:ef:95:5e:16
ip_neighbor_add_del sw_if_index 2 dst 2001:3::2 mac ba:dc:0f:fe:00:01
exec show trace

l2bd

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

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

L2 bridge-domain test cases with vhost user interface

  • [Top] Network Topologies: TG-DUT1-TG 2-node circular topology with VM and single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 for L2 switching of IPv4; Eth-IPv6-ICMPv6 for L2 switching of IPv6.
  • [Cfg] DUT configuration: DUT1 is configured with two L2 bridge-domains (L2BD) switching combined with MAC learning enabled. Qemu Guest is connected to VPP via vhost-user interfaces. Guest is configured with linux bridge interconnecting vhost-user interfaces.
  • [Ver] TG verification: Test ICMPv4 (or ICMPv6) Echo Request packets are sent in both directions by TG on links to DUT1 via VM; on receive TG verifies packets for correctness and their IPv4 (IPv6) src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC792
Name VPP API Test (VAT) Commands History - Commands Used Per Test Case
eth2p-ethip4-l2bdbasemaclrn-eth-2vhost-1vm-device
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_dump
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
bridge_domain_add_del bd_id 2 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 2 shg 0 enable
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 4 bd_id 2 shg 0 enable
exec show trace
eth2p-ethip6-l2bdbasemaclrn-eth-2vhost-1vm-device
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_dump
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
bridge_domain_add_del bd_id 1 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 1 bd_id 1 shg 0 enable
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 3 bd_id 1 shg 0 enable
bridge_domain_add_del bd_id 2 flood 1 uu-flood 1 forward 1 learn 1 arp-term 0
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 2 bd_id 2 shg 0 enable
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_l2_bridge sw_if_index 4 bd_id 2 shg 0 enable
exec show trace

l2xc

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

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

L2 cross-connect test cases with vhost user interface

  • [Top] Network Topologies: TG-DUT1-TG 2-node circular topology with VM and single links between nodes.
  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 for L2 switching of IPv4; Eth-IPv6-ICMPv6 for L2 switching of IPv6.
  • [Cfg] DUT configuration: DUT1 is configured with L2 cross-connect (L2XC) switching. Qemu Guest is connected to VPP via vhost-user interfaces. Guest is configured with linux bridge interconnecting vhost-user interfaces.
  • [Ver] TG verification: Test ICMPv4 (or ICMPv6) Echo Request packets are sent in both directions by TG on links to DUT1 via VM; on receive TG verifies packets for correctness and their IPv4 (IPv6) src-addr, dst-addr and MAC addresses.
  • [Ref] Applicable standard specifications: RFC792
Name VPP API Test (VAT) Commands History - Commands Used Per Test Case
eth2p-ethip4-l2xcbase-eth-2vhost-1vm-device
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_dump
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_xconnect rx_sw_if_index 1 tx_sw_if_index 3
sw_interface_set_l2_xconnect rx_sw_if_index 3 tx_sw_if_index 1
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_l2_xconnect rx_sw_if_index 2 tx_sw_if_index 4
sw_interface_set_l2_xconnect rx_sw_if_index 4 tx_sw_if_index 2
exec show trace
eth2p-ethip6-l2xcbase-eth-2vhost-1vm-device
 DUT1:  
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_dump
create_vhost_user_if socket /tmp/sock1
sw_interface_dump
sw_interface_dump
create_vhost_user_if socket /tmp/sock2
sw_interface_dump
sw_interface_dump
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_flags sw_if_index 1 admin-up link-up
sw_interface_set_flags sw_if_index 3 admin-up link-up
sw_interface_set_l2_xconnect rx_sw_if_index 1 tx_sw_if_index 3
sw_interface_set_l2_xconnect rx_sw_if_index 3 tx_sw_if_index 1
sw_interface_set_flags sw_if_index 2 admin-up link-up
sw_interface_set_flags sw_if_index 4 admin-up link-up
sw_interface_set_l2_xconnect rx_sw_if_index 2 tx_sw_if_index 4
sw_interface_set_l2_xconnect rx_sw_if_index 4 tx_sw_if_index 2
exec show trace