Fix: Naming of perf suites following conventions
[csit.git] / tests / perf / 10ge2p1x710-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrpdrdisc.robot
1 # Copyright (c) 2017 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Resource | resources/libraries/robot/performance.robot
16 | Library | resources.libraries.python.QemuUtils
17 | ...
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
19 | ... | NIC_Intel-X710 | ETH | L2BDMACLRN | BASE | VHOST | VM
20 | ...
21 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
22 | ... | L2 | Intel-X710
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-bridge
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 L2BD 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 bridge-
37 | ... | domain and MAC learning enabled. Qemu Guest is connected to VPP via
38 | ... | vhost-user interfaces. Guest is running DPDK testpmd interconnecting
39 | ... | vhost-user interfaces using 5 cores pinned to cpus on NUMA1 and 2048M
40 | ... | memory. Testpmd is using socket-mem=1024M (512x2M hugepages), 5 cores
41 | ... | (1 main core and 4 cores dedicated for io), forwarding mode is set to
42 | ... | io, rxd/txd=256, burst=64. DUT1, DUT2 are tested with 2p10GE NIC X710
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 # X710 bandwidth limit
60 | ${s_limit} | ${10000000000}
61 # Socket names
62 | ${bd_id1}= | 1
63 | ${bd_id2}= | 2
64 | ${sock1}= | /tmp/sock-1-${bd_id1}
65 | ${sock2}= | /tmp/sock-1-${bd_id2}
66
67 *** Test Cases ***
68 | tc01-64B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
69 | | [Documentation]
70 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
71 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames\
72 | | ... | using binary search start at 10GE linerate, step 10kpps.
73 | | ...
74 | | [Tags] | 1T1C | STHREAD | NDRDISC
75 | | ...
76 | | ${framesize}= | Set Variable | ${64}
77 | | ${min_rate}= | Set Variable | ${10000}
78 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
79 | | ${binary_min}= | Set Variable | ${min_rate}
80 | | ${binary_max}= | Set Variable | ${max_rate}
81 | | ${threshold}= | Set Variable | ${min_rate}
82 | | ${dut1_vm_refs}= | Create Dictionary
83 | | ${dut2_vm_refs}= | Create Dictionary
84 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
85 | | And Add PCI devices to DUTs from 3-node single link topology
86 | | And Add No Multi Seg to all DUTs
87 | | And Apply startup configuration on all VPP DUTs
88 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
89 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
90 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
91 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
92 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
93 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
94 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
95 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
96 | | And Setup scheduler policy for VPP on all DUTs
97 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
98 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
99 | | ... | ${threshold}
100
101 | tc02-64B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
102 | | [Documentation]
103 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
104 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames\
105 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
106 | | ...
107 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
108 | | ...
109 | | ${framesize}= | Set Variable | ${64}
110 | | ${min_rate}= | Set Variable | ${10000}
111 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
112 | | ${binary_min}= | Set Variable | ${min_rate}
113 | | ${binary_max}= | Set Variable | ${max_rate}
114 | | ${threshold}= | Set Variable | ${min_rate}
115 | | ${dut1_vm_refs}= | Create Dictionary
116 | | ${dut2_vm_refs}= | Create Dictionary
117 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
118 | | And Add PCI devices to DUTs from 3-node single link topology
119 | | And Add No Multi Seg to all DUTs
120 | | And Apply startup configuration on all VPP DUTs
121 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
122 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
123 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
124 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
125 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
126 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
127 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
128 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
129 | | And Setup scheduler policy for VPP on all DUTs
130 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
131 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
132 | | ... | ${threshold} | ${perf_pdr_loss_acceptance}
133 | | ... | ${perf_pdr_loss_acceptance_type}
134
135 | tc03-1518B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
136 | | [Documentation]
137 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
138 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames\
139 | | ... | using binary search start at 10GE linerate, step 10kpps.
140 | | ...
141 | | [Tags] | 1T1C | STHREAD | NDRDISC
142 | | ...
143 | | ${framesize}= | Set Variable | ${1518}
144 | | ${min_rate}= | Set Variable | ${10000}
145 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
146 | | ${binary_min}= | Set Variable | ${min_rate}
147 | | ${binary_max}= | Set Variable | ${max_rate}
148 | | ${threshold}= | Set Variable | ${min_rate}
149 | | ${dut1_vm_refs}= | Create Dictionary
150 | | ${dut2_vm_refs}= | Create Dictionary
151 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
152 | | And Add PCI devices to DUTs from 3-node single link topology
153 | | And Add No Multi Seg to all DUTs
154 | | And Apply startup configuration on all VPP DUTs
155 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
156 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
157 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
158 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
159 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
160 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
161 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
162 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
163 | | And Setup scheduler policy for VPP on all DUTs
164 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
165 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
166 | | ... | ${threshold}
167
168 | tc04-1518B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
169 | | [Documentation]
170 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
171 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames\
172 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
173 | | ...
174 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
175 | | ...
176 | | ${framesize}= | Set Variable | ${1518}
177 | | ${min_rate}= | Set Variable | ${10000}
178 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
179 | | ${binary_min}= | Set Variable | ${min_rate}
180 | | ${binary_max}= | Set Variable | ${max_rate}
181 | | ${threshold}= | Set Variable | ${min_rate}
182 | | ${dut1_vm_refs}= | Create Dictionary
183 | | ${dut2_vm_refs}= | Create Dictionary
184 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
185 | | And Add PCI devices to DUTs from 3-node single link topology
186 | | And Add No Multi Seg to all DUTs
187 | | And Apply startup configuration on all VPP DUTs
188 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
189 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
190 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
191 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
192 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
193 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
194 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
195 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
196 | | And Setup scheduler policy for VPP on all DUTs
197 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
198 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
199 | | ... | ${threshold} | ${perf_pdr_loss_acceptance}
200 | | ... | ${perf_pdr_loss_acceptance_type}
201
202 | tc05-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
203 | | [Documentation]
204 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
205 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame\
206 | | ... | size using binary search start at 10GE linerate, step 5kpps.
207 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
208 | | ...
209 | | [Tags] | 1T1C | STHREAD | NDRDISC
210 | | ...
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 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
220 | | And Add PCI devices to DUTs from 3-node single link topology
221 | | And Add No Multi Seg to all DUTs
222 | | And Apply startup configuration on all VPP DUTs
223 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
224 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
225 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
226 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
227 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
228 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
229 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
230 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
231 | | And Setup scheduler policy for VPP on all DUTs
232 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
233 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
234 | | ... | ${threshold}
235
236 | tc06-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
237 | | [Documentation]
238 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
239 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame\
240 | | ... | size using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
241 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
242 | | ...
243 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
244 | | ...
245 | | ${framesize}= | Set Variable | IMIX_v4_1
246 | | ${min_rate}= | Set Variable | ${10000}
247 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
248 | | ${binary_min}= | Set Variable | ${min_rate}
249 | | ${binary_max}= | Set Variable | ${max_rate}
250 | | ${threshold}= | Set Variable | ${min_rate}
251 | | ${dut1_vm_refs}= | Create Dictionary
252 | | ${dut2_vm_refs}= | Create Dictionary
253 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
254 | | And Add PCI devices to DUTs from 3-node single link topology
255 | | And Apply startup configuration on all VPP DUTs
256 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
257 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
258 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
259 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
260 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
261 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
262 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
263 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
264 | | And Setup scheduler policy for VPP on all DUTs
265 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
266 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
267 | | ... | ${threshold} | ${perf_pdr_loss_acceptance}
268 | | ... | ${perf_pdr_loss_acceptance_type}
269
270 | tc07-64B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
271 | | [Documentation]
272 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
273 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames\
274 | | ... | using binary search start at 10GE linerate, step 10kpps.
275 | | ...
276 | | [Tags] | 2T2C | MTHREAD | NDRDISC
277 | | ...
278 | | ${framesize}= | Set Variable | ${64}
279 | | ${min_rate}= | Set Variable | ${10000}
280 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
281 | | ${binary_min}= | Set Variable | ${min_rate}
282 | | ${binary_max}= | Set Variable | ${max_rate}
283 | | ${threshold}= | Set Variable | ${min_rate}
284 | | ${dut1_vm_refs}= | Create Dictionary
285 | | ${dut2_vm_refs}= | Create Dictionary
286 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
287 | | And Add PCI devices to DUTs from 3-node single link topology
288 | | And Add No Multi Seg to all DUTs
289 | | And Apply startup configuration on all VPP DUTs
290 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
291 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
292 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
293 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
294 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
295 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
296 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
297 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
298 | | And Setup scheduler policy for VPP on all DUTs
299 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
300 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
301 | | ... | ${threshold}
302
303 | tc08-64B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
304 | | [Documentation]
305 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
306 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames\
307 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
308 | | ...
309 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
310 | | ...
311 | | ${framesize}= | Set Variable | ${64}
312 | | ${min_rate}= | Set Variable | ${10000}
313 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
314 | | ${binary_min}= | Set Variable | ${min_rate}
315 | | ${binary_max}= | Set Variable | ${max_rate}
316 | | ${threshold}= | Set Variable | ${min_rate}
317 | | ${dut1_vm_refs}= | Create Dictionary
318 | | ${dut2_vm_refs}= | Create Dictionary
319 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
320 | | And Add PCI devices to DUTs from 3-node single link topology
321 | | And Add No Multi Seg to all DUTs
322 | | And Apply startup configuration on all VPP DUTs
323 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
324 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
325 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
326 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
327 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
328 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
329 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
330 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
331 | | And Setup scheduler policy for VPP on all DUTs
332 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
333 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
334 | | ... | ${threshold} | ${perf_pdr_loss_acceptance}
335 | | ... | ${perf_pdr_loss_acceptance_type}
336
337 | tc09-1518B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
338 | | [Documentation]
339 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
340 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames\
341 | | ... | using binary search start at 10GE linerate, step 10kpps.
342 | | ...
343 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
344 | | ...
345 | | ${framesize}= | Set Variable | ${1518}
346 | | ${min_rate}= | Set Variable | ${10000}
347 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
348 | | ${binary_min}= | Set Variable | ${min_rate}
349 | | ${binary_max}= | Set Variable | ${max_rate}
350 | | ${threshold}= | Set Variable | ${min_rate}
351 | | ${dut1_vm_refs}= | Create Dictionary
352 | | ${dut2_vm_refs}= | Create Dictionary
353 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
354 | | And Add PCI devices to DUTs from 3-node single link topology
355 | | And Add No Multi Seg to all DUTs
356 | | And Apply startup configuration on all VPP DUTs
357 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
358 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
359 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
360 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
361 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
362 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
363 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
364 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
365 | | And Setup scheduler policy for VPP on all DUTs
366 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
367 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
368 | | ... | ${threshold}
369
370 | tc10-1518B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
371 | | [Documentation]
372 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
373 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames\
374 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
375 | | ...
376 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
377 | | ...
378 | | ${framesize}= | Set Variable | ${1518}
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 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
387 | | And Add PCI devices to DUTs from 3-node single link topology
388 | | And Add No Multi Seg to all DUTs
389 | | And Apply startup configuration on all VPP DUTs
390 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
391 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
392 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
393 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
394 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
395 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
396 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
397 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
398 | | And Setup scheduler policy for VPP on all DUTs
399 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
400 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
401 | | ... | ${threshold} | ${perf_pdr_loss_acceptance}
402 | | ... | ${perf_pdr_loss_acceptance_type}
403
404 | tc11-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
405 | | [Documentation]
406 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
407 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame\
408 | | ... | size using binary search start at 10GE linerate, step 5kpps.
409 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
410 | | ...
411 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
412 | | ...
413 | | ${framesize}= | Set Variable | IMIX_v4_1
414 | | ${min_rate}= | Set Variable | ${10000}
415 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
416 | | ${binary_min}= | Set Variable | ${min_rate}
417 | | ${binary_max}= | Set Variable | ${max_rate}
418 | | ${threshold}= | Set Variable | ${min_rate}
419 | | ${dut1_vm_refs}= | Create Dictionary
420 | | ${dut2_vm_refs}= | Create Dictionary
421 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
422 | | And Add PCI devices to DUTs from 3-node single link topology
423 | | And Add No Multi Seg to all DUTs
424 | | And Apply startup configuration on all VPP DUTs
425 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
426 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
427 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
428 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
429 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
430 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
431 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
432 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
433 | | And Setup scheduler policy for VPP on all DUTs
434 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
435 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
436 | | ... | ${threshold}
437
438 | tc12-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
439 | | [Documentation]
440 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
441 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame\
442 | | ... | size using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
443 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
444 | | ...
445 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
446 | | ...
447 | | ${framesize}= | Set Variable | IMIX_v4_1
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 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
456 | | And Add PCI devices to DUTs from 3-node single link topology
457 | | And Add No Multi Seg to all DUTs
458 | | And Apply startup configuration on all VPP DUTs
459 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
460 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
461 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
462 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
463 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
464 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
465 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
466 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
467 | | And Setup scheduler policy for VPP on all DUTs
468 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
469 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
470 | | ... | ${threshold} | ${perf_pdr_loss_acceptance}
471 | | ... | ${perf_pdr_loss_acceptance_type}
472
473 | tc13-64B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
474 | | [Documentation]
475 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
476 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames\
477 | | ... | using binary search start at 10GE linerate, step 10kpps.
478 | | ...
479 | | [Tags] | 4T4C | MTHREAD | NDRDISC
480 | | ...
481 | | ${framesize}= | Set Variable | ${64}
482 | | ${min_rate}= | Set Variable | ${10000}
483 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
484 | | ${binary_min}= | Set Variable | ${min_rate}
485 | | ${binary_max}= | Set Variable | ${max_rate}
486 | | ${threshold}= | Set Variable | ${min_rate}
487 | | ${dut1_vm_refs}= | Create Dictionary
488 | | ${dut2_vm_refs}= | Create Dictionary
489 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
490 | | And Add PCI devices to DUTs from 3-node single link topology
491 | | And Add No Multi Seg to all DUTs
492 | | And Apply startup configuration on all VPP DUTs
493 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
494 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
495 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
496 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
497 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
498 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
499 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
500 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
501 | | And Setup scheduler policy for VPP on all DUTs
502 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
503 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
504 | | ... | ${threshold}
505
506 | tc14-64B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
507 | | [Documentation]
508 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
509 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames\
510 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
511 | | ...
512 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
513 | | ...
514 | | ${framesize}= | Set Variable | ${64}
515 | | ${min_rate}= | Set Variable | ${10000}
516 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
517 | | ${binary_min}= | Set Variable | ${min_rate}
518 | | ${binary_max}= | Set Variable | ${max_rate}
519 | | ${threshold}= | Set Variable | ${min_rate}
520 | | ${dut1_vm_refs}= | Create Dictionary
521 | | ${dut2_vm_refs}= | Create Dictionary
522 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
523 | | And Add PCI devices to DUTs from 3-node single link topology
524 | | And Add No Multi Seg to all DUTs
525 | | And Apply startup configuration on all VPP DUTs
526 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
527 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
528 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
529 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
530 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
531 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
532 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
533 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
534 | | And Setup scheduler policy for VPP on all DUTs
535 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
536 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
537 | | ... | ${threshold} | ${perf_pdr_loss_acceptance}
538 | | ... | ${perf_pdr_loss_acceptance_type}
539
540 | tc15-1518B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
541 | | [Documentation]
542 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
543 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames\
544 | | ... | using binary search start at 10GE linerate, step 10kpps.
545 | | ...
546 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
547 | | ...
548 | | ${framesize}= | Set Variable | ${1518}
549 | | ${min_rate}= | Set Variable | ${10000}
550 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
551 | | ${binary_min}= | Set Variable | ${min_rate}
552 | | ${binary_max}= | Set Variable | ${max_rate}
553 | | ${threshold}= | Set Variable | ${min_rate}
554 | | ${dut1_vm_refs}= | Create Dictionary
555 | | ${dut2_vm_refs}= | Create Dictionary
556 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
557 | | And Add PCI devices to DUTs from 3-node single link topology
558 | | And Add No Multi Seg to all DUTs
559 | | And Apply startup configuration on all VPP DUTs
560 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
561 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
562 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
563 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
564 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
565 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
566 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
567 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
568 | | And Setup scheduler policy for VPP on all DUTs
569 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
570 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
571 | | ... | ${threshold}
572
573 | tc16-1518B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
574 | | [Documentation]
575 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
576 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames\
577 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
578 | | ...
579 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
580 | | ...
581 | | ${framesize}= | Set Variable | ${1518}
582 | | ${min_rate}= | Set Variable | ${10000}
583 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
584 | | ${binary_min}= | Set Variable | ${min_rate}
585 | | ${binary_max}= | Set Variable | ${max_rate}
586 | | ${threshold}= | Set Variable | ${min_rate}
587 | | ${dut1_vm_refs}= | Create Dictionary
588 | | ${dut2_vm_refs}= | Create Dictionary
589 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
590 | | And Add PCI devices to DUTs from 3-node single link topology
591 | | And Add No Multi Seg to all DUTs
592 | | And Apply startup configuration on all VPP DUTs
593 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
594 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
595 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
596 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
597 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
598 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
599 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
600 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
601 | | And Setup scheduler policy for VPP on all DUTs
602 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
603 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
604 | | ... | ${threshold} | ${perf_pdr_loss_acceptance}
605 | | ... | ${perf_pdr_loss_acceptance_type}
606
607 | tc17-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
608 | | [Documentation]
609 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
610 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame\
611 | | ... | size using binary search start at 10GE linerate, step 5kpps.
612 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
613 | | ...
614 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
615 | | ...
616 | | ${framesize}= | Set Variable | IMIX_v4_1
617 | | ${min_rate}= | Set Variable | ${10000}
618 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
619 | | ${binary_min}= | Set Variable | ${min_rate}
620 | | ${binary_max}= | Set Variable | ${max_rate}
621 | | ${threshold}= | Set Variable | ${min_rate}
622 | | ${dut1_vm_refs}= | Create Dictionary
623 | | ${dut2_vm_refs}= | Create Dictionary
624 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
625 | | And Add PCI devices to DUTs from 3-node single link topology
626 | | And Add No Multi Seg to all DUTs
627 | | And Apply startup configuration on all VPP DUTs
628 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
629 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
630 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
631 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
632 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
633 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
634 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
635 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
636 | | And Setup scheduler policy for VPP on all DUTs
637 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
638 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
639 | | ... | ${threshold}
640
641 | tc18-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
642 | | [Documentation]
643 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
644 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame\
645 | | ... | size using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
646 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
647 | | ...
648 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
649 | | ...
650 | | ${framesize}= | Set Variable | IMIX_v4_1
651 | | ${min_rate}= | Set Variable | ${10000}
652 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
653 | | ${binary_min}= | Set Variable | ${min_rate}
654 | | ${binary_max}= | Set Variable | ${max_rate}
655 | | ${threshold}= | Set Variable | ${min_rate}
656 | | ${dut1_vm_refs}= | Create Dictionary
657 | | ${dut2_vm_refs}= | Create Dictionary
658 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
659 | | And Add PCI devices to DUTs from 3-node single link topology
660 | | And Add No Multi Seg to all DUTs
661 | | And Apply startup configuration on all VPP DUTs
662 | | When L2 bridge domains with Vhost-User initialized in a 3-node circular topology
663 | | ... | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
664 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
665 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
666 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
667 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
668 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
669 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
670 | | And Setup scheduler policy for VPP on all DUTs
671 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
672 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
673 | | ... | ${threshold} | ${perf_pdr_loss_acceptance}
674 | | ... | ${perf_pdr_loss_acceptance_type}