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