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