CSIT-678: Re-organize L2 libraries - performance
[csit.git] / tests / perf / 10ge2p1vic1227-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_setup.robot
16 | ...
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
18 | ... | NIC_Cisco-VIC-1227 | ETH | L2BDMACLRN | BASE
19 | ...
20 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
21 | ... | L2 | Cisco-VIC-1227
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 NIC
36 | ... | Cisco-VIC-1227.
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, 253 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 # Cisco-VIC-1227 bandwidth limit
53 | ${s_limit} | ${10000000000}
54 # Traffic profile:
55 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
56
57 *** Keywords ***
58 | L2 Bridge Domain NDR Binary Search
59 | | [Arguments] | ${framesize} | ${min_rate} | ${wt} | ${rxq}
60 | | # Test Variables required for test teardown
61 | | Set Test Variable | ${framesize}
62 | | Set Test Variable | ${min_rate}
63 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
64 | | ${binary_min}= | Set Variable | ${min_rate}
65 | | ${binary_max}= | Set Variable | ${max_rate}
66 | | ${threshold}= | Set Variable | ${min_rate}
67 | | Set Test Documentation | [Cfg] DUT runs L2BD switching config with ${wt}\
68 | | Set Test Documentation | thread, ${wt} phy core, ${rxq}\ | append=True
69 | | Set Test Documentation | receive queue per NIC port. | append=True
70 | | Set Test Documentation | [Ver] Find NDR for ${framesize} Byte\ | append=True
71 | | Set Test Documentation | frames using binary search start at\ | append=True
72 | | Set Test Documentation | 10GE linerate, step ${threshold}pps. | append=True
73 | | Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
74 | | Add PCI devices to DUTs in 3-node single link topology
75 | | Run Keyword If | ${framesize} < ${1522} | Add no multi seg to all DUTs
76 | | Apply startup configuration on all VPP DUTs
77 | | Initialize L2 bridge domain in 3-node circular topology
78 | | Find NDR using binary search and pps
79 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
80 | | ... | ${min_rate} | ${max_rate} | ${threshold}
81
82 | L2 Bridge Domain PDR Binary Search
83 | | [Arguments] | ${framesize} | ${min_rate} | ${wt} | ${rxq}
84 | | # Test Variables required for test teardown
85 | | Set Test Variable | ${framesize}
86 | | Set Test Variable | ${min_rate}
87 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
88 | | ${binary_min}= | Set Variable | ${min_rate}
89 | | ${binary_max}= | Set Variable | ${max_rate}
90 | | ${threshold}= | Set Variable | ${min_rate}
91 | | Set Test Documentation | [Cfg] DUT runs L2BD switching config with ${wt}\
92 | | Set Test Documentation | thread, ${wt} phy core, ${rxq}\ | append=True
93 | | Set Test Documentation | receive queue per NIC port. | append=True
94 | | Set Test Documentation | [Ver] Find PDR for ${framesize} Byte\ | append=True
95 | | Set Test Documentation | frames using binary search start at\ | append=True
96 | | Set Test Documentation | 10GE linerate, step ${threshold}pps, | append=True
97 | | Set Test Documentation | LT=${perf_pdr_loss_acceptance} | append=True
98 | | Set Test Documentation | ${perf_pdr_loss_acceptance_type}. | append=True
99 | | Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
100 | | Add PCI devices to DUTs in 3-node single link topology
101 | | Run Keyword If | ${framesize} < ${1522} | Add no multi seg to all DUTs
102 | | Apply startup configuration on all VPP DUTs
103 | | Initialize L2 bridge domain in 3-node circular topology
104 | | Find PDR using binary search and pps
105 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
106 | | ... | ${min_rate} | ${max_rate} | ${threshold}
107 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
108
109 *** Test Cases ***
110 | tc01-64B-1t1c-eth-l2bdbasemaclrn-ndrdisc
111 | | ... | framesize=${64} | min_rate=${100000} | wt=1 | rxq=1
112 | | [Documentation]
113 | | ... | [Cfg] DUT runs L2BD switching config with with\
114 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
115 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
116 | | ... | linerate, step 100kpps.
117 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
118 | | [Template] | L2 Bridge Domain NDR Binary Search
119
120 | tc02-64B-1t1c-eth-l2bdbasemaclrn-pdrdisc
121 | | ... | framesize=${64} | min_rate=${100000} | wt=1 | rxq=1
122 | | [Documentation]
123 | | ... | [Cfg] DUT runs L2BD switching config with with\
124 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
125 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
126 | | ... | linerate, step 100kpps, LT=0.5%.
127 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
128 | | [Template] | L2 Bridge Domain PDR Binary Search
129
130 | tc03-1518B-1t1c-eth-l2bdbasemaclrn-ndrdisc
131 | | ... | framesize=${1518} | min_rate=${10000} | wt=1 | rxq=1
132 | | [Documentation]
133 | | ... | [Cfg] DUT runs L2BD switching config with with\
134 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
135 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
136 | | ... | linerate, step 10kpps.
137 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
138 | | [Template] | L2 Bridge Domain NDR Binary Search
139
140 | tc04-1518B-1t1c-eth-l2bdbasemaclrn-pdrdisc
141 | | ... | framesize=${1518} | min_rate=${10000} | wt=1 | rxq=1
142 | | [Documentation]
143 | | ... | [Cfg] DUT runs L2BD switching config with with\
144 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
145 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
146 | | ... | linerate, step 10kpps, LT=0.5%.
147 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
148 | | [Template] | L2 Bridge Domain PDR Binary Search
149
150 | tc05-9000B-1t1c-eth-l2bdbasemaclrn-ndrdisc
151 | | ... | framesize=${9000} | min_rate=${10000} | wt=1 | rxq=1
152 | | [Documentation]
153 | | ... | [Cfg] DUT runs L2BD switching config with with\
154 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
155 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
156 | | ... | linerate, step 10kpps.
157 | | [Tags] | 9000B | 1T1C | STHREAD | NDRDISC
158 | | [Template] | L2 Bridge Domain NDR Binary Search
159
160 | tc06-9000B-1t1c-eth-l2bdbasemaclrn-pdrdisc
161 | | ... | framesize=${9000} | min_rate=${10000} | wt=1 | rxq=1
162 | | [Documentation]
163 | | ... | [Cfg] DUT runs L2BD switching config with with\
164 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
165 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
166 | | ... | linerate, step 10kpps, LT=0.5%.
167 | | [Tags] | 9000B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
168 | | [Template] | L2 Bridge Domain PDR Binary Search
169
170 | tc07-64B-2t2c-eth-l2bdbasemaclrn-ndrdisc
171 | | ... | framesize=${64} | min_rate=${100000} | wt=2 | rxq=1
172 | | [Documentation]
173 | | ... | [Cfg] DUT runs L2BD switching config with with\
174 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
175 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
176 | | ... | linerate, step 100kpps.
177 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
178 | | [Template] | L2 Bridge Domain NDR Binary Search
179
180 | tc08-64B-2t2c-eth-l2bdbasemaclrn-pdrdisc
181 | | ... | framesize=${64} | min_rate=${100000} | wt=2 | rxq=1
182 | | [Documentation]
183 | | ... | [Cfg] DUT runs L2BD switching config with with\
184 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
185 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
186 | | ... | linerate, step 100kpps, LT=0.5%.
187 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
188 | | [Template] | L2 Bridge Domain PDR Binary Search
189
190 | tc09-1518B-2t2c-eth-l2bdbasemaclrn-ndrdisc
191 | | ... | framesize=${1518} | min_rate=${10000} | wt=2 | rxq=1
192 | | [Documentation]
193 | | ... | [Cfg] DUT runs L2BD switching config with with\
194 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
195 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
196 | | ... | linerate, step 10kpps.
197 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
198 | | [Template] | L2 Bridge Domain NDR Binary Search
199
200 | tc10-1518B-2t2c-eth-l2bdbasemaclrn-pdrdisc
201 | | ... | framesize=${1518} | min_rate=${10000} | wt=2 | rxq=1
202 | | [Documentation]
203 | | ... | [Cfg] DUT runs L2BD switching config with with\
204 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
205 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
206 | | ... | linerate, step 10kpps, LT=0.5%.
207 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
208 | | [Template] | L2 Bridge Domain PDR Binary Search
209
210 | tc11-9000B-2t2c-eth-l2bdbasemaclrn-ndrdisc
211 | | ... | framesize=${9000} | min_rate=${10000} | wt=2 | rxq=1
212 | | [Documentation]
213 | | ... | [Cfg] DUT runs L2BD switching config with with\
214 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
215 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
216 | | ... | linerate, step 10kpps.
217 | | [Tags] | 9000B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
218 | | [Template] | L2 Bridge Domain NDR Binary Search
219
220 | tc12-9000B-2t2c-eth-l2bdbasemaclrn-pdrdisc
221 | | ... | framesize=${9000} | min_rate=${10000} | wt=2 | rxq=1
222 | | [Documentation]
223 | | ... | [Cfg] DUT runs L2BD switching config with with\
224 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
225 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
226 | | ... | linerate, step 10kpps, LT=0.5%.
227 | | [Tags] | 9000B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
228 | | [Template] | L2 Bridge Domain PDR Binary Search
229
230 | tc13-64B-4t4c-eth-l2bdbasemaclrn-ndrdisc
231 | | ... | framesize=${64} | min_rate=${100000} | wt=4 | rxq=2
232 | | [Documentation]
233 | | ... | [Cfg] DUT runs L2BD switching config with with\
234 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
235 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
236 | | ... | linerate, step 100kpps.
237 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
238 | | [Template] | L2 Bridge Domain NDR Binary Search
239
240 | tc14-64B-4t4c-eth-l2bdbasemaclrn-pdrdisc
241 | | ... | framesize=${64} | min_rate=${100000} | wt=4 | rxq=2
242 | | [Documentation]
243 | | ... | [Cfg] DUT runs L2BD switching config with with\
244 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
245 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
246 | | ... | linerate, step 100kpps, LT=0.5%.
247 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
248 | | [Template] | L2 Bridge Domain PDR Binary Search
249
250 | tc15-1518B-4t4c-eth-l2bdbasemaclrn-ndrdisc
251 | | ... | framesize=${1518} | min_rate=${10000} | wt=4 | rxq=2
252 | | [Documentation]
253 | | ... | [Cfg] DUT runs L2BD switching config with with\
254 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
255 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
256 | | ... | linerate, step 10kpps.
257 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
258 | | [Template] | L2 Bridge Domain NDR Binary Search
259
260 | tc16-1518B-4t4c-eth-l2bdbasemaclrn-pdrdisc
261 | | ... | framesize=${1518} | min_rate=${10000} | wt=4 | rxq=2
262 | | [Documentation]
263 | | ... | [Cfg] DUT runs L2BD switching config with with\
264 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
265 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
266 | | ... | linerate, step 10kpps, LT=0.5%.
267 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
268 | | [Template] | L2 Bridge Domain PDR Binary Search
269
270 | tc17-9000B-4t4c-eth-l2bdbasemaclrn-ndrdisc
271 | | ... | framesize=${9000} | min_rate=${10000} | wt=4 | rxq=2
272 | | [Documentation]
273 | | ... | [Cfg] DUT runs L2BD switching config with with\
274 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
275 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
276 | | ... | linerate, step 10kpps.
277 | | [Tags] | 9000B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
278 | | [Template] | L2 Bridge Domain NDR Binary Search
279
280 | tc18-9000B-4t4c-eth-l2bdbasemaclrn-pdrdisc
281 | | ... | framesize=${9000} | min_rate=${10000} | wt=4 | rxq=2
282 | | [Documentation]
283 | | ... | [Cfg] DUT runs L2BD switching config with with\
284 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
285 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
286 | | ... | linerate, step 10kpps, LT=0.5%.
287 | | [Tags] | 9000B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
288 | | [Template] | L2 Bridge Domain PDR Binary Search