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