interfaces

eth2p-ethicmpv4-ip4base-eth-1tap-dev

Tap Interface Traffic Tests

  • [Top] Network Topologies: TG=DUT1 2-node topology with two links between nodes.

  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 for L2 switching of IPv4.

  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with L2 bridge-domain (L2BD) MAC learning enabled; Split Horizon Groups (SHG) are set depending on test case; Namespaces (NM) are set on DUT1 with attached linux-TAP.

  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent by TG on link to DUT1; On receipt TG verifies packets for correctness and their IPv4 src-addr, dst-addr, and MAC addresses.

  • [Ref] Applicable standard specifications:

 Test Name 

 VPP API Test Commands History - Commands Used Per Test Case 

 64b-ethicmpv4-ip4base- 
eth-1tap-dev

 DUT1:  
cli_inband(cmd=’show log’)
show_version()
sw_interface_dump(name_filter=’’,name_filter_valid=0)
cli_inband(cmd=’trace add dpdk-input 50’)
cli_inband(cmd=’trace add vhost-user-input 50’)
cli_inband(cmd=’trace add memif-input 50’)
cli_inband(cmd=’trace add avf-input 50’)
sw_interface_set_flags(sw_if_index=1,admin_up_down=1)
sw_interface_set_flags(sw_if_index=2,admin_up_down=1)
hw_interface_set_mtu(sw_if_index=1,mtu=9200)
hw_interface_set_mtu(sw_if_index=2,mtu=9200)
sw_interface_dump(name_filter=’’,name_filter_valid=0)
sw_interface_dump(name_filter=’’,name_filter_valid=0)
sw_interface_dump(name_filter=’’,name_filter_valid=0)
tap_create_v2(host_ip4_gw=’x00x00x00x00’,host_mac_addr=’x00x00x00x00x00x00’,host_if_name_set=1,host_bridge=’x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00’,host_ip6_gw=’x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00’,use_random_mac=1,host_namespace=’x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00’,host_if_name=’tap0x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00’,mac_address=’x00x00x00x00x00x00’,host_ip4_addr=’x00x00x00x00’,host_ip6_addr=’x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00’,id=4294967295)
sw_interface_dump(name_filter=’’,name_filter_valid=0)
sw_interface_tap_v2_dump()
sw_interface_add_del_address(address_length=24,del_all=0,is_add=1,sw_if_index=3,address=’x10x00nx01’,is_ipv6=0)
sw_interface_add_del_address(address_length=24,del_all=0,is_add=1,sw_if_index=1,address=’xc0xa8x00x01’,is_ipv6=0)
sw_interface_set_flags(sw_if_index=3,admin_up_down=1)
ip_neighbor_add_del(is_add=1,neighbor={‘ip_address’: ‘192.168.0.2’, ‘flags’: 0, ‘sw_if_index’: 1, ‘mac_address’: ‘fa:ce:00:00:02:00’})
ip_neighbor_add_del(is_add=1,neighbor={‘ip_address’: ‘16.0.10.2’, ‘flags’: 0, ‘sw_if_index’: 3, ‘mac_address’: ‘02:00:00:00:00:02’})

eth2p-ethicmpv4-ip4base-eth-1tap-namespace-dev

Tap Interface Traffic Tests

  • [Top] Network Topologies: TG=DUT1 2-node topology with two links between nodes.

  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 for L2 switching of IPv4.

  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with L2 bridge-domain (L2BD) MAC learning enabled; Split Horizon Groups (SHG) are set depending on test case; Namespaces (NM) are set on DUT1 with attached linux-TAP.

  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent by TG on link to DUT1; On receipt TG verifies packets for correctness and their IPv4 src-addr, dst-addr, and MAC addresses.

  • [Ref] Applicable standard specifications:

 Test Name 

 VPP API Test Commands History - Commands Used Per Test Case 

 64b-ethicmpv4-ip4base- 
eth-1tap-namespace-dev

 DUT1:  
cli_inband(cmd=’show log’)
show_version()
sw_interface_dump(name_filter=’’,name_filter_valid=0)
cli_inband(cmd=’trace add dpdk-input 50’)
cli_inband(cmd=’trace add vhost-user-input 50’)
cli_inband(cmd=’trace add memif-input 50’)
cli_inband(cmd=’trace add avf-input 50’)
sw_interface_set_flags(sw_if_index=1,admin_up_down=1)
sw_interface_set_flags(sw_if_index=2,admin_up_down=1)
hw_interface_set_mtu(sw_if_index=1,mtu=9200)
hw_interface_set_mtu(sw_if_index=2,mtu=9200)
sw_interface_dump(name_filter=’’,name_filter_valid=0)
sw_interface_dump(name_filter=’’,name_filter_valid=0)
sw_interface_dump(name_filter=’’,name_filter_valid=0)
tap_create_v2(host_ip4_gw=’x00x00x00x00’,host_mac_addr=’x00x00x00x00x00x00’,host_if_name_set=1,host_bridge=’x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00’,host_ip6_gw=’x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00’,use_random_mac=1,host_namespace=’x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00’,host_if_name=’tap0x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00’,mac_address=’x00x00x00x00x00x00’,host_ip4_addr=’x00x00x00x00’,host_ip6_addr=’x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00’,id=4294967295)
sw_interface_dump(name_filter=’’,name_filter_valid=0)
sw_interface_tap_v2_dump()
sw_interface_add_del_address(address_length=24,del_all=0,is_add=1,sw_if_index=3,address=’x10x00nx01’,is_ipv6=0)
sw_interface_add_del_address(address_length=24,del_all=0,is_add=1,sw_if_index=1,address=’xc0xa8x00x01’,is_ipv6=0)
sw_interface_set_flags(sw_if_index=3,admin_up_down=1)
ip_neighbor_add_del(is_add=1,neighbor={‘ip_address’: ‘192.168.0.2’, ‘flags’: 0, ‘sw_if_index’: 1, ‘mac_address’: ‘fa:ce:00:00:02:00’})
ip_neighbor_add_del(is_add=1,neighbor={‘ip_address’: ‘16.0.10.2’, ‘flags’: 0, ‘sw_if_index’: 3, ‘mac_address’: ‘02:00:00:00:00:02’})

