b085cfb6c2564114835f9b5fa832eafe099e4ce0
[csit.git] / tests / perf / 10ge2p1x520-ethip4-ip4base-eth-2vhost-1vm-ndrdisc.robot
1 # Copyright (c) 2017 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Resource | resources/libraries/robot/performance.robot
16 | Library | resources.libraries.python.QemuUtils
17 | ...
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
19 | ... | NIC_Intel-X520-DA2 | ETH | 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 5kpps.
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 5kpps, 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   Apply startup configuration on all VPP DUTs
260 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
261 | | ...   | ${sock1} | ${sock2}
262 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
263 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
264 | | ...     | ${dut1_vif2_mac}
265 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
266 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
267 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
268 | | ...     | ${dut2_vif2_mac}
269 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
270 | | And Setup scheduler policy for VPP on all DUTs
271 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
272 | | ...                                       | ${binary_max} | 3-node-IPv4
273 | | ...                                       | ${min_rate} | ${max_rate}
274 | | ...                                       | ${threshold}
275 | | ...                                       | ${perf_pdr_loss_acceptance}
276 | | ...                                       | ${perf_pdr_loss_acceptance_type}
277
278 | tc07-64B-2t2c-ethip4-ip4base-eth-2vhost-1vm-ndrdisc
279 | | [Documentation]
280 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
281 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
282 | | ... | using binary search start at 10GE linerate, step 10kpps.
283 | | [Tags] | 2T2C | MTHREAD | NDRDISC
284 | | ${framesize}= | Set Variable | ${64}
285 | | ${min_rate}= | Set Variable | ${10000}
286 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
287 | | ${binary_min}= | Set Variable | ${min_rate}
288 | | ${binary_max}= | Set Variable | ${max_rate}
289 | | ${threshold}= | Set Variable | ${min_rate}
290 | | ${dut1_vm_refs}= | Create Dictionary
291 | | ${dut2_vm_refs}= | Create Dictionary
292 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
293 | | And   Add PCI devices to DUTs from 3-node single link topology
294 | | And   Add No Multi Seg to all DUTs
295 | | And   Apply startup configuration on all VPP DUTs
296 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
297 | | ...   | ${sock1} | ${sock2}
298 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
299 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
300 | | ...     | ${dut1_vif2_mac}
301 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
302 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
303 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
304 | | ...     | ${dut2_vif2_mac}
305 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
306 | | And Setup scheduler policy for VPP on all DUTs
307 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
308 | | ...                                       | ${binary_max} | 3-node-IPv4
309 | | ...                                       | ${min_rate} | ${max_rate}
310 | | ...                                       | ${threshold}
311
312 | tc08-64B-2t2c-ethip4-ip4base-eth-2vhost-1vm-pdrdisc
313 | | [Documentation]
314 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
315 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
316 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
317 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
318 | | ${framesize}= | Set Variable | ${64}
319 | | ${min_rate}= | Set Variable | ${10000}
320 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
321 | | ${binary_min}= | Set Variable | ${min_rate}
322 | | ${binary_max}= | Set Variable | ${max_rate}
323 | | ${threshold}= | Set Variable | ${min_rate}
324 | | ${dut1_vm_refs}= | Create Dictionary
325 | | ${dut2_vm_refs}= | Create Dictionary
326 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
327 | | And   Add PCI devices to DUTs from 3-node single link topology
328 | | And   Add No Multi Seg to all DUTs
329 | | And   Apply startup configuration on all VPP DUTs
330 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
331 | | ...   | ${sock1} | ${sock2}
332 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
333 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
334 | | ...     | ${dut1_vif2_mac}
335 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
336 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
337 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
338 | | ...     | ${dut2_vif2_mac}
339 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
340 | | And Setup scheduler policy for VPP on all DUTs
341 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
342 | | ...                                       | ${binary_max} | 3-node-IPv4
343 | | ...                                       | ${min_rate} | ${max_rate}
344 | | ...                                       | ${threshold}
345 | | ...                                       | ${perf_pdr_loss_acceptance}
346 | | ...                                       | ${perf_pdr_loss_acceptance_type}
347
348 | tc09-1518B-2t2c-ethip4-ip4base-eth-2vhost-1vm-ndrdisc
349 | | [Documentation]
350 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
351 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
352 | | ... | using binary search start at 10GE linerate, step 10kpps.
353 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
354 | | ${framesize}= | Set Variable | ${1518}
355 | | ${min_rate}= | Set Variable | ${10000}
356 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
357 | | ${binary_min}= | Set Variable | ${min_rate}
358 | | ${binary_max}= | Set Variable | ${max_rate}
359 | | ${threshold}= | Set Variable | ${min_rate}
360 | | ${dut1_vm_refs}= | Create Dictionary
361 | | ${dut2_vm_refs}= | Create Dictionary
362 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
363 | | And   Add PCI devices to DUTs from 3-node single link topology
364 | | And   Add No Multi Seg to all DUTs
365 | | And   Apply startup configuration on all VPP DUTs
366 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
367 | | ...   | ${sock1} | ${sock2}
368 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
369 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
370 | | ...     | ${dut1_vif2_mac}
371 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
372 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
373 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
374 | | ...     | ${dut2_vif2_mac}
375 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
376 | | And Setup scheduler policy for VPP on all DUTs
377 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
378 | | ...                                       | ${binary_max} | 3-node-IPv4
379 | | ...                                       | ${min_rate} | ${max_rate}
380 | | ...                                       | ${threshold}
381
382 | tc10-1518B-2t2c-ethip4-ip4base-eth-2vhost-1vm-pdrdisc
383 | | [Documentation]
384 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
385 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
386 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
387 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
388 | | ${framesize}= | Set Variable | ${1518}
389 | | ${min_rate}= | Set Variable | ${10000}
390 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
391 | | ${binary_min}= | Set Variable | ${min_rate}
392 | | ${binary_max}= | Set Variable | ${max_rate}
393 | | ${threshold}= | Set Variable | ${min_rate}
394 | | ${dut1_vm_refs}= | Create Dictionary
395 | | ${dut2_vm_refs}= | Create Dictionary
396 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
397 | | And   Add PCI devices to DUTs from 3-node single link topology
398 | | And   Add No Multi Seg to all DUTs
399 | | And   Apply startup configuration on all VPP DUTs
400 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
401 | | ...   | ${sock1} | ${sock2}
402 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
403 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
404 | | ...     | ${dut1_vif2_mac}
405 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
406 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
407 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
408 | | ...     | ${dut2_vif2_mac}
409 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
410 | | And Setup scheduler policy for VPP on all DUTs
411 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
412 | | ...                                       | ${binary_max} | 3-node-IPv4
413 | | ...                                       | ${min_rate} | ${max_rate}
414 | | ...                                       | ${threshold}
415 | | ...                                       | ${perf_pdr_loss_acceptance}
416 | | ...                                       | ${perf_pdr_loss_acceptance_type}
417
418 | tc11-IMIX-2t2c-ethip4-ip4base-eth-2vhost-1vm-ndrdisc
419 | | [Documentation]
420 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
421 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
422 | | ... | size using binary search start at 10GE linerate, step 5kpps.
423 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
424 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
425 | | ${framesize}= | Set Variable | IMIX_v4_1
426 | | ${min_rate}= | Set Variable | ${10000}
427 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
428 | | ${binary_min}= | Set Variable | ${min_rate}
429 | | ${binary_max}= | Set Variable | ${max_rate}
430 | | ${threshold}= | Set Variable | ${min_rate}
431 | | ${dut1_vm_refs}= | Create Dictionary
432 | | ${dut2_vm_refs}= | Create Dictionary
433 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
434 | | And   Add PCI devices to DUTs from 3-node single link topology
435 | | And   Add No Multi Seg to all DUTs
436 | | And   Apply startup configuration on all VPP DUTs
437 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
438 | | ...   | ${sock1} | ${sock2}
439 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
440 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
441 | | ...     | ${dut1_vif2_mac}
442 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
443 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
444 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
445 | | ...     | ${dut2_vif2_mac}
446 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
447 | | And Setup scheduler policy for VPP on all DUTs
448 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
449 | | ...                                       | ${binary_max} | 3-node-IPv4
450 | | ...                                       | ${min_rate} | ${max_rate}
451 | | ...                                       | ${threshold}
452
453 | tc12-IMIX-2t2c-ethip4-ip4base-eth-2vhost-1vm-pdrdisc
454 | | [Documentation]
455 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
456 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
457 | | ... | size using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
458 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
459 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
460 | | ${framesize}= | Set Variable | IMIX_v4_1
461 | | ${min_rate}= | Set Variable | ${10000}
462 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
463 | | ${binary_min}= | Set Variable | ${min_rate}
464 | | ${binary_max}= | Set Variable | ${max_rate}
465 | | ${threshold}= | Set Variable | ${min_rate}
466 | | ${dut1_vm_refs}= | Create Dictionary
467 | | ${dut2_vm_refs}= | Create Dictionary
468 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
469 | | And   Add PCI devices to DUTs from 3-node single link topology
470 | | And   Add No Multi Seg to all DUTs
471 | | And   Apply startup configuration on all VPP DUTs
472 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
473 | | ...   | ${sock1} | ${sock2}
474 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
475 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
476 | | ...     | ${dut1_vif2_mac}
477 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
478 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
479 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
480 | | ...     | ${dut2_vif2_mac}
481 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
482 | | And Setup scheduler policy for VPP on all DUTs
483 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
484 | | ...                                       | ${binary_max} | 3-node-IPv4
485 | | ...                                       | ${min_rate} | ${max_rate}
486 | | ...                                       | ${threshold}
487 | | ...                                       | ${perf_pdr_loss_acceptance}
488 | | ...                                       | ${perf_pdr_loss_acceptance_type}
489
490 | tc13-64B-4t4c-ethip4-ip4base-eth-2vhost-1vm-ndrdisc
491 | | [Documentation]
492 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
493 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames \
494 | | ... | using binary search start at 10GE linerate, step 10kpps.
495 | | [Tags] | 4T4C | MTHREAD | NDRDISC
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' in 3-node single-link topo
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  IPv4 forwarding with Vhost initialized in a 3-node circular topology
509 | | ...   | ${sock1} | ${sock2}
510 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
511 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
512 | | ...     | ${dut1_vif2_mac}
513 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
514 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
515 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
516 | | ...     | ${dut2_vif2_mac}
517 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
518 | | And Setup scheduler policy for VPP on all DUTs
519 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
520 | | ...                                       | ${binary_max} | 3-node-IPv4
521 | | ...                                       | ${min_rate} | ${max_rate}
522 | | ...                                       | ${threshold}
523
524 | tc14-64B-4t4c-ethip4-ip4base-eth-2vhost-1vm-pdrdisc
525 | | [Documentation]
526 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
527 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames \
528 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
529 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
530 | | ${framesize}= | Set Variable | ${64}
531 | | ${min_rate}= | Set Variable | ${10000}
532 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
533 | | ${binary_min}= | Set Variable | ${min_rate}
534 | | ${binary_max}= | Set Variable | ${max_rate}
535 | | ${threshold}= | Set Variable | ${min_rate}
536 | | ${dut1_vm_refs}= | Create Dictionary
537 | | ${dut2_vm_refs}= | Create Dictionary
538 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
539 | | And   Add PCI devices to DUTs from 3-node single link topology
540 | | And   Add No Multi Seg to all DUTs
541 | | And   Apply startup configuration on all VPP DUTs
542 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
543 | | ...   | ${sock1} | ${sock2}
544 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
545 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
546 | | ...     | ${dut1_vif2_mac}
547 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
548 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
549 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
550 | | ...     | ${dut2_vif2_mac}
551 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
552 | | And Setup scheduler policy for VPP on all DUTs
553 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
554 | | ...                                       | ${binary_max} | 3-node-IPv4
555 | | ...                                       | ${min_rate} | ${max_rate}
556 | | ...                                       | ${threshold}
557 | | ...                                       | ${perf_pdr_loss_acceptance}
558 | | ...                                       | ${perf_pdr_loss_acceptance_type}
559
560 | tc15-1518B-4t4c-ethip4-ip4base-eth-2vhost-1vm-ndrdisc
561 | | [Documentation]
562 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
563 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames \
564 | | ... | using binary search start at 10GE linerate, step 10kpps.
565 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
566 | | ${framesize}= | Set Variable | ${1518}
567 | | ${min_rate}= | Set Variable | ${10000}
568 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
569 | | ${binary_min}= | Set Variable | ${min_rate}
570 | | ${binary_max}= | Set Variable | ${max_rate}
571 | | ${threshold}= | Set Variable | ${min_rate}
572 | | ${dut1_vm_refs}= | Create Dictionary
573 | | ${dut2_vm_refs}= | Create Dictionary
574 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
575 | | And   Add PCI devices to DUTs from 3-node single link topology
576 | | And   Add No Multi Seg to all DUTs
577 | | And   Apply startup configuration on all VPP DUTs
578 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
579 | | ...   | ${sock1} | ${sock2}
580 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
581 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
582 | | ...     | ${dut1_vif2_mac}
583 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
584 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
585 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
586 | | ...     | ${dut2_vif2_mac}
587 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
588 | | And Setup scheduler policy for VPP on all DUTs
589 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
590 | | ...                                       | ${binary_max} | 3-node-IPv4
591 | | ...                                       | ${min_rate} | ${max_rate}
592 | | ...                                       | ${threshold}
593
594 | tc16-1518B-4t4c-ethip4-ip4base-eth-2vhost-1vm-pdrdisc
595 | | [Documentation]
596 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
597 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames \
598 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
599 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
600 | | ${framesize}= | Set Variable | ${1518}
601 | | ${min_rate}= | Set Variable | ${10000}
602 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
603 | | ${binary_min}= | Set Variable | ${min_rate}
604 | | ${binary_max}= | Set Variable | ${max_rate}
605 | | ${threshold}= | Set Variable | ${min_rate}
606 | | ${dut1_vm_refs}= | Create Dictionary
607 | | ${dut2_vm_refs}= | Create Dictionary
608 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
609 | | And   Add PCI devices to DUTs from 3-node single link topology
610 | | And   Add No Multi Seg to all DUTs
611 | | And   Apply startup configuration on all VPP DUTs
612 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
613 | | ...   | ${sock1} | ${sock2}
614 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
615 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
616 | | ...     | ${dut1_vif2_mac}
617 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
618 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
619 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
620 | | ...     | ${dut2_vif2_mac}
621 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
622 | | And Setup scheduler policy for VPP on all DUTs
623 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
624 | | ...                                       | ${binary_max} | 3-node-IPv4
625 | | ...                                       | ${min_rate} | ${max_rate}
626 | | ...                                       | ${threshold}
627 | | ...                                       | ${perf_pdr_loss_acceptance}
628 | | ...                                       | ${perf_pdr_loss_acceptance_type}
629
630 | tc17-IMIX-4t4c-ethip4-ip4base-eth-2vhost-1vm-ndrdisc
631 | | [Documentation]
632 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
633 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
634 | | ... | size using binary search start at 10GE linerate, step 5kpps.
635 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
636 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
637 | | ${framesize}= | Set Variable | IMIX_v4_1
638 | | ${min_rate}= | Set Variable | ${10000}
639 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
640 | | ${binary_min}= | Set Variable | ${min_rate}
641 | | ${binary_max}= | Set Variable | ${max_rate}
642 | | ${threshold}= | Set Variable | ${min_rate}
643 | | ${dut1_vm_refs}= | Create Dictionary
644 | | ${dut2_vm_refs}= | Create Dictionary
645 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
646 | | And   Add PCI devices to DUTs from 3-node single link topology
647 | | And   Add No Multi Seg to all DUTs
648 | | And   Apply startup configuration on all VPP DUTs
649 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
650 | | ...   | ${sock1} | ${sock2}
651 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
652 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
653 | | ...     | ${dut1_vif2_mac}
654 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
655 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
656 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
657 | | ...     | ${dut2_vif2_mac}
658 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
659 | | And Setup scheduler policy for VPP on all DUTs
660 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
661 | | ...                                       | ${binary_max} | 3-node-IPv4
662 | | ...                                       | ${min_rate} | ${max_rate}
663 | | ...                                       | ${threshold}
664
665 | tc18-IMIX-4t4c-ethip4-ip4base-eth-2vhost-1vm-pdrdisc
666 | | [Documentation]
667 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
668 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
669 | | ... | size using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
670 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
671 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
672 | | ${framesize}= | Set Variable | IMIX_v4_1
673 | | ${min_rate}= | Set Variable | ${10000}
674 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
675 | | ${binary_min}= | Set Variable | ${min_rate}
676 | | ${binary_max}= | Set Variable | ${max_rate}
677 | | ${threshold}= | Set Variable | ${min_rate}
678 | | ${dut1_vm_refs}= | Create Dictionary
679 | | ${dut2_vm_refs}= | Create Dictionary
680 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
681 | | And   Add PCI devices to DUTs from 3-node single link topology
682 | | And   Add No Multi Seg to all DUTs
683 | | And   Apply startup configuration on all VPP DUTs
684 | | When  IPv4 forwarding with Vhost initialized in a 3-node circular topology
685 | | ...   | ${sock1} | ${sock2}
686 | | ${vm1}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
687 | | ...     | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
688 | | ...     | ${dut1_vif2_mac}
689 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
690 | | ${vm2}= | And Guest VM with dpdk-testpmd-mac connected via vhost-user is setup
691 | | ...     | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
692 | | ...     | ${dut2_vif2_mac}
693 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
694 | | And Setup scheduler policy for VPP on all DUTs
695 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
696 | | ...                                       | ${binary_max} | 3-node-IPv4
697 | | ...                                       | ${min_rate} | ${max_rate}
698 | | ...                                       | ${threshold}
699 | | ...                                       | ${perf_pdr_loss_acceptance}
700 | | ...                                       | ${perf_pdr_loss_acceptance_type}