6.6. ip4_tunnels¶
6.6.2. 2n1l-10ge2p1x710-ethip4–ethip4udpgeneve-1tun-ip4base-scapy suite¶
L2BD with GENEVE L3 mode test cases
[Top] Network Topologies: TG-DUT1-TG 2-node circular topology with single links between nodes.
[Enc] Packet Encapsulations: Eth-IPv4 between TG-if1 and DUT1-if1 and Eth-IPv4-UDP-GENEVE-Eth-IPv4 between DUT1-if2 and TG-if2 for IPv4 routing over GENEVE tunnel.
[Cfg] DUT configuration: DUT1 is configured with IPv4 routing over GENEVE tunnel and 4 static IPv4 /24 route entries. DUT1 is tested with ${nic_name}.
[Ver] TG verification: Test Eth-IPv4 packet is sent by TG-if1 on link to DUT1-if1; on receive by TG-if2 the encapsulated packet is verified for correctness and its outer and inner IPv4 and MAC addresses, UDP ports and GENEVE vni and protocol number. Then test. Eth-IPv4-UDP-GENEVE-Eth-IPv4 packet is sent by TG-if2 on link to DUT1-if2; on receive by TG-if1 decapsulated packet is verified for correctness and its IPv4 and MAC addresses
[Ref] Applicable standard specifications: RFC791, RFC768, RFC8926.
*** Settings ***
| Resource | resources/libraries/robot/shared/default.robot
| Resource | resources/libraries/robot/ip/geneve.robot
| Resource | resources/libraries/robot/shared/traffic.robot
|
| Force Tags | 2_NODE_SINGLE_LINK_TOPO | DEVICETEST | HW_ENV | DCR_ENV | SCAPY
| ... | NIC_Intel-X710 | ETH | IP4FWD | IP4BASE | UDP | ENCAP | GENEVE
| ... | GENEVE_L3MODE | GENEVE4_1TUN | DRV_VFIO_PCI
| ... | RXQ_SIZE_0 | TXQ_SIZE_0
| ... | ethip4--ethip4udpgeneve-1tun-ip4base
|
| Suite Setup | Setup suite topology interfaces | scapy
| Test Setup | Setup test
| Test Teardown | Tear down test | packet_trace | telemetry | geneve4
|
| Test Template | Local Template
|
|
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | perfmon_plugin.so | geneve_plugin.so
| ${crypto_type}= | ${None}
| ${nic_name}= | Intel-X710
| ${nic_driver}= | vfio-pci
| ${nic_rxq_size}= | 0
| ${nic_txq_size}= | 0
| ${nic_pfs}= | 2
| ${nic_vfs}= | 0
| ${overhead}= | ${0}
# IP settings
| ${dut1_if1_ip4}= | 20.0.0.1
| ${dut1_if2_ip4}= | 30.0.0.1
| ${tg_if1_ip4}= | 20.0.0.2
| ${tg_if2_ip4}= | 30.0.0.2
# GENEVE settings
| ${gen_mode}= | L3
| ${n_tunnels}= | ${1}
| &{gen_tunnel}=
| ... | local=1.1.1.2 | remote=1.1.1.1 | vni=${1}
| ... | src_ip=10.128.1.0 | dst_ip=10.0.1.0 | ip_mask=${24} | if_ip=11.0.1.2
# Telemetry
| ${telemetry_profile}= | vppctl_test_teardown
6.6.2.1. Local Template¶
[Cfg] DUT runs GENEVE ${gen_mode} mode configuration. Each DUT uses ${phy_cores} physical core(s) for worker threads.
[Ver] Measure NDR and PDR values using MLRsearch algorithm.
Arguments: - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1). Type: integer, string - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer
Set Test Variable \${frame_size}
Given Set Max Rate And Jumbo
And Add worker threads to all DUTs ${phy_cores} ${rxq}
And Pre-initialize layer driver ${nic_driver}
And Apply startup configuration on all VPP DUTs with_trace=${True}
When Initialize layer driver ${nic_driver}
And Initialize layer interface
And Initialize GENEVE L3 mode in circular topology
Then Send IP packet and verify GENEVE encapsulation in received packets ${tg} ${TG_pf1}[0] ${TG_pf2}[0] ${DUT1_vf1_mac}[0] ${DUT1_vf2_mac}[0] ${gen_tunnel}[local] ${gen_tunnel}[remote] ${gen_tunnel}[vni] ${gen_tunnel}[src_ip] ${gen_tunnel}[dst_ip]
6.6.2.2. 64B-0c-ethip4–ethip4udpgeneve-1tun-ip4base-scapy¶
frame_size=${64} phy_cores=${0}
6.6.3. 2n1l-10ge2p1x710-ethip4vxlan-l2bdbasemaclrn-scapy suite¶
L2BD with VXLANoIPv4 test cases
[Top] Network topologies: TG-DUT1-TG 2-node circular topology with single links between nodes.
[Enc] Packet encapsulations: Eth-IPv4-VXLAN-Eth-IPv4-ICMPv4 on TG-DUT.
[Cfg] DUT configuration: DUT1 is configured with L2 cross-connect switching.combined with MAC learning enable. VXLAN tunnels are configured on links betwen TG and DUT.
[Ver] TG verification: Test Eth-IPv4-VXLAN-Eth-IPv4-ICMPv4 packet is sent by TG on link to DUT1; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
[Ref] Applicable standard specifications: RFC7348.
*** Settings ***
| Resource | resources/libraries/robot/shared/default.robot
|
| Force Tags | 2_NODE_SINGLE_LINK_TOPO | DEVICETEST | HW_ENV | DCR_ENV | SCAPY
| ... | NIC_Intel-X710 | L2BDMACLRN | ENCAP | VXLAN | L2OVRLAY | IP4UNRLAY
| ... | DRV_VFIO_PCI
| ... | RXQ_SIZE_0 | TXQ_SIZE_0
| ... | ethip4vxlan-l2bdbasemaclrn
|
| Suite Setup | Setup suite topology interfaces | scapy
| Test Setup | Setup test
| Test Teardown | Tear down test | packet_trace | telemetry
|
| Test Template | Local Template
|
|
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | perfmon_plugin.so
| ${crypto_type}= | ${None}
| ${nic_name}= | Intel-X710
| ${nic_driver}= | vfio-pci
| ${nic_rxq_size}= | 0
| ${nic_txq_size}= | 0
| ${nic_pfs}= | 2
| ${nic_vfs}= | 0
| ${overhead}= | ${50}
# Telemetry
| ${telemetry_profile}= | vppctl_test_teardown
6.6.3.1. Local Template¶
[Ver] Make TG send VXLAN encapsulated Ethernet frame; verify all packets are received.
Arguments: - frame_size - Framesize in Bytes in integer. Type: integer - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer
Set Test Variable \${frame_size}
Given Set Max Rate And Jumbo
And Add worker threads to all DUTs ${phy_cores} ${rxq}
And Pre-initialize layer driver ${nic_driver}
And Apply startup configuration on all VPP DUTs with_trace=${True}
When Initialize layer driver ${nic_driver}
And Initialize layer interface
And Initialize layer ip4vxlan
And Initialize L2 bridge domain
Then Send VXLAN encapsulated packet and verify received packet ${tg} ${TG_pf1}[0] ${TG_pf2}[0] ${TG_pf1_mac}[0] ${DUT1_vf1_mac}[0] 172.17.0.2 172.16.0.1 ${0} 172.26.0.1 172.27.0.2 ${0}
6.6.3.2. 64B-0c-ethip4vxlan-l2bdbasemaclrn-scapy¶
frame_size=${64} phy_cores=${0}
6.6.4. 2n1l-10ge2p1x710-ethip4vxlan-l2xcbase-scapy suite¶
L2XC with VXLANoIPv4 test cases
[Top] Network topologies: TG-DUT1-TG 2-node circular topology with single links between nodes.
[Enc] Packet encapsulations: Eth-IPv4-VXLAN-Eth-IPv4-ICMPv4 on TG-DUT.
[Cfg] DUT configuration: DUT1 is configured with L2 VXLAN tunnels are configured on links betwen TG and DUT.
[Ver] TG verification: Test Eth-IPv4-VXLAN-Eth-IPv4-ICMPv4 packet is sent by TG on link to DUT1; on receive TG verifies packets for correctness and their IPv4 src-addr, dst-addr and MAC addresses.
[Ref] Applicable standard specifications: RFC7348.
*** Settings ***
| Resource | resources/libraries/robot/shared/default.robot
|
| Force Tags | 2_NODE_SINGLE_LINK_TOPO | DEVICETEST | HW_ENV | DCR_ENV | SCAPY
| ... | NIC_Intel-X710 | L2XCBASE | ENCAP | VXLAN | L2OVRLAY | IP4UNRLAY
| ... | DRV_VFIO_PCI
| ... | RXQ_SIZE_0 | TXQ_SIZE_0
| ... | ethip4vxlan-l2xcbase
|
| Suite Setup | Setup suite topology interfaces | scapy
| Test Setup | Setup test
| Test Teardown | Tear down test | packet_trace | telemetry
|
| Test Template | Local Template
|
|
*** Variables ***
| @{plugins_to_enable}= | dpdk_plugin.so | perfmon_plugin.so
| ${crypto_type}= | ${None}
| ${nic_name}= | Intel-X710
| ${nic_driver}= | vfio-pci
| ${nic_rxq_size}= | 0
| ${nic_txq_size}= | 0
| ${nic_pfs}= | 2
| ${nic_vfs}= | 0
| ${overhead}= | ${50}
# Telemetry
| ${telemetry_profile}= | vppctl_test_teardown
6.6.4.1. Local Template¶
[Ver] Make TG send VXLAN encapsulated Ethernet frame; verify all packets are received.
Arguments: - frame_size - Framesize in Bytes in integer. Type: integer - phy_cores - Number of physical cores. Type: integer - rxq - Number of RX queues, default value: ${None}. Type: integer
Set Test Variable \${frame_size}
Given Set Max Rate And Jumbo
And Add worker threads to all DUTs ${phy_cores} ${rxq}
And Pre-initialize layer driver ${nic_driver}
And Apply startup configuration on all VPP DUTs with_trace=${True}
When Initialize layer driver ${nic_driver}
And Initialize layer interface
And Initialize layer ip4vxlan
And Initialize L2 cross connect
Then Send VXLAN encapsulated packet and verify received packet ${tg} ${TG_pf1}[0] ${TG_pf2}[0] ${TG_pf1_mac}[0] ${DUT1_vf1_mac}[0] 172.17.0.2 172.16.0.1 ${0} 172.26.0.1 172.27.0.2 ${0}
6.6.4.2. 64B-0c-ethip4vxlan-l2xcbase-scapy¶
frame_size=${64} phy_cores=${0}