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