ab761dbd779b1ec44d823c98494c371691ecb27a
[csit.git] / tests / perf / 40ge2p1xl710-eth-l2xcbase-eth-4vhost-2vm-ndrpdrdisc.robot
1 # Copyright (c) 2017 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/performance.robot
16 | Library | resources.libraries.python.QemuUtils
17 | ...
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
19 | ... | NIC_Intel-XL710 | ETH | L2XCFWD | BASE | VHOST | VM
20 | ...
21 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
22 | ... | L2 | Intel-XL710
23 | Suite Teardown | 3-node Performance Suite Teardown
24 | ...
25 | Test Setup | Performance test setup
26 | Test Teardown | Performance test with vhost and VM with dpdk-testpmd teardown
27 | ... | ${min_rate}pps | ${framesize} | 3-node-xconnect
28 | ... | dut1_node=${dut1} | dut1_vm_refs=${dut1_vm_refs}
29 | ... | dut2_node=${dut2} | dut2_vm_refs=${dut2_vm_refs}
30 | ...
31 | Documentation | *RFC2544: Packet throughput L2XC test cases with vhost*
32 | ...
33 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
34 | ... | with single links between nodes.
35 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 switching of IPv4.
36 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 cross-
37 | ... | connects. Qemu Guests are connected to VPP via vhost-user interfaces.
38 | ... | Guests are running DPDK testpmd interconnecting vhost-user interfaces
39 | ... | using 5 cores pinned to cpus on NUMA1 (cpus 24-28 and 29-34) and 2048M
40 | ... | memory. Testpmd is using socket-mem=1024M (512x2M hugepages), 5 cores
41 | ... | (1 main core and 4 cores dedicated for io), forwarding mode is set to
42 | ... | io, rxd/txd=256, burst=64. DUT1, DUT2 are tested with 2p40GE NIC XL710
43 | ... | by Intel.
44 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
45 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
46 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
47 | ... | of packets transmitted. NDR and PDR are discovered for different
48 | ... | Ethernet L2 frame sizes using either binary search or linear search
49 | ... | algorithms with configured starting rate and final step that determines
50 | ... | throughput measurement resolution. Test packets are generated by TG on
51 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
52 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
53 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
54 | ... | payload. MAC addresses are matching MAC addresses of the TG node
55 | ... | interfaces.
56 | ... | *[Ref] Applicable standard specifications:* RFC2544.
57
58 *** Variables ***
59 # XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
60 | ${s_24.5G} | ${24500000000}
61 # XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
62 | ${s_18.75Mpps} | ${18750000}
63 #CPU settings
64 | ${system_cpus}= | ${1}
65 | ${vpp_cpus}= | ${5}
66 | ${vm_cpus}= | ${5}
67
68 *** Test Cases ***
69 | tc01-64B-1t1c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc
70 | | [Documentation]
71 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
72 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
73 | | ... | using binary search start at 40GE linerate, step 10kpps.
74 | | ...
75 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
76 | | ...
77 | | ${framesize}= | Set Variable | ${64}
78 | | ${min_rate}= | Set Variable | ${10000}
79 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
80 | | ${binary_min}= | Set Variable | ${min_rate}
81 | | ${binary_max}= | Set Variable | ${max_rate}
82 | | ${threshold}= | Set Variable | ${min_rate}
83 | | ${dut1_vm_refs}= | Create Dictionary
84 | | ${dut2_vm_refs}= | Create Dictionary
85 | | Set Test Variable | ${dut1_vm_refs}
86 | | Set Test Variable | ${dut2_vm_refs}
87 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
88 | | And   Add PCI devices to DUTs from 3-node single link topology
89 | | And   Add No Multi Seg to all DUTs
90 | | And   Apply startup configuration on all VPP DUTs
91 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
92 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
93 | | Then  Find NDR using binary search and pps
94 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
95 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
96
97 | tc02-64B-1t1c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc
98 | | [Documentation]
99 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
100 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
101 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
102 | | ...
103 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
104 | | ...
105 | | ${framesize}= | Set Variable | ${64}
106 | | ${min_rate}= | Set Variable | ${10000}
107 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
108 | | ${binary_min}= | Set Variable | ${min_rate}
109 | | ${binary_max}= | Set Variable | ${max_rate}
110 | | ${threshold}= | Set Variable | ${min_rate}
111 | | ${dut1_vm_refs}= | Create Dictionary
112 | | ${dut2_vm_refs}= | Create Dictionary
113 | | Set Test Variable | ${dut1_vm_refs}
114 | | Set Test Variable | ${dut2_vm_refs}
115 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
116 | | And   Add PCI devices to DUTs from 3-node single link topology
117 | | And   Add No Multi Seg to all DUTs
118 | | And   Apply startup configuration on all VPP DUTs
119 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
120 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
121 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
122 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
123 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
124
125 | tc03-1518B-1t1c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc
126 | | [Documentation]
127 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
128 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
129 | | ... | using binary search start at 40GE linerate, step 10kpps.
130 | | ...
131 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
132 | | ...
133 | | ${framesize}= | Set Variable | ${1518}
134 | | ${min_rate}= | Set Variable | ${10000}
135 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
136 | | ${binary_min}= | Set Variable | ${min_rate}
137 | | ${binary_max}= | Set Variable | ${max_rate}
138 | | ${threshold}= | Set Variable | ${min_rate}
139 | | ${dut1_vm_refs}= | Create Dictionary
140 | | ${dut2_vm_refs}= | Create Dictionary
141 | | Set Test Variable | ${dut1_vm_refs}
142 | | Set Test Variable | ${dut2_vm_refs}
143 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
144 | | And   Add PCI devices to DUTs from 3-node single link topology
145 | | And   Add No Multi Seg to all DUTs
146 | | And   Apply startup configuration on all VPP DUTs
147 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
148 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
149 | | Then  Find NDR using binary search and pps
150 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
151 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
152
153 | tc04-1518B-1t1c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc
154 | | [Documentation]
155 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
156 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
157 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
158 | | ...
159 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
160 | | ...
161 | | ${framesize}= | Set Variable | ${1518}
162 | | ${min_rate}= | Set Variable | ${10000}
163 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
164 | | ${binary_min}= | Set Variable | ${min_rate}
165 | | ${binary_max}= | Set Variable | ${max_rate}
166 | | ${threshold}= | Set Variable | ${min_rate}
167 | | ${dut1_vm_refs}= | Create Dictionary
168 | | ${dut2_vm_refs}= | Create Dictionary
169 | | Set Test Variable | ${dut1_vm_refs}
170 | | Set Test Variable | ${dut2_vm_refs}
171 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
172 | | And   Add PCI devices to DUTs from 3-node single link topology
173 | | And   Add No Multi Seg to all DUTs
174 | | And   Apply startup configuration on all VPP DUTs
175 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
176 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
177 | | Then  Find PDR using binary search and pps
178 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
179 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
180 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
181
182 | tc05-IMIX-1t1c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc
183 | | [Documentation]
184 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
185 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
186 | | ... | size using binary search start at 40GE linerate, step 10kpps.
187 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
188 | | ...
189 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
190 | | ...
191 | | ${framesize}= | Set Variable | IMIX_v4_1
192 | | ${min_rate}= | Set Variable | ${10000}
193 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
194 | | ${binary_min}= | Set Variable | ${min_rate}
195 | | ${binary_max}= | Set Variable | ${max_rate}
196 | | ${threshold}= | Set Variable | ${min_rate}
197 | | ${dut1_vm_refs}= | Create Dictionary
198 | | ${dut2_vm_refs}= | Create Dictionary
199 | | Set Test Variable | ${dut1_vm_refs}
200 | | Set Test Variable | ${dut2_vm_refs}
201 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
202 | | And   Add PCI devices to DUTs from 3-node single link topology
203 | | And   Add No Multi Seg to all DUTs
204 | | And   Apply startup configuration on all VPP DUTs
205 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
206 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
207 | | Then  Find NDR using binary search and pps
208 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
209 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
210
211 | tc06-IMIX-1t1c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc
212 | | [Documentation]
213 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
214 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
215 | | ... | size using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
216 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
217 | | ...
218 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
219 | | ...
220 | | ${framesize}= | Set Variable | IMIX_v4_1
221 | | ${min_rate}= | Set Variable | ${10000}
222 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
223 | | ${binary_min}= | Set Variable | ${min_rate}
224 | | ${binary_max}= | Set Variable | ${max_rate}
225 | | ${threshold}= | Set Variable | ${min_rate}
226 | | ${dut1_vm_refs}= | Create Dictionary
227 | | ${dut2_vm_refs}= | Create Dictionary
228 | | Set Test Variable | ${dut1_vm_refs}
229 | | Set Test Variable | ${dut2_vm_refs}
230 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
231 | | And   Add PCI devices to DUTs from 3-node single link topology
232 | | And   Add No Multi Seg to all DUTs
233 | | And   Apply startup configuration on all VPP DUTs
234 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
235 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
236 | | Then  Find PDR using binary search and pps
237 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
238 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
239 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
240
241 | tc07-64B-2t2c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc
242 | | [Documentation]
243 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
244 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
245 | | ... | using binary search start at 40GE linerate, step 10kpps.
246 | | ...
247 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
248 | | ...
249 | | ${framesize}= | Set Variable | ${64}
250 | | ${min_rate}= | Set Variable | ${10000}
251 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
252 | | ${binary_min}= | Set Variable | ${min_rate}
253 | | ${binary_max}= | Set Variable | ${max_rate}
254 | | ${threshold}= | Set Variable | ${min_rate}
255 | | ${dut1_vm_refs}= | Create Dictionary
256 | | ${dut2_vm_refs}= | Create Dictionary
257 | | Set Test Variable | ${dut1_vm_refs}
258 | | Set Test Variable | ${dut2_vm_refs}
259 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
260 | | And   Add PCI devices to DUTs from 3-node single link topology
261 | | And   Add No Multi Seg to all DUTs
262 | | And   Apply startup configuration on all VPP DUTs
263 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
264 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
265 | | Then  Find NDR using binary search and pps
266 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
267 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
268
269 | tc08-64B-2t2c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc
270 | | [Documentation]
271 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
272 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
273 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
274 | | ...
275 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
276 | | ...
277 | | ${framesize}= | Set Variable | ${64}
278 | | ${min_rate}= | Set Variable | ${10000}
279 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
280 | | ${binary_min}= | Set Variable | ${min_rate}
281 | | ${binary_max}= | Set Variable | ${max_rate}
282 | | ${threshold}= | Set Variable | ${min_rate}
283 | | ${dut1_vm_refs}= | Create Dictionary
284 | | ${dut2_vm_refs}= | Create Dictionary
285 | | Set Test Variable | ${dut1_vm_refs}
286 | | Set Test Variable | ${dut2_vm_refs}
287 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
288 | | And   Add PCI devices to DUTs from 3-node single link topology
289 | | And   Add No Multi Seg to all DUTs
290 | | And   Apply startup configuration on all VPP DUTs
291 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
292 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
293 | | Then  Find PDR using binary search and pps
294 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
295 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
296 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
297
298 | tc09-1518B-2t2c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc
299 | | [Documentation]
300 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
301 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
302 | | ... | using binary search start at 40GE linerate, step 10kpps.
303 | | ...
304 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
305 | | ...
306 | | ${framesize}= | Set Variable | ${1518}
307 | | ${min_rate}= | Set Variable | ${10000}
308 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
309 | | ${binary_min}= | Set Variable | ${min_rate}
310 | | ${binary_max}= | Set Variable | ${max_rate}
311 | | ${threshold}= | Set Variable | ${min_rate}
312 | | ${dut1_vm_refs}= | Create Dictionary
313 | | ${dut2_vm_refs}= | Create Dictionary
314 | | Set Test Variable | ${dut1_vm_refs}
315 | | Set Test Variable | ${dut2_vm_refs}
316 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
317 | | And   Add PCI devices to DUTs from 3-node single link topology
318 | | And   Add No Multi Seg to all DUTs
319 | | And   Apply startup configuration on all VPP DUTs
320 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
321 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
322 | | Then  Find NDR using binary search and pps
323 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
324 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
325
326 | tc10-1518B-2t2c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc
327 | | [Documentation]
328 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
329 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
330 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
331 | | ...
332 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
333 | | ...
334 | | ${framesize}= | Set Variable | ${1518}
335 | | ${min_rate}= | Set Variable | ${10000}
336 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
337 | | ${binary_min}= | Set Variable | ${min_rate}
338 | | ${binary_max}= | Set Variable | ${max_rate}
339 | | ${threshold}= | Set Variable | ${min_rate}
340 | | ${dut1_vm_refs}= | Create Dictionary
341 | | ${dut2_vm_refs}= | Create Dictionary
342 | | Set Test Variable | ${dut1_vm_refs}
343 | | Set Test Variable | ${dut2_vm_refs}
344 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
345 | | And   Add PCI devices to DUTs from 3-node single link topology
346 | | And   Add No Multi Seg to all DUTs
347 | | And   Apply startup configuration on all VPP DUTs
348 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
349 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
350 | | Then  Find PDR using binary search and pps
351 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
352 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
353 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
354
355 | tc11-IMIX-2t2c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc
356 | | [Documentation]
357 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
358 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
359 | | ... | size using binary search start at 40GE linerate, step 10kpps.
360 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
361 | | ...
362 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
363 | | ...
364 | | ${framesize}= | Set Variable | IMIX_v4_1
365 | | ${min_rate}= | Set Variable | ${10000}
366 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
367 | | ${binary_min}= | Set Variable | ${min_rate}
368 | | ${binary_max}= | Set Variable | ${max_rate}
369 | | ${threshold}= | Set Variable | ${min_rate}
370 | | ${dut1_vm_refs}= | Create Dictionary
371 | | ${dut2_vm_refs}= | Create Dictionary
372 | | Set Test Variable | ${dut1_vm_refs}
373 | | Set Test Variable | ${dut2_vm_refs}
374 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
375 | | And   Add PCI devices to DUTs from 3-node single link topology
376 | | And   Add No Multi Seg to all DUTs
377 | | And   Apply startup configuration on all VPP DUTs
378 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
379 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
380 | | Then  Find NDR using binary search and pps
381 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
382 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
383
384 | tc12-IMIX-2t2c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc
385 | | [Documentation]
386 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
387 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
388 | | ... | size using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
389 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
390 | | ...
391 | | [Tags] | IMIX | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
392 | | ...
393 | | ${framesize}= | Set Variable | IMIX_v4_1
394 | | ${min_rate}= | Set Variable | ${10000}
395 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
396 | | ${binary_min}= | Set Variable | ${min_rate}
397 | | ${binary_max}= | Set Variable | ${max_rate}
398 | | ${threshold}= | Set Variable | ${min_rate}
399 | | ${dut1_vm_refs}= | Create Dictionary
400 | | ${dut2_vm_refs}= | Create Dictionary
401 | | Set Test Variable | ${dut1_vm_refs}
402 | | Set Test Variable | ${dut2_vm_refs}
403 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
404 | | And   Add PCI devices to DUTs from 3-node single link topology
405 | | And   Add No Multi Seg to all DUTs
406 | | And   Apply startup configuration on all VPP DUTs
407 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
408 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
409 | | Then  Find PDR using binary search and pps
410 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
411 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
412 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
413
414 | tc13-64B-4t4c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc
415 | | [Documentation]
416 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
417 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames \
418 | | ... | using binary search start at 40GE linerate, step 10kpps.
419 | | ...
420 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
421 | | ...
422 | | ${framesize}= | Set Variable | ${64}
423 | | ${min_rate}= | Set Variable | ${10000}
424 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
425 | | ${binary_min}= | Set Variable | ${min_rate}
426 | | ${binary_max}= | Set Variable | ${max_rate}
427 | | ${threshold}= | Set Variable | ${min_rate}
428 | | ${dut1_vm_refs}= | Create Dictionary
429 | | ${dut2_vm_refs}= | Create Dictionary
430 | | Set Test Variable | ${dut1_vm_refs}
431 | | Set Test Variable | ${dut2_vm_refs}
432 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
433 | | And   Add PCI devices to DUTs from 3-node single link topology
434 | | And   Add No Multi Seg to all DUTs
435 | | And   Apply startup configuration on all VPP DUTs
436 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
437 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
438 | | Then  Find NDR using binary search and pps
439 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
440 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
441
442 | tc14-64B-4t4c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc
443 | | [Documentation]
444 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
445 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames \
446 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
447 | | ...
448 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
449 | | ...
450 | | ${framesize}= | Set Variable | ${64}
451 | | ${min_rate}= | Set Variable | ${10000}
452 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
453 | | ${binary_min}= | Set Variable | ${min_rate}
454 | | ${binary_max}= | Set Variable | ${max_rate}
455 | | ${threshold}= | Set Variable | ${min_rate}
456 | | ${dut1_vm_refs}= | Create Dictionary
457 | | ${dut2_vm_refs}= | Create Dictionary
458 | | Set Test Variable | ${dut1_vm_refs}
459 | | Set Test Variable | ${dut2_vm_refs}
460 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
461 | | And   Add PCI devices to DUTs from 3-node single link topology
462 | | And   Add No Multi Seg to all DUTs
463 | | And   Apply startup configuration on all VPP DUTs
464 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
465 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
466 | | Then  Find PDR using binary search and pps
467 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
468 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
469 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
470
471 | tc15-1518B-4t4c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc
472 | | [Documentation]
473 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
474 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames \
475 | | ... | using binary search start at 40GE linerate, step 10kpps.
476 | | ...
477 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
478 | | ...
479 | | ${framesize}= | Set Variable | ${1518}
480 | | ${min_rate}= | Set Variable | ${10000}
481 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
482 | | ${binary_min}= | Set Variable | ${min_rate}
483 | | ${binary_max}= | Set Variable | ${max_rate}
484 | | ${threshold}= | Set Variable | ${min_rate}
485 | | ${dut1_vm_refs}= | Create Dictionary
486 | | ${dut2_vm_refs}= | Create Dictionary
487 | | Set Test Variable | ${dut1_vm_refs}
488 | | Set Test Variable | ${dut2_vm_refs}
489 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
490 | | And   Add PCI devices to DUTs from 3-node single link topology
491 | | And   Add No Multi Seg to all DUTs
492 | | And   Apply startup configuration on all VPP DUTs
493 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
494 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
495 | | Then  Find NDR using binary search and pps
496 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
497 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
498
499 | tc16-1518B-4t4c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc
500 | | [Documentation]
501 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
502 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames \
503 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
504 | | ...
505 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
506 | | ...
507 | | ${framesize}= | Set Variable | ${1518}
508 | | ${min_rate}= | Set Variable | ${10000}
509 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
510 | | ${binary_min}= | Set Variable | ${min_rate}
511 | | ${binary_max}= | Set Variable | ${max_rate}
512 | | ${threshold}= | Set Variable | ${min_rate}
513 | | ${dut1_vm_refs}= | Create Dictionary
514 | | ${dut2_vm_refs}= | Create Dictionary
515 | | Set Test Variable | ${dut1_vm_refs}
516 | | Set Test Variable | ${dut2_vm_refs}
517 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
518 | | And   Add PCI devices to DUTs from 3-node single link topology
519 | | And   Add No Multi Seg to all DUTs
520 | | And   Apply startup configuration on all VPP DUTs
521 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
522 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
523 | | Then  Find PDR using binary search and pps
524 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
525 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
526 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
527
528 | tc17-IMIX-4t4c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc
529 | | [Documentation]
530 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
531 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
532 | | ... | size using binary search start at 40GE linerate, step 10kpps.
533 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
534 | | ...
535 | | [Tags] | IMIX | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
536 | | ...
537 | | ${framesize}= | Set Variable | IMIX_v4_1
538 | | ${min_rate}= | Set Variable | ${10000}
539 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
540 | | ${binary_min}= | Set Variable | ${min_rate}
541 | | ${binary_max}= | Set Variable | ${max_rate}
542 | | ${threshold}= | Set Variable | ${min_rate}
543 | | ${dut1_vm_refs}= | Create Dictionary
544 | | ${dut2_vm_refs}= | Create Dictionary
545 | | Set Test Variable | ${dut1_vm_refs}
546 | | Set Test Variable | ${dut2_vm_refs}
547 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
548 | | And   Add PCI devices to DUTs from 3-node single link topology
549 | | And   Add No Multi Seg to all DUTs
550 | | And   Apply startup configuration on all VPP DUTs
551 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
552 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
553 | | Then  Find NDR using binary search and pps
554 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
555 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
556
557 | tc18-IMIX-4t4c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc
558 | | [Documentation]
559 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
560 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
561 | | ... | size using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
562 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
563 | | ...
564 | | [Tags] | IMIX | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
565 | | ...
566 | | ${framesize}= | Set Variable | IMIX_v4_1
567 | | ${min_rate}= | Set Variable | ${10000}
568 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
569 | | ${binary_min}= | Set Variable | ${min_rate}
570 | | ${binary_max}= | Set Variable | ${max_rate}
571 | | ${threshold}= | Set Variable | ${min_rate}
572 | | ${dut1_vm_refs}= | Create Dictionary
573 | | ${dut2_vm_refs}= | Create Dictionary
574 | | Set Test Variable | ${dut1_vm_refs}
575 | | Set Test Variable | ${dut2_vm_refs}
576 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
577 | | And   Add PCI devices to DUTs from 3-node single link topology
578 | | And   Add No Multi Seg to all DUTs
579 | | And   Apply startup configuration on all VPP DUTs
580 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
581 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
582 | | Then  Find PDR using binary search and pps
583 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
584 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
585 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}