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