CSIT-501: Perf tests re-tagging
[csit.git] / tests / perf / 10ge2p1x520-ethip4-ip4base-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.topology.Topology
17 | Library | resources.libraries.python.NodePath
18 | Library | resources.libraries.python.InterfaceUtil
19 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT1']} | WITH NAME | dut1_v4
20 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT2']} | WITH NAME | dut2_v4
21 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
22 | ...        | NIC_Intel-X520-DA2 | ETH | IP4FWD | BASE
23 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
24 | ... | L3 | Intel-X520-DA2
25 | Suite Teardown | 3-node Performance Suite Teardown
26 | Test Setup | Setup all DUTs before test
27 | Test Teardown | Run Keywords
28 | ...           | Run Keyword If Test Failed
29 | ...           | Traffic should pass with no loss | 10
30 | ...           | ${min_rate}pps | ${framesize} | 3-node-IPv4
31 | ...           | fail_on_loss=${False}
32 | ...           | AND | Remove startup configuration of VPP from all DUTs
33 | ...           | AND | Show vpp trace dump on all DUTs
34 | Documentation | *RFC2544: Pkt throughput IPv4 routing test cases*
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. DUT1 and DUT2 tested with
41 | ... | 2p10GE NIC X520 Niantic by Intel.
42 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
43 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
44 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
45 | ... | of packets transmitted. NDR and PDR are discovered for different
46 | ... | Ethernet L2 frame sizes using either binary search or linear search
47 | ... | algorithms with configured starting rate and final step that determines
48 | ... | throughput measurement resolution. Test packets are generated by TG on
49 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
50 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
51 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
52 | ... | payload. MAC addresses are matching MAC addresses of the TG node
53 | ... | interfaces.
54 | ... | *[Ref] Applicable standard specifications:* RFC2544.
55
56 *** Variables ***
57 #X520-DA2 bandwidth limit
58 | ${s_limit} | ${10000000000}
59
60 *** Test Cases ***
61 | TC01: 64B NDR binary search - DUT IPv4 - 1thread 1core 1rxq
62 | | [Documentation]
63 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
64 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
65 | | ... | using binary search start at 10GE linerate, step 100kpps.
66 | | [Tags] | 1T1C | STHREAD | NDRDISC
67 | | ${framesize}= | Set Variable | ${64}
68 | | ${min_rate}= | Set Variable | ${100000}
69 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
70 | | ${binary_min}= | Set Variable | ${min_rate}
71 | | ${binary_max}= | Set Variable | ${max_rate}
72 | | ${threshold}= | Set Variable | ${min_rate}
73 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
74 | | And   Add PCI devices to DUTs from 3-node single link topology
75 | | And   Add No Multi Seg to all DUTs
76 | | And   Apply startup configuration on all VPP DUTs
77 | | And   IPv4 forwarding initialized in a 3-node circular topology
78 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
79 | | ...                                       | ${binary_max} | 3-node-IPv4
80 | | ...                                       | ${min_rate} | ${max_rate}
81 | | ...                                       | ${threshold}
82
83 | TC02: 64B PDR binary search - DUT IPv4 - 1thread 1core 1rxq
84 | | [Documentation]
85 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
86 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames
87 | | ... | using binary search start at 10GE linerate, step 100kpps, LT=0.5%.
88 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
89 | | ${framesize}= | Set Variable | ${64}
90 | | ${min_rate}= | Set Variable | ${100000}
91 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
92 | | ${binary_min}= | Set Variable | ${min_rate}
93 | | ${binary_max}= | Set Variable | ${max_rate}
94 | | ${threshold}= | Set Variable | ${min_rate}
95 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
96 | | And   Add PCI devices to DUTs from 3-node single link topology
97 | | And   Add No Multi Seg to all DUTs
98 | | And   Apply startup configuration on all VPP DUTs
99 | | And   IPv4 forwarding initialized in a 3-node circular topology
100 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
101 | | ...                                       | ${binary_max} | 3-node-IPv4
102 | | ...                                       | ${min_rate} | ${max_rate}
103 | | ...                                       | ${threshold}
104 | | ...                                       | ${glob_loss_acceptance}
105 | | ...                                       | ${glob_loss_acceptance_type}
106
107 | TC03: 1518B NDR binary search - DUT IPv4 - 1thread 1core 1rxq
108 | | [Documentation]
109 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
110 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
111 | | ... | using binary search start at 10GE linerate, step 10kpps.
112 | | [Tags] | 1T1C | STHREAD | NDRDISC
113 | | ${framesize}= | Set Variable | ${1518}
114 | | ${min_rate}= | Set Variable | ${10000}
115 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
116 | | ${binary_min}= | Set Variable | ${min_rate}
117 | | ${binary_max}= | Set Variable | ${max_rate}
118 | | ${threshold}= | Set Variable | ${min_rate}
119 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
120 | | And   Add PCI devices to DUTs from 3-node single link topology
121 | | And   Add No Multi Seg to all DUTs
122 | | And   Apply startup configuration on all VPP DUTs
123 | | And   IPv4 forwarding initialized in a 3-node circular topology
124 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
125 | | ...                                       | ${binary_max} | 3-node-IPv4
126 | | ...                                       | ${min_rate} | ${max_rate}
127 | | ...                                       | ${threshold}
128
129 | TC04: 1518B PDR binary search - DUT IPv4 - 1thread 1core 1rxq
130 | | [Documentation]
131 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
132 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames
133 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
134 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
135 | | ${framesize}= | Set Variable | ${1518}
136 | | ${min_rate}= | Set Variable | ${10000}
137 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
138 | | ${binary_min}= | Set Variable | ${min_rate}
139 | | ${binary_max}= | Set Variable | ${max_rate}
140 | | ${threshold}= | Set Variable | ${min_rate}
141 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
142 | | And   Add PCI devices to DUTs from 3-node single link topology
143 | | And   Add No Multi Seg to all DUTs
144 | | And   Apply startup configuration on all VPP DUTs
145 | | And   IPv4 forwarding initialized in a 3-node circular topology
146 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
147 | | ...                                       | ${binary_max} | 3-node-IPv4
148 | | ...                                       | ${min_rate} | ${max_rate}
149 | | ...                                       | ${threshold}
150 | | ...                                       | ${glob_loss_acceptance}
151 | | ...                                       | ${glob_loss_acceptance_type}
152
153 | TC05: 9000B NDR binary search - DUT IPv4 - 1thread 1core 1rxq
154 | | [Documentation]
155 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
156 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames
157 | | ... | using binary search start at 10GE linerate, step 5kpps.
158 | | [Tags] | 1T1C | STHREAD | NDRDISC
159 | | ${framesize}= | Set Variable | ${9000}
160 | | ${min_rate}= | Set Variable | ${10000}
161 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
162 | | ${binary_min}= | Set Variable | ${min_rate}
163 | | ${binary_max}= | Set Variable | ${max_rate}
164 | | ${threshold}= | Set Variable | ${min_rate}
165 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
166 | | And   Add PCI devices to DUTs from 3-node single link topology
167 | | And   Apply startup configuration on all VPP DUTs
168 | | And   IPv4 forwarding initialized in a 3-node circular topology
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 | TC06: 9000B PDR binary search - DUT IPv4 - 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 9000 Byte frames
178 | | ... | using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
179 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
180 | | ${framesize}= | Set Variable | ${9000}
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 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
187 | | And   Add PCI devices to DUTs from 3-node single link topology
188 | | And   Apply startup configuration on all VPP DUTs
189 | | And   IPv4 forwarding initialized in a 3-node circular topology
190 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
191 | | ...                                       | ${binary_max} | 3-node-IPv4
192 | | ...                                       | ${min_rate} | ${max_rate}
193 | | ...                                       | ${threshold}
194 | | ...                                       | ${glob_loss_acceptance}
195 | | ...                                       | ${glob_loss_acceptance_type}
196
197 | TC07: 64B NDR binary search - DUT IPv4 - 2threads 2cores 1rxq
198 | | [Documentation]
199 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
200 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
201 | | ... | using binary search start at 10GE linerate, step 100kpps.
202 | | [Tags] | 2T2C | MTHREAD | NDRDISC
203 | | ${framesize}= | Set Variable | ${64}
204 | | ${min_rate}= | Set Variable | ${100000}
205 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
206 | | ${binary_min}= | Set Variable | ${min_rate}
207 | | ${binary_max}= | Set Variable | ${max_rate}
208 | | ${threshold}= | Set Variable | ${min_rate}
209 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
210 | | And   Add PCI devices to DUTs from 3-node single link topology
211 | | And   Add No Multi Seg to all DUTs
212 | | And   Apply startup configuration on all VPP DUTs
213 | | And   IPv4 forwarding initialized in a 3-node circular topology
214 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
215 | | ...                                       | ${binary_max} | 3-node-IPv4
216 | | ...                                       | ${min_rate} | ${max_rate}
217 | | ...                                       | ${threshold}
218
219 | TC08: 64B PDR binary search - DUT IPv4 - 2threads 2cores 1rxq
220 | | [Documentation]
221 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
222 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames
223 | | ... | using binary search start at 10GE linerate, step 100kpps, LT=0.5%.
224 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
225 | | ${framesize}= | Set Variable | ${64}
226 | | ${min_rate}= | Set Variable | ${100000}
227 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
228 | | ${binary_min}= | Set Variable | ${min_rate}
229 | | ${binary_max}= | Set Variable | ${max_rate}
230 | | ${threshold}= | Set Variable | ${min_rate}
231 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
232 | | And   Add PCI devices to DUTs from 3-node single link topology
233 | | And   Add No Multi Seg to all DUTs
234 | | And   Apply startup configuration on all VPP DUTs
235 | | And   IPv4 forwarding initialized in a 3-node circular topology
236 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
237 | | ...                                       | ${binary_max} | 3-node-IPv4
238 | | ...                                       | ${min_rate} | ${max_rate}
239 | | ...                                       | ${threshold}
240 | | ...                                       | ${glob_loss_acceptance}
241 | | ...                                       | ${glob_loss_acceptance_type}
242
243 | TC09: 1518B NDR binary search - DUT IPv4 - 2threads 2cores 1rxq
244 | | [Documentation]
245 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
246 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
247 | | ... | using binary search start at 10GE linerate, step 10kpps.
248 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
249 | | ${framesize}= | Set Variable | ${1518}
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 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
256 | | And   Add PCI devices to DUTs from 3-node single link topology
257 | | And   Add No Multi Seg to all DUTs
258 | | And   Apply startup configuration on all VPP DUTs
259 | | And   IPv4 forwarding initialized in a 3-node circular topology
260 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
261 | | ...                                       | ${binary_max} | 3-node-IPv4
262 | | ...                                       | ${min_rate} | ${max_rate}
263 | | ...                                       | ${threshold}
264
265 | TC10: 1518B PDR binary search - DUT IPv4 - 2threads 2cores 1rxq
266 | | [Documentation]
267 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
268 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames
269 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
270 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
271 | | ${framesize}= | Set Variable | ${1518}
272 | | ${min_rate}= | Set Variable | ${10000}
273 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
274 | | ${binary_min}= | Set Variable | ${min_rate}
275 | | ${binary_max}= | Set Variable | ${max_rate}
276 | | ${threshold}= | Set Variable | ${min_rate}
277 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
278 | | And   Add PCI devices to DUTs from 3-node single link topology
279 | | And   Add No Multi Seg to all DUTs
280 | | And   Apply startup configuration on all VPP DUTs
281 | | And   IPv4 forwarding initialized in a 3-node circular topology
282 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
283 | | ...                                       | ${binary_max} | 3-node-IPv4
284 | | ...                                       | ${min_rate} | ${max_rate}
285 | | ...                                       | ${threshold}
286 | | ...                                       | ${glob_loss_acceptance}
287 | | ...                                       | ${glob_loss_acceptance_type}
288
289 | TC11: 9000B NDR binary search - DUT IPv4 - 2threads 2cores 1rxq
290 | | [Documentation]
291 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
292 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames
293 | | ... | using binary search start at 10GE linerate, step 5kpps.
294 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
295 | | ${framesize}= | Set Variable | ${9000}
296 | | ${min_rate}= | Set Variable | ${10000}
297 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
298 | | ${binary_min}= | Set Variable | ${min_rate}
299 | | ${binary_max}= | Set Variable | ${max_rate}
300 | | ${threshold}= | Set Variable | ${min_rate}
301 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
302 | | And   Add PCI devices to DUTs from 3-node single link topology
303 | | And   Apply startup configuration on all VPP DUTs
304 | | And   IPv4 forwarding initialized in a 3-node circular topology
305 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
306 | | ...                                       | ${binary_max} | 3-node-IPv4
307 | | ...                                       | ${min_rate} | ${max_rate}
308 | | ...                                       | ${threshold}
309
310 | TC12: 9000B PDR binary search - DUT IPv4 - 2threads 2cores 1rxq
311 | | [Documentation]
312 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
313 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames
314 | | ... | using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
315 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
316 | | ${framesize}= | Set Variable | ${9000}
317 | | ${min_rate}= | Set Variable | ${10000}
318 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
319 | | ${binary_min}= | Set Variable | ${min_rate}
320 | | ${binary_max}= | Set Variable | ${max_rate}
321 | | ${threshold}= | Set Variable | ${min_rate}
322 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
323 | | And   Add PCI devices to DUTs from 3-node single link topology
324 | | And   Apply startup configuration on all VPP DUTs
325 | | And   IPv4 forwarding initialized in a 3-node circular topology
326 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
327 | | ...                                       | ${binary_max} | 3-node-IPv4
328 | | ...                                       | ${min_rate} | ${max_rate}
329 | | ...                                       | ${threshold}
330 | | ...                                       | ${glob_loss_acceptance}
331 | | ...                                       | ${glob_loss_acceptance_type}
332
333 | TC13: 64B NDR binary search - DUT IPv4 - 4threads 4cores 2rxq
334 | | [Documentation]
335 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
336 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames
337 | | ... | using binary search start at 10GE linerate, step 100kpps.
338 | | [Tags] | 4T4C | MTHREAD | NDRDISC
339 | | ${framesize}= | Set Variable | ${64}
340 | | ${min_rate}= | Set Variable | ${100000}
341 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
342 | | ${binary_min}= | Set Variable | ${min_rate}
343 | | ${binary_max}= | Set Variable | ${max_rate}
344 | | ${threshold}= | Set Variable | ${min_rate}
345 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
346 | | And   Add PCI devices to DUTs from 3-node single link topology
347 | | And   Add No Multi Seg to all DUTs
348 | | And   Apply startup configuration on all VPP DUTs
349 | | And   IPv4 forwarding initialized in a 3-node circular topology
350 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
351 | | ...                                       | ${binary_max} | 3-node-IPv4
352 | | ...                                       | ${min_rate} | ${max_rate}
353 | | ...                                       | ${threshold}
354
355 | TC14: 64B PDR binary search - DUT IPv4 - 4threads 4cores 2rxq
356 | | [Documentation]
357 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
358 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames
359 | | ... | using binary search start at 10GE linerate, step 100kpps, LT=0.5%.
360 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
361 | | ${framesize}= | Set Variable | ${64}
362 | | ${min_rate}= | Set Variable | ${100000}
363 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
364 | | ${binary_min}= | Set Variable | ${min_rate}
365 | | ${binary_max}= | Set Variable | ${max_rate}
366 | | ${threshold}= | Set Variable | ${min_rate}
367 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
368 | | And   Add PCI devices to DUTs from 3-node single link topology
369 | | And   Add No Multi Seg to all DUTs
370 | | And   Apply startup configuration on all VPP DUTs
371 | | And   IPv4 forwarding initialized in a 3-node circular topology
372 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
373 | | ...                                       | ${binary_max} | 3-node-IPv4
374 | | ...                                       | ${min_rate} | ${max_rate}
375 | | ...                                       | ${threshold}
376 | | ...                                       | ${glob_loss_acceptance}
377 | | ...                                       | ${glob_loss_acceptance_type}
378
379 | TC15: 1518B NDR binary search - DUT IPv4 - 4threads 4cores 2rxq
380 | | [Documentation]
381 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
382 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames
383 | | ... | using binary search start at 10GE linerate, step 10kpps.
384 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
385 | | ${framesize}= | Set Variable | ${1518}
386 | | ${min_rate}= | Set Variable | ${10000}
387 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
388 | | ${binary_min}= | Set Variable | ${min_rate}
389 | | ${binary_max}= | Set Variable | ${max_rate}
390 | | ${threshold}= | Set Variable | ${min_rate}
391 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
392 | | And   Add PCI devices to DUTs from 3-node single link topology
393 | | And   Add No Multi Seg to all DUTs
394 | | And   Apply startup configuration on all VPP DUTs
395 | | And   IPv4 forwarding initialized in a 3-node circular topology
396 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
397 | | ...                                       | ${binary_max} | 3-node-IPv4
398 | | ...                                       | ${min_rate} | ${max_rate}
399 | | ...                                       | ${threshold}
400
401 | TC16: 1518B PDR binary search - DUT IPv4 - 4threads 4cores 2rxq
402 | | [Documentation]
403 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
404 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames
405 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
406 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
407 | | ${framesize}= | Set Variable | ${1518}
408 | | ${min_rate}= | Set Variable | ${10000}
409 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
410 | | ${binary_min}= | Set Variable | ${min_rate}
411 | | ${binary_max}= | Set Variable | ${max_rate}
412 | | ${threshold}= | Set Variable | ${min_rate}
413 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
414 | | And   Add PCI devices to DUTs from 3-node single link topology
415 | | And   Add No Multi Seg to all DUTs
416 | | And   Apply startup configuration on all VPP DUTs
417 | | And   IPv4 forwarding initialized in a 3-node circular topology
418 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
419 | | ...                                       | ${binary_max} | 3-node-IPv4
420 | | ...                                       | ${min_rate} | ${max_rate}
421 | | ...                                       | ${threshold}
422 | | ...                                       | ${glob_loss_acceptance}
423 | | ...                                       | ${glob_loss_acceptance_type}
424
425 | TC17: 9000B NDR binary search - DUT IPv4 - 4threads 4cores 2rxq
426 | | [Documentation]
427 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
428 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 9000 Byte frames
429 | | ... | using binary search start at 10GE linerate, step 5kpps.
430 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
431 | | ${framesize}= | Set Variable | ${9000}
432 | | ${min_rate}= | Set Variable | ${10000}
433 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
434 | | ${binary_min}= | Set Variable | ${min_rate}
435 | | ${binary_max}= | Set Variable | ${max_rate}
436 | | ${threshold}= | Set Variable | ${min_rate}
437 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
438 | | And   Add PCI devices to DUTs from 3-node single link topology
439 | | And   Apply startup configuration on all VPP DUTs
440 | | And   IPv4 forwarding initialized in a 3-node circular topology
441 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
442 | | ...                                       | ${binary_max} | 3-node-IPv4
443 | | ...                                       | ${min_rate} | ${max_rate}
444 | | ...                                       | ${threshold}
445
446 | TC18: 9000B PDR binary search - DUT IPv4 - 4threads 4cores 2rxq
447 | | [Documentation]
448 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
449 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 9000 Byte frames
450 | | ... | using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
451 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
452 | | ${framesize}= | Set Variable | ${9000}
453 | | ${min_rate}= | Set Variable | ${10000}
454 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
455 | | ${binary_min}= | Set Variable | ${min_rate}
456 | | ${binary_max}= | Set Variable | ${max_rate}
457 | | ${threshold}= | Set Variable | ${min_rate}
458 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
459 | | And   Add PCI devices to DUTs from 3-node single link topology
460 | | And   Apply startup configuration on all VPP DUTs
461 | | And   IPv4 forwarding initialized in a 3-node circular topology
462 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
463 | | ...                                       | ${binary_max} | 3-node-IPv4
464 | | ...                                       | ${min_rate} | ${max_rate}
465 | | ...                                       | ${threshold}
466 | | ...                                       | ${glob_loss_acceptance}
467 | | ...                                       | ${glob_loss_acceptance_type}
468
469 | TC19: IMIX_v4_1 NDR binary search - DUT IPv4 - 1thread 1core 1rxq
470 | | [Documentation]
471 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
472 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
473 | | ... | using binary search start at 10GE linerate, step 100kpps.
474 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
475 | | [Tags] | 1T1C | STHREAD | NDRDISC
476 | | ${framesize}= | Set Variable | IMIX_v4_1
477 | | ${min_rate}= | Set Variable | ${100000}
478 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
479 | | ${binary_min}= | Set Variable | ${min_rate}
480 | | ${binary_max}= | Set Variable | ${max_rate}
481 | | ${threshold}= | Set Variable | ${min_rate}
482 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
483 | | And   Add all PCI devices to all DUTs
484 | | And   Add No Multi Seg to all DUTs
485 | | And   Apply startup configuration on all VPP DUTs
486 | | And   IPv4 forwarding initialized in a 3-node circular topology
487 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
488 | | ...                                       | ${binary_max} | 3-node-IPv4
489 | | ...                                       | ${min_rate} | ${max_rate}
490 | | ...                                       | ${threshold}
491
492 | TC20: IMIX_v4_1 PDR binary search - DUT IPv4 - 1thread 1core 1rxq
493 | | [Documentation]
494 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
495 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame size
496 | | ... | using binary search start at 10GE linerate, step 100kpps, LT=0.5%.
497 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
498 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
499 | | ${framesize}= | Set Variable | IMIX_v4_1
500 | | ${min_rate}= | Set Variable | ${100000}
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 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
506 | | And   Add all PCI devices to all DUTs
507 | | And   Add No Multi Seg to all DUTs
508 | | And   Apply startup configuration on all VPP DUTs
509 | | And   IPv4 forwarding initialized in a 3-node circular topology
510 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
511 | | ...                                       | ${binary_max} | 3-node-IPv4
512 | | ...                                       | ${min_rate} | ${max_rate}
513 | | ...                                       | ${threshold}
514 | | ...                                       | ${glob_loss_acceptance}
515 | | ...                                       | ${glob_loss_acceptance_type}