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