eth2p-ethicmpv4-l2bdbasemaclrn-eth-2tap-dev

Tap Interface Traffic Tests

  • [Top] Network Topologies: TG=DUT1 2-node topology with two links between nodes.

  • [Enc] Packet Encapsulations: Eth-IPv4-ICMPv4 for L2 switching of IPv4.

  • [Cfg] DUT configuration: DUT1 and DUT2 are configured with L2 bridge-domain (L2BD) MAC learning enabled; Split Horizon Groups (SHG) are set depending on test case; Namespaces (NM) are set on DUT1 with attached linux-TAP.

  • [Ver] TG verification: Test ICMPv4 Echo Request packets are sent by TG on link to DUT1; On receipt TG verifies packets for correctness and their IPv4 src-addr, dst-addr, and MAC addresses.

  • [Ref] Applicable standard specifications:

 Test Name 

 VPP API Test Commands History - Commands Used Per Test Case 

 64b-ethicmpv4-l2bdbasemaclrn- 
eth-2tap-dev

 DUT1:  
cli_inband(cmd=’show log’)
show_version()
sw_interface_dump(name_filter=’’,name_filter_valid=0)
cli_inband(cmd=’trace add dpdk-input 50’)
cli_inband(cmd=’trace add vhost-user-input 50’)
cli_inband(cmd=’trace add memif-input 50’)
cli_inband(cmd=’trace add avf-input 50’)
sw_interface_set_flags(sw_if_index=1,admin_up_down=1)
sw_interface_set_flags(sw_if_index=2,admin_up_down=1)
hw_interface_set_mtu(sw_if_index=1,mtu=9200)
hw_interface_set_mtu(sw_if_index=2,mtu=9200)
sw_interface_dump(name_filter=’’,name_filter_valid=0)
sw_interface_dump(name_filter=’’,name_filter_valid=0)
sw_interface_dump(name_filter=’’,name_filter_valid=0)
tap_create_v2(host_ip4_gw=’x00x00x00x00’,host_mac_addr=’x00x00x00x00x00x00’,host_if_name_set=1,host_bridge=’x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00’,host_ip6_gw=’x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00’,use_random_mac=1,host_namespace=’x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00’,host_if_name=’tap0x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00’,mac_address=’x00x00x00x00x00x00’,host_ip4_addr=’x00x00x00x00’,host_ip6_addr=’x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00’,id=4294967295)
sw_interface_dump(name_filter=’’,name_filter_valid=0)
sw_interface_tap_v2_dump()
tap_create_v2(host_ip4_gw=’x00x00x00x00’,host_mac_addr=’x00x00x00x00x00x00’,host_if_name_set=1,host_bridge=’x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00’,host_ip6_gw=’x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00’,use_random_mac=1,host_namespace=’x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00’,host_if_name=’tap1x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00’,mac_address=’x00x00x00x00x00x00’,host_ip4_addr=’x00x00x00x00’,host_ip6_addr=’x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00’,id=4294967295)
sw_interface_dump(name_filter=’’,name_filter_valid=0)
sw_interface_tap_v2_dump()
sw_interface_set_flags(sw_if_index=3,admin_up_down=1)
sw_interface_set_flags(sw_if_index=4,admin_up_down=1)
bridge_domain_add_del(bd_id=19,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
bridge_domain_add_del(bd_id=20,is_add=1,arp_term=0,flood=1,learn=1,forward=1,uu_flood=1)
sw_interface_set_flags(sw_if_index=3,admin_up_down=1)
sw_interface_set_l2_bridge(rx_sw_if_index=3,enable=1,shg=0,port_type=0,bd_id=20)
sw_interface_set_flags(sw_if_index=1,admin_up_down=1)
sw_interface_set_l2_bridge(rx_sw_if_index=1,enable=1,shg=0,port_type=0,bd_id=20)
sw_interface_set_flags(sw_if_index=4,admin_up_down=1)
sw_interface_set_l2_bridge(rx_sw_if_index=4,enable=1,shg=0,port_type=0,bd_id=19)
sw_interface_set_flags(sw_if_index=2,admin_up_down=1)
sw_interface_set_l2_bridge(rx_sw_if_index=2,enable=1,shg=0,port_type=0,bd_id=19)