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