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