Added Ethernet frame size tags for performance tests:
[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] | 64B | 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 | | Then  Find NDR using binary search and pps
89 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
90 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
91
92 | tc02-64B-1t1c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc
93 | | [Documentation]
94 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
95 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
96 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
97 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
98 | | ${framesize}= | Set Variable | ${64}
99 | | ${min_rate}= | Set Variable | ${10000}
100 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
101 | | ${binary_min}= | Set Variable | ${min_rate}
102 | | ${binary_max}= | Set Variable | ${max_rate}
103 | | ${threshold}= | Set Variable | ${min_rate}
104 | | ${dut1_vm_refs}= | Create Dictionary
105 | | ${dut2_vm_refs}= | Create Dictionary
106 | | Set Test Variable | ${dut1_vm_refs}
107 | | Set Test Variable | ${dut2_vm_refs}
108 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
109 | | And   Add PCI devices to DUTs from 3-node single link topology
110 | | And   Add No Multi Seg to all DUTs
111 | | And   Apply startup configuration on all VPP DUTs
112 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
113 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
114 | | Then  Find PDR using binary search and pps
115 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
116 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
117 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
118
119 | tc03-1518B-1t1c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc
120 | | [Documentation]
121 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
122 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
123 | | ... | using binary search start at 10GE linerate, step 10kpps.
124 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
125 | | ${framesize}= | Set Variable | ${1518}
126 | | ${min_rate}= | Set Variable | ${10000}
127 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
128 | | ${binary_min}= | Set Variable | ${min_rate}
129 | | ${binary_max}= | Set Variable | ${max_rate}
130 | | ${threshold}= | Set Variable | ${min_rate}
131 | | ${dut1_vm_refs}= | Create Dictionary
132 | | ${dut2_vm_refs}= | Create Dictionary
133 | | Set Test Variable | ${dut1_vm_refs}
134 | | Set Test Variable | ${dut2_vm_refs}
135 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
136 | | And   Add PCI devices to DUTs from 3-node single link topology
137 | | And   Add No Multi Seg to all DUTs
138 | | And   Apply startup configuration on all VPP DUTs
139 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
140 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
141 | | Then  Find NDR using binary search and pps
142 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
143 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
144
145 | tc04-1518B-1t1c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc
146 | | [Documentation]
147 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
148 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
149 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
150 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
151 | | ${framesize}= | Set Variable | ${1518}
152 | | ${min_rate}= | Set Variable | ${10000}
153 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
154 | | ${binary_min}= | Set Variable | ${min_rate}
155 | | ${binary_max}= | Set Variable | ${max_rate}
156 | | ${threshold}= | Set Variable | ${min_rate}
157 | | ${dut1_vm_refs}= | Create Dictionary
158 | | ${dut2_vm_refs}= | Create Dictionary
159 | | Set Test Variable | ${dut1_vm_refs}
160 | | Set Test Variable | ${dut2_vm_refs}
161 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
162 | | And   Add PCI devices to DUTs from 3-node single link topology
163 | | And   Add No Multi Seg to all DUTs
164 | | And   Apply startup configuration on all VPP DUTs
165 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
166 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
167 | | Then  Find PDR using binary search and pps
168 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
169 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
170 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
171
172 | tc05-IMIX-1t1c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc
173 | | [Documentation]
174 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
175 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
176 | | ... | size using binary search start at 10GE linerate, step 10kpps.
177 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
178 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
179 | | ${framesize}= | Set Variable | IMIX_v4_1
180 | | ${min_rate}= | Set Variable | ${10000}
181 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
182 | | ${binary_min}= | Set Variable | ${min_rate}
183 | | ${binary_max}= | Set Variable | ${max_rate}
184 | | ${threshold}= | Set Variable | ${min_rate}
185 | | ${dut1_vm_refs}= | Create Dictionary
186 | | ${dut2_vm_refs}= | Create Dictionary
187 | | Set Test Variable | ${dut1_vm_refs}
188 | | Set Test Variable | ${dut2_vm_refs}
189 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
190 | | And   Add PCI devices to DUTs from 3-node single link topology
191 | | And   Add No Multi Seg to all DUTs
192 | | And   Apply startup configuration on all VPP DUTs
193 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
194 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
195 | | Then  Find NDR using binary search and pps
196 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
197 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
198
199 | tc06-IMIX-1t1c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc
200 | | [Documentation]
201 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
202 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
203 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
204 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
205 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
206 | | ${framesize}= | Set Variable | IMIX_v4_1
207 | | ${min_rate}= | Set Variable | ${10000}
208 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
209 | | ${binary_min}= | Set Variable | ${min_rate}
210 | | ${binary_max}= | Set Variable | ${max_rate}
211 | | ${threshold}= | Set Variable | ${min_rate}
212 | | ${dut1_vm_refs}= | Create Dictionary
213 | | ${dut2_vm_refs}= | Create Dictionary
214 | | Set Test Variable | ${dut1_vm_refs}
215 | | Set Test Variable | ${dut2_vm_refs}
216 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
217 | | And   Add PCI devices to DUTs from 3-node single link topology
218 | | And   Add No Multi Seg to all DUTs
219 | | And   Apply startup configuration on all VPP DUTs
220 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
221 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
222 | | Then  Find PDR using binary search and pps
223 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
224 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
225 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
226
227 | tc07-64B-2t2c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc
228 | | [Documentation]
229 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
230 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
231 | | ... | using binary search start at 10GE linerate, step 10kpps.
232 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
233 | | ${framesize}= | Set Variable | ${64}
234 | | ${min_rate}= | Set Variable | ${10000}
235 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
236 | | ${binary_min}= | Set Variable | ${min_rate}
237 | | ${binary_max}= | Set Variable | ${max_rate}
238 | | ${threshold}= | Set Variable | ${min_rate}
239 | | ${dut1_vm_refs}= | Create Dictionary
240 | | ${dut2_vm_refs}= | Create Dictionary
241 | | Set Test Variable | ${dut1_vm_refs}
242 | | Set Test Variable | ${dut2_vm_refs}
243 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
244 | | And   Add PCI devices to DUTs from 3-node single link topology
245 | | And   Add No Multi Seg to all DUTs
246 | | And   Apply startup configuration on all VPP DUTs
247 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
248 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
249 | | Then  Find NDR using binary search and pps
250 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
251 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
252
253 | tc08-64B-2t2c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc
254 | | [Documentation]
255 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
256 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
257 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
258 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
259 | | ${framesize}= | Set Variable | ${64}
260 | | ${min_rate}= | Set Variable | ${10000}
261 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
262 | | ${binary_min}= | Set Variable | ${min_rate}
263 | | ${binary_max}= | Set Variable | ${max_rate}
264 | | ${threshold}= | Set Variable | ${min_rate}
265 | | ${dut1_vm_refs}= | Create Dictionary
266 | | ${dut2_vm_refs}= | Create Dictionary
267 | | Set Test Variable | ${dut1_vm_refs}
268 | | Set Test Variable | ${dut2_vm_refs}
269 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
270 | | And   Add PCI devices to DUTs from 3-node single link topology
271 | | And   Add No Multi Seg to all DUTs
272 | | And   Apply startup configuration on all VPP DUTs
273 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
274 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
275 | | Then  Find PDR using binary search and pps
276 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
277 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
278 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
279
280 | tc09-1518B-2t2c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc
281 | | [Documentation]
282 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
283 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
284 | | ... | using binary search start at 10GE linerate, step 10kpps.
285 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
286 | | ${framesize}= | Set Variable | ${1518}
287 | | ${min_rate}= | Set Variable | ${10000}
288 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
289 | | ${binary_min}= | Set Variable | ${min_rate}
290 | | ${binary_max}= | Set Variable | ${max_rate}
291 | | ${threshold}= | Set Variable | ${min_rate}
292 | | ${dut1_vm_refs}= | Create Dictionary
293 | | ${dut2_vm_refs}= | Create Dictionary
294 | | Set Test Variable | ${dut1_vm_refs}
295 | | Set Test Variable | ${dut2_vm_refs}
296 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
297 | | And   Add PCI devices to DUTs from 3-node single link topology
298 | | And   Add No Multi Seg to all DUTs
299 | | And   Apply startup configuration on all VPP DUTs
300 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
301 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
302 | | Then  Find NDR using binary search and pps
303 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
304 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
305
306 | tc10-1518B-2t2c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc
307 | | [Documentation]
308 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
309 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
310 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
311 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
312 | | ${framesize}= | Set Variable | ${1518}
313 | | ${min_rate}= | Set Variable | ${10000}
314 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
315 | | ${binary_min}= | Set Variable | ${min_rate}
316 | | ${binary_max}= | Set Variable | ${max_rate}
317 | | ${threshold}= | Set Variable | ${min_rate}
318 | | ${dut1_vm_refs}= | Create Dictionary
319 | | ${dut2_vm_refs}= | Create Dictionary
320 | | Set Test Variable | ${dut1_vm_refs}
321 | | Set Test Variable | ${dut2_vm_refs}
322 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
323 | | And   Add PCI devices to DUTs from 3-node single link topology
324 | | And   Add No Multi Seg to all DUTs
325 | | And   Apply startup configuration on all VPP DUTs
326 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
327 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
328 | | Then  Find PDR using binary search and pps
329 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
330 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
331 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
332
333 | tc11-IMIX-2t2c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc
334 | | [Documentation]
335 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
336 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
337 | | ... | size using binary search start at 10GE linerate, step 10kpps.
338 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
339 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
340 | | ${framesize}= | Set Variable | IMIX_v4_1
341 | | ${min_rate}= | Set Variable | ${10000}
342 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
343 | | ${binary_min}= | Set Variable | ${min_rate}
344 | | ${binary_max}= | Set Variable | ${max_rate}
345 | | ${threshold}= | Set Variable | ${min_rate}
346 | | ${dut1_vm_refs}= | Create Dictionary
347 | | ${dut2_vm_refs}= | Create Dictionary
348 | | Set Test Variable | ${dut1_vm_refs}
349 | | Set Test Variable | ${dut2_vm_refs}
350 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
351 | | And   Add PCI devices to DUTs from 3-node single link topology
352 | | And   Add No Multi Seg to all DUTs
353 | | And   Apply startup configuration on all VPP DUTs
354 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
355 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
356 | | Then  Find NDR using binary search and pps
357 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
358 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
359
360 | tc12-IMIX-2t2c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc
361 | | [Documentation]
362 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
363 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
364 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
365 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
366 | | [Tags] | IMIX | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
367 | | ${framesize}= | Set Variable | IMIX_v4_1
368 | | ${min_rate}= | Set Variable | ${10000}
369 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
370 | | ${binary_min}= | Set Variable | ${min_rate}
371 | | ${binary_max}= | Set Variable | ${max_rate}
372 | | ${threshold}= | Set Variable | ${min_rate}
373 | | ${dut1_vm_refs}= | Create Dictionary
374 | | ${dut2_vm_refs}= | Create Dictionary
375 | | Set Test Variable | ${dut1_vm_refs}
376 | | Set Test Variable | ${dut2_vm_refs}
377 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
378 | | And   Add PCI devices to DUTs from 3-node single link topology
379 | | And   Add No Multi Seg to all DUTs
380 | | And   Apply startup configuration on all VPP DUTs
381 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
382 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
383 | | Then  Find PDR using binary search and pps
384 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
385 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
386 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
387
388 | tc13-64B-4t4c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc
389 | | [Documentation]
390 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
391 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames \
392 | | ... | using binary search start at 10GE linerate, step 10kpps.
393 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
394 | | ${framesize}= | Set Variable | ${64}
395 | | ${min_rate}= | Set Variable | ${10000}
396 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
397 | | ${binary_min}= | Set Variable | ${min_rate}
398 | | ${binary_max}= | Set Variable | ${max_rate}
399 | | ${threshold}= | Set Variable | ${min_rate}
400 | | ${dut1_vm_refs}= | Create Dictionary
401 | | ${dut2_vm_refs}= | Create Dictionary
402 | | Set Test Variable | ${dut1_vm_refs}
403 | | Set Test Variable | ${dut2_vm_refs}
404 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
405 | | And   Add PCI devices to DUTs from 3-node single link topology
406 | | And   Add No Multi Seg to all DUTs
407 | | And   Apply startup configuration on all VPP DUTs
408 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
409 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
410 | | Then  Find NDR using binary search and pps
411 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
412 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
413
414 | tc14-64B-4t4c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc
415 | | [Documentation]
416 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
417 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames \
418 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
419 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
420 | | ${framesize}= | Set Variable | ${64}
421 | | ${min_rate}= | Set Variable | ${10000}
422 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
423 | | ${binary_min}= | Set Variable | ${min_rate}
424 | | ${binary_max}= | Set Variable | ${max_rate}
425 | | ${threshold}= | Set Variable | ${min_rate}
426 | | ${dut1_vm_refs}= | Create Dictionary
427 | | ${dut2_vm_refs}= | Create Dictionary
428 | | Set Test Variable | ${dut1_vm_refs}
429 | | Set Test Variable | ${dut2_vm_refs}
430 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
431 | | And   Add PCI devices to DUTs from 3-node single link topology
432 | | And   Add No Multi Seg to all DUTs
433 | | And   Apply startup configuration on all VPP DUTs
434 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
435 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
436 | | Then  Find PDR using binary search and pps
437 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
438 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
439 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
440
441 | tc15-1518B-4t4c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc
442 | | [Documentation]
443 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
444 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames \
445 | | ... | using binary search start at 10GE linerate, step 10kpps.
446 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
447 | | ${framesize}= | Set Variable | ${1518}
448 | | ${min_rate}= | Set Variable | ${10000}
449 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
450 | | ${binary_min}= | Set Variable | ${min_rate}
451 | | ${binary_max}= | Set Variable | ${max_rate}
452 | | ${threshold}= | Set Variable | ${min_rate}
453 | | ${dut1_vm_refs}= | Create Dictionary
454 | | ${dut2_vm_refs}= | Create Dictionary
455 | | Set Test Variable | ${dut1_vm_refs}
456 | | Set Test Variable | ${dut2_vm_refs}
457 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
458 | | And   Add PCI devices to DUTs from 3-node single link topology
459 | | And   Add No Multi Seg to all DUTs
460 | | And   Apply startup configuration on all VPP DUTs
461 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
462 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
463 | | Then  Find NDR using binary search and pps
464 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
465 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
466
467 | tc16-1518B-4t4c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc
468 | | [Documentation]
469 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
470 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames \
471 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
472 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
473 | | ${framesize}= | Set Variable | ${1518}
474 | | ${min_rate}= | Set Variable | ${10000}
475 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
476 | | ${binary_min}= | Set Variable | ${min_rate}
477 | | ${binary_max}= | Set Variable | ${max_rate}
478 | | ${threshold}= | Set Variable | ${min_rate}
479 | | ${dut1_vm_refs}= | Create Dictionary
480 | | ${dut2_vm_refs}= | Create Dictionary
481 | | Set Test Variable | ${dut1_vm_refs}
482 | | Set Test Variable | ${dut2_vm_refs}
483 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
484 | | And   Add PCI devices to DUTs from 3-node single link topology
485 | | And   Add No Multi Seg to all DUTs
486 | | And   Apply startup configuration on all VPP DUTs
487 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
488 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
489 | | Then  Find PDR using binary search and pps
490 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
491 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
492 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
493
494 | tc17-IMIX-4t4c-eth-l2xcbase-eth-4vhost-2vm-ndrdisc
495 | | [Documentation]
496 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
497 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
498 | | ... | size using binary search start at 10GE linerate, step 10kpps.
499 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
500 | | [Tags] | IMIX | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
501 | | ${framesize}= | Set Variable | IMIX_v4_1
502 | | ${min_rate}= | Set Variable | ${10000}
503 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
504 | | ${binary_min}= | Set Variable | ${min_rate}
505 | | ${binary_max}= | Set Variable | ${max_rate}
506 | | ${threshold}= | Set Variable | ${min_rate}
507 | | ${dut1_vm_refs}= | Create Dictionary
508 | | ${dut2_vm_refs}= | Create Dictionary
509 | | Set Test Variable | ${dut1_vm_refs}
510 | | Set Test Variable | ${dut2_vm_refs}
511 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
512 | | And   Add PCI devices to DUTs from 3-node single link topology
513 | | And   Add No Multi Seg to all DUTs
514 | | And   Apply startup configuration on all VPP DUTs
515 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
516 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
517 | | Then  Find NDR using binary search and pps
518 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
519 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
520
521 | tc18-IMIX-4t4c-eth-l2xcbase-eth-4vhost-2vm-pdrdisc
522 | | [Documentation]
523 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
524 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
525 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
526 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
527 | | [Tags] | IMIX | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
528 | | ${framesize}= | Set Variable | IMIX_v4_1
529 | | ${min_rate}= | Set Variable | ${10000}
530 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
531 | | ${binary_min}= | Set Variable | ${min_rate}
532 | | ${binary_max}= | Set Variable | ${max_rate}
533 | | ${threshold}= | Set Variable | ${min_rate}
534 | | ${dut1_vm_refs}= | Create Dictionary
535 | | ${dut2_vm_refs}= | Create Dictionary
536 | | Set Test Variable | ${dut1_vm_refs}
537 | | Set Test Variable | ${dut2_vm_refs}
538 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
539 | | And   Add PCI devices to DUTs from 3-node single link topology
540 | | And   Add No Multi Seg to all DUTs
541 | | And   Apply startup configuration on all VPP DUTs
542 | | When  L2 xconnect with Vhost-User for '2' initialized in a 3-node circular topology
543 | | And   '2' Guest VMs with dpdk-testpmd connected via vhost-user is setup in a 3-node circular topology
544 | | Then  Find PDR using binary search and pps
545 | | ...   | ${framesize} | ${binary_min} | ${binary_max} | 3-node-xconnect
546 | | ...   | ${min_rate} | ${max_rate} | ${threshold}
547 | | ...   | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}