CSIT-562 HC Test: Persistence suite rework, part1
[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 | 3-node Performance Suite Setup with DUT's NIC model
22 | ... | L2 | Cisco-VIC-1385
23 | Suite Teardown | 3-node Performance Suite Teardown
24 | ...
25 | Test Setup | Performance test setup
26 | Test Teardown | Performance test teardown | ${min_rate}pps | ${framesize}
27 | ... | 3-node-bridge
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
57 *** Test Cases ***
58 | tc01-64B-1t1c-eth-l2bdbasemaclrn-ndrdisc
59 | | [Documentation]
60 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
61 | | ... | 1 receive queue per NIC port.
62 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at\
63 | | ... | 18.75Mpps rate, step 100kpps.
64 | | ...
65 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
66 | | ...
67 | | ${framesize}= | Set Variable | ${64}
68 | | ${min_rate}= | Set Variable | ${100000}
69 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
70 | | ${binary_min}= | Set Variable | ${min_rate}
71 | | ${binary_max}= | Set Variable | ${max_rate}
72 | | ${threshold}= | Set Variable | ${min_rate}
73 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
74 | | And Add PCI devices to DUTs from 3-node single link topology
75 | | And Add No Multi Seg to all DUTs
76 | | And Apply startup configuration on all VPP DUTs
77 | | And L2 bridge domain initialized in a 3-node circular topology
78 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
79 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
80 | | ... | ${threshold}
81
82 | tc02-64B-1t1c-eth-l2bdbasemaclrn-pdrdisc
83 | | [Documentation]
84 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
85 | | ... | 1 receive queue per NIC port.
86 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at\
87 | | ... | 18.75Mpps rate, step 100kpps.
88 | | ...
89 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
90 | | ...
91 | | ${framesize}= | Set Variable | ${64}
92 | | ${min_rate}= | Set Variable | ${100000}
93 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
94 | | ${binary_min}= | Set Variable | ${min_rate}
95 | | ${binary_max}= | Set Variable | ${max_rate}
96 | | ${threshold}= | Set Variable | ${min_rate}
97 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
98 | | And Add PCI devices to DUTs from 3-node single link topology
99 | | And Add No Multi Seg to all DUTs
100 | | And Apply startup configuration on all VPP DUTs
101 | | And L2 bridge domain initialized in a 3-node circular topology
102 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
103 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
104 | | ... | ${threshold} | ${perf_pdr_loss_acceptance}
105 | | ... | ${perf_pdr_loss_acceptance_type}
106
107 | tc03-1518B-1t1c-eth-l2bdbasemaclrn-ndrdisc
108 | | [Documentation]
109 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
110 | | ... | 1 receive queue per NIC port.
111 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at\
112 | | ... | 24.5G rate, step 10kpps.
113 | | ...
114 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
115 | | ...
116 | | ${framesize}= | Set Variable | ${1518}
117 | | ${min_rate}= | Set Variable | ${10000}
118 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
119 | | ${binary_min}= | Set Variable | ${min_rate}
120 | | ${binary_max}= | Set Variable | ${max_rate}
121 | | ${threshold}= | Set Variable | ${min_rate}
122 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
123 | | And Add PCI devices to DUTs from 3-node single link topology
124 | | And Add No Multi Seg to all DUTs
125 | | And Apply startup configuration on all VPP DUTs
126 | | And L2 bridge domain initialized in a 3-node circular topology
127 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
128 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
129 | | ... | ${threshold}
130
131 | tc05-9000B-1t1c-eth-l2bdbasemaclrn-ndrdisc
132 | | [Documentation]
133 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
134 | | ... | 1 receive queue per NIC port.
135 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at\
136 | | ... | 24.5G rate, step 10kpps.
137 | | ...
138 | | [Tags] | 9000B | 1T1C | STHREAD | NDRDISC
139 | | ...
140 | | ${framesize}= | Set Variable | ${9000}
141 | | ${min_rate}= | Set Variable | ${10000}
142 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
143 | | ${binary_min}= | Set Variable | ${min_rate}
144 | | ${binary_max}= | Set Variable | ${max_rate}
145 | | ${threshold}= | Set Variable | ${min_rate}
146 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
147 | | And Add PCI devices to DUTs from 3-node single link topology
148 | | And Add No Multi Seg to all DUTs
149 | | And Apply startup configuration on all VPP DUTs
150 | | And L2 bridge domain initialized in a 3-node circular topology
151 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
152 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
153 | | ... | ${threshold}
154
155 | tc07-64B-2t2c-eth-l2bdbasemaclrn-ndrdisc
156 | | [Documentation]
157 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
158 | | ... | 1 receive queue per NIC port.
159 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at\
160 | | ... | 18.75Mpps rate, step 100kpps.
161 | | ...
162 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
163 | | ...
164 | | ${framesize}= | Set Variable | ${64}
165 | | ${min_rate}= | Set Variable | ${100000}
166 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
167 | | ${binary_min}= | Set Variable | ${min_rate}
168 | | ${binary_max}= | Set Variable | ${max_rate}
169 | | ${threshold}= | Set Variable | ${min_rate}
170 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
171 | | And Add PCI devices to DUTs from 3-node single link topology
172 | | And Add No Multi Seg to all DUTs
173 | | And Apply startup configuration on all VPP DUTs
174 | | And L2 bridge domain initialized in a 3-node circular topology
175 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
176 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
177 | | ... | ${threshold}
178
179 | tc08-64B-2t2c-eth-l2bdbasemaclrn-pdrdisc
180 | | [Documentation]
181 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
182 | | ... | 1 receive queue per NIC port.
183 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at\
184 | | ... | 18.75Mpps rate, step 100kpps.
185 | | ...
186 | | [Tags] | 64B | 2T2C | MTHREAD | PDR | SKIP_PATCH
187 | | ...
188 | | ${framesize}= | Set Variable | ${64}
189 | | ${min_rate}= | Set Variable | ${100000}
190 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
191 | | ${binary_min}= | Set Variable | ${min_rate}
192 | | ${binary_max}= | Set Variable | ${max_rate}
193 | | ${threshold}= | Set Variable | ${min_rate}
194 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
195 | | And Add PCI devices to DUTs from 3-node single link topology
196 | | And Add No Multi Seg to all DUTs
197 | | And Apply startup configuration on all VPP DUTs
198 | | And L2 bridge domain initialized in a 3-node circular topology
199 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
200 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
201 | | ... | ${threshold} | ${perf_pdr_loss_acceptance}
202 | | ... | ${perf_pdr_loss_acceptance_type}
203
204 | tc09-1518B-2t2c-eth-l2bdbasemaclrn-ndrdisc
205 | | [Documentation]
206 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
207 | | ... | 1 receive queue per NIC port.
208 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at\
209 | | ... | 24.5G rate, step 10kpps.
210 | | ...
211 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
212 | | ...
213 | | ${framesize}= | Set Variable | ${1518}
214 | | ${min_rate}= | Set Variable | ${10000}
215 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
216 | | ${binary_min}= | Set Variable | ${min_rate}
217 | | ${binary_max}= | Set Variable | ${max_rate}
218 | | ${threshold}= | Set Variable | ${min_rate}
219 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
220 | | And Add PCI devices to DUTs from 3-node single link topology
221 | | And Add No Multi Seg to all DUTs
222 | | And Apply startup configuration on all VPP DUTs
223 | | And L2 bridge domain initialized in a 3-node circular topology
224 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
225 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
226 | | ... | ${threshold}
227
228 | tc13-64B-4t4c-eth-l2bdbasemaclrn-ndrdisc
229 | | [Documentation]
230 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
231 | | ... | 2 receive queues per NIC port.
232 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at\
233 | | ... | 18.75Mpps rate, step 100kpps.
234 | | ...
235 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
236 | | ...
237 | | ${framesize}= | Set Variable | ${64}
238 | | ${min_rate}= | Set Variable | ${100000}
239 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
240 | | ${binary_min}= | Set Variable | ${min_rate}
241 | | ${binary_max}= | Set Variable | ${max_rate}
242 | | ${threshold}= | Set Variable | ${min_rate}
243 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
244 | | And Add PCI devices to DUTs from 3-node single link topology
245 | | And Add No Multi Seg to all DUTs
246 | | And Apply startup configuration on all VPP DUTs
247 | | And L2 bridge domain initialized in a 3-node circular topology
248 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
249 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
250 | | ... | ${threshold}
251
252 | tc15-1518B-4t4c-eth-l2bdbasemaclrn-ndrdisc
253 | | [Documentation]
254 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
255 | | ... | 2 receive queues per NIC port.
256 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at\
257 | | ... | 24.5G rate, step 10kpps.
258 | | ...
259 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
260 | | ...
261 | | ${framesize}= | Set Variable | ${1518}
262 | | ${min_rate}= | Set Variable | ${10000}
263 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
264 | | ${binary_min}= | Set Variable | ${min_rate}
265 | | ${binary_max}= | Set Variable | ${max_rate}
266 | | ${threshold}= | Set Variable | ${min_rate}
267 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
268 | | And Add PCI devices to DUTs from 3-node single link topology
269 | | And Add No Multi Seg to all DUTs
270 | | And Apply startup configuration on all VPP DUTs
271 | | And L2 bridge domain initialized in a 3-node circular topology
272 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
273 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
274 | | ... | ${threshold}
275
276 | tc19-IMIX-1t1c-eth-l2bdbasemaclrn-ndrdisc
277 | | [Documentation]
278 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
279 | | ... | 1 receive queue per NIC port.
280 | | ... | [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at\
281 | | ... | 24.5G rate, step 100kpps.
282 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
283 | | ...
284 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
285 | | ...
286 | | ${framesize}= | Set Variable | IMIX_v4_1
287 | | ${min_rate}= | Set Variable | ${100000}
288 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
289 | | ${binary_min}= | Set Variable | ${min_rate}
290 | | ${binary_max}= | Set Variable | ${max_rate}
291 | | ${threshold}= | Set Variable | ${min_rate}
292 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
293 | | And Add all PCI devices to all DUTs
294 | | And Add No Multi Seg to all DUTs
295 | | And Apply startup configuration on all VPP DUTs
296 | | And L2 bridge domain initialized in a 3-node circular topology
297 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
298 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
299 | | ... | ${threshold}
300
301 | tc20-IMIX-2t2c-eth-l2bdbasemaclrn-ndrdisc
302 | | [Documentation]
303 | | ... | [Cfg] DUT runs L2BD switching config with 2 thread, 2 phy core,\
304 | | ... | 1 receive queue per NIC port.
305 | | ... | [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at\
306 | | ... | 24.5G rate, step 100kpps.
307 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
308 | | ...
309 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
310 | | ...
311 | | ${framesize}= | Set Variable | IMIX_v4_1
312 | | ${min_rate}= | Set Variable | ${100000}
313 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${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 all PCI devices to all DUTs
319 | | And Add No Multi Seg to all DUTs
320 | | And Apply startup configuration on all VPP DUTs
321 | | And L2 bridge domain initialized in a 3-node circular topology
322 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
323 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
324 | | ... | ${threshold}
325
326 | tc21-IMIX-4t4c-eth-l2bdbasemaclrn-ndrdisc
327 | | [Documentation]
328 | | ... | [Cfg] DUT runs L2BD switching config with 4 thread, 4 phy core,\
329 | | ... | 2 receive queue per NIC port.
330 | | ... | [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at\
331 | | ... | 24.5G rate, step 100kpps.
332 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
333 | | ...
334 | | [Tags] | IMIX | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
335 | | ...
336 | | ${framesize}= | Set Variable | IMIX_v4_1
337 | | ${min_rate}= | Set Variable | ${100000}
338 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
339 | | ${binary_min}= | Set Variable | ${min_rate}
340 | | ${binary_max}= | Set Variable | ${max_rate}
341 | | ${threshold}= | Set Variable | ${min_rate}
342 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
343 | | And Add all PCI devices to all DUTs
344 | | And Add No Multi Seg to all DUTs
345 | | And Apply startup configuration on all VPP DUTs
346 | | And L2 bridge domain initialized in a 3-node circular topology
347 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
348 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
349 | | ... | ${threshold}