CSIT-390 Replace rate calculation I
[csit.git] / tests / perf / Long_IPv4_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 | ... | L3 | 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-IPv4
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 IPv4 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 IPv4 routing.
40 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
41 | ... | routing and two static IPv4 /24 route entries. Qemu Guest is connected
42 | ... | to VPP via vhost-user interfaces. Guest is running DPDK testpmd
43 | ... | interconnecting vhost-user interfaces using 3 cores pinned to cpus 5,6,7
44 | ... |  and 2048M memory. Testpmd is using socket-mem=1024M (512x2M hugepages),
45 | ... | 3 cores (1 main core and 2 cores dedicated for io), forwarding mode is
46 | ... | set to mac, rxq/txq=2048, burst=64. DUT1, DUT2 are tested with 2p10GE
47 | ... | NIC X520 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 | ${sock1}= | /tmp/sock-1
66 | ${sock2}= | /tmp/sock-2
67 | ${fib_table_1}= | 100
68 | ${fib_table_2}= | 101
69
70 *** Test Cases ***
71 | TC01: 64B NDR binary search - DUT IPv4-VHOST - 1thread 1core 1rxq
72 | | [Documentation]
73 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
74 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
75 | | ... | using binary search start at 10GE linerate, step 10kpps.
76 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
77 | | ${framesize}= | Set Variable | ${64}
78 | | ${min_rate}= | Set Variable | ${10000}
79 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
80 | | ${binary_min}= | Set Variable | ${min_rate}
81 | | ${binary_max}= | Set Variable | ${max_rate}
82 | | ${threshold}= | Set Variable | ${min_rate}
83 | | ${dut1_vm_refs}= | Create Dictionary
84 | | ${dut2_vm_refs}= | Create Dictionary
85 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
86 | | And   Add PCI devices to DUTs from 3-node single link topology
87 | | And   Add No Multi Seg to all DUTs
88 | | And   Apply startup configuration on all VPP DUTs
89 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
90 | | ...   | ${sock1} | ${sock2}
91 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
92 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
93 | | ...     | ${dut1_vif2_mac}
94 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
95 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
96 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
97 | | ...     | ${dut2_vif2_mac}
98 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
99 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
100 | | ...                                       | ${binary_max} | 3-node-IPv4
101 | | ...                                       | ${min_rate} | ${max_rate}
102 | | ...                                       | ${threshold}
103
104 | TC02: 64B PDR binary search - DUT IPv4-VHOST - 1thread 1core 1rxq
105 | | [Documentation]
106 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
107 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
108 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
109 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
110 | | ${framesize}= | Set Variable | ${64}
111 | | ${min_rate}= | Set Variable | ${10000}
112 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
113 | | ${binary_min}= | Set Variable | ${min_rate}
114 | | ${binary_max}= | Set Variable | ${max_rate}
115 | | ${threshold}= | Set Variable | ${min_rate}
116 | | ${dut1_vm_refs}= | Create Dictionary
117 | | ${dut2_vm_refs}= | Create Dictionary
118 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
119 | | And   Add PCI devices to DUTs from 3-node single link topology
120 | | And   Add No Multi Seg to all DUTs
121 | | And   Apply startup configuration on all VPP DUTs
122 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
123 | | ...   | ${sock1} | ${sock2}
124 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
125 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
126 | | ...     | ${dut1_vif2_mac}
127 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
128 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
129 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
130 | | ...     | ${dut2_vif2_mac}
131 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
132 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
133 | | ...                                       | ${binary_max} | 3-node-IPv4
134 | | ...                                       | ${min_rate} | ${max_rate}
135 | | ...                                       | ${threshold}
136 | | ...                                       | ${glob_loss_acceptance}
137 | | ...                                       | ${glob_loss_acceptance_type}
138
139 | TC03: 1518B NDR binary search - DUT IPv4-VHOST - 1thread 1core 1rxq
140 | | [Documentation]
141 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
142 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
143 | | ... | using binary search start at 10GE linerate, step 10kpps.
144 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
145 | | ${framesize}= | Set Variable | ${1518}
146 | | ${min_rate}= | Set Variable | ${10000}
147 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
148 | | ${binary_min}= | Set Variable | ${min_rate}
149 | | ${binary_max}= | Set Variable | ${max_rate}
150 | | ${threshold}= | Set Variable | ${min_rate}
151 | | ${dut1_vm_refs}= | Create Dictionary
152 | | ${dut2_vm_refs}= | Create Dictionary
153 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
154 | | And   Add PCI devices to DUTs from 3-node single link topology
155 | | And   Add No Multi Seg to all DUTs
156 | | And   Apply startup configuration on all VPP DUTs
157 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
158 | | ...   | ${sock1} | ${sock2}
159 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
160 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
161 | | ...     | ${dut1_vif2_mac}
162 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
163 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
164 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
165 | | ...     | ${dut2_vif2_mac}
166 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
167 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
168 | | ...                                       | ${binary_max} | 3-node-IPv4
169 | | ...                                       | ${min_rate} | ${max_rate}
170 | | ...                                       | ${threshold}
171
172 | TC04: 1518B PDR binary search - DUT IPv4-VHOST - 1thread 1core 1rxq
173 | | [Documentation]
174 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
175 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
176 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
177 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
178 | | ${framesize}= | Set Variable | ${1518}
179 | | ${min_rate}= | Set Variable | ${10000}
180 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
181 | | ${binary_min}= | Set Variable | ${min_rate}
182 | | ${binary_max}= | Set Variable | ${max_rate}
183 | | ${threshold}= | Set Variable | ${min_rate}
184 | | ${dut1_vm_refs}= | Create Dictionary
185 | | ${dut2_vm_refs}= | Create Dictionary
186 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
187 | | And   Add PCI devices to DUTs from 3-node single link topology
188 | | And   Add No Multi Seg to all DUTs
189 | | And   Apply startup configuration on all VPP DUTs
190 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
191 | | ...   | ${sock1} | ${sock2}
192 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
193 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
194 | | ...     | ${dut1_vif2_mac}
195 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
196 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
197 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
198 | | ...     | ${dut2_vif2_mac}
199 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
200 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
201 | | ...                                       | ${binary_max} | 3-node-IPv4
202 | | ...                                       | ${min_rate} | ${max_rate}
203 | | ...                                       | ${threshold}
204 | | ...                                       | ${glob_loss_acceptance}
205 | | ...                                       | ${glob_loss_acceptance_type}
206
207 | TC05: IMIX_v4_1 NDR binary search - DUT IPv4-VHOST - 1thread 1core 1rxq
208 | | [Documentation]
209 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
210 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
211 | | ... | size using binary search start at 10GE linerate, step 5kpps.
212 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
213 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
214 | | ${framesize}= | Set Variable | IMIX_v4_1
215 | | ${min_rate}= | Set Variable | ${10000}
216 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
217 | | ${binary_min}= | Set Variable | ${min_rate}
218 | | ${binary_max}= | Set Variable | ${max_rate}
219 | | ${threshold}= | Set Variable | ${min_rate}
220 | | ${dut1_vm_refs}= | Create Dictionary
221 | | ${dut2_vm_refs}= | Create Dictionary
222 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
223 | | And   Add PCI devices to DUTs from 3-node single link topology
224 | | And   Add No Multi Seg to all DUTs
225 | | And   Apply startup configuration on all VPP DUTs
226 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
227 | | ...   | ${sock1} | ${sock2}
228 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
229 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
230 | | ...     | ${dut1_vif2_mac}
231 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
232 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
233 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
234 | | ...     | ${dut2_vif2_mac}
235 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
236 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
237 | | ...                                       | ${binary_max} | 3-node-IPv4
238 | | ...                                       | ${min_rate} | ${max_rate}
239 | | ...                                       | ${threshold}
240
241 | TC06: IMIX_v4_1 PDR binary search - DUT IPv4-VHOST - 1thread 1core 1rxq
242 | | [Documentation]
243 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
244 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
245 | | ... | size using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
246 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
247 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
248 | | ${framesize}= | Set Variable | IMIX_v4_1
249 | | ${min_rate}= | Set Variable | ${10000}
250 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
251 | | ${binary_min}= | Set Variable | ${min_rate}
252 | | ${binary_max}= | Set Variable | ${max_rate}
253 | | ${threshold}= | Set Variable | ${min_rate}
254 | | ${dut1_vm_refs}= | Create Dictionary
255 | | ${dut2_vm_refs}= | Create Dictionary
256 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
257 | | And   Add PCI devices to DUTs from 3-node single link topology
258 | | And   Apply startup configuration on all VPP DUTs
259 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
260 | | ...   | ${sock1} | ${sock2}
261 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
262 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
263 | | ...     | ${dut1_vif2_mac}
264 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
265 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
266 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
267 | | ...     | ${dut2_vif2_mac}
268 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
269 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
270 | | ...                                       | ${binary_max} | 3-node-IPv4
271 | | ...                                       | ${min_rate} | ${max_rate}
272 | | ...                                       | ${threshold}
273 | | ...                                       | ${glob_loss_acceptance}
274 | | ...                                       | ${glob_loss_acceptance_type}
275
276 | TC07: 64B NDR binary search - DUT IPv4-VHOST - 2threads 2cores 1rxq
277 | | [Documentation]
278 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
279 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
280 | | ... | using binary search start at 10GE linerate, step 10kpps.
281 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
282 | | ${framesize}= | Set Variable | ${64}
283 | | ${min_rate}= | Set Variable | ${10000}
284 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
285 | | ${binary_min}= | Set Variable | ${min_rate}
286 | | ${binary_max}= | Set Variable | ${max_rate}
287 | | ${threshold}= | Set Variable | ${min_rate}
288 | | ${dut1_vm_refs}= | Create Dictionary
289 | | ${dut2_vm_refs}= | Create Dictionary
290 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
291 | | And   Add PCI devices to DUTs from 3-node single link topology
292 | | And   Add No Multi Seg to all DUTs
293 | | And   Apply startup configuration on all VPP DUTs
294 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
295 | | ...   | ${sock1} | ${sock2}
296 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
297 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
298 | | ...     | ${dut1_vif2_mac}
299 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
300 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
301 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
302 | | ...     | ${dut2_vif2_mac}
303 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
304 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
305 | | ...                                       | ${binary_max} | 3-node-IPv4
306 | | ...                                       | ${min_rate} | ${max_rate}
307 | | ...                                       | ${threshold}
308
309 | TC08: 64B PDR binary search - DUT IPv4-VHOST - 2threads 2cores 1rxq
310 | | [Documentation]
311 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
312 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
313 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
314 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
315 | | ${framesize}= | Set Variable | ${64}
316 | | ${min_rate}= | Set Variable | ${10000}
317 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
318 | | ${binary_min}= | Set Variable | ${min_rate}
319 | | ${binary_max}= | Set Variable | ${max_rate}
320 | | ${threshold}= | Set Variable | ${min_rate}
321 | | ${dut1_vm_refs}= | Create Dictionary
322 | | ${dut2_vm_refs}= | Create Dictionary
323 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
324 | | And   Add PCI devices to DUTs from 3-node single link topology
325 | | And   Add No Multi Seg to all DUTs
326 | | And   Apply startup configuration on all VPP DUTs
327 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
328 | | ...   | ${sock1} | ${sock2}
329 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
330 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
331 | | ...     | ${dut1_vif2_mac}
332 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
333 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
334 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
335 | | ...     | ${dut2_vif2_mac}
336 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
337 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
338 | | ...                                       | ${binary_max} | 3-node-IPv4
339 | | ...                                       | ${min_rate} | ${max_rate}
340 | | ...                                       | ${threshold}
341 | | ...                                       | ${glob_loss_acceptance}
342 | | ...                                       | ${glob_loss_acceptance_type}
343
344 | TC09: 1518B NDR binary search - DUT IPv4-VHOST - 2threads 2cores 1rxq
345 | | [Documentation]
346 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
347 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
348 | | ... | using binary search start at 10GE linerate, step 10kpps.
349 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR | SKIP_PATCH
350 | | ${framesize}= | Set Variable | ${1518}
351 | | ${min_rate}= | Set Variable | ${10000}
352 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
353 | | ${binary_min}= | Set Variable | ${min_rate}
354 | | ${binary_max}= | Set Variable | ${max_rate}
355 | | ${threshold}= | Set Variable | ${min_rate}
356 | | ${dut1_vm_refs}= | Create Dictionary
357 | | ${dut2_vm_refs}= | Create Dictionary
358 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
359 | | And   Add PCI devices to DUTs from 3-node single link topology
360 | | And   Add No Multi Seg to all DUTs
361 | | And   Apply startup configuration on all VPP DUTs
362 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
363 | | ...   | ${sock1} | ${sock2}
364 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
365 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
366 | | ...     | ${dut1_vif2_mac}
367 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
368 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
369 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
370 | | ...     | ${dut2_vif2_mac}
371 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
372 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
373 | | ...                                       | ${binary_max} | 3-node-IPv4
374 | | ...                                       | ${min_rate} | ${max_rate}
375 | | ...                                       | ${threshold}
376
377 | TC10: 1518B PDR binary search - DUT IPv4-VHOST - 2threads 2cores 1rxq
378 | | [Documentation]
379 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
380 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
381 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
382 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
383 | | ${framesize}= | Set Variable | ${1518}
384 | | ${min_rate}= | Set Variable | ${10000}
385 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
386 | | ${binary_min}= | Set Variable | ${min_rate}
387 | | ${binary_max}= | Set Variable | ${max_rate}
388 | | ${threshold}= | Set Variable | ${min_rate}
389 | | ${dut1_vm_refs}= | Create Dictionary
390 | | ${dut2_vm_refs}= | Create Dictionary
391 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
392 | | And   Add PCI devices to DUTs from 3-node single link topology
393 | | And   Add No Multi Seg to all DUTs
394 | | And   Apply startup configuration on all VPP DUTs
395 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
396 | | ...   | ${sock1} | ${sock2}
397 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
398 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
399 | | ...     | ${dut1_vif2_mac}
400 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
401 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
402 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
403 | | ...     | ${dut2_vif2_mac}
404 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
405 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
406 | | ...                                       | ${binary_max} | 3-node-IPv4
407 | | ...                                       | ${min_rate} | ${max_rate}
408 | | ...                                       | ${threshold}
409 | | ...                                       | ${glob_loss_acceptance}
410 | | ...                                       | ${glob_loss_acceptance_type}
411
412 | TC11: IMIX_v4_1 NDR binary search - DUT IPv4-VHOST - 2threads 2cores 1rxq
413 | | [Documentation]
414 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
415 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
416 | | ... | size using binary search start at 10GE linerate, step 5kpps.
417 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
418 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR | SKIP_PATCH
419 | | ${framesize}= | Set Variable | IMIX_v4_1
420 | | ${min_rate}= | Set Variable | ${10000}
421 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
422 | | ${binary_min}= | Set Variable | ${min_rate}
423 | | ${binary_max}= | Set Variable | ${max_rate}
424 | | ${threshold}= | Set Variable | ${min_rate}
425 | | ${dut1_vm_refs}= | Create Dictionary
426 | | ${dut2_vm_refs}= | Create Dictionary
427 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
428 | | And   Add PCI devices to DUTs from 3-node single link topology
429 | | And   Add No Multi Seg to all DUTs
430 | | And   Apply startup configuration on all VPP DUTs
431 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
432 | | ...   | ${sock1} | ${sock2}
433 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
434 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
435 | | ...     | ${dut1_vif2_mac}
436 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
437 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
438 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
439 | | ...     | ${dut2_vif2_mac}
440 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
441 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
442 | | ...                                       | ${binary_max} | 3-node-IPv4
443 | | ...                                       | ${min_rate} | ${max_rate}
444 | | ...                                       | ${threshold}
445
446 | TC12: IMIX_v4_1 PDR binary search - DUT IPv4-VHOST - 2threads 2cores 1rxq
447 | | [Documentation]
448 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
449 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
450 | | ... | size using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
451 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
452 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
453 | | ${framesize}= | Set Variable | IMIX_v4_1
454 | | ${min_rate}= | Set Variable | ${10000}
455 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
456 | | ${binary_min}= | Set Variable | ${min_rate}
457 | | ${binary_max}= | Set Variable | ${max_rate}
458 | | ${threshold}= | Set Variable | ${min_rate}
459 | | ${dut1_vm_refs}= | Create Dictionary
460 | | ${dut2_vm_refs}= | Create Dictionary
461 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
462 | | And   Add PCI devices to DUTs from 3-node single link topology
463 | | And   Add No Multi Seg to all DUTs
464 | | And   Apply startup configuration on all VPP DUTs
465 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
466 | | ...   | ${sock1} | ${sock2}
467 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
468 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
469 | | ...     | ${dut1_vif2_mac}
470 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
471 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
472 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
473 | | ...     | ${dut2_vif2_mac}
474 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
475 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
476 | | ...                                       | ${binary_max} | 3-node-IPv4
477 | | ...                                       | ${min_rate} | ${max_rate}
478 | | ...                                       | ${threshold}
479 | | ...                                       | ${glob_loss_acceptance}
480 | | ...                                       | ${glob_loss_acceptance_type}
481
482 | TC13: 64B NDR binary search - DUT IPv4-VHOST - 4threads 4cores 2rxq
483 | | [Documentation]
484 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
485 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames \
486 | | ... | using binary search start at 10GE linerate, step 10kpps.
487 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
488 | | ${framesize}= | Set Variable | ${64}
489 | | ${min_rate}= | Set Variable | ${10000}
490 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
491 | | ${binary_min}= | Set Variable | ${min_rate}
492 | | ${binary_max}= | Set Variable | ${max_rate}
493 | | ${threshold}= | Set Variable | ${min_rate}
494 | | ${dut1_vm_refs}= | Create Dictionary
495 | | ${dut2_vm_refs}= | Create Dictionary
496 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
497 | | And   Add PCI devices to DUTs from 3-node single link topology
498 | | And   Add No Multi Seg to all DUTs
499 | | And   Apply startup configuration on all VPP DUTs
500 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
501 | | ...   | ${sock1} | ${sock2}
502 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
503 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
504 | | ...     | ${dut1_vif2_mac}
505 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
506 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
507 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
508 | | ...     | ${dut2_vif2_mac}
509 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
510 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
511 | | ...                                       | ${binary_max} | 3-node-IPv4
512 | | ...                                       | ${min_rate} | ${max_rate}
513 | | ...                                       | ${threshold}
514
515 | TC14: 64B PDR binary search - DUT IPv4-VHOST - 4threads 4cores 2rxq
516 | | [Documentation]
517 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
518 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames \
519 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
520 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
521 | | ${framesize}= | Set Variable | ${64}
522 | | ${min_rate}= | Set Variable | ${10000}
523 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
524 | | ${binary_min}= | Set Variable | ${min_rate}
525 | | ${binary_max}= | Set Variable | ${max_rate}
526 | | ${threshold}= | Set Variable | ${min_rate}
527 | | ${dut1_vm_refs}= | Create Dictionary
528 | | ${dut2_vm_refs}= | Create Dictionary
529 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
530 | | And   Add PCI devices to DUTs from 3-node single link topology
531 | | And   Add No Multi Seg to all DUTs
532 | | And   Apply startup configuration on all VPP DUTs
533 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
534 | | ...   | ${sock1} | ${sock2}
535 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
536 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
537 | | ...     | ${dut1_vif2_mac}
538 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
539 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
540 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
541 | | ...     | ${dut2_vif2_mac}
542 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
543 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
544 | | ...                                       | ${binary_max} | 3-node-IPv4
545 | | ...                                       | ${min_rate} | ${max_rate}
546 | | ...                                       | ${threshold}
547 | | ...                                       | ${glob_loss_acceptance}
548 | | ...                                       | ${glob_loss_acceptance_type}
549
550 | TC15: 1518B NDR binary search - DUT IPv4-VHOST - 4threads 4cores 2rxq
551 | | [Documentation]
552 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
553 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames \
554 | | ... | using binary search start at 10GE linerate, step 10kpps.
555 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR | SKIP_PATCH
556 | | ${framesize}= | Set Variable | ${1518}
557 | | ${min_rate}= | Set Variable | ${10000}
558 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
559 | | ${binary_min}= | Set Variable | ${min_rate}
560 | | ${binary_max}= | Set Variable | ${max_rate}
561 | | ${threshold}= | Set Variable | ${min_rate}
562 | | ${dut1_vm_refs}= | Create Dictionary
563 | | ${dut2_vm_refs}= | Create Dictionary
564 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
565 | | And   Add PCI devices to DUTs from 3-node single link topology
566 | | And   Add No Multi Seg to all DUTs
567 | | And   Apply startup configuration on all VPP DUTs
568 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
569 | | ...   | ${sock1} | ${sock2}
570 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
571 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
572 | | ...     | ${dut1_vif2_mac}
573 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
574 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
575 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
576 | | ...     | ${dut2_vif2_mac}
577 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
578 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
579 | | ...                                       | ${binary_max} | 3-node-IPv4
580 | | ...                                       | ${min_rate} | ${max_rate}
581 | | ...                                       | ${threshold}
582
583 | TC16: 1518B PDR binary search - DUT IPv4-VHOST - 4threads 4cores 2rxq
584 | | [Documentation]
585 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
586 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames \
587 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
588 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
589 | | ${framesize}= | Set Variable | ${1518}
590 | | ${min_rate}= | Set Variable | ${10000}
591 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
592 | | ${binary_min}= | Set Variable | ${min_rate}
593 | | ${binary_max}= | Set Variable | ${max_rate}
594 | | ${threshold}= | Set Variable | ${min_rate}
595 | | ${dut1_vm_refs}= | Create Dictionary
596 | | ${dut2_vm_refs}= | Create Dictionary
597 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
598 | | And   Add PCI devices to DUTs from 3-node single link topology
599 | | And   Add No Multi Seg to all DUTs
600 | | And   Apply startup configuration on all VPP DUTs
601 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
602 | | ...   | ${sock1} | ${sock2}
603 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
604 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
605 | | ...     | ${dut1_vif2_mac}
606 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
607 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
608 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
609 | | ...     | ${dut2_vif2_mac}
610 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
611 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
612 | | ...                                       | ${binary_max} | 3-node-IPv4
613 | | ...                                       | ${min_rate} | ${max_rate}
614 | | ...                                       | ${threshold}
615 | | ...                                       | ${glob_loss_acceptance}
616 | | ...                                       | ${glob_loss_acceptance_type}
617
618 | TC17: IMIX_v4_1 NDR binary search - DUT IPv4-VHOST - 4threads 4cores 2rxq
619 | | [Documentation]
620 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
621 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
622 | | ... | size using binary search start at 10GE linerate, step 5kpps.
623 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
624 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR | SKIP_PATCH
625 | | ${framesize}= | Set Variable | IMIX_v4_1
626 | | ${min_rate}= | Set Variable | ${10000}
627 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
628 | | ${binary_min}= | Set Variable | ${min_rate}
629 | | ${binary_max}= | Set Variable | ${max_rate}
630 | | ${threshold}= | Set Variable | ${min_rate}
631 | | ${dut1_vm_refs}= | Create Dictionary
632 | | ${dut2_vm_refs}= | Create Dictionary
633 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
634 | | And   Add PCI devices to DUTs from 3-node single link topology
635 | | And   Add No Multi Seg to all DUTs
636 | | And   Apply startup configuration on all VPP DUTs
637 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
638 | | ...   | ${sock1} | ${sock2}
639 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
640 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
641 | | ...     | ${dut1_vif2_mac}
642 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
643 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
644 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
645 | | ...     | ${dut2_vif2_mac}
646 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
647 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
648 | | ...                                       | ${binary_max} | 3-node-IPv4
649 | | ...                                       | ${min_rate} | ${max_rate}
650 | | ...                                       | ${threshold}
651
652 | TC18: IMIX_v4_1 PDR binary search - DUT IPv4-VHOST - 4threads 4cores 2rxq
653 | | [Documentation]
654 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
655 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
656 | | ... | size using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
657 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
658 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
659 | | ${framesize}= | Set Variable | IMIX_v4_1
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 '4' worker threads and rxqueues '2' 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   Apply startup configuration on all VPP DUTs
671 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
672 | | ...   | ${sock1} | ${sock2}
673 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
674 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
675 | | ...     | ${dut1_vif2_mac}
676 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
677 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
678 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
679 | | ...     | ${dut2_vif2_mac}
680 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
681 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
682 | | ...                                       | ${binary_max} | 3-node-IPv4
683 | | ...                                       | ${min_rate} | ${max_rate}
684 | | ...                                       | ${threshold}
685 | | ...                                       | ${glob_loss_acceptance}
686 | | ...                                       | ${glob_loss_acceptance_type}
687
688