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