8407ed4a11e4498641bd33aa9729520b2cf4df61
[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 | L2XCBASE
21 | ...
22 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
23 | ... | L2 | Intel-X520-DA2
24 | Suite Teardown | Tear down 3-node performance topology
25 | ...
26 | Test Setup | Set up performance test
27 | Test Teardown | Tear down performance discovery test | ${min_rate}pps | ${framesize}
28 | ... | ${traffic_profile}
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 # Traffic profile:
55 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
56
57 *** Test Cases ***
58 | tc01-64B-1t1c-eth-l2xcbase-ndrdisc
59 | | [Documentation]
60 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
61 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
62 | | ... | using binary search start at 10GE linerate, step 100kpps.
63 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
64 | | ${framesize}= | Set Variable | ${64}
65 | | ${min_rate}= | Set Variable | ${100000}
66 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
67 | | ${binary_min}= | Set Variable | ${min_rate}
68 | | ${binary_max}= | Set Variable | ${max_rate}
69 | | ${threshold}= | Set Variable | ${min_rate}
70 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
71 | | And Add PCI devices to DUTs in 3-node single link topology
72 | | And Add no multi seg to all DUTs
73 | | And Apply startup configuration on all VPP DUTs
74 | | And Initialize L2 xconnect in 3-node circular topology
75 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
76 | | ... | ${binary_max} | ${traffic_profile}
77 | | ... | ${min_rate} | ${max_rate} | ${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] | 64B | 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 '1' rxqueues in 3-node single-link circular topology
92 | | And Add PCI devices to DUTs in 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 Initialize L2 xconnect in 3-node circular topology
96 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
97 | | ... | ${binary_max} | ${traffic_profile}
98 | | ... | ${min_rate} | ${max_rate} | ${threshold}
99 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
100
101 | tc03-1518B-1t1c-eth-l2xcbase-ndrdisc
102 | | [Documentation]
103 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
104 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
105 | | ... | using binary search start at 10GE linerate, step 10kpps.
106 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
107 | | ${framesize}= | Set Variable | ${1518}
108 | | ${min_rate}= | Set Variable | ${10000}
109 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
110 | | ${binary_min}= | Set Variable | ${min_rate}
111 | | ${binary_max}= | Set Variable | ${max_rate}
112 | | ${threshold}= | Set Variable | ${min_rate}
113 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
114 | | And Add PCI devices to DUTs in 3-node single link topology
115 | | And Add no multi seg to all DUTs
116 | | And Apply startup configuration on all VPP DUTs
117 | | And Initialize L2 xconnect in 3-node circular topology
118 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
119 | | ... | ${binary_max} | ${traffic_profile}
120 | | ... | ${min_rate} | ${max_rate} | ${threshold}
121
122 | tc04-1518B-1t1c-eth-l2xcbase-pdrdisc
123 | | [Documentation]
124 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
125 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames
126 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
127 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
128 | | ${framesize}= | Set Variable | ${1518}
129 | | ${min_rate}= | Set Variable | ${10000}
130 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
131 | | ${binary_min}= | Set Variable | ${min_rate}
132 | | ${binary_max}= | Set Variable | ${max_rate}
133 | | ${threshold}= | Set Variable | ${min_rate}
134 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
135 | | And Add PCI devices to DUTs in 3-node single link topology
136 | | And Add no multi seg to all DUTs
137 | | And Apply startup configuration on all VPP DUTs
138 | | And Initialize L2 xconnect in 3-node circular topology
139 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
140 | | ... | ${binary_max} | ${traffic_profile}
141 | | ... | ${min_rate} | ${max_rate} | ${threshold}
142 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
143
144 | tc05-9000B-1t1c-eth-l2xcbase-ndrdisc
145 | | [Documentation]
146 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
147 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames
148 | | ... | using binary search start at 10GE linerate, step 5kpps.
149 | | [Tags] | 9000B | 1T1C | STHREAD | NDRDISC
150 | | ${framesize}= | Set Variable | ${9000}
151 | | ${min_rate}= | Set Variable | ${10000}
152 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
153 | | ${binary_min}= | Set Variable | ${min_rate}
154 | | ${binary_max}= | Set Variable | ${max_rate}
155 | | ${threshold}= | Set Variable | ${min_rate}
156 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
157 | | And Add PCI devices to DUTs in 3-node single link topology
158 | | And Apply startup configuration on all VPP DUTs
159 | | And Initialize L2 xconnect in 3-node circular topology
160 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
161 | | ... | ${binary_max} | ${traffic_profile}
162 | | ... | ${min_rate} | ${max_rate} | ${threshold}
163
164 | tc06-9000B-1t1c-eth-l2xcbase-pdrdisc
165 | | [Documentation]
166 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
167 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames
168 | | ... | using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
169 | | [Tags] | 9000B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
170 | | ${framesize}= | Set Variable | ${9000}
171 | | ${min_rate}= | Set Variable | ${10000}
172 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
173 | | ${binary_min}= | Set Variable | ${min_rate}
174 | | ${binary_max}= | Set Variable | ${max_rate}
175 | | ${threshold}= | Set Variable | ${min_rate}
176 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
177 | | And Add PCI devices to DUTs in 3-node single link topology
178 | | And Apply startup configuration on all VPP DUTs
179 | | And Initialize L2 xconnect in 3-node circular topology
180 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
181 | | ... | ${binary_max} | ${traffic_profile}
182 | | ... | ${min_rate} | ${max_rate} | ${threshold}
183 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
184
185 | tc07-64B-2t2c-eth-l2xcbase-ndrdisc
186 | | [Documentation]
187 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
188 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
189 | | ... | using binary search start at 10GE linerate, step 100kpps.
190 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
191 | | ${framesize}= | Set Variable | ${64}
192 | | ${min_rate}= | Set Variable | ${100000}
193 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
194 | | ${binary_min}= | Set Variable | ${min_rate}
195 | | ${binary_max}= | Set Variable | ${max_rate}
196 | | ${threshold}= | Set Variable | ${min_rate}
197 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
198 | | And Add PCI devices to DUTs in 3-node single link topology
199 | | And Add no multi seg to all DUTs
200 | | And Apply startup configuration on all VPP DUTs
201 | | And Initialize L2 xconnect in 3-node circular topology
202 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
203 | | ... | ${binary_max} | ${traffic_profile}
204 | | ... | ${min_rate} | ${max_rate} | ${threshold}
205
206 | tc08-64B-2t2c-eth-l2xcbase-pdrdisc
207 | | [Documentation]
208 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
209 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames
210 | | ... | using binary search start at 10GE linerate, step 100kpps, LT=0.5%.
211 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
212 | | ${framesize}= | Set Variable | ${64}
213 | | ${min_rate}= | Set Variable | ${100000}
214 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
215 | | ${binary_min}= | Set Variable | ${min_rate}
216 | | ${binary_max}= | Set Variable | ${max_rate}
217 | | ${threshold}= | Set Variable | ${min_rate}
218 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
219 | | And Add PCI devices to DUTs in 3-node single link topology
220 | | And Add no multi seg to all DUTs
221 | | And Apply startup configuration on all VPP DUTs
222 | | And Initialize L2 xconnect in 3-node circular topology
223 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
224 | | ... | ${binary_max} | ${traffic_profile}
225 | | ... | ${min_rate} | ${max_rate} | ${threshold}
226 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
227
228 | tc09-1518B-2t2c-eth-l2xcbase-ndrdisc
229 | | [Documentation]
230 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
231 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
232 | | ... | using binary search start at 10GE linerate, step 10kpps.
233 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
234 | | ${framesize}= | Set Variable | ${1518}
235 | | ${min_rate}= | Set Variable | ${10000}
236 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
237 | | ${binary_min}= | Set Variable | ${min_rate}
238 | | ${binary_max}= | Set Variable | ${max_rate}
239 | | ${threshold}= | Set Variable | ${min_rate}
240 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
241 | | And Add PCI devices to DUTs in 3-node single link topology
242 | | And Add no multi seg to all DUTs
243 | | And Apply startup configuration on all VPP DUTs
244 | | And Initialize L2 xconnect in 3-node circular topology
245 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
246 | | ... | ${binary_max} | ${traffic_profile}
247 | | ... | ${min_rate} | ${max_rate} | ${threshold}
248
249 | tc10-1518B-2t2c-eth-l2xcbase-pdrdisc
250 | | [Documentation]
251 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
252 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames
253 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
254 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
255 | | ${framesize}= | Set Variable | ${1518}
256 | | ${min_rate}= | Set Variable | ${10000}
257 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
258 | | ${binary_min}= | Set Variable | ${min_rate}
259 | | ${binary_max}= | Set Variable | ${max_rate}
260 | | ${threshold}= | Set Variable | ${min_rate}
261 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
262 | | And Add PCI devices to DUTs in 3-node single link topology
263 | | And Add no multi seg to all DUTs
264 | | And Apply startup configuration on all VPP DUTs
265 | | And Initialize L2 xconnect in 3-node circular topology
266 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
267 | | ... | ${binary_max} | ${traffic_profile}
268 | | ... | ${min_rate} | ${max_rate} | ${threshold}
269 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
270
271 | tc11-9000B-2t2c-eth-l2xcbase-ndrdisc
272 | | [Documentation]
273 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
274 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames
275 | | ... | using binary search start at 10GE linerate, step 5kpps.
276 | | [Tags] | 9000B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
277 | | ${framesize}= | Set Variable | ${9000}
278 | | ${min_rate}= | Set Variable | ${10000}
279 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
280 | | ${binary_min}= | Set Variable | ${min_rate}
281 | | ${binary_max}= | Set Variable | ${max_rate}
282 | | ${threshold}= | Set Variable | ${min_rate}
283 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
284 | | And Add PCI devices to DUTs in 3-node single link topology
285 | | And Apply startup configuration on all VPP DUTs
286 | | And Initialize L2 xconnect in 3-node circular topology
287 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
288 | | ... | ${binary_max} | ${traffic_profile}
289 | | ... | ${min_rate} | ${max_rate} | ${threshold}
290
291 | tc12-9000B-2t2c-eth-l2xcbase-pdrdisc
292 | | [Documentation]
293 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
294 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames
295 | | ... | using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
296 | | [Tags] | 9000B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
297 | | ${framesize}= | Set Variable | ${9000}
298 | | ${min_rate}= | Set Variable | ${10000}
299 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
300 | | ${binary_min}= | Set Variable | ${min_rate}
301 | | ${binary_max}= | Set Variable | ${max_rate}
302 | | ${threshold}= | Set Variable | ${min_rate}
303 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
304 | | And Add PCI devices to DUTs in 3-node single link topology
305 | | And Apply startup configuration on all VPP DUTs
306 | | And Initialize L2 xconnect in 3-node circular topology
307 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
308 | | ... | ${binary_max} | ${traffic_profile}
309 | | ... | ${min_rate} | ${max_rate} | ${threshold}
310 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
311
312 | tc13-64B-4t4c-eth-l2xcbase-ndrdisc
313 | | [Documentation]
314 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
315 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames
316 | | ... | using binary search start at 10GE linerate, step 100kpps.
317 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
318 | | ${framesize}= | Set Variable | ${64}
319 | | ${min_rate}= | Set Variable | ${100000}
320 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
321 | | ${binary_min}= | Set Variable | ${min_rate}
322 | | ${binary_max}= | Set Variable | ${max_rate}
323 | | ${threshold}= | Set Variable | ${min_rate}
324 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
325 | | And Add PCI devices to DUTs in 3-node single link topology
326 | | And Add no multi seg to all DUTs
327 | | And Apply startup configuration on all VPP DUTs
328 | | And Initialize L2 xconnect in 3-node circular topology
329 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
330 | | ... | ${binary_max} | ${traffic_profile}
331 | | ... | ${min_rate} | ${max_rate} | ${threshold}
332
333 | tc14-64B-4t4c-eth-l2xcbase-pdrdisc
334 | | [Documentation]
335 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
336 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames
337 | | ... | using binary search start at 10GE linerate, step 100kpps, LT=0.5%.
338 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
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 '2' rxqueues in 3-node single-link circular topology
346 | | And Add PCI devices to DUTs in 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 Initialize L2 xconnect in 3-node circular topology
350 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
351 | | ... | ${binary_max} | ${traffic_profile}
352 | | ... | ${min_rate} | ${max_rate} | ${threshold}
353 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
354
355 | tc15-1518B-4t4c-eth-l2xcbase-ndrdisc
356 | | [Documentation]
357 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
358 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames
359 | | ... | using binary search start at 10GE linerate, step 10kpps.
360 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
361 | | ${framesize}= | Set Variable | ${1518}
362 | | ${min_rate}= | Set Variable | ${10000}
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 '2' rxqueues in 3-node single-link circular topology
368 | | And Add PCI devices to DUTs in 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 Initialize L2 xconnect in 3-node circular topology
372 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
373 | | ... | ${binary_max} | ${traffic_profile}
374 | | ... | ${min_rate} | ${max_rate} | ${threshold}
375
376 | tc16-1518B-4t4c-eth-l2xcbase-pdrdisc
377 | | [Documentation]
378 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
379 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames
380 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
381 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
382 | | ${framesize}= | Set Variable | ${1518}
383 | | ${min_rate}= | Set Variable | ${10000}
384 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
385 | | ${binary_min}= | Set Variable | ${min_rate}
386 | | ${binary_max}= | Set Variable | ${max_rate}
387 | | ${threshold}= | Set Variable | ${min_rate}
388 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
389 | | And Add PCI devices to DUTs in 3-node single link topology
390 | | And Add no multi seg to all DUTs
391 | | And Apply startup configuration on all VPP DUTs
392 | | And Initialize L2 xconnect in 3-node circular topology
393 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
394 | | ... | ${binary_max} | ${traffic_profile}
395 | | ... | ${min_rate} | ${max_rate} | ${threshold}
396 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
397
398 | tc17-9000B-4t4c-eth-l2xcbase-ndrdisc
399 | | [Documentation]
400 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
401 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 9000 Byte frames
402 | | ... | using binary search start at 10GE linerate, step 5kpps.
403 | | [Tags] | 9000B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
404 | | ${framesize}= | Set Variable | ${9000}
405 | | ${min_rate}= | Set Variable | ${10000}
406 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
407 | | ${binary_min}= | Set Variable | ${min_rate}
408 | | ${binary_max}= | Set Variable | ${max_rate}
409 | | ${threshold}= | Set Variable | ${min_rate}
410 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
411 | | And Add PCI devices to DUTs in 3-node single link topology
412 | | And Apply startup configuration on all VPP DUTs
413 | | And Initialize L2 xconnect in 3-node circular topology
414 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
415 | | ... | ${binary_max} | ${traffic_profile}
416 | | ... | ${min_rate} | ${max_rate} | ${threshold}
417
418 | tc18-9000B-4t4c-eth-l2xcbase-pdrdisc
419 | | [Documentation]
420 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
421 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 9000 Byte frames
422 | | ... | using binary search start at 10GE linerate, step 5kpps, LT=0.5%.
423 | | [Tags] | 9000B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
424 | | ${framesize}= | Set Variable | ${9000}
425 | | ${min_rate}= | Set Variable | ${10000}
426 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
427 | | ${binary_min}= | Set Variable | ${min_rate}
428 | | ${binary_max}= | Set Variable | ${max_rate}
429 | | ${threshold}= | Set Variable | ${min_rate}
430 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
431 | | And Add PCI devices to DUTs in 3-node single link topology
432 | | And Apply startup configuration on all VPP DUTs
433 | | And Initialize L2 xconnect in 3-node circular topology
434 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
435 | | ... | ${binary_max} | ${traffic_profile}
436 | | ... | ${min_rate} | ${max_rate} | ${threshold}
437 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
438
439 | tc19-IMIX-1t1c-eth-l2xcbase-ndrdisc
440 | | [Documentation]
441 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
442 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
443 | | ... | using binary search start at 10GE linerate, step 100kpps.
444 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
445 | | [Tags] | 1T1C | STHREAD | NDRDISC
446 | | ${framesize}= | Set Variable | IMIX_v4_1
447 | | ${min_rate}= | Set Variable | ${100000}
448 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
449 | | ${binary_min}= | Set Variable | ${min_rate}
450 | | ${binary_max}= | Set Variable | ${max_rate}
451 | | ${threshold}= | Set Variable | ${min_rate}
452 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
453 | | And Add all PCI devices to all DUTs
454 | | And Add no multi seg to all DUTs
455 | | And Apply startup configuration on all VPP DUTs
456 | | And Initialize L2 xconnect in 3-node circular topology
457 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
458 | | ... | ${binary_max} | ${traffic_profile}
459 | | ... | ${min_rate} | ${max_rate} | ${threshold}
460
461 | tc20-IMIX-1t1c-eth-l2xcbase-pdrdisc
462 | | [Documentation]
463 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
464 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame size
465 | | ... | using binary search start at 10GE linerate, step 100kpps, LT=0.5%.
466 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
467 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
468 | | ${framesize}= | Set Variable | IMIX_v4_1
469 | | ${min_rate}= | Set Variable | ${100000}
470 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
471 | | ${binary_min}= | Set Variable | ${min_rate}
472 | | ${binary_max}= | Set Variable | ${max_rate}
473 | | ${threshold}= | Set Variable | ${min_rate}
474 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
475 | | And Add all PCI devices to all DUTs
476 | | And Add no multi seg to all DUTs
477 | | And Apply startup configuration on all VPP DUTs
478 | | And Initialize L2 xconnect in 3-node circular topology
479 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
480 | | ... | ${binary_max} | ${traffic_profile}
481 | | ... | ${min_rate} | ${max_rate} | ${threshold}
482 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}