CSIT-548: Add x520 IP4base perf test with 2 VMs per DUT
[csit.git] / tests / perf / 10ge2p1x520-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc.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 | L2BDMACLRN | BASE | VHOST | VM
20 | ...
21 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
22 | ... | L2 | 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-bridge
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 L2BD 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 L2 switching of IPv4.
36 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 bridge-
37 | ... | domain and MAC learning enabled. Qemu Guest is connected to VPP via
38 | ... | vhost-user interfaces. Guest is running DPDK testpmd interconnecting
39 | ... | vhost-user interfaces using 5 cores pinned to cpus 5-9 and 2048M
40 | ... | memory. Testpmd is using socket-mem=1024M (512x2M hugepages), 5 cores
41 | ... | (1 main core and 4 cores dedicated for io), forwarding mode is set to
42 | ... | io, rxd/txd=256, burst=64. DUT1, DUT2 are tested with 2p10GE NIC X520
43 | ... | 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 # Socket names
62 | ${bd_id1}= | 1
63 | ${bd_id2}= | 2
64 | ${sock1}= | /tmp/sock-1-${bd_id1}
65 | ${sock2}= | /tmp/sock-1-${bd_id2}
66
67 *** Test Cases ***
68 | tc01-64B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
69 | | [Documentation]
70 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
71 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
72 | | ... | using binary search start at 10GE linerate, step 10kpps.
73 | | [Tags] | 1T1C | STHREAD | NDRDISC
74 | | ${framesize}= | Set Variable | ${64}
75 | | ${min_rate}= | Set Variable | ${10000}
76 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
77 | | ${binary_min}= | Set Variable | ${min_rate}
78 | | ${binary_max}= | Set Variable | ${max_rate}
79 | | ${threshold}= | Set Variable | ${min_rate}
80 | | ${dut1_vm_refs}= | Create Dictionary
81 | | ${dut2_vm_refs}= | Create Dictionary
82 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
83 | | And   Add PCI devices to DUTs from 3-node single link topology
84 | | And   Add No Multi Seg to all DUTs
85 | | And   Apply startup configuration on all VPP DUTs
86 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
87 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
88 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
89 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
90 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
91 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
92 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
93 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
94 | | And Setup scheduler policy for VPP on all DUTs
95 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
96 | | ...                                       | ${binary_max} | 3-node-bridge
97 | | ...                                       | ${min_rate} | ${max_rate}
98 | | ...                                       | ${threshold}
99
100 | tc02-64B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
101 | | [Documentation]
102 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
103 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
104 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
105 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
106 | | ${framesize}= | Set Variable | ${64}
107 | | ${min_rate}= | Set Variable | ${10000}
108 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
109 | | ${binary_min}= | Set Variable | ${min_rate}
110 | | ${binary_max}= | Set Variable | ${max_rate}
111 | | ${threshold}= | Set Variable | ${min_rate}
112 | | ${dut1_vm_refs}= | Create Dictionary
113 | | ${dut2_vm_refs}= | Create Dictionary
114 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
115 | | And   Add PCI devices to DUTs from 3-node single link topology
116 | | And   Add No Multi Seg to all DUTs
117 | | And   Apply startup configuration on all VPP DUTs
118 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
119 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
120 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
121 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
122 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
123 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
124 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
125 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
126 | | And Setup scheduler policy for VPP on all DUTs
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 | | ...                                       | ${perf_pdr_loss_acceptance}
132 | | ...                                       | ${perf_pdr_loss_acceptance_type}
133
134 | tc03-1518B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
135 | | [Documentation]
136 | | ... | [Cfg] DUT runs L2BD 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] | 1T1C | STHREAD | NDRDISC
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 bridge domains with Vhost-User initialized in a 3-node circular topology
153 | | ...   | ${bd_id1} | ${bd_id2} | ${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 | | And Setup scheduler policy for VPP on all DUTs
161 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
162 | | ...                                       | ${binary_max} | 3-node-bridge
163 | | ...                                       | ${min_rate} | ${max_rate}
164 | | ...                                       | ${threshold}
165
166 | tc04-1518B-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
167 | | [Documentation]
168 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
169 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
170 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
171 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
172 | | ${framesize}= | Set Variable | ${1518}
173 | | ${min_rate}= | Set Variable | ${10000}
174 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
175 | | ${binary_min}= | Set Variable | ${min_rate}
176 | | ${binary_max}= | Set Variable | ${max_rate}
177 | | ${threshold}= | Set Variable | ${min_rate}
178 | | ${dut1_vm_refs}= | Create Dictionary
179 | | ${dut2_vm_refs}= | Create Dictionary
180 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
181 | | And   Add PCI devices to DUTs from 3-node single link topology
182 | | And   Add No Multi Seg to all DUTs
183 | | And   Apply startup configuration on all VPP DUTs
184 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
185 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
186 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
187 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
188 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
189 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
190 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
191 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
192 | | And Setup scheduler policy for VPP on all DUTs
193 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
194 | | ...                                       | ${binary_max} | 3-node-bridge
195 | | ...                                       | ${min_rate} | ${max_rate}
196 | | ...                                       | ${threshold}
197 | | ...                                       | ${perf_pdr_loss_acceptance}
198 | | ...                                       | ${perf_pdr_loss_acceptance_type}
199
200 | tc05-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
201 | | [Documentation]
202 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
203 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
204 | | ... | size using binary search start at 10GE linerate, step 5kpps.
205 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
206 | | [Tags] | 1T1C | STHREAD | NDRDISC
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 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
216 | | And   Add PCI devices to DUTs from 3-node single link topology
217 | | And   Add No Multi Seg to all DUTs
218 | | And   Apply startup configuration on all VPP DUTs
219 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
220 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
221 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
222 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
223 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
224 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
225 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
226 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
227 | | And Setup scheduler policy for VPP on all DUTs
228 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
229 | | ...                                       | ${binary_max} | 3-node-bridge
230 | | ...                                       | ${min_rate} | ${max_rate}
231 | | ...                                       | ${threshold}
232
233 | tc06-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
234 | | [Documentation]
235 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
236 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
237 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
238 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
239 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
240 | | ${framesize}= | Set Variable | IMIX_v4_1
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 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
249 | | And   Add PCI devices to DUTs from 3-node single link topology
250 | | And   Add No Multi Seg to all DUTs
251 | | And   Apply startup configuration on all VPP DUTs
252 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
253 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
254 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
255 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
256 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
257 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
258 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
259 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
260 | | And Setup scheduler policy for VPP on all DUTs
261 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
262 | | ...                                       | ${binary_max} | 3-node-bridge
263 | | ...                                       | ${min_rate} | ${max_rate}
264 | | ...                                       | ${threshold}
265 | | ...                                       | ${perf_pdr_loss_acceptance}
266 | | ...                                       | ${perf_pdr_loss_acceptance_type}
267
268 | tc07-64B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
269 | | [Documentation]
270 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
271 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
272 | | ... | using binary search start at 10GE linerate, step 10kpps.
273 | | [Tags] | 2T2C | MTHREAD | NDRDISC
274 | | ${framesize}= | Set Variable | ${64}
275 | | ${min_rate}= | Set Variable | ${10000}
276 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
277 | | ${binary_min}= | Set Variable | ${min_rate}
278 | | ${binary_max}= | Set Variable | ${max_rate}
279 | | ${threshold}= | Set Variable | ${min_rate}
280 | | ${dut1_vm_refs}= | Create Dictionary
281 | | ${dut2_vm_refs}= | Create Dictionary
282 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
283 | | And   Add PCI devices to DUTs from 3-node single link topology
284 | | And   Add No Multi Seg to all DUTs
285 | | And   Apply startup configuration on all VPP DUTs
286 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
287 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
288 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
289 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
290 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
291 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
292 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
293 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
294 | | And Setup scheduler policy for VPP on all DUTs
295 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
296 | | ...                                       | ${binary_max} | 3-node-bridge
297 | | ...                                       | ${min_rate} | ${max_rate}
298 | | ...                                       | ${threshold}
299
300 | tc08-64B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
301 | | [Documentation]
302 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
303 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
304 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
305 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
306 | | ${framesize}= | Set Variable | ${64}
307 | | ${min_rate}= | Set Variable | ${10000}
308 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
309 | | ${binary_min}= | Set Variable | ${min_rate}
310 | | ${binary_max}= | Set Variable | ${max_rate}
311 | | ${threshold}= | Set Variable | ${min_rate}
312 | | ${dut1_vm_refs}= | Create Dictionary
313 | | ${dut2_vm_refs}= | Create Dictionary
314 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
315 | | And   Add PCI devices to DUTs from 3-node single link topology
316 | | And   Add No Multi Seg to all DUTs
317 | | And   Apply startup configuration on all VPP DUTs
318 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
319 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
320 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
321 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
322 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
323 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
324 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
325 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
326 | | And Setup scheduler policy for VPP on all DUTs
327 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
328 | | ...                                       | ${binary_max} | 3-node-bridge
329 | | ...                                       | ${min_rate} | ${max_rate}
330 | | ...                                       | ${threshold}
331 | | ...                                       | ${perf_pdr_loss_acceptance}
332 | | ...                                       | ${perf_pdr_loss_acceptance_type}
333
334 | tc09-1518B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
335 | | [Documentation]
336 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
337 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
338 | | ... | using binary search start at 10GE linerate, step 10kpps.
339 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
340 | | ${framesize}= | Set Variable | ${1518}
341 | | ${min_rate}= | Set Variable | ${10000}
342 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
343 | | ${binary_min}= | Set Variable | ${min_rate}
344 | | ${binary_max}= | Set Variable | ${max_rate}
345 | | ${threshold}= | Set Variable | ${min_rate}
346 | | ${dut1_vm_refs}= | Create Dictionary
347 | | ${dut2_vm_refs}= | Create Dictionary
348 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
349 | | And   Add PCI devices to DUTs from 3-node single link topology
350 | | And   Add No Multi Seg to all DUTs
351 | | And   Apply startup configuration on all VPP DUTs
352 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
353 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
354 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
355 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
356 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
357 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
358 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
359 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
360 | | And Setup scheduler policy for VPP on all DUTs
361 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
362 | | ...                                       | ${binary_max} | 3-node-bridge
363 | | ...                                       | ${min_rate} | ${max_rate}
364 | | ...                                       | ${threshold}
365
366 | tc10-1518B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
367 | | [Documentation]
368 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
369 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
370 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
371 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
372 | | ${framesize}= | Set Variable | ${1518}
373 | | ${min_rate}= | Set Variable | ${10000}
374 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
375 | | ${binary_min}= | Set Variable | ${min_rate}
376 | | ${binary_max}= | Set Variable | ${max_rate}
377 | | ${threshold}= | Set Variable | ${min_rate}
378 | | ${dut1_vm_refs}= | Create Dictionary
379 | | ${dut2_vm_refs}= | Create Dictionary
380 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
381 | | And   Add PCI devices to DUTs from 3-node single link topology
382 | | And   Add No Multi Seg to all DUTs
383 | | And   Apply startup configuration on all VPP DUTs
384 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
385 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
386 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
387 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
388 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
389 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
390 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
391 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
392 | | And Setup scheduler policy for VPP on all DUTs
393 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
394 | | ...                                       | ${binary_max} | 3-node-bridge
395 | | ...                                       | ${min_rate} | ${max_rate}
396 | | ...                                       | ${threshold}
397 | | ...                                       | ${perf_pdr_loss_acceptance}
398 | | ...                                       | ${perf_pdr_loss_acceptance_type}
399
400 | tc11-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
401 | | [Documentation]
402 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
403 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
404 | | ... | size using binary search start at 10GE linerate, step 10kpps.
405 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
406 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
407 | | ${framesize}= | Set Variable | IMIX_v4_1
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 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
416 | | And   Add PCI devices to DUTs from 3-node single link topology
417 | | And   Add No Multi Seg to all DUTs
418 | | And   Apply startup configuration on all VPP DUTs
419 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
420 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
421 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
422 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
423 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
424 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
425 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
426 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
427 | | And Setup scheduler policy for VPP on all DUTs
428 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
429 | | ...                                       | ${binary_max} | 3-node-bridge
430 | | ...                                       | ${min_rate} | ${max_rate}
431 | | ...                                       | ${threshold}
432
433 | tc12-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
434 | | [Documentation]
435 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
436 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
437 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
438 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
439 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
440 | | ${framesize}= | Set Variable | IMIX_v4_1
441 | | ${min_rate}= | Set Variable | ${10000}
442 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
443 | | ${binary_min}= | Set Variable | ${min_rate}
444 | | ${binary_max}= | Set Variable | ${max_rate}
445 | | ${threshold}= | Set Variable | ${min_rate}
446 | | ${dut1_vm_refs}= | Create Dictionary
447 | | ${dut2_vm_refs}= | Create Dictionary
448 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
449 | | And   Add PCI devices to DUTs from 3-node single link topology
450 | | And   Add No Multi Seg to all DUTs
451 | | And   Apply startup configuration on all VPP DUTs
452 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
453 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
454 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
455 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
456 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
457 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
458 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
459 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
460 | | And Setup scheduler policy for VPP on all DUTs
461 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
462 | | ...                                       | ${binary_max} | 3-node-bridge
463 | | ...                                       | ${min_rate} | ${max_rate}
464 | | ...                                       | ${threshold}
465 | | ...                                       | ${perf_pdr_loss_acceptance}
466 | | ...                                       | ${perf_pdr_loss_acceptance_type}
467
468 | tc13-64B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
469 | | [Documentation]
470 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
471 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames \
472 | | ... | using binary search start at 10GE linerate, step 10kpps.
473 | | [Tags] | 4T4C | MTHREAD | NDRDISC
474 | | ${framesize}= | Set Variable | ${64}
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 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
483 | | And   Add PCI devices to DUTs from 3-node single link topology
484 | | And   Add No Multi Seg to all DUTs
485 | | And   Apply startup configuration on all VPP DUTs
486 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
487 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
488 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
489 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
490 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
491 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
492 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
493 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
494 | | And Setup scheduler policy for VPP on all DUTs
495 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
496 | | ...                                       | ${binary_max} | 3-node-bridge
497 | | ...                                       | ${min_rate} | ${max_rate}
498 | | ...                                       | ${threshold}
499
500 | tc14-64B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
501 | | [Documentation]
502 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
503 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames \
504 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
505 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
506 | | ${framesize}= | Set Variable | ${64}
507 | | ${min_rate}= | Set Variable | ${10000}
508 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
509 | | ${binary_min}= | Set Variable | ${min_rate}
510 | | ${binary_max}= | Set Variable | ${max_rate}
511 | | ${threshold}= | Set Variable | ${min_rate}
512 | | ${dut1_vm_refs}= | Create Dictionary
513 | | ${dut2_vm_refs}= | Create Dictionary
514 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
515 | | And   Add PCI devices to DUTs from 3-node single link topology
516 | | And   Add No Multi Seg to all DUTs
517 | | And   Apply startup configuration on all VPP DUTs
518 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
519 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
520 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
521 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
522 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
523 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
524 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
525 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
526 | | And Setup scheduler policy for VPP on all DUTs
527 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
528 | | ...                                       | ${binary_max} | 3-node-bridge
529 | | ...                                       | ${min_rate} | ${max_rate}
530 | | ...                                       | ${threshold}
531 | | ...                                       | ${perf_pdr_loss_acceptance}
532 | | ...                                       | ${perf_pdr_loss_acceptance_type}
533
534 | tc15-1518B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
535 | | [Documentation]
536 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
537 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames \
538 | | ... | using binary search start at 10GE linerate, step 10kpps.
539 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
540 | | ${framesize}= | Set Variable | ${1518}
541 | | ${min_rate}= | Set Variable | ${10000}
542 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
543 | | ${binary_min}= | Set Variable | ${min_rate}
544 | | ${binary_max}= | Set Variable | ${max_rate}
545 | | ${threshold}= | Set Variable | ${min_rate}
546 | | ${dut1_vm_refs}= | Create Dictionary
547 | | ${dut2_vm_refs}= | Create Dictionary
548 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
549 | | And   Add PCI devices to DUTs from 3-node single link topology
550 | | And   Add No Multi Seg to all DUTs
551 | | And   Apply startup configuration on all VPP DUTs
552 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
553 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
554 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
555 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
556 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
557 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
558 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
559 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
560 | | And Setup scheduler policy for VPP on all DUTs
561 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
562 | | ...                                       | ${binary_max} | 3-node-bridge
563 | | ...                                       | ${min_rate} | ${max_rate}
564 | | ...                                       | ${threshold}
565
566 | tc16-1518B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
567 | | [Documentation]
568 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
569 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames \
570 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
571 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
572 | | ${framesize}= | Set Variable | ${1518}
573 | | ${min_rate}= | Set Variable | ${10000}
574 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
575 | | ${binary_min}= | Set Variable | ${min_rate}
576 | | ${binary_max}= | Set Variable | ${max_rate}
577 | | ${threshold}= | Set Variable | ${min_rate}
578 | | ${dut1_vm_refs}= | Create Dictionary
579 | | ${dut2_vm_refs}= | Create Dictionary
580 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
581 | | And   Add PCI devices to DUTs from 3-node single link topology
582 | | And   Add No Multi Seg to all DUTs
583 | | And   Apply startup configuration on all VPP DUTs
584 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
585 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
586 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
587 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
588 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
589 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
590 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
591 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
592 | | And Setup scheduler policy for VPP on all DUTs
593 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
594 | | ...                                       | ${binary_max} | 3-node-bridge
595 | | ...                                       | ${min_rate} | ${max_rate}
596 | | ...                                       | ${threshold}
597 | | ...                                       | ${perf_pdr_loss_acceptance}
598 | | ...                                       | ${perf_pdr_loss_acceptance_type}
599
600 | tc17-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
601 | | [Documentation]
602 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
603 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
604 | | ... | size using binary search start at 10GE linerate, step 10kpps.
605 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
606 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
607 | | ${framesize}= | Set Variable | IMIX_v4_1
608 | | ${min_rate}= | Set Variable | ${10000}
609 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
610 | | ${binary_min}= | Set Variable | ${min_rate}
611 | | ${binary_max}= | Set Variable | ${max_rate}
612 | | ${threshold}= | Set Variable | ${min_rate}
613 | | ${dut1_vm_refs}= | Create Dictionary
614 | | ${dut2_vm_refs}= | Create Dictionary
615 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
616 | | And   Add PCI devices to DUTs from 3-node single link topology
617 | | And   Add No Multi Seg to all DUTs
618 | | And   Apply startup configuration on all VPP DUTs
619 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
620 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
621 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
622 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
623 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
624 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
625 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
626 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
627 | | And Setup scheduler policy for VPP on all DUTs
628 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
629 | | ...                                       | ${binary_max} | 3-node-bridge
630 | | ...                                       | ${min_rate} | ${max_rate}
631 | | ...                                       | ${threshold}
632
633 | tc18-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
634 | | [Documentation]
635 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
636 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
637 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
638 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
639 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
640 | | ${framesize}= | Set Variable | IMIX_v4_1
641 | | ${min_rate}= | Set Variable | ${10000}
642 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
643 | | ${binary_min}= | Set Variable | ${min_rate}
644 | | ${binary_max}= | Set Variable | ${max_rate}
645 | | ${threshold}= | Set Variable | ${min_rate}
646 | | ${dut1_vm_refs}= | Create Dictionary
647 | | ${dut2_vm_refs}= | Create Dictionary
648 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
649 | | And   Add PCI devices to DUTs from 3-node single link topology
650 | | And   Add No Multi Seg to all DUTs
651 | | And   Apply startup configuration on all VPP DUTs
652 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
653 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
654 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
655 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
656 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
657 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
658 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
659 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
660 | | And Setup scheduler policy for VPP on all DUTs
661 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
662 | | ...                                       | ${binary_max} | 3-node-bridge
663 | | ...                                       | ${min_rate} | ${max_rate}
664 | | ...                                       | ${threshold}
665 | | ...                                       | ${perf_pdr_loss_acceptance}
666 | | ...                                       | ${perf_pdr_loss_acceptance_type}