CSIT-662: KWI - KW renaming
[csit.git] / tests / perf / 40ge2p1vic1385-eth-l2bdbasemaclrn-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.NodePath
17 | ...
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
19 | ... | NIC_Cisco-VIC-1385 | ETH | L2BDMACLRN | BASE
20 | ...
21 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
22 | ... | L2 | Cisco-VIC-1385
23 | Suite Teardown | Tear down 3-node performance topology
24 | ...
25 | Test Setup | Set up performance test
26 | Test Teardown | Tear down performance discovery test | ${min_rate}pps | ${framesize}
27 | ... | ${traffic_profile}
28 | ...
29 | Documentation | *RFC2544: Pkt throughput L2BD test cases*
30 | ...
31 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
32 | ... | with single links between nodes.
33 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 switching of IPv4.
34 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 bridge-
35 | ... | domain and MAC learning enabled. DUT1 and DUT2 tested with 2p40GE NIC
36 | ... | NIC_Cisco-VIC-1385.
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 # XL710-DA2 (TG) bandwidth limit ~49Gbps/2=24.5Gbps
53 | ${s_24.5G} | ${24500000000}
54 # XL710-DA2 Mpps (TG) limit 37.5Mpps/2=18.75Mpps
55 | ${s_18.75Mpps} | ${18750000}
56 # Traffic profile:
57 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
58
59 *** Test Cases ***
60 | tc01-64B-1t1c-eth-l2bdbasemaclrn-ndrdisc
61 | | [Documentation]
62 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
63 | | ... | 1 receive queue per NIC port.
64 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at\
65 | | ... | 18.75Mpps rate, step 100kpps.
66 | | ...
67 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
68 | | ...
69 | | ${framesize}= | Set Variable | ${64}
70 | | ${min_rate}= | Set Variable | ${100000}
71 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
72 | | ${binary_min}= | Set Variable | ${min_rate}
73 | | ${binary_max}= | Set Variable | ${max_rate}
74 | | ${threshold}= | Set Variable | ${min_rate}
75 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
76 | | And Add PCI devices to DUTs in 3-node single link topology
77 | | And Add no multi seg to all DUTs
78 | | And Apply startup configuration on all VPP DUTs
79 | | And Initialize L2 bridge domain in 3-node circular topology
80 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
81 | | ... | ${binary_max} | ${traffic_profile}
82 | | ... | ${min_rate} | ${max_rate} | ${threshold}
83
84 | tc02-64B-1t1c-eth-l2bdbasemaclrn-pdrdisc
85 | | [Documentation]
86 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
87 | | ... | 1 receive queue per NIC port.
88 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at\
89 | | ... | 18.75Mpps rate, step 100kpps.
90 | | ...
91 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
92 | | ...
93 | | ${framesize}= | Set Variable | ${64}
94 | | ${min_rate}= | Set Variable | ${100000}
95 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
96 | | ${binary_min}= | Set Variable | ${min_rate}
97 | | ${binary_max}= | Set Variable | ${max_rate}
98 | | ${threshold}= | Set Variable | ${min_rate}
99 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
100 | | And Add PCI devices to DUTs in 3-node single link topology
101 | | And Add no multi seg to all DUTs
102 | | And Apply startup configuration on all VPP DUTs
103 | | And Initialize L2 bridge domain in 3-node circular topology
104 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
105 | | ... | ${binary_max} | ${traffic_profile}
106 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
107 | | ... | ${perf_pdr_loss_acceptance_type}
108
109 | tc03-1518B-1t1c-eth-l2bdbasemaclrn-ndrdisc
110 | | [Documentation]
111 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
112 | | ... | 1 receive queue per NIC port.
113 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at\
114 | | ... | 24.5G rate, step 10kpps.
115 | | ...
116 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
117 | | ...
118 | | ${framesize}= | Set Variable | ${1518}
119 | | ${min_rate}= | Set Variable | ${10000}
120 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
121 | | ${binary_min}= | Set Variable | ${min_rate}
122 | | ${binary_max}= | Set Variable | ${max_rate}
123 | | ${threshold}= | Set Variable | ${min_rate}
124 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
125 | | And Add PCI devices to DUTs in 3-node single link topology
126 | | And Add no multi seg to all DUTs
127 | | And Apply startup configuration on all VPP DUTs
128 | | And Initialize L2 bridge domain in 3-node circular topology
129 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
130 | | ... | ${binary_max} | ${traffic_profile}
131 | | ... | ${min_rate} | ${max_rate} | ${threshold}
132
133 | tc05-9000B-1t1c-eth-l2bdbasemaclrn-ndrdisc
134 | | [Documentation]
135 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
136 | | ... | 1 receive queue per NIC port.
137 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at\
138 | | ... | 24.5G rate, step 10kpps.
139 | | ...
140 | | [Tags] | 9000B | 1T1C | STHREAD | NDRDISC
141 | | ...
142 | | ${framesize}= | Set Variable | ${9000}
143 | | ${min_rate}= | Set Variable | ${10000}
144 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
145 | | ${binary_min}= | Set Variable | ${min_rate}
146 | | ${binary_max}= | Set Variable | ${max_rate}
147 | | ${threshold}= | Set Variable | ${min_rate}
148 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
149 | | And Add PCI devices to DUTs in 3-node single link topology
150 | | And Add no multi seg to all DUTs
151 | | And Apply startup configuration on all VPP DUTs
152 | | And Initialize L2 bridge domain in 3-node circular topology
153 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
154 | | ... | ${binary_max} | ${traffic_profile}
155 | | ... | ${min_rate} | ${max_rate} | ${threshold}
156
157 | tc07-64B-2t2c-eth-l2bdbasemaclrn-ndrdisc
158 | | [Documentation]
159 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
160 | | ... | 1 receive queue per NIC port.
161 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at\
162 | | ... | 18.75Mpps rate, step 100kpps.
163 | | ...
164 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
165 | | ...
166 | | ${framesize}= | Set Variable | ${64}
167 | | ${min_rate}= | Set Variable | ${100000}
168 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
169 | | ${binary_min}= | Set Variable | ${min_rate}
170 | | ${binary_max}= | Set Variable | ${max_rate}
171 | | ${threshold}= | Set Variable | ${min_rate}
172 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
173 | | And Add PCI devices to DUTs in 3-node single link topology
174 | | And Add no multi seg to all DUTs
175 | | And Apply startup configuration on all VPP DUTs
176 | | And Initialize L2 bridge domain in 3-node circular topology
177 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
178 | | ... | ${binary_max} | ${traffic_profile}
179 | | ... | ${min_rate} | ${max_rate} | ${threshold}
180
181 | tc08-64B-2t2c-eth-l2bdbasemaclrn-pdrdisc
182 | | [Documentation]
183 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
184 | | ... | 1 receive queue per NIC port.
185 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at\
186 | | ... | 18.75Mpps rate, step 100kpps.
187 | | ...
188 | | [Tags] | 64B | 2T2C | MTHREAD | PDR | SKIP_PATCH
189 | | ...
190 | | ${framesize}= | Set Variable | ${64}
191 | | ${min_rate}= | Set Variable | ${100000}
192 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
193 | | ${binary_min}= | Set Variable | ${min_rate}
194 | | ${binary_max}= | Set Variable | ${max_rate}
195 | | ${threshold}= | Set Variable | ${min_rate}
196 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
197 | | And Add PCI devices to DUTs in 3-node single link topology
198 | | And Add no multi seg to all DUTs
199 | | And Apply startup configuration on all VPP DUTs
200 | | And Initialize L2 bridge domain in 3-node circular topology
201 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
202 | | ... | ${binary_max} | ${traffic_profile}
203 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
204 | | ... | ${perf_pdr_loss_acceptance_type}
205
206 | tc09-1518B-2t2c-eth-l2bdbasemaclrn-ndrdisc
207 | | [Documentation]
208 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
209 | | ... | 1 receive queue per NIC port.
210 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at\
211 | | ... | 24.5G rate, step 10kpps.
212 | | ...
213 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
214 | | ...
215 | | ${framesize}= | Set Variable | ${1518}
216 | | ${min_rate}= | Set Variable | ${10000}
217 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
218 | | ${binary_min}= | Set Variable | ${min_rate}
219 | | ${binary_max}= | Set Variable | ${max_rate}
220 | | ${threshold}= | Set Variable | ${min_rate}
221 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
222 | | And Add PCI devices to DUTs in 3-node single link topology
223 | | And Add no multi seg to all DUTs
224 | | And Apply startup configuration on all VPP DUTs
225 | | And Initialize L2 bridge domain in 3-node circular topology
226 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
227 | | ... | ${binary_max} | ${traffic_profile}
228 | | ... | ${min_rate} | ${max_rate} | ${threshold}
229
230 | tc13-64B-4t4c-eth-l2bdbasemaclrn-ndrdisc
231 | | [Documentation]
232 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
233 | | ... | 2 receive queues per NIC port.
234 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at\
235 | | ... | 18.75Mpps rate, step 100kpps.
236 | | ...
237 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
238 | | ...
239 | | ${framesize}= | Set Variable | ${64}
240 | | ${min_rate}= | Set Variable | ${100000}
241 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
242 | | ${binary_min}= | Set Variable | ${min_rate}
243 | | ${binary_max}= | Set Variable | ${max_rate}
244 | | ${threshold}= | Set Variable | ${min_rate}
245 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
246 | | And Add PCI devices to DUTs in 3-node single link topology
247 | | And Add no multi seg to all DUTs
248 | | And Apply startup configuration on all VPP DUTs
249 | | And Initialize L2 bridge domain in 3-node circular topology
250 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
251 | | ... | ${binary_max} | ${traffic_profile}
252 | | ... | ${min_rate} | ${max_rate} | ${threshold}
253
254 | tc15-1518B-4t4c-eth-l2bdbasemaclrn-ndrdisc
255 | | [Documentation]
256 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
257 | | ... | 2 receive queues per NIC port.
258 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at\
259 | | ... | 24.5G rate, step 10kpps.
260 | | ...
261 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
262 | | ...
263 | | ${framesize}= | Set Variable | ${1518}
264 | | ${min_rate}= | Set Variable | ${10000}
265 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
266 | | ${binary_min}= | Set Variable | ${min_rate}
267 | | ${binary_max}= | Set Variable | ${max_rate}
268 | | ${threshold}= | Set Variable | ${min_rate}
269 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
270 | | And Add PCI devices to DUTs in 3-node single link topology
271 | | And Add no multi seg to all DUTs
272 | | And Apply startup configuration on all VPP DUTs
273 | | And Initialize L2 bridge domain in 3-node circular topology
274 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
275 | | ... | ${binary_max} | ${traffic_profile}
276 | | ... | ${min_rate} | ${max_rate} | ${threshold}
277
278 | tc19-IMIX-1t1c-eth-l2bdbasemaclrn-ndrdisc
279 | | [Documentation]
280 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
281 | | ... | 1 receive queue per NIC port.
282 | | ... | [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at\
283 | | ... | 24.5G rate, step 100kpps.
284 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
285 | | ...
286 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
287 | | ...
288 | | ${framesize}= | Set Variable | IMIX_v4_1
289 | | ${min_rate}= | Set Variable | ${100000}
290 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
291 | | ${binary_min}= | Set Variable | ${min_rate}
292 | | ${binary_max}= | Set Variable | ${max_rate}
293 | | ${threshold}= | Set Variable | ${min_rate}
294 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
295 | | And Add all PCI devices to all DUTs
296 | | And Add no multi seg to all DUTs
297 | | And Apply startup configuration on all VPP DUTs
298 | | And Initialize L2 bridge domain in 3-node circular topology
299 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
300 | | ... | ${binary_max} | ${traffic_profile}
301 | | ... | ${min_rate} | ${max_rate} | ${threshold}
302
303 | tc20-IMIX-2t2c-eth-l2bdbasemaclrn-ndrdisc
304 | | [Documentation]
305 | | ... | [Cfg] DUT runs L2BD switching config with 2 thread, 2 phy core,\
306 | | ... | 1 receive queue per NIC port.
307 | | ... | [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at\
308 | | ... | 24.5G rate, step 100kpps.
309 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
310 | | ...
311 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
312 | | ...
313 | | ${framesize}= | Set Variable | IMIX_v4_1
314 | | ${min_rate}= | Set Variable | ${100000}
315 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
316 | | ${binary_min}= | Set Variable | ${min_rate}
317 | | ${binary_max}= | Set Variable | ${max_rate}
318 | | ${threshold}= | Set Variable | ${min_rate}
319 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
320 | | And Add all PCI devices to all DUTs
321 | | And Add no multi seg to all DUTs
322 | | And Apply startup configuration on all VPP DUTs
323 | | And Initialize L2 bridge domain in 3-node circular topology
324 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
325 | | ... | ${binary_max} | ${traffic_profile}
326 | | ... | ${min_rate} | ${max_rate} | ${threshold}
327
328 | tc21-IMIX-4t4c-eth-l2bdbasemaclrn-ndrdisc
329 | | [Documentation]
330 | | ... | [Cfg] DUT runs L2BD switching config with 4 thread, 4 phy core,\
331 | | ... | 2 receive queue per NIC port.
332 | | ... | [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at\
333 | | ... | 24.5G rate, step 100kpps.
334 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
335 | | ...
336 | | [Tags] | IMIX | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
337 | | ...
338 | | ${framesize}= | Set Variable | IMIX_v4_1
339 | | ${min_rate}= | Set Variable | ${100000}
340 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
341 | | ${binary_min}= | Set Variable | ${min_rate}
342 | | ${binary_max}= | Set Variable | ${max_rate}
343 | | ${threshold}= | Set Variable | ${min_rate}
344 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
345 | | And Add all PCI devices to all DUTs
346 | | And Add no multi seg to all DUTs
347 | | And Apply startup configuration on all VPP DUTs
348 | | And Initialize L2 bridge domain in 3-node circular topology
349 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
350 | | ... | ${binary_max} | ${traffic_profile}
351 | | ... | ${min_rate} | ${max_rate} | ${threshold}