dec4d1be7870268d214042f2bf8cf58edadbfd62
[csit.git] / tests / vpp / perf / vm_vhost / 40ge2p1xl710-eth-l2xcbase-eth-4vhostvr1024-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/performance_setup.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 | VHOST_1024
20 | ...
21 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
22 | ... | L2 | Intel-XL710
23 | Suite Teardown | Tear down 3-node performance topology
24 | ...
25 | Test Setup | Set up performance test
26 | Test Teardown | Tear down performance test with vhost and VM with dpdk-testpmd
27 | ... | ${min_rate}pps | ${framesize} | ${traffic_profile}
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=1024, 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 | ${perf_qemu_qsz}= | 1024
60 # XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
61 | ${s_24.5G}= | ${24500000000}
62 # XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
63 | ${s_18.75Mpps}= | ${18750000}
64 # CPU settings
65 | ${system_cpus}= | ${1}
66 | ${vpp_cpus}= | ${5}
67 | ${vm_cpus}= | ${5}
68 # Traffic profile:
69 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
70
71 *** Test Cases ***
72 | tc01-64B-1t1c-eth-l2xcbase-eth-4vhostvr1024-2vm-ndrdisc
73 | | [Documentation]
74 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
75 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
76 | | ... | using binary search start at 40GE linerate, step 10kpps.
77 | | ...
78 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
79 | | ...
80 | | ${framesize}= | Set Variable | ${64}
81 | | ${min_rate}= | Set Variable | ${10000}
82 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
83 | | ${binary_min}= | Set Variable | ${min_rate}
84 | | ${binary_max}= | Set Variable | ${max_rate}
85 | | ${threshold}= | Set Variable | ${min_rate}
86 | | ${dut1_vm_refs}= | Create Dictionary
87 | | ${dut2_vm_refs}= | Create Dictionary
88 | | Set Test Variable | ${dut1_vm_refs}
89 | | Set Test Variable | ${dut2_vm_refs}
90 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
91 | | And Add PCI devices to DUTs in 3-node single link topology
92 | | And Add no multi seg to all DUTs
93 | | And Apply startup configuration on all VPP DUTs
94 | | When Initialize L2 xconnect with Vhost-User for '2' in 3-node circular topology
95 | | And Configure '2' guest VMs with dpdk-testpmd connected via vhost-user in 3-node circular topology
96 | | Then Find NDR using binary search and pps
97 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
98 | | ... | ${min_rate} | ${max_rate} | ${threshold}
99
100 | tc02-64B-1t1c-eth-l2xcbase-eth-4vhostvr1024-2vm-pdrdisc
101 | | [Documentation]
102 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
103 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
104 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
105 | | ...
106 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
107 | | ...
108 | | ${framesize}= | Set Variable | ${64}
109 | | ${min_rate}= | Set Variable | ${10000}
110 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
111 | | ${binary_min}= | Set Variable | ${min_rate}
112 | | ${binary_max}= | Set Variable | ${max_rate}
113 | | ${threshold}= | Set Variable | ${min_rate}
114 | | ${dut1_vm_refs}= | Create Dictionary
115 | | ${dut2_vm_refs}= | Create Dictionary
116 | | Set Test Variable | ${dut1_vm_refs}
117 | | Set Test Variable | ${dut2_vm_refs}
118 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
119 | | And Add PCI devices to DUTs in 3-node single link topology
120 | | And Add no multi seg to all DUTs
121 | | And Apply startup configuration on all VPP DUTs
122 | | When Initialize L2 xconnect with Vhost-User for '2' in 3-node circular topology
123 | | And Configure '2' guest VMs with dpdk-testpmd connected via vhost-user in 3-node circular topology
124 | | Then Find PDR using binary search and pps
125 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
126 | | ... | ${min_rate} | ${max_rate} | ${threshold}
127 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
128
129 | tc03-1518B-1t1c-eth-l2xcbase-eth-4vhostvr1024-2vm-ndrdisc
130 | | [Documentation]
131 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
132 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
133 | | ... | using binary search start at 40GE linerate, step 10kpps.
134 | | ...
135 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
136 | | ...
137 | | ${framesize}= | Set Variable | ${1518}
138 | | ${min_rate}= | Set Variable | ${10000}
139 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
140 | | ${binary_min}= | Set Variable | ${min_rate}
141 | | ${binary_max}= | Set Variable | ${max_rate}
142 | | ${threshold}= | Set Variable | ${min_rate}
143 | | ${dut1_vm_refs}= | Create Dictionary
144 | | ${dut2_vm_refs}= | Create Dictionary
145 | | Set Test Variable | ${dut1_vm_refs}
146 | | Set Test Variable | ${dut2_vm_refs}
147 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
148 | | And Add PCI devices to DUTs in 3-node single link topology
149 | | And Add no multi seg to all DUTs
150 | | And Apply startup configuration on all VPP DUTs
151 | | When Initialize L2 xconnect with Vhost-User for '2' in 3-node circular topology
152 | | And Configure '2' guest VMs with dpdk-testpmd connected via vhost-user in 3-node circular topology
153 | | Then Find NDR using binary search and pps
154 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
155 | | ... | ${min_rate} | ${max_rate} | ${threshold}
156
157 | tc04-1518B-1t1c-eth-l2xcbase-eth-4vhostvr1024-2vm-pdrdisc
158 | | [Documentation]
159 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
160 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
161 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
162 | | ...
163 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
164 | | ...
165 | | ${framesize}= | Set Variable | ${1518}
166 | | ${min_rate}= | Set Variable | ${10000}
167 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
168 | | ${binary_min}= | Set Variable | ${min_rate}
169 | | ${binary_max}= | Set Variable | ${max_rate}
170 | | ${threshold}= | Set Variable | ${min_rate}
171 | | ${dut1_vm_refs}= | Create Dictionary
172 | | ${dut2_vm_refs}= | Create Dictionary
173 | | Set Test Variable | ${dut1_vm_refs}
174 | | Set Test Variable | ${dut2_vm_refs}
175 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
176 | | And Add PCI devices to DUTs in 3-node single link topology
177 | | And Add no multi seg to all DUTs
178 | | And Apply startup configuration on all VPP DUTs
179 | | When Initialize L2 xconnect with Vhost-User for '2' in 3-node circular topology
180 | | And Configure '2' guest VMs with dpdk-testpmd connected via vhost-user in 3-node circular topology
181 | | Then Find PDR using binary search and pps
182 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
183 | | ... | ${min_rate} | ${max_rate} | ${threshold}
184 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
185
186 | tc05-IMIX-1t1c-eth-l2xcbase-eth-4vhostvr1024-2vm-ndrdisc
187 | | [Documentation]
188 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
189 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
190 | | ... | size using binary search start at 40GE linerate, step 10kpps.
191 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
192 | | ...
193 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
194 | | ...
195 | | ${framesize}= | Set Variable | IMIX_v4_1
196 | | ${min_rate}= | Set Variable | ${10000}
197 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
198 | | ${binary_min}= | Set Variable | ${min_rate}
199 | | ${binary_max}= | Set Variable | ${max_rate}
200 | | ${threshold}= | Set Variable | ${min_rate}
201 | | ${dut1_vm_refs}= | Create Dictionary
202 | | ${dut2_vm_refs}= | Create Dictionary
203 | | Set Test Variable | ${dut1_vm_refs}
204 | | Set Test Variable | ${dut2_vm_refs}
205 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
206 | | And Add PCI devices to DUTs in 3-node single link topology
207 | | And Add no multi seg to all DUTs
208 | | And Apply startup configuration on all VPP DUTs
209 | | When Initialize L2 xconnect with Vhost-User for '2' in 3-node circular topology
210 | | And Configure '2' guest VMs with dpdk-testpmd connected via vhost-user in 3-node circular topology
211 | | Then Find NDR using binary search and pps
212 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
213 | | ... | ${min_rate} | ${max_rate} | ${threshold}
214
215 | tc06-IMIX-1t1c-eth-l2xcbase-eth-4vhostvr1024-2vm-pdrdisc
216 | | [Documentation]
217 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
218 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
219 | | ... | size using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
220 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
221 | | ...
222 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
223 | | ...
224 | | ${framesize}= | Set Variable | IMIX_v4_1
225 | | ${min_rate}= | Set Variable | ${10000}
226 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
227 | | ${binary_min}= | Set Variable | ${min_rate}
228 | | ${binary_max}= | Set Variable | ${max_rate}
229 | | ${threshold}= | Set Variable | ${min_rate}
230 | | ${dut1_vm_refs}= | Create Dictionary
231 | | ${dut2_vm_refs}= | Create Dictionary
232 | | Set Test Variable | ${dut1_vm_refs}
233 | | Set Test Variable | ${dut2_vm_refs}
234 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
235 | | And Add PCI devices to DUTs in 3-node single link topology
236 | | And Add no multi seg to all DUTs
237 | | And Apply startup configuration on all VPP DUTs
238 | | When Initialize L2 xconnect with Vhost-User for '2' in 3-node circular topology
239 | | And Configure '2' guest VMs with dpdk-testpmd connected via vhost-user in 3-node circular topology
240 | | Then Find PDR using binary search and pps
241 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
242 | | ... | ${min_rate} | ${max_rate} | ${threshold}
243 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
244
245 | tc07-64B-2t2c-eth-l2xcbase-eth-4vhostvr1024-2vm-ndrdisc
246 | | [Documentation]
247 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
248 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
249 | | ... | using binary search start at 40GE linerate, step 10kpps.
250 | | ...
251 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
252 | | ...
253 | | ${framesize}= | Set Variable | ${64}
254 | | ${min_rate}= | Set Variable | ${10000}
255 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
256 | | ${binary_min}= | Set Variable | ${min_rate}
257 | | ${binary_max}= | Set Variable | ${max_rate}
258 | | ${threshold}= | Set Variable | ${min_rate}
259 | | ${dut1_vm_refs}= | Create Dictionary
260 | | ${dut2_vm_refs}= | Create Dictionary
261 | | Set Test Variable | ${dut1_vm_refs}
262 | | Set Test Variable | ${dut2_vm_refs}
263 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
264 | | And Add PCI devices to DUTs in 3-node single link topology
265 | | And Add no multi seg to all DUTs
266 | | And Apply startup configuration on all VPP DUTs
267 | | When Initialize L2 xconnect with Vhost-User for '2' in 3-node circular topology
268 | | And Configure '2' guest VMs with dpdk-testpmd connected via vhost-user in 3-node circular topology
269 | | Then Find NDR using binary search and pps
270 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
271 | | ... | ${min_rate} | ${max_rate} | ${threshold}
272
273 | tc08-64B-2t2c-eth-l2xcbase-eth-4vhostvr1024-2vm-pdrdisc
274 | | [Documentation]
275 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
276 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
277 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
278 | | ...
279 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
280 | | ...
281 | | ${framesize}= | Set Variable | ${64}
282 | | ${min_rate}= | Set Variable | ${10000}
283 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
284 | | ${binary_min}= | Set Variable | ${min_rate}
285 | | ${binary_max}= | Set Variable | ${max_rate}
286 | | ${threshold}= | Set Variable | ${min_rate}
287 | | ${dut1_vm_refs}= | Create Dictionary
288 | | ${dut2_vm_refs}= | Create Dictionary
289 | | Set Test Variable | ${dut1_vm_refs}
290 | | Set Test Variable | ${dut2_vm_refs}
291 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
292 | | And Add PCI devices to DUTs in 3-node single link topology
293 | | And Add no multi seg to all DUTs
294 | | And Apply startup configuration on all VPP DUTs
295 | | When Initialize L2 xconnect with Vhost-User for '2' in 3-node circular topology
296 | | And Configure '2' guest VMs with dpdk-testpmd connected via vhost-user in 3-node circular topology
297 | | Then Find PDR using binary search and pps
298 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
299 | | ... | ${min_rate} | ${max_rate} | ${threshold}
300 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
301
302 | tc09-1518B-2t2c-eth-l2xcbase-eth-4vhostvr1024-2vm-ndrdisc
303 | | [Documentation]
304 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
305 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
306 | | ... | using binary search start at 40GE linerate, step 10kpps.
307 | | ...
308 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
309 | | ...
310 | | ${framesize}= | Set Variable | ${1518}
311 | | ${min_rate}= | Set Variable | ${10000}
312 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
313 | | ${binary_min}= | Set Variable | ${min_rate}
314 | | ${binary_max}= | Set Variable | ${max_rate}
315 | | ${threshold}= | Set Variable | ${min_rate}
316 | | ${dut1_vm_refs}= | Create Dictionary
317 | | ${dut2_vm_refs}= | Create Dictionary
318 | | Set Test Variable | ${dut1_vm_refs}
319 | | Set Test Variable | ${dut2_vm_refs}
320 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
321 | | And Add PCI devices to DUTs in 3-node single link topology
322 | | And Add no multi seg to all DUTs
323 | | And Apply startup configuration on all VPP DUTs
324 | | When Initialize L2 xconnect with Vhost-User for '2' in 3-node circular topology
325 | | And Configure '2' guest VMs with dpdk-testpmd connected via vhost-user in 3-node circular topology
326 | | Then Find NDR using binary search and pps
327 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
328 | | ... | ${min_rate} | ${max_rate} | ${threshold}
329
330 | tc10-1518B-2t2c-eth-l2xcbase-eth-4vhostvr1024-2vm-pdrdisc
331 | | [Documentation]
332 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
333 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
334 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
335 | | ...
336 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
337 | | ...
338 | | ${framesize}= | Set Variable | ${1518}
339 | | ${min_rate}= | Set Variable | ${10000}
340 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
341 | | ${binary_min}= | Set Variable | ${min_rate}
342 | | ${binary_max}= | Set Variable | ${max_rate}
343 | | ${threshold}= | Set Variable | ${min_rate}
344 | | ${dut1_vm_refs}= | Create Dictionary
345 | | ${dut2_vm_refs}= | Create Dictionary
346 | | Set Test Variable | ${dut1_vm_refs}
347 | | Set Test Variable | ${dut2_vm_refs}
348 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
349 | | And Add PCI devices to DUTs in 3-node single link topology
350 | | And Add no multi seg to all DUTs
351 | | And Apply startup configuration on all VPP DUTs
352 | | When Initialize L2 xconnect with Vhost-User for '2' in 3-node circular topology
353 | | And Configure '2' guest VMs with dpdk-testpmd connected via vhost-user in 3-node circular topology
354 | | Then Find PDR using binary search and pps
355 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
356 | | ... | ${min_rate} | ${max_rate} | ${threshold}
357 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
358
359 | tc11-IMIX-2t2c-eth-l2xcbase-eth-4vhostvr1024-2vm-ndrdisc
360 | | [Documentation]
361 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
362 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
363 | | ... | size using binary search start at 40GE linerate, step 10kpps.
364 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
365 | | ...
366 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
367 | | ...
368 | | ${framesize}= | Set Variable | IMIX_v4_1
369 | | ${min_rate}= | Set Variable | ${10000}
370 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
371 | | ${binary_min}= | Set Variable | ${min_rate}
372 | | ${binary_max}= | Set Variable | ${max_rate}
373 | | ${threshold}= | Set Variable | ${min_rate}
374 | | ${dut1_vm_refs}= | Create Dictionary
375 | | ${dut2_vm_refs}= | Create Dictionary
376 | | Set Test Variable | ${dut1_vm_refs}
377 | | Set Test Variable | ${dut2_vm_refs}
378 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
379 | | And Add PCI devices to DUTs in 3-node single link topology
380 | | And Add no multi seg to all DUTs
381 | | And Apply startup configuration on all VPP DUTs
382 | | When Initialize L2 xconnect with Vhost-User for '2' in 3-node circular topology
383 | | And Configure '2' guest VMs with dpdk-testpmd connected via vhost-user in 3-node circular topology
384 | | Then Find NDR using binary search and pps
385 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
386 | | ... | ${min_rate} | ${max_rate} | ${threshold}
387
388 | tc12-IMIX-2t2c-eth-l2xcbase-eth-4vhostvr1024-2vm-pdrdisc
389 | | [Documentation]
390 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
391 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
392 | | ... | size using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
393 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
394 | | ...
395 | | [Tags] | IMIX | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
396 | | ...
397 | | ${framesize}= | Set Variable | IMIX_v4_1
398 | | ${min_rate}= | Set Variable | ${10000}
399 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
400 | | ${binary_min}= | Set Variable | ${min_rate}
401 | | ${binary_max}= | Set Variable | ${max_rate}
402 | | ${threshold}= | Set Variable | ${min_rate}
403 | | ${dut1_vm_refs}= | Create Dictionary
404 | | ${dut2_vm_refs}= | Create Dictionary
405 | | Set Test Variable | ${dut1_vm_refs}
406 | | Set Test Variable | ${dut2_vm_refs}
407 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
408 | | And Add PCI devices to DUTs in 3-node single link topology
409 | | And Add no multi seg to all DUTs
410 | | And Apply startup configuration on all VPP DUTs
411 | | When Initialize L2 xconnect with Vhost-User for '2' in 3-node circular topology
412 | | And Configure '2' guest VMs with dpdk-testpmd connected via vhost-user in 3-node circular topology
413 | | Then Find PDR using binary search and pps
414 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
415 | | ... | ${min_rate} | ${max_rate} | ${threshold}
416 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
417
418 | tc13-64B-4t4c-eth-l2xcbase-eth-4vhostvr1024-2vm-ndrdisc
419 | | [Documentation]
420 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
421 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames \
422 | | ... | using binary search start at 40GE linerate, step 10kpps.
423 | | ...
424 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
425 | | ...
426 | | ${framesize}= | Set Variable | ${64}
427 | | ${min_rate}= | Set Variable | ${10000}
428 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
429 | | ${binary_min}= | Set Variable | ${min_rate}
430 | | ${binary_max}= | Set Variable | ${max_rate}
431 | | ${threshold}= | Set Variable | ${min_rate}
432 | | ${dut1_vm_refs}= | Create Dictionary
433 | | ${dut2_vm_refs}= | Create Dictionary
434 | | Set Test Variable | ${dut1_vm_refs}
435 | | Set Test Variable | ${dut2_vm_refs}
436 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
437 | | And Add PCI devices to DUTs in 3-node single link topology
438 | | And Add no multi seg to all DUTs
439 | | And Apply startup configuration on all VPP DUTs
440 | | When Initialize L2 xconnect with Vhost-User for '2' in 3-node circular topology
441 | | And Configure '2' guest VMs with dpdk-testpmd connected via vhost-user in 3-node circular topology
442 | | Then Find NDR using binary search and pps
443 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
444 | | ... | ${min_rate} | ${max_rate} | ${threshold}
445
446 | tc14-64B-4t4c-eth-l2xcbase-eth-4vhostvr1024-2vm-pdrdisc
447 | | [Documentation]
448 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
449 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames \
450 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
451 | | ...
452 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
453 | | ...
454 | | ${framesize}= | Set Variable | ${64}
455 | | ${min_rate}= | Set Variable | ${10000}
456 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
457 | | ${binary_min}= | Set Variable | ${min_rate}
458 | | ${binary_max}= | Set Variable | ${max_rate}
459 | | ${threshold}= | Set Variable | ${min_rate}
460 | | ${dut1_vm_refs}= | Create Dictionary
461 | | ${dut2_vm_refs}= | Create Dictionary
462 | | Set Test Variable | ${dut1_vm_refs}
463 | | Set Test Variable | ${dut2_vm_refs}
464 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
465 | | And Add PCI devices to DUTs in 3-node single link topology
466 | | And Add no multi seg to all DUTs
467 | | And Apply startup configuration on all VPP DUTs
468 | | When Initialize L2 xconnect with Vhost-User for '2' in 3-node circular topology
469 | | And Configure '2' guest VMs with dpdk-testpmd connected via vhost-user in 3-node circular topology
470 | | Then Find PDR using binary search and pps
471 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
472 | | ... | ${min_rate} | ${max_rate} | ${threshold}
473 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
474
475 | tc15-1518B-4t4c-eth-l2xcbase-eth-4vhostvr1024-2vm-ndrdisc
476 | | [Documentation]
477 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
478 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames \
479 | | ... | using binary search start at 40GE linerate, step 10kpps.
480 | | ...
481 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
482 | | ...
483 | | ${framesize}= | Set Variable | ${1518}
484 | | ${min_rate}= | Set Variable | ${10000}
485 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
486 | | ${binary_min}= | Set Variable | ${min_rate}
487 | | ${binary_max}= | Set Variable | ${max_rate}
488 | | ${threshold}= | Set Variable | ${min_rate}
489 | | ${dut1_vm_refs}= | Create Dictionary
490 | | ${dut2_vm_refs}= | Create Dictionary
491 | | Set Test Variable | ${dut1_vm_refs}
492 | | Set Test Variable | ${dut2_vm_refs}
493 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
494 | | And Add PCI devices to DUTs in 3-node single link topology
495 | | And Add no multi seg to all DUTs
496 | | And Apply startup configuration on all VPP DUTs
497 | | When Initialize L2 xconnect with Vhost-User for '2' in 3-node circular topology
498 | | And Configure '2' guest VMs with dpdk-testpmd connected via vhost-user in 3-node circular topology
499 | | Then Find NDR using binary search and pps
500 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
501 | | ... | ${min_rate} | ${max_rate} | ${threshold}
502
503 | tc16-1518B-4t4c-eth-l2xcbase-eth-4vhostvr1024-2vm-pdrdisc
504 | | [Documentation]
505 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
506 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames \
507 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
508 | | ...
509 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
510 | | ...
511 | | ${framesize}= | Set Variable | ${1518}
512 | | ${min_rate}= | Set Variable | ${10000}
513 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
514 | | ${binary_min}= | Set Variable | ${min_rate}
515 | | ${binary_max}= | Set Variable | ${max_rate}
516 | | ${threshold}= | Set Variable | ${min_rate}
517 | | ${dut1_vm_refs}= | Create Dictionary
518 | | ${dut2_vm_refs}= | Create Dictionary
519 | | Set Test Variable | ${dut1_vm_refs}
520 | | Set Test Variable | ${dut2_vm_refs}
521 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
522 | | And Add PCI devices to DUTs in 3-node single link topology
523 | | And Add no multi seg to all DUTs
524 | | And Apply startup configuration on all VPP DUTs
525 | | When Initialize L2 xconnect with Vhost-User for '2' in 3-node circular topology
526 | | And Configure '2' guest VMs with dpdk-testpmd connected via vhost-user in 3-node circular topology
527 | | Then Find PDR using binary search and pps
528 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
529 | | ... | ${min_rate} | ${max_rate} | ${threshold}
530 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
531
532 | tc17-IMIX-4t4c-eth-l2xcbase-eth-4vhostvr1024-2vm-ndrdisc
533 | | [Documentation]
534 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
535 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
536 | | ... | size using binary search start at 40GE linerate, step 10kpps.
537 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
538 | | ...
539 | | [Tags] | IMIX | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
540 | | ...
541 | | ${framesize}= | Set Variable | IMIX_v4_1
542 | | ${min_rate}= | Set Variable | ${10000}
543 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
544 | | ${binary_min}= | Set Variable | ${min_rate}
545 | | ${binary_max}= | Set Variable | ${max_rate}
546 | | ${threshold}= | Set Variable | ${min_rate}
547 | | ${dut1_vm_refs}= | Create Dictionary
548 | | ${dut2_vm_refs}= | Create Dictionary
549 | | Set Test Variable | ${dut1_vm_refs}
550 | | Set Test Variable | ${dut2_vm_refs}
551 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
552 | | And Add PCI devices to DUTs in 3-node single link topology
553 | | And Add no multi seg to all DUTs
554 | | And Apply startup configuration on all VPP DUTs
555 | | When Initialize L2 xconnect with Vhost-User for '2' in 3-node circular topology
556 | | And Configure '2' guest VMs with dpdk-testpmd connected via vhost-user in 3-node circular topology
557 | | Then Find NDR using binary search and pps
558 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
559 | | ... | ${min_rate} | ${max_rate} | ${threshold}
560
561 | tc18-IMIX-4t4c-eth-l2xcbase-eth-4vhostvr1024-2vm-pdrdisc
562 | | [Documentation]
563 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
564 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
565 | | ... | size using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
566 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
567 | | ...
568 | | [Tags] | IMIX | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
569 | | ...
570 | | ${framesize}= | Set Variable | IMIX_v4_1
571 | | ${min_rate}= | Set Variable | ${10000}
572 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
573 | | ${binary_min}= | Set Variable | ${min_rate}
574 | | ${binary_max}= | Set Variable | ${max_rate}
575 | | ${threshold}= | Set Variable | ${min_rate}
576 | | ${dut1_vm_refs}= | Create Dictionary
577 | | ${dut2_vm_refs}= | Create Dictionary
578 | | Set Test Variable | ${dut1_vm_refs}
579 | | Set Test Variable | ${dut2_vm_refs}
580 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
581 | | And Add PCI devices to DUTs in 3-node single link topology
582 | | And Add no multi seg to all DUTs
583 | | And Apply startup configuration on all VPP DUTs
584 | | When Initialize L2 xconnect with Vhost-User for '2' in 3-node circular topology
585 | | And Configure '2' guest VMs with dpdk-testpmd connected via vhost-user in 3-node circular topology
586 | | Then Find PDR using binary search and pps
587 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
588 | | ... | ${min_rate} | ${max_rate} | ${threshold}
589 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}