CSIT-390 Replace rate calculation I
[csit.git] / tests / perf / Long_Bridge_Domain_Vhost_Intel-X520-DA2.robot
1 # Copyright (c) 2016 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Resource | resources/libraries/robot/performance.robot
16 | Library | resources.libraries.python.QemuUtils
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PERFTEST_LONG
18 | ...        | PERFTEST_VHOST | NIC_Intel-X520-DA2
19 | Suite Setup | Run Keywords | 3-node Performance Suite Setup with DUT's NIC model
20 | ... | L2 | Intel-X520-DA2
21 | ...         | AND          | Kill QEMU on all DUTs
22 | ...         | AND          | Build QEMU on all DUTs
23 | Suite Teardown | 3-node Performance Suite Teardown
24 | Test Setup | Setup all DUTs before test
25 | Test Teardown | Run Keywords
26 | ...           | Run Keyword If Test Failed
27 | ...           | Traffic should pass with no loss | 10
28 | ...           | ${min_rate}pps | ${framesize} | 3-node-bridge
29 | ...           | fail_on_loss=${False}
30 | ...           | AND | Remove startup configuration of VPP from all DUTs
31 | ...           | AND | Guest VM with dpdk-testpmd Teardown | ${dut1}
32 | ...                 | ${dut1_vm_refs}
33 | ...           | AND | Guest VM with dpdk-testpmd Teardown | ${dut2}
34 | ...                 | ${dut2_vm_refs}
35 | Documentation | *RFC2544: Pkt throughput L2BD test cases with vhost*
36 | ...
37 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
38 | ... | with single links between nodes.
39 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 switching of IPv4.
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 3 cores pinned to cpus 5,6,7 and 2048M
44 | ... | memory. Testpmd is using socket-mem=1024M (512x2M hugepages), 3 cores
45 | ... | (1 main core and 2 cores dedicated for io), forwarding mode is set to
46 | ... | io, rxq/txq=2048, 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 #X520-DA2 bandwidth limit
64 | ${s_limit} | ${10000000000}
65 #Socket names
66 | ${bd_id1}= | 1
67 | ${bd_id2}= | 2
68 | ${sock1}= | /tmp/sock-1-${bd_id1}
69 | ${sock2}= | /tmp/sock-1-${bd_id2}
70
71 *** Test Cases ***
72 | TC01: 64B NDR binary search - DUT L2BD-VHOST - 1thread 1core 1rxq
73 | | [Documentation]
74 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
75 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
76 | | ... | using binary search start at 10GE linerate, step 10kpps.
77 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
78 | | ${framesize}= | Set Variable | ${64}
79 | | ${min_rate}= | Set Variable | ${10000}
80 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
81 | | ${binary_min}= | Set Variable | ${min_rate}
82 | | ${binary_max}= | Set Variable | ${max_rate}
83 | | ${threshold}= | Set Variable | ${min_rate}
84 | | ${dut1_vm_refs}= | Create Dictionary
85 | | ${dut2_vm_refs}= | Create Dictionary
86 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
87 | | And   Add PCI devices to DUTs from 3-node single link topology
88 | | And   Add No Multi Seg to all DUTs
89 | | And   Apply startup configuration on all VPP DUTs
90 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
91 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
92 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
93 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
94 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
95 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
96 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
97 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
98 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
99 | | ...                                       | ${binary_max} | 3-node-bridge
100 | | ...                                       | ${min_rate} | ${max_rate}
101 | | ...                                       | ${threshold}
102
103 | TC02: 64B PDR binary search - DUT L2BD-VHOST - 1thread 1core 1rxq
104 | | [Documentation]
105 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
106 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
107 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
108 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
109 | | ${framesize}= | Set Variable | ${64}
110 | | ${min_rate}= | Set Variable | ${10000}
111 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
112 | | ${binary_min}= | Set Variable | ${min_rate}
113 | | ${binary_max}= | Set Variable | ${max_rate}
114 | | ${threshold}= | Set Variable | ${min_rate}
115 | | ${dut1_vm_refs}= | Create Dictionary
116 | | ${dut2_vm_refs}= | Create Dictionary
117 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
118 | | And   Add PCI devices to DUTs from 3-node single link topology
119 | | And   Add No Multi Seg to all DUTs
120 | | And   Apply startup configuration on all VPP DUTs
121 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
122 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
123 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
124 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
125 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
126 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
127 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
128 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
129 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
130 | | ...                                       | ${binary_max} | 3-node-bridge
131 | | ...                                       | ${min_rate} | ${max_rate}
132 | | ...                                       | ${threshold}
133 | | ...                                       | ${glob_loss_acceptance}
134 | | ...                                       | ${glob_loss_acceptance_type}
135
136 | TC03: 1518B NDR binary search - DUT L2BD-VHOST - 1thread 1core 1rxq
137 | | [Documentation]
138 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
139 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
140 | | ... | using binary search start at 10GE linerate, step 10kpps.
141 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
142 | | ${framesize}= | Set Variable | ${1518}
143 | | ${min_rate}= | Set Variable | ${10000}
144 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
145 | | ${binary_min}= | Set Variable | ${min_rate}
146 | | ${binary_max}= | Set Variable | ${max_rate}
147 | | ${threshold}= | Set Variable | ${min_rate}
148 | | ${dut1_vm_refs}= | Create Dictionary
149 | | ${dut2_vm_refs}= | Create Dictionary
150 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
151 | | And   Add PCI devices to DUTs from 3-node single link topology
152 | | And   Add No Multi Seg to all DUTs
153 | | And   Apply startup configuration on all VPP DUTs
154 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
155 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
156 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
157 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
158 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
159 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
160 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
161 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
162 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
163 | | ...                                       | ${binary_max} | 3-node-bridge
164 | | ...                                       | ${min_rate} | ${max_rate}
165 | | ...                                       | ${threshold}
166
167 | TC04: 1518B PDR binary search - DUT L2BD-VHOST - 1thread 1core 1rxq
168 | | [Documentation]
169 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
170 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
171 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
172 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
173 | | ${framesize}= | Set Variable | ${1518}
174 | | ${min_rate}= | Set Variable | ${10000}
175 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
176 | | ${binary_min}= | Set Variable | ${min_rate}
177 | | ${binary_max}= | Set Variable | ${max_rate}
178 | | ${threshold}= | Set Variable | ${min_rate}
179 | | ${dut1_vm_refs}= | Create Dictionary
180 | | ${dut2_vm_refs}= | Create Dictionary
181 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
182 | | And   Add PCI devices to DUTs from 3-node single link topology
183 | | And   Add No Multi Seg to all DUTs
184 | | And   Apply startup configuration on all VPP DUTs
185 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
186 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
187 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
188 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
189 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
190 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
191 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
192 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
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 | | ...                                       | ${glob_loss_acceptance}
198 | | ...                                       | ${glob_loss_acceptance_type}
199
200 | TC05: IMIX_v4_1 NDR binary search - DUT L2BD-VHOST - 1thread 1core 1rxq
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] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
207 | | ${framesize}= | Set Variable | IMIX_v4_1
208 | | ${min_rate}= | Set Variable | ${5000}
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' without HTT to all DUTs
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 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
228 | | ...                                       | ${binary_max} | 3-node-bridge
229 | | ...                                       | ${min_rate} | ${max_rate}
230 | | ...                                       | ${threshold}
231
232 | TC06: IMIX_v4_1 PDR binary search - DUT L2BD-VHOST - 1thread 1core 1rxq
233 | | [Documentation]
234 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
235 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
236 | | ... | size using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
237 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
238 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
239 | | ${framesize}= | Set Variable | IMIX_v4_1
240 | | ${min_rate}= | Set Variable | ${5000}
241 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
242 | | ${binary_min}= | Set Variable | ${min_rate}
243 | | ${binary_max}= | Set Variable | ${max_rate}
244 | | ${threshold}= | Set Variable | ${min_rate}
245 | | ${dut1_vm_refs}= | Create Dictionary
246 | | ${dut2_vm_refs}= | Create Dictionary
247 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
248 | | And   Add PCI devices to DUTs from 3-node single link topology
249 | | And   Apply startup configuration on all VPP DUTs
250 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
251 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
252 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
253 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
254 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
255 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
256 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
257 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
258 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
259 | | ...                                       | ${binary_max} | 3-node-bridge
260 | | ...                                       | ${min_rate} | ${max_rate}
261 | | ...                                       | ${threshold}
262 | | ...                                       | ${glob_loss_acceptance}
263 | | ...                                       | ${glob_loss_acceptance_type}
264
265 | TC07: 64B NDR binary search - DUT L2BD-VHOST - 2threads 2cores 1rxq
266 | | [Documentation]
267 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
268 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
269 | | ... | using binary search start at 10GE linerate, step 10kpps.
270 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
271 | | ${framesize}= | Set Variable | ${64}
272 | | ${min_rate}= | Set Variable | ${10000}
273 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
274 | | ${binary_min}= | Set Variable | ${min_rate}
275 | | ${binary_max}= | Set Variable | ${max_rate}
276 | | ${threshold}= | Set Variable | ${min_rate}
277 | | ${dut1_vm_refs}= | Create Dictionary
278 | | ${dut2_vm_refs}= | Create Dictionary
279 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
280 | | And   Add PCI devices to DUTs from 3-node single link topology
281 | | And   Add No Multi Seg to all DUTs
282 | | And   Apply startup configuration on all VPP DUTs
283 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
284 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
285 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
286 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
287 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
288 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
289 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
290 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
291 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
292 | | ...                                       | ${binary_max} | 3-node-bridge
293 | | ...                                       | ${min_rate} | ${max_rate}
294 | | ...                                       | ${threshold}
295
296 | TC08: 64B PDR binary search - DUT L2BD-VHOST - 2threads 2cores 1rxq
297 | | [Documentation]
298 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
299 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
300 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
301 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
302 | | ${framesize}= | Set Variable | ${64}
303 | | ${min_rate}= | Set Variable | ${10000}
304 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
305 | | ${binary_min}= | Set Variable | ${min_rate}
306 | | ${binary_max}= | Set Variable | ${max_rate}
307 | | ${threshold}= | Set Variable | ${min_rate}
308 | | ${dut1_vm_refs}= | Create Dictionary
309 | | ${dut2_vm_refs}= | Create Dictionary
310 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
311 | | And   Add PCI devices to DUTs from 3-node single link topology
312 | | And   Add No Multi Seg to all DUTs
313 | | And   Apply startup configuration on all VPP DUTs
314 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
315 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
316 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
317 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
318 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
319 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
320 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
321 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
322 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
323 | | ...                                       | ${binary_max} | 3-node-bridge
324 | | ...                                       | ${min_rate} | ${max_rate}
325 | | ...                                       | ${threshold}
326 | | ...                                       | ${glob_loss_acceptance}
327 | | ...                                       | ${glob_loss_acceptance_type}
328
329 | TC09: 1518B NDR binary search - DUT L2BD-VHOST - 2threads 2cores 1rxq
330 | | [Documentation]
331 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
332 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
333 | | ... | using binary search start at 10GE linerate, step 10kpps.
334 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR | SKIP_PATCH
335 | | ${framesize}= | Set Variable | ${1518}
336 | | ${min_rate}= | Set Variable | ${10000}
337 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
338 | | ${binary_min}= | Set Variable | ${min_rate}
339 | | ${binary_max}= | Set Variable | ${max_rate}
340 | | ${threshold}= | Set Variable | ${min_rate}
341 | | ${dut1_vm_refs}= | Create Dictionary
342 | | ${dut2_vm_refs}= | Create Dictionary
343 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
344 | | And   Add PCI devices to DUTs from 3-node single link topology
345 | | And   Add No Multi Seg to all DUTs
346 | | And   Apply startup configuration on all VPP DUTs
347 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
348 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
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 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
356 | | ...                                       | ${binary_max} | 3-node-bridge
357 | | ...                                       | ${min_rate} | ${max_rate}
358 | | ...                                       | ${threshold}
359
360 | TC10: 1518B PDR binary search - DUT L2BD-VHOST - 2threads 2cores 1rxq
361 | | [Documentation]
362 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
363 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
364 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
365 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
366 | | ${framesize}= | Set Variable | ${1518}
367 | | ${min_rate}= | Set Variable | ${10000}
368 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
369 | | ${binary_min}= | Set Variable | ${min_rate}
370 | | ${binary_max}= | Set Variable | ${max_rate}
371 | | ${threshold}= | Set Variable | ${min_rate}
372 | | ${dut1_vm_refs}= | Create Dictionary
373 | | ${dut2_vm_refs}= | Create Dictionary
374 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
375 | | And   Add PCI devices to DUTs from 3-node single link topology
376 | | And   Add No Multi Seg to all DUTs
377 | | And   Apply startup configuration on all VPP DUTs
378 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
379 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
380 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
381 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
382 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
383 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
384 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
385 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
386 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
387 | | ...                                       | ${binary_max} | 3-node-bridge
388 | | ...                                       | ${min_rate} | ${max_rate}
389 | | ...                                       | ${threshold}
390 | | ...                                       | ${glob_loss_acceptance}
391 | | ...                                       | ${glob_loss_acceptance_type}
392
393 | TC11: IMIX_v4_1 NDR binary search - DUT L2BD-VHOST - 2threads 2cores 1rxq
394 | | [Documentation]
395 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
396 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
397 | | ... | size using binary search start at 10GE linerate, step 5kpps.
398 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
399 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR | SKIP_PATCH
400 | | ${framesize}= | Set Variable | IMIX_v4_1
401 | | ${min_rate}= | Set Variable | ${5000}
402 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
403 | | ${binary_min}= | Set Variable | ${min_rate}
404 | | ${binary_max}= | Set Variable | ${max_rate}
405 | | ${threshold}= | Set Variable | ${min_rate}
406 | | ${dut1_vm_refs}= | Create Dictionary
407 | | ${dut2_vm_refs}= | Create Dictionary
408 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
409 | | And   Add PCI devices to DUTs from 3-node single link topology
410 | | And   Add No Multi Seg to all DUTs
411 | | And   Apply startup configuration on all VPP DUTs
412 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
413 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
414 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
415 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
416 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
417 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
418 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
419 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
420 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
421 | | ...                                       | ${binary_max} | 3-node-bridge
422 | | ...                                       | ${min_rate} | ${max_rate}
423 | | ...                                       | ${threshold}
424
425 | TC12: IMIX_v4_1 PDR binary search - DUT L2BD-VHOST - 2threads 2cores 1rxq
426 | | [Documentation]
427 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
428 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
429 | | ... | size using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
430 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
431 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
432 | | ${framesize}= | Set Variable | IMIX_v4_1
433 | | ${min_rate}= | Set Variable | ${5000}
434 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
435 | | ${binary_min}= | Set Variable | ${min_rate}
436 | | ${binary_max}= | Set Variable | ${max_rate}
437 | | ${threshold}= | Set Variable | ${min_rate}
438 | | ${dut1_vm_refs}= | Create Dictionary
439 | | ${dut2_vm_refs}= | Create Dictionary
440 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
441 | | And   Add PCI devices to DUTs from 3-node single link topology
442 | | And   Add No Multi Seg to all DUTs
443 | | And   Apply startup configuration on all VPP DUTs
444 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
445 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
446 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
447 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
448 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
449 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
450 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
451 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
452 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
453 | | ...                                       | ${binary_max} | 3-node-bridge
454 | | ...                                       | ${min_rate} | ${max_rate}
455 | | ...                                       | ${threshold}
456 | | ...                                       | ${glob_loss_acceptance}
457 | | ...                                       | ${glob_loss_acceptance_type}
458
459 | TC13: 64B NDR binary search - DUT L2BD-VHOST - 4threads 4cores 2rxq
460 | | [Documentation]
461 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
462 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames \
463 | | ... | using binary search start at 10GE linerate, step 10kpps.
464 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
465 | | ${framesize}= | Set Variable | ${64}
466 | | ${min_rate}= | Set Variable | ${10000}
467 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
468 | | ${binary_min}= | Set Variable | ${min_rate}
469 | | ${binary_max}= | Set Variable | ${max_rate}
470 | | ${threshold}= | Set Variable | ${min_rate}
471 | | ${dut1_vm_refs}= | Create Dictionary
472 | | ${dut2_vm_refs}= | Create Dictionary
473 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
474 | | And   Add PCI devices to DUTs from 3-node single link topology
475 | | And   Add No Multi Seg to all DUTs
476 | | And   Apply startup configuration on all VPP DUTs
477 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
478 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
479 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
480 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
481 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
482 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
483 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
484 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
485 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
486 | | ...                                       | ${binary_max} | 3-node-bridge
487 | | ...                                       | ${min_rate} | ${max_rate}
488 | | ...                                       | ${threshold}
489
490 | TC14: 64B PDR binary search - DUT L2BD-VHOST - 4threads 4cores 2rxq
491 | | [Documentation]
492 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
493 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames \
494 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
495 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
496 | | ${framesize}= | Set Variable | ${64}
497 | | ${min_rate}= | Set Variable | ${10000}
498 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
499 | | ${binary_min}= | Set Variable | ${min_rate}
500 | | ${binary_max}= | Set Variable | ${max_rate}
501 | | ${threshold}= | Set Variable | ${min_rate}
502 | | ${dut1_vm_refs}= | Create Dictionary
503 | | ${dut2_vm_refs}= | Create Dictionary
504 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
505 | | And   Add PCI devices to DUTs from 3-node single link topology
506 | | And   Add No Multi Seg to all DUTs
507 | | And   Apply startup configuration on all VPP DUTs
508 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
509 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
510 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
511 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
512 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
513 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
514 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
515 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
516 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
517 | | ...                                       | ${binary_max} | 3-node-bridge
518 | | ...                                       | ${min_rate} | ${max_rate}
519 | | ...                                       | ${threshold}
520 | | ...                                       | ${glob_loss_acceptance}
521 | | ...                                       | ${glob_loss_acceptance_type}
522
523 | TC15: 1518B NDR binary search - DUT L2BD-VHOST - 4threads 4cores 2rxq
524 | | [Documentation]
525 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
526 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames \
527 | | ... | using binary search start at 10GE linerate, step 10kpps.
528 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR | SKIP_PATCH
529 | | ${framesize}= | Set Variable | ${1518}
530 | | ${min_rate}= | Set Variable | ${10000}
531 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
532 | | ${binary_min}= | Set Variable | ${min_rate}
533 | | ${binary_max}= | Set Variable | ${max_rate}
534 | | ${threshold}= | Set Variable | ${min_rate}
535 | | ${dut1_vm_refs}= | Create Dictionary
536 | | ${dut2_vm_refs}= | Create Dictionary
537 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
538 | | And   Add PCI devices to DUTs from 3-node single link topology
539 | | And   Add No Multi Seg to all DUTs
540 | | And   Apply startup configuration on all VPP DUTs
541 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
542 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
543 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
544 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
545 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
546 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
547 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
548 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
549 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
550 | | ...                                       | ${binary_max} | 3-node-bridge
551 | | ...                                       | ${min_rate} | ${max_rate}
552 | | ...                                       | ${threshold}
553
554 | TC16: 1518B PDR binary search - DUT L2BD-VHOST - 4threads 4cores 2rxq
555 | | [Documentation]
556 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
557 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames \
558 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
559 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
560 | | ${framesize}= | Set Variable | ${1518}
561 | | ${min_rate}= | Set Variable | ${10000}
562 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
563 | | ${binary_min}= | Set Variable | ${min_rate}
564 | | ${binary_max}= | Set Variable | ${max_rate}
565 | | ${threshold}= | Set Variable | ${min_rate}
566 | | ${dut1_vm_refs}= | Create Dictionary
567 | | ${dut2_vm_refs}= | Create Dictionary
568 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
569 | | And   Add PCI devices to DUTs from 3-node single link topology
570 | | And   Add No Multi Seg to all DUTs
571 | | And   Apply startup configuration on all VPP DUTs
572 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
573 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
574 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
575 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
576 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
577 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
578 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
579 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
580 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
581 | | ...                                       | ${binary_max} | 3-node-bridge
582 | | ...                                       | ${min_rate} | ${max_rate}
583 | | ...                                       | ${threshold}
584 | | ...                                       | ${glob_loss_acceptance}
585 | | ...                                       | ${glob_loss_acceptance_type}
586
587 | TC17: IMIX_v4_1 NDR binary search - DUT L2BD-VHOST - 4threads 4cores 2rxq
588 | | [Documentation]
589 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
590 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
591 | | ... | size using binary search start at 10GE linerate, step 5kpps.
592 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
593 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR | SKIP_PATCH
594 | | ${framesize}= | Set Variable | IMIX_v4_1
595 | | ${min_rate}= | Set Variable | ${5000}
596 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
597 | | ${binary_min}= | Set Variable | ${min_rate}
598 | | ${binary_max}= | Set Variable | ${max_rate}
599 | | ${threshold}= | Set Variable | ${min_rate}
600 | | ${dut1_vm_refs}= | Create Dictionary
601 | | ${dut2_vm_refs}= | Create Dictionary
602 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
603 | | And   Add PCI devices to DUTs from 3-node single link topology
604 | | And   Add No Multi Seg to all DUTs
605 | | And   Apply startup configuration on all VPP DUTs
606 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
607 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
608 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
609 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
610 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
611 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
612 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
613 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
614 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
615 | | ...                                       | ${binary_max} | 3-node-bridge
616 | | ...                                       | ${min_rate} | ${max_rate}
617 | | ...                                       | ${threshold}
618
619 | TC18: IMIX_v4_1 PDR binary search - DUT L2BD-VHOST - 4threads 4cores 2rxq
620 | | [Documentation]
621 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
622 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
623 | | ... | size using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
624 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
625 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
626 | | ${framesize}= | Set Variable | IMIX_v4_1
627 | | ${min_rate}= | Set Variable | ${5000}
628 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
629 | | ${binary_min}= | Set Variable | ${min_rate}
630 | | ${binary_max}= | Set Variable | ${max_rate}
631 | | ${threshold}= | Set Variable | ${min_rate}
632 | | ${dut1_vm_refs}= | Create Dictionary
633 | | ${dut2_vm_refs}= | Create Dictionary
634 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
635 | | And   Add PCI devices to DUTs from 3-node single link topology
636 | | And   Add No Multi Seg to all DUTs
637 | | And   Apply startup configuration on all VPP DUTs
638 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
639 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
640 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
641 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
642 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
643 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
644 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
645 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
646 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
647 | | ...                                       | ${binary_max} | 3-node-bridge
648 | | ...                                       | ${min_rate} | ${max_rate}
649 | | ...                                       | ${threshold}
650 | | ...                                       | ${glob_loss_acceptance}
651 | | ...                                       | ${glob_loss_acceptance_type}
652
653 | TC19: 64B NDR binary search - DUT L2BD-DPDK-VHOST - 1thread 1core 1rxq
654 | | [Documentation]
655 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
656 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
657 | | ... | using binary search start at 10GE linerate, step 10kpps.
658 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
659 | | ${framesize}= | Set Variable | ${64}
660 | | ${min_rate}= | Set Variable | ${10000}
661 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
662 | | ${binary_min}= | Set Variable | ${min_rate}
663 | | ${binary_max}= | Set Variable | ${max_rate}
664 | | ${threshold}= | Set Variable | ${min_rate}
665 | | ${dut1_vm_refs}= | Create Dictionary
666 | | ${dut2_vm_refs}= | Create Dictionary
667 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
668 | | And   Add PCI devices to DUTs from 3-node single link topology
669 | | And   Add No Multi Seg to all DUTs
670 | | And   Add Enable Vhost User to all DUTs
671 | | And   Apply startup configuration on all VPP DUTs
672 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
673 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
674 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
675 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
676 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
677 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
678 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
679 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
680 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
681 | | ...                                       | ${binary_max} | 3-node-bridge
682 | | ...                                       | ${min_rate} | ${max_rate}
683 | | ...                                       | ${threshold}
684
685 | TC20: 64B PDR binary search - DUT L2BD-DPDK-VHOST - 1thread 1core 1rxq
686 | | [Documentation]
687 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
688 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
689 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
690 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
691 | | ${framesize}= | Set Variable | ${64}
692 | | ${min_rate}= | Set Variable | ${10000}
693 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
694 | | ${binary_min}= | Set Variable | ${min_rate}
695 | | ${binary_max}= | Set Variable | ${max_rate}
696 | | ${threshold}= | Set Variable | ${min_rate}
697 | | ${dut1_vm_refs}= | Create Dictionary
698 | | ${dut2_vm_refs}= | Create Dictionary
699 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
700 | | And   Add PCI devices to DUTs from 3-node single link topology
701 | | And   Add No Multi Seg to all DUTs
702 | | And   Add Enable Vhost User to all DUTs
703 | | And   Apply startup configuration on all VPP DUTs
704 | | When  L2 bridge domains with Vhost-User initialized in a 3-node circular topology
705 | | ...   | ${bd_id1} | ${bd_id2} | ${sock1} | ${sock2}
706 | | ${vm1}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
707 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1
708 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
709 | | ${vm2}= | And Guest VM with dpdk-testpmd connected via vhost-user is setup
710 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1
711 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
712 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
713 | | ...                                       | ${binary_max} | 3-node-bridge
714 | | ...                                       | ${min_rate} | ${max_rate}
715 | | ...                                       | ${threshold}
716 | | ...                                       | ${glob_loss_acceptance}
717 | | ...                                       | ${glob_loss_acceptance_type}
718