9629650436c23b4ef1da9373f6b3bd03b6c2e831
[csit.git] / tests / perf / 40ge2p1vic1385-eth-l2bdbasemaclrn-ndrdisc.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 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
18 | ...        | NIC_Cisco-VIC-1385 | ETH | L2BDMACLRN | BASE
19 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
20 | ... | L2 | Cisco-VIC-1385
21 | Suite Teardown | 3-node Performance Suite Teardown
22 | Test Setup | Setup all DUTs before test
23 | Test Teardown | Run Keywords
24 | ...           | Run Keyword If Test Failed
25 | ...           | Traffic should pass with no loss | 10
26 | ...           | ${min_rate}pps | ${framesize} | 3-node-bridge
27 | ...           | fail_on_loss=${False}
28 | ...           | AND | Remove startup configuration of VPP from all DUTs
29 | ...           | AND | Show vpp trace dump on all DUTs
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
58 *** Test Cases ***
59 | tc01-64B-1t1c-eth-l2bdbasemaclrn-ndrdisc
60 | | [Documentation]
61 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
62 | | ... | 1 receive queue per NIC port.
63 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at\
64 | | ... | 18.75Mpps rate, step 100kpps.
65 | | ...
66 | | [Tags] | 1T1C | STHREAD | NDRDISC
67 | | ...
68 | | ${framesize}= | Set Variable | ${64}
69 | | ${min_rate}= | Set Variable | ${100000}
70 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
71 | | ${binary_min}= | Set Variable | ${min_rate}
72 | | ${binary_max}= | Set Variable | ${max_rate}
73 | | ${threshold}= | Set Variable | ${min_rate}
74 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
75 | | And Add PCI devices to DUTs from 3-node single link topology
76 | | And Add No Multi Seg to all DUTs
77 | | And Apply startup configuration on all VPP DUTs
78 | | And L2 bridge domain initialized in a 3-node circular topology
79 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
80 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
81 | | ... | ${threshold}
82
83 | tc02-64B-1t1c-eth-l2bdbasemaclrn-pdrdisc
84 | | [Documentation]
85 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
86 | | ... | 1 receive queue per NIC port.
87 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at\
88 | | ... | 18.75Mpps rate, step 100kpps.
89 | | ...
90 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
91 | | ...
92 | | ${framesize}= | Set Variable | ${64}
93 | | ${min_rate}= | Set Variable | ${100000}
94 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
95 | | ${binary_min}= | Set Variable | ${min_rate}
96 | | ${binary_max}= | Set Variable | ${max_rate}
97 | | ${threshold}= | Set Variable | ${min_rate}
98 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
99 | | And Add PCI devices to DUTs from 3-node single link topology
100 | | And Add No Multi Seg to all DUTs
101 | | And Apply startup configuration on all VPP DUTs
102 | | And L2 bridge domain initialized in a 3-node circular topology
103 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
104 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
105 | | ... | ${threshold} | ${glob_loss_acceptance} | ${glob_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] | 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] | 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] | 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] | 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} | ${glob_loss_acceptance} | ${glob_loss_acceptance_type}
202
203 | tc09-1518B-2t2c-eth-l2bdbasemaclrn-ndrdisc
204 | | [Documentation]
205 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
206 | | ... | 1 receive queue per NIC port.
207 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at\
208 | | ... | 24.5G rate, step 10kpps.
209 | | ...
210 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
211 | | ...
212 | | ${framesize}= | Set Variable | ${1518}
213 | | ${min_rate}= | Set Variable | ${10000}
214 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${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 rxqueues '1' in 3-node single-link topo
219 | | And Add PCI devices to DUTs from 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 L2 bridge domain initialized in a 3-node circular topology
223 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
224 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
225 | | ... | ${threshold}
226
227 | tc13-64B-4t4c-eth-l2bdbasemaclrn-ndrdisc
228 | | [Documentation]
229 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
230 | | ... | 2 receive queues per NIC port.
231 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at\
232 | | ... | 18.75Mpps rate, step 100kpps.
233 | | ...
234 | | [Tags] | 4T4C | MTHREAD | NDRDISC
235 | | ...
236 | | ${framesize}= | Set Variable | ${64}
237 | | ${min_rate}= | Set Variable | ${100000}
238 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
239 | | ${binary_min}= | Set Variable | ${min_rate}
240 | | ${binary_max}= | Set Variable | ${max_rate}
241 | | ${threshold}= | Set Variable | ${min_rate}
242 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
243 | | And Add PCI devices to DUTs from 3-node single link topology
244 | | And Add No Multi Seg to all DUTs
245 | | And Apply startup configuration on all VPP DUTs
246 | | And L2 bridge domain initialized in a 3-node circular topology
247 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
248 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
249 | | ... | ${threshold}
250
251 | tc15-1518B-4t4c-eth-l2bdbasemaclrn-ndrdisc
252 | | [Documentation]
253 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
254 | | ... | 2 receive queues per NIC port.
255 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at\
256 | | ... | 24.5G rate, step 10kpps.
257 | | ...
258 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
259 | | ...
260 | | ${framesize}= | Set Variable | ${1518}
261 | | ${min_rate}= | Set Variable | ${10000}
262 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
263 | | ${binary_min}= | Set Variable | ${min_rate}
264 | | ${binary_max}= | Set Variable | ${max_rate}
265 | | ${threshold}= | Set Variable | ${min_rate}
266 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
267 | | And Add PCI devices to DUTs from 3-node single link topology
268 | | And Add No Multi Seg to all DUTs
269 | | And Apply startup configuration on all VPP DUTs
270 | | And L2 bridge domain initialized in a 3-node circular topology
271 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
272 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
273 | | ... | ${threshold}
274
275 | tc19-IMIX-1t1c-eth-l2bdbasemaclrn-ndrdisc
276 | | [Documentation]
277 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
278 | | ... | 1 receive queue per NIC port.
279 | | ... | [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at\
280 | | ... | 24.5G rate, step 100kpps.
281 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
282 | | ...
283 | | [Tags] | 1T1C | STHREAD | NDRDISC
284 | | ...
285 | | ${framesize}= | Set Variable | IMIX_v4_1
286 | | ${min_rate}= | Set Variable | ${100000}
287 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
288 | | ${binary_min}= | Set Variable | ${min_rate}
289 | | ${binary_max}= | Set Variable | ${max_rate}
290 | | ${threshold}= | Set Variable | ${min_rate}
291 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
292 | | And Add all PCI devices to all DUTs
293 | | And Add No Multi Seg to all DUTs
294 | | And Apply startup configuration on all VPP DUTs
295 | | And L2 bridge domain initialized in a 3-node circular topology
296 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
297 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
298 | | ... | ${threshold}
299
300 | tc20-IMIX-2t2c-eth-l2bdbasemaclrn-ndrdisc
301 | | [Documentation]
302 | | ... | [Cfg] DUT runs L2BD switching config with 2 thread, 2 phy core,\
303 | | ... | 1 receive queue per NIC port.
304 | | ... | [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at\
305 | | ... | 24.5G rate, step 100kpps.
306 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
307 | | ...
308 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
309 | | ...
310 | | ${framesize}= | Set Variable | IMIX_v4_1
311 | | ${min_rate}= | Set Variable | ${100000}
312 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
313 | | ${binary_min}= | Set Variable | ${min_rate}
314 | | ${binary_max}= | Set Variable | ${max_rate}
315 | | ${threshold}= | Set Variable | ${min_rate}
316 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
317 | | And Add all PCI devices to all DUTs
318 | | And Add No Multi Seg to all DUTs
319 | | And Apply startup configuration on all VPP DUTs
320 | | And L2 bridge domain initialized in a 3-node circular topology
321 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
322 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
323 | | ... | ${threshold}
324
325 | tc21-IMIX-4t4c-eth-l2bdbasemaclrn-ndrdisc
326 | | [Documentation]
327 | | ... | [Cfg] DUT runs L2BD switching config with 4 thread, 4 phy core,\
328 | | ... | 2 receive queue per NIC port.
329 | | ... | [Ver] Find NDR for IMIX_v4_1 frame size using binary search start at\
330 | | ... | 24.5G rate, step 100kpps.
331 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
332 | | ...
333 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
334 | | ...
335 | | ${framesize}= | Set Variable | IMIX_v4_1
336 | | ${min_rate}= | Set Variable | ${100000}
337 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${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 all PCI devices to all DUTs
343 | | And Add No Multi Seg to all DUTs
344 | | And Apply startup configuration on all VPP DUTs
345 | | And L2 bridge domain initialized in a 3-node circular topology
346 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
347 | | ... | ${binary_max} | 3-node-bridge | ${min_rate} | ${max_rate}
348 | | ... | ${threshold}