job_specs: add wireguard perf tests to regression
[csit.git] / tests / vpp / perf / ip4_tunnels / 2n1l-10ge2p1x710-ethip4--ethip4udpgeneve-16tun-ip4base-ndrpdr.robot
1 # Copyright (c) 2022 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Resource | resources/libraries/robot/shared/default.robot
16 | Resource | resources/libraries/robot/ip/geneve.robot
17 |
18 | Force Tags | 2_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR
19 | ... | NIC_Intel-X710 | ETH | IP4FWD | IP4BASE | UDP | ENCAP | GENEVE_L3MODE
20 | ... | SCALE | GENEVE4_16TUN | DRV_VFIO_PCI
21 | ... | RXQ_SIZE_0 | TXQ_SIZE_0
22 | ... | ethip4--ethip4udpgeneve-16tun-ip4base
23 |
24 | Suite Setup | Setup suite topology interfaces | performance
25 | Suite Teardown | Tear down suite | performance
26 | Test Setup | Setup test | performance
27 | Test Teardown | Tear down test | performance | geneve4
28 |
29 | Test Template | Local Template
30 |
31 | Documentation | **RFC2544: Pkt throughput GENEVE tunnel L3 mode performance \
32 | ... | test cases**
33 | ... |
34 | ... | - **[Top] Network Topologies:** TG-DUT1-TG 2-node circular topology \
35 | ... | with single links between nodes.
36 | ... |
37 | ... | - **[Enc] Packet Encapsulations:** Eth-IPv4 between TG-if1 and \
38 | ... | DUT1-if1 and Eth-IPv4-UDP-GENEVE-Eth-IPv4 between DUT1-if2 and TG-if2 \
39 | ... | for IPv4 routing over GENEVE tunnels.
40 | ... |
41 | ... | - **[Cfg] DUT configuration:** DUT1 is configured with IPv4 routing \
42 | ... | over ${n_tunnels} GENEVE tunnels and ${${4} * ${n_tunnels}} static \
43 | ... | IPv4 /24 route entries. DUT1 is tested with ${nic_name}.
44 | ... |
45 | ... | - **[Ver] TG verification:** TG finds and reports throughput NDR (Non \
46 | ... | Drop Rate) with zero packet loss tolerance and throughput PDR \
47 | ... | (Partial Drop Rate) with non-zero packet loss tolerance (LT) \
48 | ... | expressed in percentage of packets transmitted. NDR and PDR are \
49 | ... | discovered for different Ethernet L2 frame sizes using MLRsearch \
50 | ... | library.
51 | ... | Test packets are generated by TG on links to DUT1. TG traffic profile \
52 | ... | contains two L3 flow-groups (flow-group per direction, 1 flow per \
53 | ... | flow-group) with all packets containing Ethernet header, IPv4 header \
54 | ... | with IP protocol=61 and static payload. MAC addresses are matching MAC \
55 | ... | addresses of the TG node interfaces.
56 | ... |
57 | ... | - **[Ref] Applicable standard specifications:** RFC2544, RFC791, \
58 | ... | RFC768 and RFC8926.
59
60 *** Variables ***
61 | @{plugins_to_enable}= | dpdk_plugin.so | perfmon_plugin.so | geneve_plugin.so
62 | ${crypto_type}= | ${None}
63 | ${nic_name}= | Intel-X710
64 | ${nic_driver}= | vfio-pci
65 | ${nic_rxq_size}= | 0
66 | ${nic_txq_size}= | 0
67 | ${nic_pfs}= | 2
68 | ${nic_vfs}= | 0
69 | ${osi_layer}= | L3
70 | ${overhead}= | ${50}
71 # IP settings
72 | ${dut1_if1_ip4}= | 20.0.0.1
73 | ${dut1_if2_ip4}= | 30.0.0.1
74 | ${tg_if1_ip4}= | 20.0.0.2
75 | ${tg_if2_ip4}= | 30.0.0.2
76 # GENEVE settings
77 | ${gen_mode}= | ${osi_layer}
78 | ${n_tunnels}= | ${16}
79 | &{gen_tunnel}=
80 | ... | local=1.1.1.2 | remote=1.1.1.1 | vni=${1}
81 | ... | src_ip=10.128.1.0 | dst_ip=10.0.1.0 | ip_mask=${24} | if_ip=11.0.1.2
82 # Traffic profile
83 | ${traffic_profile}= | trex-stl-2n-ethip4-geneve-${n_tunnels}t
84
85 *** Keywords ***
86 | Local Template
87 | |
88 | | [Documentation]
89 | | ... | - **[Cfg]** DUT runs GENEVE ${gen_mode} mode configuration. \
90 | | ... | Each DUT uses ${phy_cores} physical core(s) for worker threads.
91 | | ... | - **[Ver]** Measure NDR and PDR values using MLRsearch algorithm.
92 | |
93 | | ... | *Arguments:*
94 | | ... | - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1).
95 | | ... | Type: integer, string
96 | | ... | - phy_cores - Number of physical cores. Type: integer
97 | | ... | - rxq - Number of RX queues, default value: ${None}. Type: integer
98 | |
99 | | [Arguments] | ${frame_size} | ${phy_cores} | ${rxq}=${None}
100 | |
101 | | Set Test Variable | \${frame_size}
102 | |
103 | | Given Set Max Rate And Jumbo
104 | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq}
105 | | And Pre-initialize layer driver | ${nic_driver}
106 | | And Apply startup configuration on all VPP DUTs
107 | | When Initialize layer driver | ${nic_driver}
108 | | And Initialize layer interface
109 | | And Initialize GENEVE L3 mode in circular topology
110 | | Then Find NDR and PDR intervals using optimized search
111
112 *** Test Cases ***
113 | 64B-1c-ethip4--ethip4udpgeneve-16tun-ip4base-ndrpdr
114 | | [Tags] | 64B | 1C
115 | | frame_size=${64} | phy_cores=${1}
116
117 | 64B-2c-ethip4--ethip4udpgeneve-16tun-ip4base-ndrpdr
118 | | [Tags] | 64B | 2C
119 | | frame_size=${64} | phy_cores=${2}
120
121 | 64B-4c-ethip4--ethip4udpgeneve-16tun-ip4base-ndrpdr
122 | | [Tags] | 64B | 4C
123 | | frame_size=${64} | phy_cores=${4}
124
125 | 1518B-1c-ethip4--ethip4udpgeneve-16tun-ip4base-ndrpdr
126 | | [Tags] | 1518B | 1C
127 | | frame_size=${1518} | phy_cores=${1}
128
129 | 1518B-2c-ethip4--ethip4udpgeneve-16tun-ip4base-ndrpdr
130 | | [Tags] | 1518B | 2C
131 | | frame_size=${1518} | phy_cores=${2}
132
133 | 1518B-4c-ethip4--ethip4udpgeneve-16tun-ip4base-ndrpdr
134 | | [Tags] | 1518B | 4C
135 | | frame_size=${1518} | phy_cores=${4}
136
137 | 9000B-1c-ethip4--ethip4udpgeneve-16tun-ip4base-ndrpdr
138 | | [Tags] | 9000B | 1C
139 | | frame_size=${9000} | phy_cores=${1}
140
141 | 9000B-2c-ethip4--ethip4udpgeneve-16tun-ip4base-ndrpdr
142 | | [Tags] | 9000B | 2C
143 | | frame_size=${9000} | phy_cores=${2}
144
145 | 9000B-4c-ethip4--ethip4udpgeneve-16tun-ip4base-ndrpdr
146 | | [Tags] | 9000B | 4C
147 | | frame_size=${9000} | phy_cores=${4}
148
149 | IMIX-1c-ethip4--ethip4udpgeneve-16tun-ip4base-ndrpdr
150 | | [Tags] | IMIX | 1C
151 | | frame_size=IMIX_v4_1 | phy_cores=${1}
152
153 | IMIX-2c-ethip4--ethip4udpgeneve-16tun-ip4base-ndrpdr
154 | | [Tags] | IMIX | 2C
155 | | frame_size=IMIX_v4_1 | phy_cores=${2}
156
157 | IMIX-4c-ethip4--ethip4udpgeneve-16tun-ip4base-ndrpdr
158 | | [Tags] | IMIX | 4C
159 | | frame_size=IMIX_v4_1 | phy_cores=${4}