CSIT-458 Use node aware config in all perf TCs
[csit.git] / tests / perf / Long_Xconnect_Vhost_Intel-X520-DA2.robot
1 # Copyright (c) 2016 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.NodePath
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PERFTEST_LONG
18 | ...        | PERFTEST_VHOST | NIC_Intel-X520-DA2
19 | Suite Setup | Run Keywords | 3-node Performance Suite Setup with DUT's NIC model
20 | ... | L2 | Intel-X520-DA2
21 | ...         | AND          | Kill QEMU on all DUTs
22 | Suite Teardown | 3-node Performance Suite Teardown
23 | Test Setup | Setup all DUTs before test
24 | Test Teardown | Run Keywords
25 | ...           | Run Keyword If Test Failed
26 | ...           | Traffic should pass with no loss | 10
27 | ...           | ${min_rate}pps | ${framesize} | 3-node-bridge
28 | ...           | fail_on_loss=${False}
29 | ...           | AND | Show Vpp Vhost On All DUTs
30 | ...           | AND |  Remove startup configuration of VPP from all DUTs
31 | ...           | AND | Guest VM with dpdk-testpmd Teardown | ${dut1}
32 | ...                 | ${dut1_vm_refs}
33 | ...           | AND | Guest VM with dpdk-testpmd Teardown | ${dut2}
34 | ...                 | ${dut2_vm_refs}
35 | Documentation | *RFC2544: Pkt throughput L2XC test cases with vhost*
36 | ...
37 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
38 | ... | with single links between nodes.
39 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 cross connect.
40 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 cross-
41 | ... | connect. Qemu Guest is connected to VPP via vhost-user interfaces.
42 | ... | Guest is running DPDK testpmd interconnecting vhost-user interfaces
43 | ... | using 3 cores pinned to cpus 5,6,7 and 2048M memory. Testpmd is using
44 | ... | socket-mem=1024M (512x2M hugepages), 3 cores (1 main core and 2 cores
45 | ... | 2 cores dedicated for io), forwarding mode is set to io, rxq/txq=2048,
46 | ... | burst=64. DUT1, DUT2 are tested with 2p10GE NIC X520 Niantic by Intel.
47 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
48 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
49 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
50 | ... | of packets transmitted. NDR and PDR are discovered for different
51 | ... | Ethernet L2 frame sizes using either binary search or linear search
52 | ... | algorithms with configured starting rate and final step that determines
53 | ... | throughput measurement resolution. Test packets are generated by TG on
54 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
55 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
56 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
57 | ... | payload. MAC addresses are matching MAC addresses of the TG node
58 | ... | interfaces.
59 | ... | *[Ref] Applicable standard specifications:* RFC2544.
60
61 *** Variables ***
62 | ${bd_id1}= | 1
63 | ${bd_id2}= | 2
64 | ${sock1}= | /tmp/sock-1-${bd_id1}
65 | ${sock2}= | /tmp/sock-1-${bd_id2}
66 #X520-DA2 bandwidth limit
67 | ${s_limit} | ${10000000000}
68
69 *** Test Cases ***
70 | TC01: 64B NDR binary search - DUT L2XC-VHOST - 1thread 1core 1rxq
71 | | [Documentation]
72 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
73 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
74 | | ... | using binary search start at 10GE linerate, step 10kpps.
75 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
76 | | ${framesize}= | Set Variable | ${64}
77 | | ${min_rate}= | Set Variable | ${10000}
78 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
79 | | ${binary_min}= | Set Variable | ${min_rate}
80 | | ${binary_max}= | Set Variable | ${max_rate}
81 | | ${threshold}= | Set Variable | ${min_rate}
82 | | ${dut1_vm_refs}= | Create Dictionary
83 | | ${dut2_vm_refs}= | Create Dictionary
84 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
85 | | And   Add PCI devices to DUTs from 3-node single link topology
86 | | And   Add No Multi Seg to all DUTs
87 | | And   Apply startup configuration on all VPP DUTs
88 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
89 | | ...   | ${sock1} | ${sock2}
90 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
91 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
92 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
93 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
94 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
95 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
96 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
97 | | ...                                       | ${binary_max} | 3-node-bridge
98 | | ...                                       | ${min_rate} | ${max_rate}
99 | | ...                                       | ${threshold}
100
101 | TC02: 64B PDR binary search - DUT L2XC-VHOST - 1thread 1core 1rxq
102 | | [Documentation]
103 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
104 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
105 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
106 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
107 | | ${framesize}= | Set Variable | ${64}
108 | | ${min_rate}= | Set Variable | ${10000}
109 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
110 | | ${binary_min}= | Set Variable | ${min_rate}
111 | | ${binary_max}= | Set Variable | ${max_rate}
112 | | ${threshold}= | Set Variable | ${min_rate}
113 | | ${dut1_vm_refs}= | Create Dictionary
114 | | ${dut2_vm_refs}= | Create Dictionary
115 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
116 | | And   Add PCI devices to DUTs from 3-node single link topology
117 | | And   Add No Multi Seg to all DUTs
118 | | And   Apply startup configuration on all VPP DUTs
119 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
120 | | ...   | ${sock1} | ${sock2}
121 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
122 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
123 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
124 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
125 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
126 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
127 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
128 | | ...                                       | ${binary_max} | 3-node-bridge
129 | | ...                                       | ${min_rate} | ${max_rate}
130 | | ...                                       | ${threshold}
131 | | ...                                       | ${glob_loss_acceptance}
132 | | ...                                       | ${glob_loss_acceptance_type}
133
134 | TC03: 1518B NDR binary search - DUT L2XC-VHOST - 1thread 1core 1rxq
135 | | [Documentation]
136 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
137 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
138 | | ... | using binary search start at 10GE linerate, step 10kpps.
139 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
140 | | ${framesize}= | Set Variable | ${1518}
141 | | ${min_rate}= | Set Variable | ${10000}
142 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
143 | | ${binary_min}= | Set Variable | ${min_rate}
144 | | ${binary_max}= | Set Variable | ${max_rate}
145 | | ${threshold}= | Set Variable | ${min_rate}
146 | | ${dut1_vm_refs}= | Create Dictionary
147 | | ${dut2_vm_refs}= | Create Dictionary
148 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
149 | | And   Add PCI devices to DUTs from 3-node single link topology
150 | | And   Add No Multi Seg to all DUTs
151 | | And   Apply startup configuration on all VPP DUTs
152 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
153 | | ...   | ${sock1} | ${sock2}
154 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
155 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
156 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
157 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
158 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
159 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
160 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
161 | | ...                                       | ${binary_max} | 3-node-bridge
162 | | ...                                       | ${min_rate} | ${max_rate}
163 | | ...                                       | ${threshold}
164
165 | TC04: 1518B PDR binary search - DUT L2XC-VHOST - 1thread 1core 1rxq
166 | | [Documentation]
167 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
168 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
169 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
170 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
171 | | ${framesize}= | Set Variable | ${1518}
172 | | ${min_rate}= | Set Variable | ${10000}
173 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
174 | | ${binary_min}= | Set Variable | ${min_rate}
175 | | ${binary_max}= | Set Variable | ${max_rate}
176 | | ${threshold}= | Set Variable | ${min_rate}
177 | | ${dut1_vm_refs}= | Create Dictionary
178 | | ${dut2_vm_refs}= | Create Dictionary
179 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
180 | | And   Add PCI devices to DUTs from 3-node single link topology
181 | | And   Add No Multi Seg to all DUTs
182 | | And   Apply startup configuration on all VPP DUTs
183 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
184 | | ...   | ${sock1} | ${sock2}
185 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
186 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
187 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
188 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
189 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
190 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
191 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
192 | | ...                                       | ${binary_max} | 3-node-bridge
193 | | ...                                       | ${min_rate} | ${max_rate}
194 | | ...                                       | ${threshold}
195 | | ...                                       | ${glob_loss_acceptance}
196 | | ...                                       | ${glob_loss_acceptance_type}
197
198 | TC05: IMIX_v4_1 NDR binary search - DUT L2XC-VHOST - 1thread 1core 1rxq
199 | | [Documentation]
200 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
201 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
202 | | ... | size using binary search start at 10GE linerate, step 5kpps.
203 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
204 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
205 | | ${framesize}= | Set Variable | IMIX_v4_1
206 | | ${min_rate}= | Set Variable | ${10000}
207 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
208 | | ${binary_min}= | Set Variable | ${min_rate}
209 | | ${binary_max}= | Set Variable | ${max_rate}
210 | | ${threshold}= | Set Variable | ${min_rate}
211 | | ${dut1_vm_refs}= | Create Dictionary
212 | | ${dut2_vm_refs}= | Create Dictionary
213 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
214 | | And   Add PCI devices to DUTs from 3-node single link topology
215 | | And   Add No Multi Seg to all DUTs
216 | | And   Apply startup configuration on all VPP DUTs
217 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
218 | | ...   | ${sock1} | ${sock2}
219 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
220 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
221 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
222 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
223 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
224 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
225 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
226 | | ...                                       | ${binary_max} | 3-node-bridge
227 | | ...                                       | ${min_rate} | ${max_rate}
228 | | ...                                       | ${threshold}
229
230 | TC06: IMIX_v4_1 PDR binary search - DUT L2XC-VHOST - 1thread 1core 1rxq
231 | | [Documentation]
232 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
233 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
234 | | ... | size using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
235 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
236 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
237 | | ${framesize}= | Set Variable | IMIX_v4_1
238 | | ${min_rate}= | Set Variable | ${10000}
239 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
240 | | ${binary_min}= | Set Variable | ${min_rate}
241 | | ${binary_max}= | Set Variable | ${max_rate}
242 | | ${threshold}= | Set Variable | ${min_rate}
243 | | ${dut1_vm_refs}= | Create Dictionary
244 | | ${dut2_vm_refs}= | Create Dictionary
245 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
246 | | And   Add PCI devices to DUTs from 3-node single link topology
247 | | And   Add No Multi Seg to all DUTs
248 | | And   Apply startup configuration on all VPP DUTs
249 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
250 | | ...   | ${sock1} | ${sock2}
251 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
252 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
253 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
254 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
255 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
256 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
257 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
258 | | ...                                       | ${binary_max} | 3-node-bridge
259 | | ...                                       | ${min_rate} | ${max_rate}
260 | | ...                                       | ${threshold}
261 | | ...                                       | ${glob_loss_acceptance}
262 | | ...                                       | ${glob_loss_acceptance_type}
263
264 | TC07: 64B NDR binary search - DUT L2XC-VHOST - 2threads 2cores 1rxq
265 | | [Documentation]
266 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
267 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
268 | | ... | using binary search start at 10GE linerate, step 10kpps.
269 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
270 | | ${framesize}= | Set Variable | ${64}
271 | | ${min_rate}= | Set Variable | ${10000}
272 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
273 | | ${binary_min}= | Set Variable | ${min_rate}
274 | | ${binary_max}= | Set Variable | ${max_rate}
275 | | ${threshold}= | Set Variable | ${min_rate}
276 | | ${dut1_vm_refs}= | Create Dictionary
277 | | ${dut2_vm_refs}= | Create Dictionary
278 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
279 | | And   Add PCI devices to DUTs from 3-node single link topology
280 | | And   Add No Multi Seg to all DUTs
281 | | And   Apply startup configuration on all VPP DUTs
282 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
283 | | ...   | ${sock1} | ${sock2}
284 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
285 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
286 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
287 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
288 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
289 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
290 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
291 | | ...                                       | ${binary_max} | 3-node-bridge
292 | | ...                                       | ${min_rate} | ${max_rate}
293 | | ...                                       | ${threshold}
294
295 | TC08: 64B PDR binary search - DUT L2XC-VHOST - 2threads 2cores 1rxq
296 | | [Documentation]
297 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
298 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
299 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
300 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
301 | | ${framesize}= | Set Variable | ${64}
302 | | ${min_rate}= | Set Variable | ${10000}
303 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
304 | | ${binary_min}= | Set Variable | ${min_rate}
305 | | ${binary_max}= | Set Variable | ${max_rate}
306 | | ${threshold}= | Set Variable | ${min_rate}
307 | | ${dut1_vm_refs}= | Create Dictionary
308 | | ${dut2_vm_refs}= | Create Dictionary
309 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
310 | | And   Add PCI devices to DUTs from 3-node single link topology
311 | | And   Add No Multi Seg to all DUTs
312 | | And   Apply startup configuration on all VPP DUTs
313 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
314 | | ...   | ${sock1} | ${sock2}
315 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
316 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
317 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
318 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
319 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
320 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
321 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
322 | | ...                                       | ${binary_max} | 3-node-bridge
323 | | ...                                       | ${min_rate} | ${max_rate}
324 | | ...                                       | ${threshold}
325 | | ...                                       | ${glob_loss_acceptance}
326 | | ...                                       | ${glob_loss_acceptance_type}
327
328 | TC09: 1518B NDR binary search - DUT L2XC-VHOST - 2threads 2cores 1rxq
329 | | [Documentation]
330 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
331 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
332 | | ... | using binary search start at 10GE linerate, step 10kpps.
333 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR | SKIP_PATCH
334 | | ${framesize}= | Set Variable | ${1518}
335 | | ${min_rate}= | Set Variable | ${10000}
336 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
337 | | ${binary_min}= | Set Variable | ${min_rate}
338 | | ${binary_max}= | Set Variable | ${max_rate}
339 | | ${threshold}= | Set Variable | ${min_rate}
340 | | ${dut1_vm_refs}= | Create Dictionary
341 | | ${dut2_vm_refs}= | Create Dictionary
342 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
343 | | And   Add PCI devices to DUTs from 3-node single link topology
344 | | And   Add No Multi Seg to all DUTs
345 | | And   Apply startup configuration on all VPP DUTs
346 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
347 | | ...   | ${sock1} | ${sock2}
348 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
349 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
350 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
351 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
352 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
353 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
354 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
355 | | ...                                       | ${binary_max} | 3-node-bridge
356 | | ...                                       | ${min_rate} | ${max_rate}
357 | | ...                                       | ${threshold}
358
359 | TC10: 1518B PDR binary search - DUT L2XC-VHOST - 2threads 2cores 1rxq
360 | | [Documentation]
361 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
362 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
363 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
364 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
365 | | ${framesize}= | Set Variable | ${1518}
366 | | ${min_rate}= | Set Variable | ${10000}
367 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
368 | | ${binary_min}= | Set Variable | ${min_rate}
369 | | ${binary_max}= | Set Variable | ${max_rate}
370 | | ${threshold}= | Set Variable | ${min_rate}
371 | | ${dut1_vm_refs}= | Create Dictionary
372 | | ${dut2_vm_refs}= | Create Dictionary
373 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
374 | | And   Add PCI devices to DUTs from 3-node single link topology
375 | | And   Add No Multi Seg to all DUTs
376 | | And   Apply startup configuration on all VPP DUTs
377 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
378 | | ...   | ${sock1} | ${sock2}
379 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
380 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
381 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
382 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
383 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
384 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
385 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
386 | | ...                                       | ${binary_max} | 3-node-bridge
387 | | ...                                       | ${min_rate} | ${max_rate}
388 | | ...                                       | ${threshold}
389 | | ...                                       | ${glob_loss_acceptance}
390 | | ...                                       | ${glob_loss_acceptance_type}
391
392 | TC11: IMIX_v4_1 NDR binary search - DUT L2XC-VHOST - 2threads 2cores 1rxq
393 | | [Documentation]
394 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
395 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
396 | | ... | size using binary search start at 10GE linerate, step 5kpps.
397 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
398 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR | SKIP_PATCH
399 | | ${framesize}= | Set Variable | IMIX_v4_1
400 | | ${min_rate}= | Set Variable | ${10000}
401 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
402 | | ${binary_min}= | Set Variable | ${min_rate}
403 | | ${binary_max}= | Set Variable | ${max_rate}
404 | | ${threshold}= | Set Variable | ${min_rate}
405 | | ${dut1_vm_refs}= | Create Dictionary
406 | | ${dut2_vm_refs}= | Create Dictionary
407 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
408 | | And   Add PCI devices to DUTs from 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  L2 xconnect with Vhost-User initialized in a 3-node circular topology
412 | | ...   | ${sock1} | ${sock2}
413 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
414 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
415 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
416 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
417 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
418 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
419 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
420 | | ...                                       | ${binary_max} | 3-node-bridge
421 | | ...                                       | ${min_rate} | ${max_rate}
422 | | ...                                       | ${threshold}
423
424 | TC12: IMIX_v4_1 PDR binary search - DUT L2XC-VHOST - 2threads 2cores 1rxq
425 | | [Documentation]
426 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
427 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
428 | | ... | size using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
429 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
430 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
431 | | ${framesize}= | Set Variable | IMIX_v4_1
432 | | ${min_rate}= | Set Variable | ${10000}
433 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
434 | | ${binary_min}= | Set Variable | ${min_rate}
435 | | ${binary_max}= | Set Variable | ${max_rate}
436 | | ${threshold}= | Set Variable | ${min_rate}
437 | | ${dut1_vm_refs}= | Create Dictionary
438 | | ${dut2_vm_refs}= | Create Dictionary
439 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
440 | | And   Add PCI devices to DUTs from 3-node single link topology
441 | | And   Add No Multi Seg to all DUTs
442 | | And   Apply startup configuration on all VPP DUTs
443 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
444 | | ...   | ${sock1} | ${sock2}
445 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
446 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
447 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
448 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
449 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
450 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
451 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
452 | | ...                                       | ${binary_max} | 3-node-bridge
453 | | ...                                       | ${min_rate} | ${max_rate}
454 | | ...                                       | ${threshold}
455 | | ...                                       | ${glob_loss_acceptance}
456 | | ...                                       | ${glob_loss_acceptance_type}
457
458 | TC13: 64B NDR binary search - DUT L2XC-VHOST - 4threads 4cores 2rxq
459 | | [Documentation]
460 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
461 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames \
462 | | ... | using binary search start at 10GE linerate, step 10kpps.
463 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
464 | | ${framesize}= | Set Variable | ${64}
465 | | ${min_rate}= | Set Variable | ${10000}
466 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
467 | | ${binary_min}= | Set Variable | ${min_rate}
468 | | ${binary_max}= | Set Variable | ${max_rate}
469 | | ${threshold}= | Set Variable | ${min_rate}
470 | | ${dut1_vm_refs}= | Create Dictionary
471 | | ${dut2_vm_refs}= | Create Dictionary
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  L2 xconnect with Vhost-User initialized in a 3-node circular topology
477 | | ...   | ${sock1} | ${sock2}
478 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
479 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
480 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
481 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
482 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
483 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
484 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
485 | | ...                                       | ${binary_max} | 3-node-bridge
486 | | ...                                       | ${min_rate} | ${max_rate}
487 | | ...                                       | ${threshold}
488
489 | TC14: 64B PDR binary search - DUT L2XC-VHOST - 4threads 4cores 2rxq
490 | | [Documentation]
491 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
492 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames \
493 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
494 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
495 | | ${framesize}= | Set Variable | ${64}
496 | | ${min_rate}= | Set Variable | ${10000}
497 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
498 | | ${binary_min}= | Set Variable | ${min_rate}
499 | | ${binary_max}= | Set Variable | ${max_rate}
500 | | ${threshold}= | Set Variable | ${min_rate}
501 | | ${dut1_vm_refs}= | Create Dictionary
502 | | ${dut2_vm_refs}= | Create Dictionary
503 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
504 | | And   Add PCI devices to DUTs from 3-node single link topology
505 | | And   Add No Multi Seg to all DUTs
506 | | And   Apply startup configuration on all VPP DUTs
507 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
508 | | ...   | ${sock1} | ${sock2}
509 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
510 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
511 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
512 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
513 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
514 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
515 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
516 | | ...                                       | ${binary_max} | 3-node-bridge
517 | | ...                                       | ${min_rate} | ${max_rate}
518 | | ...                                       | ${threshold}
519 | | ...                                       | ${glob_loss_acceptance}
520 | | ...                                       | ${glob_loss_acceptance_type}
521
522 | TC15: 1518B NDR binary search - DUT L2XC-VHOST - 4threads 4cores 2rxq
523 | | [Documentation]
524 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
525 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames \
526 | | ... | using binary search start at 10GE linerate, step 10kpps.
527 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR | SKIP_PATCH
528 | | ${framesize}= | Set Variable | ${1518}
529 | | ${min_rate}= | Set Variable | ${10000}
530 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
531 | | ${binary_min}= | Set Variable | ${min_rate}
532 | | ${binary_max}= | Set Variable | ${max_rate}
533 | | ${threshold}= | Set Variable | ${min_rate}
534 | | ${dut1_vm_refs}= | Create Dictionary
535 | | ${dut2_vm_refs}= | Create Dictionary
536 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
537 | | And   Add PCI devices to DUTs from 3-node single link topology
538 | | And   Add No Multi Seg to all DUTs
539 | | And   Apply startup configuration on all VPP DUTs
540 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
541 | | ...   | ${sock1} | ${sock2}
542 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
543 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
544 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
545 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
546 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
547 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
548 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
549 | | ...                                       | ${binary_max} | 3-node-bridge
550 | | ...                                       | ${min_rate} | ${max_rate}
551 | | ...                                       | ${threshold}
552
553 | TC16: 1518B PDR binary search - DUT L2XC-VHOST - 4threads 4cores 2rxq
554 | | [Documentation]
555 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
556 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames \
557 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
558 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
559 | | ${framesize}= | Set Variable | ${1518}
560 | | ${min_rate}= | Set Variable | ${10000}
561 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
562 | | ${binary_min}= | Set Variable | ${min_rate}
563 | | ${binary_max}= | Set Variable | ${max_rate}
564 | | ${threshold}= | Set Variable | ${min_rate}
565 | | ${dut1_vm_refs}= | Create Dictionary
566 | | ${dut2_vm_refs}= | Create Dictionary
567 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
568 | | And   Add PCI devices to DUTs from 3-node single link topology
569 | | And   Add No Multi Seg to all DUTs
570 | | And   Apply startup configuration on all VPP DUTs
571 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
572 | | ...   | ${sock1} | ${sock2}
573 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
574 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
575 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
576 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
577 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
578 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
579 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
580 | | ...                                       | ${binary_max} | 3-node-bridge
581 | | ...                                       | ${min_rate} | ${max_rate}
582 | | ...                                       | ${threshold}
583 | | ...                                       | ${glob_loss_acceptance}
584 | | ...                                       | ${glob_loss_acceptance_type}
585
586 | TC17: IMIX_v4_1 NDR binary search - DUT L2XC-VHOST - 4threads 4cores 2rxq
587 | | [Documentation]
588 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
589 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
590 | | ... | size using binary search start at 10GE linerate, step 5kpps.
591 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
592 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR | SKIP_PATCH
593 | | ${framesize}= | Set Variable | IMIX_v4_1
594 | | ${min_rate}= | Set Variable | ${10000}
595 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
596 | | ${binary_min}= | Set Variable | ${min_rate}
597 | | ${binary_max}= | Set Variable | ${max_rate}
598 | | ${threshold}= | Set Variable | ${min_rate}
599 | | ${dut1_vm_refs}= | Create Dictionary
600 | | ${dut2_vm_refs}= | Create Dictionary
601 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
602 | | And   Add PCI devices to DUTs from 3-node single link topology
603 | | And   Add No Multi Seg to all DUTs
604 | | And   Apply startup configuration on all VPP DUTs
605 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
606 | | ...   | ${sock1} | ${sock2}
607 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
608 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
609 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
610 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
611 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
612 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
613 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
614 | | ...                                       | ${binary_max} | 3-node-bridge
615 | | ...                                       | ${min_rate} | ${max_rate}
616 | | ...                                       | ${threshold}
617
618 | TC18: IMIX_v4_1 PDR binary search - DUT L2XC-VHOST - 4threads 4cores 2rxq
619 | | [Documentation]
620 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
621 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
622 | | ... | size using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
623 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
624 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
625 | | ${framesize}= | Set Variable | IMIX_v4_1
626 | | ${min_rate}= | Set Variable | ${10000}
627 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
628 | | ${binary_min}= | Set Variable | ${min_rate}
629 | | ${binary_max}= | Set Variable | ${max_rate}
630 | | ${threshold}= | Set Variable | ${min_rate}
631 | | ${dut1_vm_refs}= | Create Dictionary
632 | | ${dut2_vm_refs}= | Create Dictionary
633 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
634 | | And   Add PCI devices to DUTs from 3-node single link topology
635 | | And   Add No Multi Seg to all DUTs
636 | | And   Apply startup configuration on all VPP DUTs
637 | | When  L2 xconnect with Vhost-User initialized in a 3-node circular topology
638 | | ...   | ${sock1} | ${sock2}
639 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
640 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
641 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
642 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
643 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
644 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
645 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
646 | | ...                                       | ${binary_max} | 3-node-bridge
647 | | ...                                       | ${min_rate} | ${max_rate}
648 | | ...                                       | ${threshold}
649 | | ...                                       | ${glob_loss_acceptance}
650 | | ...                                       | ${glob_loss_acceptance_type}
651