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