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