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