CSIT-699: Add l2bd+dot1q perf tests
[csit.git] / tests / vpp / perf / l2 / 10ge2p1x520-dot1q-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 | ...
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
18 | ... | NIC_Intel-X520-DA2 | BASE | DOT1Q | L2BDMACLRN
19 | ...
20 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
21 | ... | L2 | Intel-X520-DA2
22 | Suite Teardown | Tear down 3-node performance topology
23 | ...
24 | Test Setup | Set up performance test
25 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
26 | ... | ${framesize} | ${traffic_profile}
27 | ...
28 | Documentation | *RFC2544: Packet throughput L2BD test cases with vhost*
29 | ...
30 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
31 | ... | with single links between nodes.
32 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 switching of IPv4.\
33 | ... | 802.1q tagging is applied on link between DUT1 and DUT2.
34 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 bridge\
35 | ... | domain and MAC learning enabled. DUT1 and DUT2 tested with 2p10GE NIC
36 | ... | 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, 254 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 | ${subid}= | 10
53 | ${tag_rewrite}= | pop-1
54 | ${vlan_overhead}= | ${4}
55 | ${avg_imix_framesize}= | ${357.833}
56 # X520-DA2 bandwidth limit
57 | ${s_limit} | ${10000000000}
58 # Bridge domain IDs
59 | ${bd_id1}= | 1
60 | ${bd_id2}= | 2
61 # Traffic profile:
62 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
63
64 *** Keywords ***
65 | Discover NDR or PDR for L2 Bridge Domain with VLAN
66 | | [Arguments] | ${wt} | ${rxq} | ${framesize} | ${min_rate} | ${search_type}
67 | | ...
68 | | Set Test Variable | ${framesize}
69 | | Set Test Variable | ${min_rate}
70 | | ${get_framesize}= | Set Variable If
71 | | ... | "${framesize}" == "IMIX_v4_1" | ${avg_imix_framesize}
72 | | ... |  ${framesize}
73 | | ${max_rate}= | Calculate pps | ${s_limit}
74 | | ... | ${get_framesize + ${vlan_overhead}}
75 | | ${binary_min}= | Set Variable | ${min_rate}
76 | | ${binary_max}= | Set Variable | ${max_rate}
77 | | ${threshold}= | Set Variable | ${min_rate}
78 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
79 | | And Add PCI devices to DUTs in 3-node single link topology
80 | | And Run Keyword If | ${get_framesize} < ${1522}
81 | | ... | Add no multi seg to all DUTs
82 | | And Apply startup configuration on all VPP DUTs
83 | | When Initialize L2 bridge domains with VLAN dot1q sub-interfaces in a 3-node circular topology
84 | | ... | ${bd_id1} | ${bd_id2} | ${subid} | ${tag_rewrite}
85 | | Run Keyword If | '${search_type}' == 'NDR'
86 | | ... | Find NDR using binary search and pps
87 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
88 | | ... | ${min_rate} | ${max_rate} | ${threshold}
89 | | ... | ELSE IF | '${search_type}' == 'PDR'
90 | | ... | Find PDR using binary search and pps
91 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
92 | | ... | ${min_rate} | ${max_rate} | ${threshold}
93 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
94
95 *** Test Cases ***
96 | tc01-64B-1t1c-dot1q-l2bdbasemaclrn-ndrdisc
97 | | [Documentation]
98 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
99 | | ... | 1 receive queue per NIC port.
100 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
101 | | ... | linerate, step 100kpps.
102 | | ...
103 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
104 | | ...
105 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with VLAN
106 | | wt=1 | rxq=1 | framesize=${64} | min_rate=${100000} | search_type=NDR
107
108 | tc02-64B-1t1c-dot1q-l2bdbasemaclrn-pdrdisc
109 | | [Documentation]
110 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
111 | | ... | 1 receive queue per NIC port.
112 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
113 | | ... | linerate, step 100kpps, LT=0.5%.
114 | | ...
115 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
116 | | ...
117 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with VLAN
118 | | wt=1 | rxq=1 | framesize=${64} | min_rate=${100000} | search_type=PDR
119
120 | tc03-1518B-1t1c-dot1q-l2bdbasemaclrn-ndrdisc
121 | | [Documentation]
122 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
123 | | ... | 1 receive queue per NIC port.
124 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
125 | | ... | linerate, step 10kpps.
126 | | ...
127 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
128 | | ...
129 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with VLAN
130 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${10000} | search_type=NDR
131
132 | tc04-1518B-1t1c-dot1q-l2bdbasemaclrn-pdrdisc
133 | | [Documentation]
134 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
135 | | ... | 1 receive queue per NIC port.
136 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
137 | | ... | linerate, step 10kpps, LT=0.5%.
138 | | ...
139 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
140 | | ...
141 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with VLAN
142 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${10000} | search_type=PDR
143
144 | tc05-IMIX-1t1c-dot1q-l2bdbasemaclrn-ndrdisc
145 | | [Documentation]
146 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
147 | | ... | 1 receive queue per NIC port.
148 | | ... | [Ver] Find NDR for IMIX_v4_1 framesize using binary search start at\
149 | | ... | 10GE linerate, step 10kpps.
150 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
151 | | ...
152 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
153 | | ...
154 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with VLAN
155 | | wt=1 | rxq=1 | framesize=IMIX_v4_1 | min_rate=${10000} | search_type=NDR
156
157 | tc06-IMIX-1t1c-dot1q-l2bdbasemaclrn-pdrdisc
158 | | [Documentation]
159 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
160 | | ... | 1 receive queue per NIC port.
161 | | ... | [Ver] Find PDR for IMIX_v4_1 framesize using binary search start at\
162 | | ... | 10GE linerate, step 10kpps, LT=0.5%.
163 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
164 | | ...
165 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
166 | | ...
167 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with VLAN
168 | | wt=1 | rxq=1 | framesize=IMIX_v4_1 | min_rate=${10000} | search_type=PDR
169
170 | tc07-64B-2t2c-dot1q-l2bdbasemaclrn-ndrdisc
171 | | [Documentation]
172 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
173 | | ... | 1 receive queue per NIC port.
174 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
175 | | ... | linerate, step 100kpps.
176 | | ...
177 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
178 | | ...
179 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with VLAN
180 | | wt=2 | rxq=1 | framesize=${64} | min_rate=${100000} | search_type=NDR
181
182 | tc08-64B-2t2c-dot1q-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 10GE\
187 | | ... | linerate, step 100kpps, LT=0.5%.
188 | | ...
189 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
190 | | ...
191 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with VLAN
192 | | wt=2 | rxq=1 | framesize=${64} | min_rate=${100000} | search_type=PDR
193
194 | tc09-1518B-2t2c-dot1q-l2bdbasemaclrn-ndrdisc
195 | | [Documentation]
196 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
197 | | ... | 1 receive queue per NIC port.
198 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
199 | | ... | linerate, step 10kpps.
200 | | ...
201 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
202 | | ...
203 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with VLAN
204 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${10000} | search_type=NDR
205
206 | tc10-1518B-2t2c-dot1q-l2bdbasemaclrn-pdrdisc
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 PDR for 1518 Byte frames using binary search start at 10GE\
211 | | ... | linerate, step 10kpps, LT=0.5%.
212 | | ...
213 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
214 | | ...
215 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with VLAN
216 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${10000} | search_type=PDR
217
218 | tc11-IMIX-2t2c-dot1q-l2bdbasemaclrn-ndrdisc
219 | | [Documentation]
220 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
221 | | ... | 1 receive queue per NIC port.
222 | | ... | [Ver] Find NDR for IMIX_v4_1 framesize using binary search start at\
223 | | ... | 10GE linerate, step 10kpps.
224 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
225 | | ...
226 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
227 | | ...
228 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with VLAN
229 | | wt=2 | rxq=1 | framesize=IMIX_v4_1 | min_rate=${10000} | search_type=NDR
230
231 | tc12-IMIX-2t2c-dot1q-l2bdbasemaclrn-pdrdisc
232 | | [Documentation]
233 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
234 | | ... | 1 receive queue per NIC port.
235 | | ... | [Ver] Find PDR for IMIX_v4_1 framesize using binary search start at\
236 | | ... | 10GE linerate, step 10kpps.
237 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
238 | | ...
239 | | [Tags] | IMIX | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
240 | | ...
241 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with VLAN
242 | | wt=2 | rxq=1 | framesize=IMIX_v4_1 | min_rate=${10000} | search_type=PDR
243
244 | tc13-64B-4t4c-dot1q-l2bdbasemaclrn-ndrdisc
245 | | [Documentation]
246 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
247 | | ... | 2 receive queues per NIC port.
248 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
249 | | ... | linerate, step 100kpps.
250 | | ...
251 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
252 | | ...
253 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with VLAN
254 | | wt=4 | rxq=2 | framesize=${64} | min_rate=${100000} | search_type=NDR
255
256 | tc14-64B-4t4c-dot1q-l2bdbasemaclrn-pdrdisc
257 | | [Documentation]
258 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
259 | | ... | 2 receive queues per NIC port.
260 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
261 | | ... | linerate, step 100kpps, LT=0.5%.
262 | | ...
263 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
264 | | ...
265 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with VLAN
266 | | wt=4 | rxq=2 | framesize=${64} | min_rate=${100000} | search_type=PDR
267
268 | tc15-1518B-4t4c-dot1q-l2bdbasemaclrn-ndrdisc
269 | | [Documentation]
270 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
271 | | ... | 2 receive queues per NIC port.
272 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
273 | | ... | linerate, step 10kpps.
274 | | ...
275 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
276 | | ...
277 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with VLAN
278 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${10000} | search_type=NDR
279
280 | tc16-1518B-4t4c-dot1q-l2bdbasemaclrn-pdrdisc
281 | | [Documentation]
282 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
283 | | ... | 2 receive queues per NIC port.
284 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
285 | | ... | linerate, step 10kpps, LT=0.5%.
286 | | ...
287 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
288 | | ...
289 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with VLAN
290 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${10000} | search_type=PDR
291
292 | tc17-IMIX-4t4c-dot1q-l2bdbasemaclrn-ndrdisc
293 | | [Documentation]
294 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
295 | | ... | 2 receive queues per NIC port.
296 | | ... | [Ver] Find NDR for IMIX_v4_1 framesize using binary search start at\
297 | | ... | 10GE linerate, step 10kpps.
298 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
299 | | ...
300 | | [Tags] | IMIX | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
301 | | ...
302 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with VLAN
303 | | wt=4 | rxq=2 | framesize=IMIX_v4_1 | min_rate=${10000} | search_type=NDR
304
305 | tc18-IMIX-4t4c-dot1q-l2bdbasemaclrn-pdrdisc
306 | | [Documentation]
307 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
308 | | ... | 2 receive queues per NIC port.
309 | | ... | [Ver] Find PDR for IMIX_v4_1 framesize using binary search start at\
310 | | ... | 10GE linerate, step 10kpps, LT=0.5%.
311 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
312 | | ...
313 | | [Tags] | IMIX | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
314 | | ...
315 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with VLAN
316 | | wt=4 | rxq=2 | framesize=IMIX_v4_1 | min_rate=${10000} | search_type=PDR