bfeca461f51f7c7adfc1f6a58694a5151b55ee8b
[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 5kpps, 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   Apply startup configuration on all VPP DUTs
251 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
252 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
253 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
254 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
255 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
256 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
257 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
258 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
259 | | And Setup scheduler policy for VPP on all DUTs
260 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
261 | | ...                                       | ${binary_max} | 3-node-bridge
262 | | ...                                       | ${min_rate} | ${max_rate}
263 | | ...                                       | ${threshold}
264 | | ...                                       | ${perf_pdr_loss_acceptance}
265 | | ...                                       | ${perf_pdr_loss_acceptance_type}
266
267 | tc07-64B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
268 | | [Documentation]
269 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
270 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
271 | | ... | using binary search start at 10GE linerate, step 10kpps.
272 | | [Tags] | 2T2C | MTHREAD | NDRDISC
273 | | ${framesize}= | Set Variable | ${64}
274 | | ${min_rate}= | Set Variable | ${10000}
275 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
276 | | ${binary_min}= | Set Variable | ${min_rate}
277 | | ${binary_max}= | Set Variable | ${max_rate}
278 | | ${threshold}= | Set Variable | ${min_rate}
279 | | ${dut1_vm_refs}= | Create Dictionary
280 | | ${dut2_vm_refs}= | Create Dictionary
281 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
282 | | And   Add PCI devices to DUTs from 3-node single link topology
283 | | And   Add No Multi Seg to all DUTs
284 | | And   Apply startup configuration on all VPP DUTs
285 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
286 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
287 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
288 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
289 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
290 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
291 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
292 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
293 | | And Setup scheduler policy for VPP on all DUTs
294 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
295 | | ...                                       | ${binary_max} | 3-node-bridge
296 | | ...                                       | ${min_rate} | ${max_rate}
297 | | ...                                       | ${threshold}
298
299 | tc08-64B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
300 | | [Documentation]
301 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
302 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
303 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
304 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
305 | | ${framesize}= | Set Variable | ${64}
306 | | ${min_rate}= | Set Variable | ${10000}
307 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
308 | | ${binary_min}= | Set Variable | ${min_rate}
309 | | ${binary_max}= | Set Variable | ${max_rate}
310 | | ${threshold}= | Set Variable | ${min_rate}
311 | | ${dut1_vm_refs}= | Create Dictionary
312 | | ${dut2_vm_refs}= | Create Dictionary
313 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
314 | | And   Add PCI devices to DUTs from 3-node single link topology
315 | | And   Add No Multi Seg to all DUTs
316 | | And   Apply startup configuration on all VPP DUTs
317 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
318 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
319 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
320 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
321 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
322 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
323 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
324 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
325 | | And Setup scheduler policy for VPP on all DUTs
326 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
327 | | ...                                       | ${binary_max} | 3-node-bridge
328 | | ...                                       | ${min_rate} | ${max_rate}
329 | | ...                                       | ${threshold}
330 | | ...                                       | ${perf_pdr_loss_acceptance}
331 | | ...                                       | ${perf_pdr_loss_acceptance_type}
332
333 | tc09-1518B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
334 | | [Documentation]
335 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
336 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
337 | | ... | using binary search start at 10GE linerate, step 10kpps.
338 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
339 | | ${framesize}= | Set Variable | ${1518}
340 | | ${min_rate}= | Set Variable | ${10000}
341 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
342 | | ${binary_min}= | Set Variable | ${min_rate}
343 | | ${binary_max}= | Set Variable | ${max_rate}
344 | | ${threshold}= | Set Variable | ${min_rate}
345 | | ${dut1_vm_refs}= | Create Dictionary
346 | | ${dut2_vm_refs}= | Create Dictionary
347 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
348 | | And   Add PCI devices to DUTs from 3-node single link topology
349 | | And   Add No Multi Seg to all DUTs
350 | | And   Apply startup configuration on all VPP DUTs
351 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
352 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
353 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
354 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
355 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
356 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
357 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
358 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
359 | | And Setup scheduler policy for VPP on all DUTs
360 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
361 | | ...                                       | ${binary_max} | 3-node-bridge
362 | | ...                                       | ${min_rate} | ${max_rate}
363 | | ...                                       | ${threshold}
364
365 | tc10-1518B-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
366 | | [Documentation]
367 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
368 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
369 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
370 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
371 | | ${framesize}= | Set Variable | ${1518}
372 | | ${min_rate}= | Set Variable | ${10000}
373 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
374 | | ${binary_min}= | Set Variable | ${min_rate}
375 | | ${binary_max}= | Set Variable | ${max_rate}
376 | | ${threshold}= | Set Variable | ${min_rate}
377 | | ${dut1_vm_refs}= | Create Dictionary
378 | | ${dut2_vm_refs}= | Create Dictionary
379 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
380 | | And   Add PCI devices to DUTs from 3-node single link topology
381 | | And   Add No Multi Seg to all DUTs
382 | | And   Apply startup configuration on all VPP DUTs
383 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
384 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
385 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
386 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
387 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
388 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
389 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
390 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
391 | | And Setup scheduler policy for VPP on all DUTs
392 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
393 | | ...                                       | ${binary_max} | 3-node-bridge
394 | | ...                                       | ${min_rate} | ${max_rate}
395 | | ...                                       | ${threshold}
396 | | ...                                       | ${perf_pdr_loss_acceptance}
397 | | ...                                       | ${perf_pdr_loss_acceptance_type}
398
399 | tc11-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
400 | | [Documentation]
401 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
402 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
403 | | ... | size using binary search start at 10GE linerate, step 5kpps.
404 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
405 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
406 | | ${framesize}= | Set Variable | IMIX_v4_1
407 | | ${min_rate}= | Set Variable | ${10000}
408 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
409 | | ${binary_min}= | Set Variable | ${min_rate}
410 | | ${binary_max}= | Set Variable | ${max_rate}
411 | | ${threshold}= | Set Variable | ${min_rate}
412 | | ${dut1_vm_refs}= | Create Dictionary
413 | | ${dut2_vm_refs}= | Create Dictionary
414 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
415 | | And   Add PCI devices to DUTs from 3-node single link topology
416 | | And   Add No Multi Seg to all DUTs
417 | | And   Apply startup configuration on all VPP DUTs
418 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
419 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
420 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
421 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
422 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
423 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
424 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
425 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
426 | | And Setup scheduler policy for VPP on all DUTs
427 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
428 | | ...                                       | ${binary_max} | 3-node-bridge
429 | | ...                                       | ${min_rate} | ${max_rate}
430 | | ...                                       | ${threshold}
431
432 | tc12-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
433 | | [Documentation]
434 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
435 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
436 | | ... | size using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
437 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
438 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
439 | | ${framesize}= | Set Variable | IMIX_v4_1
440 | | ${min_rate}= | Set Variable | ${10000}
441 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
442 | | ${binary_min}= | Set Variable | ${min_rate}
443 | | ${binary_max}= | Set Variable | ${max_rate}
444 | | ${threshold}= | Set Variable | ${min_rate}
445 | | ${dut1_vm_refs}= | Create Dictionary
446 | | ${dut2_vm_refs}= | Create Dictionary
447 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
448 | | And   Add PCI devices to DUTs from 3-node single link topology
449 | | And   Add No Multi Seg to all DUTs
450 | | And   Apply startup configuration on all VPP DUTs
451 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
452 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
453 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
454 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
455 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
456 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
457 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
458 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
459 | | And Setup scheduler policy for VPP on all DUTs
460 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
461 | | ...                                       | ${binary_max} | 3-node-bridge
462 | | ...                                       | ${min_rate} | ${max_rate}
463 | | ...                                       | ${threshold}
464 | | ...                                       | ${perf_pdr_loss_acceptance}
465 | | ...                                       | ${perf_pdr_loss_acceptance_type}
466
467 | tc13-64B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
468 | | [Documentation]
469 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
470 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames \
471 | | ... | using binary search start at 10GE linerate, step 10kpps.
472 | | [Tags] | 4T4C | MTHREAD | NDRDISC
473 | | ${framesize}= | Set Variable | ${64}
474 | | ${min_rate}= | Set Variable | ${10000}
475 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
476 | | ${binary_min}= | Set Variable | ${min_rate}
477 | | ${binary_max}= | Set Variable | ${max_rate}
478 | | ${threshold}= | Set Variable | ${min_rate}
479 | | ${dut1_vm_refs}= | Create Dictionary
480 | | ${dut2_vm_refs}= | Create Dictionary
481 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
482 | | And   Add PCI devices to DUTs from 3-node single link topology
483 | | And   Add No Multi Seg to all DUTs
484 | | And   Apply startup configuration on all VPP DUTs
485 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
486 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
487 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
488 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
489 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
490 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
491 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
492 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
493 | | And Setup scheduler policy for VPP on all DUTs
494 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
495 | | ...                                       | ${binary_max} | 3-node-bridge
496 | | ...                                       | ${min_rate} | ${max_rate}
497 | | ...                                       | ${threshold}
498
499 | tc14-64B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
500 | | [Documentation]
501 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
502 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames \
503 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
504 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
505 | | ${framesize}= | Set Variable | ${64}
506 | | ${min_rate}= | Set Variable | ${10000}
507 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
508 | | ${binary_min}= | Set Variable | ${min_rate}
509 | | ${binary_max}= | Set Variable | ${max_rate}
510 | | ${threshold}= | Set Variable | ${min_rate}
511 | | ${dut1_vm_refs}= | Create Dictionary
512 | | ${dut2_vm_refs}= | Create Dictionary
513 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
514 | | And   Add PCI devices to DUTs from 3-node single link topology
515 | | And   Add No Multi Seg to all DUTs
516 | | And   Apply startup configuration on all VPP DUTs
517 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
518 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
519 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
520 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
521 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
522 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
523 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
524 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
525 | | And Setup scheduler policy for VPP on all DUTs
526 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
527 | | ...                                       | ${binary_max} | 3-node-bridge
528 | | ...                                       | ${min_rate} | ${max_rate}
529 | | ...                                       | ${threshold}
530 | | ...                                       | ${perf_pdr_loss_acceptance}
531 | | ...                                       | ${perf_pdr_loss_acceptance_type}
532
533 | tc15-1518B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
534 | | [Documentation]
535 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
536 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames \
537 | | ... | using binary search start at 10GE linerate, step 10kpps.
538 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
539 | | ${framesize}= | Set Variable | ${1518}
540 | | ${min_rate}= | Set Variable | ${10000}
541 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
542 | | ${binary_min}= | Set Variable | ${min_rate}
543 | | ${binary_max}= | Set Variable | ${max_rate}
544 | | ${threshold}= | Set Variable | ${min_rate}
545 | | ${dut1_vm_refs}= | Create Dictionary
546 | | ${dut2_vm_refs}= | Create Dictionary
547 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
548 | | And   Add PCI devices to DUTs from 3-node single link topology
549 | | And   Add No Multi Seg to all DUTs
550 | | And   Apply startup configuration on all VPP DUTs
551 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
552 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
553 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
554 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
555 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
556 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
557 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
558 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
559 | | And Setup scheduler policy for VPP on all DUTs
560 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
561 | | ...                                       | ${binary_max} | 3-node-bridge
562 | | ...                                       | ${min_rate} | ${max_rate}
563 | | ...                                       | ${threshold}
564
565 | tc16-1518B-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
566 | | [Documentation]
567 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
568 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames \
569 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
570 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
571 | | ${framesize}= | Set Variable | ${1518}
572 | | ${min_rate}= | Set Variable | ${10000}
573 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
574 | | ${binary_min}= | Set Variable | ${min_rate}
575 | | ${binary_max}= | Set Variable | ${max_rate}
576 | | ${threshold}= | Set Variable | ${min_rate}
577 | | ${dut1_vm_refs}= | Create Dictionary
578 | | ${dut2_vm_refs}= | Create Dictionary
579 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
580 | | And   Add PCI devices to DUTs from 3-node single link topology
581 | | And   Add No Multi Seg to all DUTs
582 | | And   Apply startup configuration on all VPP DUTs
583 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
584 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
585 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
586 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
587 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
588 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
589 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
590 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
591 | | And Setup scheduler policy for VPP on all DUTs
592 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
593 | | ...                                       | ${binary_max} | 3-node-bridge
594 | | ...                                       | ${min_rate} | ${max_rate}
595 | | ...                                       | ${threshold}
596 | | ...                                       | ${perf_pdr_loss_acceptance}
597 | | ...                                       | ${perf_pdr_loss_acceptance_type}
598
599 | tc17-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-ndrdisc
600 | | [Documentation]
601 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
602 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
603 | | ... | size using binary search start at 10GE linerate, step 5kpps.
604 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
605 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
606 | | ${framesize}= | Set Variable | IMIX_v4_1
607 | | ${min_rate}= | Set Variable | ${10000}
608 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
609 | | ${binary_min}= | Set Variable | ${min_rate}
610 | | ${binary_max}= | Set Variable | ${max_rate}
611 | | ${threshold}= | Set Variable | ${min_rate}
612 | | ${dut1_vm_refs}= | Create Dictionary
613 | | ${dut2_vm_refs}= | Create Dictionary
614 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
615 | | And   Add PCI devices to DUTs from 3-node single link topology
616 | | And   Add No Multi Seg to all DUTs
617 | | And   Apply startup configuration on all VPP DUTs
618 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
619 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
620 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
621 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
622 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
623 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
624 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
625 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
626 | | And Setup scheduler policy for VPP on all DUTs
627 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
628 | | ...                                       | ${binary_max} | 3-node-bridge
629 | | ...                                       | ${min_rate} | ${max_rate}
630 | | ...                                       | ${threshold}
631
632 | tc18-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2vhost-1vm-pdrdisc
633 | | [Documentation]
634 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
635 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
636 | | ... | size using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
637 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
638 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
639 | | ${framesize}= | Set Variable | IMIX_v4_1
640 | | ${min_rate}= | Set Variable | ${10000}
641 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
642 | | ${binary_min}= | Set Variable | ${min_rate}
643 | | ${binary_max}= | Set Variable | ${max_rate}
644 | | ${threshold}= | Set Variable | ${min_rate}
645 | | ${dut1_vm_refs}= | Create Dictionary
646 | | ${dut2_vm_refs}= | Create Dictionary
647 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
648 | | And   Add PCI devices to DUTs from 3-node single link topology
649 | | And   Add No Multi Seg to all DUTs
650 | | And   Apply startup configuration on all VPP DUTs
651 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
652 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
653 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
654 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
655 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
656 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
657 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
658 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
659 | | And Setup scheduler policy for VPP on all DUTs
660 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
661 | | ...                                       | ${binary_max} | 3-node-bridge
662 | | ...                                       | ${min_rate} | ${max_rate}
663 | | ...                                       | ${threshold}
664 | | ...                                       | ${perf_pdr_loss_acceptance}
665 | | ...                                       | ${perf_pdr_loss_acceptance_type}