CSIT-786 L2FIB scale testing
[csit.git] / tests / vpp / perf / l2 / 10ge2p1x520-eth-l2bdscale100kmaclrn-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 | ETH | L2BDMACLRN | SCALE | L2BDBASE | FIB_100K
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 | ...
26 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
27 | ... | ${framesize} | ${traffic_profile}
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 2p10GE NI
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, 50k flows per flow-group) with all packets\
46 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static\
47 | ... | payload. MAC addresses ranges are incremented as follows:
48 | ... | port01_src ca:fe:00:00:00:00 - port01_src ca:fe:00:00:c3:4f,\
49 | ... | port01_dst fa:ce:00:00:00:00 - port01_dst fa:ce:00:00:c3:4f,\
50 | ... | port02_src fa:ce:00:00:00:00 - port02_src fa:ce:00:00:c3:4f,\
51 | ... | port02_dst ca:fe:00:00:00:00 - port02_dst ca:fe:00:00:c3:4f,\
52 | ... | *[Ref] Applicable standard specifications:* RFC2544.
53
54 *** Variables ***
55 # X520-DA2 bandwidth limit
56 | ${s_limit} | ${10000000000}
57 # Traffic profile:
58 | ${traffic_profile} | trex-sl-3n-ethip4-macsrc50kdst50k
59
60 *** Keywords ***
61 | L2 Bridge Domain Binary Search
62 | | [Arguments] | ${framesize} | ${min_rate} | ${wt} | ${rxq} | ${search_type}
63 | | Set Test Variable | ${framesize}
64 | | Set Test Variable | ${min_rate}
65 | | ${get_framesize}= | Set Variable If
66 | | ... | "${framesize}" == "IMIX_v4_1" | ${avg_imix_framesize} | ${framesize}
67 | | ${max_rate}= | Calculate pps | ${s_limit} | ${get_framesize}
68 | | ${binary_min}= | Set Variable | ${min_rate}
69 | | ${binary_max}= | Set Variable | ${max_rate}
70 | | ${threshold}= | Set Variable | ${min_rate}
71 | | Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
72 | | Add PCI devices to DUTs in 3-node single link topology
73 | | Run Keyword If | ${get_framesize} < ${1522} | Add No Multi Seg to all DUTs
74 | | Apply startup configuration on all VPP DUTs
75 | | Initialize L2 bridge domain in 3-node circular topology
76 | | Run Keyword If | '${search_type}' == 'NDR'
77 | | ... | Find NDR using binary search and pps
78 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
79 | | ... | ${min_rate} | ${max_rate} | ${threshold}
80 | | ... | ELSE IF | '${search_type}' == 'PDR'
81 | | ... | Find PDR using binary search and pps
82 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
83 | | ... | ${min_rate} | ${max_rate} | ${threshold}
84 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
85
86 *** Test Cases ***
87 | tc01-64B-1t1c-eth-l2bdscale100kmaclrn-ndrdisc
88 | | [Documentation]
89 | | ... | [Cfg] DUT runs L2BD switching config with with\
90 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
91 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
92 | | ... | linerate, step 100kpps.
93 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
94 | | [Template] | L2 Bridge Domain Binary Search
95 | | framesize=${64} | min_rate=${100000} | wt=1 | rxq=1 | search_type=NDR
96
97 | tc02-64B-1t1c-eth-l2bdscale100kmaclrn-pdrdisc
98 | | [Documentation]
99 | | ... | [Cfg] DUT runs L2BD switching config with with\
100 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
101 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
102 | | ... | linerate, step 100kpps, LT=0.5%.
103 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
104 | | [Template] | L2 Bridge Domain Binary Search
105 | | framesize=${64} | min_rate=${100000} | wt=1 | rxq=1 | search_type=PDR
106
107 | tc03-1518B-1t1c-eth-l2bdscale100kmaclrn-ndrdisc
108 | | [Documentation]
109 | | ... | [Cfg] DUT runs L2BD switching config with with\
110 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
111 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
112 | | ... | linerate, step 10kpps.
113 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
114 | | [Template] | L2 Bridge Domain Binary Search
115 | | framesize=${1518} | min_rate=${10000} | wt=1 | rxq=1 | search_type=NDR
116
117 | tc04-1518B-1t1c-eth-l2bdscale100kmaclrn-pdrdisc
118 | | [Documentation]
119 | | ... | [Cfg] DUT runs L2BD switching config with with\
120 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
121 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
122 | | ... | linerate, step 10kpps, LT=0.5%.
123 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
124 | | [Template] | L2 Bridge Domain Binary Search
125 | | framesize=${1518} | min_rate=${10000} | wt=1 | rxq=1 | search_type=PDR
126
127 | tc05-9000B-1t1c-eth-l2bdscale100kmaclrn-ndrdisc
128 | | [Documentation]
129 | | ... | [Cfg] DUT runs L2BD switching config with with\
130 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
131 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
132 | | ... | linerate, step 10kpps.
133 | | [Tags] | 9000B | 1T1C | STHREAD | NDRDISC
134 | | [Template] | L2 Bridge Domain Binary Search
135 | | framesize=${9000} | min_rate=${10000} | wt=1 | rxq=1 | search_type=NDR
136
137 | tc06-9000B-1t1c-eth-l2bdscale100kmaclrn-pdrdisc
138 | | [Documentation]
139 | | ... | [Cfg] DUT runs L2BD switching config with with\
140 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
141 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
142 | | ... | linerate, step 10kpps, LT=0.5%.
143 | | [Tags] | 9000B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
144 | | [Template] | L2 Bridge Domain Binary Search
145 | | framesize=${9000} | min_rate=${10000} | wt=1 | rxq=1 | search_type=PDR
146
147 | tc07-64B-2t2c-eth-l2bdscale100kmaclrn-ndrdisc
148 | | [Documentation]
149 | | ... | [Cfg] DUT runs L2BD switching config with with\
150 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
151 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
152 | | ... | linerate, step 100kpps.
153 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
154 | | [Template] | L2 Bridge Domain Binary Search
155 | | framesize=${64} | min_rate=${100000} | wt=2 | rxq=1 | search_type=NDR
156
157 | tc08-64B-2t2c-eth-l2bdscale100kmaclrn-pdrdisc
158 | | [Documentation]
159 | | ... | [Cfg] DUT runs L2BD switching config with with\
160 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
161 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
162 | | ... | linerate, step 100kpps, LT=0.5%.
163 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
164 | | [Template] | L2 Bridge Domain Binary Search
165 | | framesize=${64} | min_rate=${100000} | wt=2 | rxq=1 | search_type=PDR
166
167 | tc09-1518B-2t2c-eth-l2bdscale100kmaclrn-ndrdisc
168 | | [Documentation]
169 | | ... | [Cfg] DUT runs L2BD switching config with with\
170 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
171 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
172 | | ... | linerate, step 10kpps.
173 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
174 | | [Template] | L2 Bridge Domain Binary Search
175 | | framesize=${1518} | min_rate=${10000} | wt=2 | rxq=1 | search_type=NDR
176
177 | tc10-1518B-2t2c-eth-l2bdscale100kmaclrn-pdrdisc
178 | | [Documentation]
179 | | ... | [Cfg] DUT runs L2BD switching config with with\
180 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
181 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
182 | | ... | linerate, step 10kpps, LT=0.5%.
183 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
184 | | [Template] | L2 Bridge Domain Binary Search
185 | | framesize=${1518} | min_rate=${10000} | wt=2 | rxq=1 | search_type=PDR
186
187 | tc11-9000B-2t2c-eth-l2bdscale100kmaclrn-ndrdisc
188 | | [Documentation]
189 | | ... | [Cfg] DUT runs L2BD switching config with with\
190 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
191 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
192 | | ... | linerate, step 10kpps.
193 | | [Tags] | 9000B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
194 | | [Template] | L2 Bridge Domain Binary Search
195 | | framesize=${9000} | min_rate=${10000} | wt=2 | rxq=1 | search_type=NDR
196
197 | tc12-9000B-2t2c-eth-l2bdscale100kmaclrn-pdrdisc
198 | | [Documentation]
199 | | ... | [Cfg] DUT runs L2BD switching config with with\
200 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
201 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
202 | | ... | linerate, step 10kpps, LT=0.5%.
203 | | [Tags] | 9000B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
204 | | [Template] | L2 Bridge Domain Binary Search
205 | | framesize=${9000} | min_rate=${10000} | wt=2 | rxq=1 | search_type=PDR
206
207 | tc13-64B-4t4c-eth-l2bdscale100kmaclrn-ndrdisc
208 | | [Documentation]
209 | | ... | [Cfg] DUT runs L2BD switching config with with\
210 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
211 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
212 | | ... | linerate, step 100kpps.
213 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
214 | | [Template] | L2 Bridge Domain Binary Search
215 | | framesize=${64} | min_rate=${100000} | wt=4 | rxq=2 | search_type=NDR
216
217 | tc14-64B-4t4c-eth-l2bdscale100kmaclrn-pdrdisc
218 | | [Documentation]
219 | | ... | [Cfg] DUT runs L2BD switching config with with\
220 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
221 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
222 | | ... | linerate, step 100kpps, LT=0.5%.
223 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
224 | | [Template] | L2 Bridge Domain Binary Search
225 | | framesize=${64} | min_rate=${100000} | wt=4 | rxq=2 | search_type=PDR
226
227 | tc15-1518B-4t4c-eth-l2bdscale100kmaclrn-ndrdisc
228 | | [Documentation]
229 | | ... | [Cfg] DUT runs L2BD switching config with with\
230 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
231 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
232 | | ... | linerate, step 10kpps.
233 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
234 | | [Template] | L2 Bridge Domain Binary Search
235 | | framesize=${1518} | min_rate=${10000} | wt=4 | rxq=2 | search_type=NDR
236
237 | tc16-1518B-4t4c-eth-l2bdscale100kmaclrn-pdrdisc
238 | | [Documentation]
239 | | ... | [Cfg] DUT runs L2BD switching config with with\
240 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
241 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
242 | | ... | linerate, step 10kpps, LT=0.5%.
243 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
244 | | [Template] | L2 Bridge Domain Binary Search
245 | | framesize=${1518} | min_rate=${10000} | wt=4 | rxq=2 | search_type=PDR
246
247 | tc17-9000B-4t4c-eth-l2bdscale100kmaclrn-ndrdisc
248 | | [Documentation]
249 | | ... | [Cfg] DUT runs L2BD switching config with with\
250 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
251 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
252 | | ... | linerate, step 10kpps.
253 | | [Tags] | 9000B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
254 | | [Template] | L2 Bridge Domain Binary Search
255 | | ... | framesize=${9000} | min_rate=${10000} | wt=4 | rxq=2 | search_type=NDR
256
257 | tc18-9000B-4t4c-eth-l2bdscale100kmaclrn-pdrdisc
258 | | [Documentation]
259 | | ... | [Cfg] DUT runs L2BD switching config with with\
260 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
261 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
262 | | ... | linerate, step 10kpps, LT=0.5%.
263 | | [Tags] | 9000B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
264 | | [Template] | L2 Bridge Domain Binary Search
265 | | framesize=${9000} | min_rate=${10000} | wt=4 | rxq=2 | search_type=PDR
266