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