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