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