CSIT-562 HC Test: Persistence suite rework, part1
[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.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 | 3-node Performance Suite Setup with DUT's NIC model
21 | ... | L2 | Cisco-VIC-1227
22 | Suite Teardown | 3-node Performance Suite Teardown
23 | ...
24 | Test Setup | Performance test setup
25 | Test Teardown | Performance test teardown | ${min_rate}pps | ${framesize}
26 | ... | 3-node-bridge
27 | ...
28 | Documentation | *RFC2544: Pkt throughput L2BD test cases*
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 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 bridge-\
34 | ... | domain and MAC learning enabled. DUT1 and DUT2 tested with 2p10GE NIC
35 | ... | Cisco-VIC-1227.
36 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop\
37 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop\
38 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage\
39 | ... | of packets transmitted. NDR and PDR are discovered for different\
40 | ... | Ethernet L2 frame sizes using either binary search or linear search\
41 | ... | algorithms with configured starting rate and final step that determines\
42 | ... | throughput measurement resolution. Test packets are generated by TG on\
43 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups\
44 | ... | (flow-group per direction, 253 flows per flow-group) with all packets\
45 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static\
46 | ... | payload. MAC addresses are matching MAC addresses of the TG node\
47 | ... | interfaces.
48 | ... | *[Ref] Applicable standard specifications:* RFC2544.
49
50 *** Variables ***
51 # Cisco-VIC-1227 bandwidth limit
52 | ${s_limit} | ${10000000000}
53
54 *** Keywords ***
55 | L2 Bridge Domain NDR Binary Search
56 | | [Arguments] | ${framesize} | ${min_rate} | ${wt} | ${rxq}
57 | | # Test Variables required for test teardown
58 | | Set Test Variable | ${framesize}
59 | | Set Test Variable | ${min_rate}
60 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
61 | | ${binary_min}= | Set Variable | ${min_rate}
62 | | ${binary_max}= | Set Variable | ${max_rate}
63 | | ${threshold}= | Set Variable | ${min_rate}
64 | | Set Test Documentation | [Cfg] DUT runs L2BD switching config with ${wt}\
65 | | Set Test Documentation | thread, ${wt} phy core, ${rxq}\ | append=True
66 | | Set Test Documentation | receive queue per NIC port. | append=True
67 | | Set Test Documentation | [Ver] Find NDR for ${framesize} Byte\ | append=True
68 | | Set Test Documentation | frames using binary search start at\ | append=True
69 | | Set Test Documentation | 10GE linerate, step ${threshold}pps. | append=True
70 | | Add '${wt}' worker threads and rxqueues '${rxq}' in 3-node single-link topo
71 | | Add PCI devices to DUTs from 3-node single link topology
72 | | Run Keyword If | ${framesize} < ${1522} | Add No Multi Seg to all DUTs
73 | | Apply startup configuration on all VPP DUTs
74 | | L2 bridge domain initialized in a 3-node circular topology
75 | | Find NDR using binary search and pps
76 | | ... | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
77 | | ... | ${min_rate} | ${max_rate} | ${threshold}
78
79 | L2 Bridge Domain PDR Binary Search
80 | | [Arguments] | ${framesize} | ${min_rate} | ${wt} | ${rxq}
81 | | # Test Variables required for test teardown
82 | | Set Test Variable | ${framesize}
83 | | Set Test Variable | ${min_rate}
84 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
85 | | ${binary_min}= | Set Variable | ${min_rate}
86 | | ${binary_max}= | Set Variable | ${max_rate}
87 | | ${threshold}= | Set Variable | ${min_rate}
88 | | Set Test Documentation | [Cfg] DUT runs L2BD switching config with ${wt}\
89 | | Set Test Documentation | thread, ${wt} phy core, ${rxq}\ | append=True
90 | | Set Test Documentation | receive queue per NIC port. | append=True
91 | | Set Test Documentation | [Ver] Find PDR for ${framesize} Byte\ | append=True
92 | | Set Test Documentation | frames using binary search start at\ | append=True
93 | | Set Test Documentation | 10GE linerate, step ${threshold}pps, | append=True
94 | | Set Test Documentation | LT=${perf_pdr_loss_acceptance} | append=True
95 | | Set Test Documentation | ${perf_pdr_loss_acceptance_type}. | append=True
96 | | Add '${wt}' worker threads and rxqueues '${rxq}' in 3-node single-link topo
97 | | Add PCI devices to DUTs from 3-node single link topology
98 | | Run Keyword If | ${framesize} < ${1522} | Add No Multi Seg to all DUTs
99 | | Apply startup configuration on all VPP DUTs
100 | | L2 bridge domain initialized in a 3-node circular topology
101 | | Find PDR using binary search and pps
102 | | ... | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
103 | | ... | ${min_rate} | ${max_rate} | ${threshold}
104 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
105
106 *** Test Cases ***
107 | tc01-64B-1t1c-eth-l2bdbasemaclrn-ndrdisc
108 | | ... | framesize=${64} | min_rate=${100000} | wt=1 | rxq=1
109 | | [Documentation]
110 | | ... | [Cfg] DUT runs L2BD switching config with with\
111 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
112 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
113 | | ... | linerate, step 100kpps.
114 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
115 | | [Template] | L2 Bridge Domain NDR Binary Search
116
117 | tc02-64B-1t1c-eth-l2bdbasemaclrn-pdrdisc
118 | | ... | framesize=${64} | min_rate=${100000} | wt=1 | rxq=1
119 | | [Documentation]
120 | | ... | [Cfg] DUT runs L2BD switching config with with\
121 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
122 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
123 | | ... | linerate, step 100kpps, LT=0.5%.
124 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
125 | | [Template] | L2 Bridge Domain PDR Binary Search
126
127 | tc03-1518B-1t1c-eth-l2bdbasemaclrn-ndrdisc
128 | | ... | framesize=${1518} | min_rate=${10000} | wt=1 | rxq=1
129 | | [Documentation]
130 | | ... | [Cfg] DUT runs L2BD switching config with with\
131 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
132 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
133 | | ... | linerate, step 10kpps.
134 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
135 | | [Template] | L2 Bridge Domain NDR Binary Search
136
137 | tc04-1518B-1t1c-eth-l2bdbasemaclrn-pdrdisc
138 | | ... | framesize=${1518} | min_rate=${10000} | wt=1 | rxq=1
139 | | [Documentation]
140 | | ... | [Cfg] DUT runs L2BD switching config with with\
141 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
142 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
143 | | ... | linerate, step 10kpps, LT=0.5%.
144 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
145 | | [Template] | L2 Bridge Domain PDR Binary Search
146
147 | tc05-9000B-1t1c-eth-l2bdbasemaclrn-ndrdisc
148 | | ... | framesize=${9000} | min_rate=${10000} | wt=1 | rxq=1
149 | | [Documentation]
150 | | ... | [Cfg] DUT runs L2BD switching config with with\
151 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
152 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
153 | | ... | linerate, step 10kpps.
154 | | [Tags] | 9000B | 1T1C | STHREAD | NDRDISC
155 | | [Template] | L2 Bridge Domain NDR Binary Search
156
157 | tc06-9000B-1t1c-eth-l2bdbasemaclrn-pdrdisc
158 | | ... | framesize=${9000} | min_rate=${10000} | wt=1 | rxq=1
159 | | [Documentation]
160 | | ... | [Cfg] DUT runs L2BD switching config with with\
161 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
162 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
163 | | ... | linerate, step 10kpps, LT=0.5%.
164 | | [Tags] | 9000B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
165 | | [Template] | L2 Bridge Domain PDR Binary Search
166
167 | tc07-64B-2t2c-eth-l2bdbasemaclrn-ndrdisc
168 | | ... | framesize=${64} | min_rate=${100000} | wt=2 | rxq=1
169 | | [Documentation]
170 | | ... | [Cfg] DUT runs L2BD switching config with with\
171 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
172 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
173 | | ... | linerate, step 100kpps.
174 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
175 | | [Template] | L2 Bridge Domain NDR Binary Search
176
177 | tc08-64B-2t2c-eth-l2bdbasemaclrn-pdrdisc
178 | | ... | framesize=${64} | min_rate=${100000} | wt=2 | rxq=1
179 | | [Documentation]
180 | | ... | [Cfg] DUT runs L2BD switching config with with\
181 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
182 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
183 | | ... | linerate, step 100kpps, LT=0.5%.
184 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
185 | | [Template] | L2 Bridge Domain PDR Binary Search
186
187 | tc09-1518B-2t2c-eth-l2bdbasemaclrn-ndrdisc
188 | | ... | framesize=${1518} | min_rate=${10000} | wt=2 | rxq=1
189 | | [Documentation]
190 | | ... | [Cfg] DUT runs L2BD switching config with with\
191 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
192 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
193 | | ... | linerate, step 10kpps.
194 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
195 | | [Template] | L2 Bridge Domain NDR Binary Search
196
197 | tc10-1518B-2t2c-eth-l2bdbasemaclrn-pdrdisc
198 | | ... | framesize=${1518} | min_rate=${10000} | wt=2 | rxq=1
199 | | [Documentation]
200 | | ... | [Cfg] DUT runs L2BD switching config with with\
201 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
202 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
203 | | ... | linerate, step 10kpps, LT=0.5%.
204 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
205 | | [Template] | L2 Bridge Domain PDR Binary Search
206
207 | tc11-9000B-2t2c-eth-l2bdbasemaclrn-ndrdisc
208 | | ... | framesize=${9000} | min_rate=${10000} | wt=2 | rxq=1
209 | | [Documentation]
210 | | ... | [Cfg] DUT runs L2BD switching config with with\
211 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
212 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
213 | | ... | linerate, step 10kpps.
214 | | [Tags] | 9000B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
215 | | [Template] | L2 Bridge Domain NDR Binary Search
216
217 | tc12-9000B-2t2c-eth-l2bdbasemaclrn-pdrdisc
218 | | ... | framesize=${9000} | min_rate=${10000} | wt=2 | rxq=1
219 | | [Documentation]
220 | | ... | [Cfg] DUT runs L2BD switching config with with\
221 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
222 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
223 | | ... | linerate, step 10kpps, LT=0.5%.
224 | | [Tags] | 9000B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
225 | | [Template] | L2 Bridge Domain PDR Binary Search
226
227 | tc13-64B-4t4c-eth-l2bdbasemaclrn-ndrdisc
228 | | ... | framesize=${64} | min_rate=${100000} | wt=4 | rxq=2
229 | | [Documentation]
230 | | ... | [Cfg] DUT runs L2BD switching config with with\
231 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
232 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
233 | | ... | linerate, step 100kpps.
234 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
235 | | [Template] | L2 Bridge Domain NDR Binary Search
236
237 | tc14-64B-4t4c-eth-l2bdbasemaclrn-pdrdisc
238 | | ... | framesize=${64} | min_rate=${100000} | wt=4 | rxq=2
239 | | [Documentation]
240 | | ... | [Cfg] DUT runs L2BD switching config with with\
241 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
242 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
243 | | ... | linerate, step 100kpps, LT=0.5%.
244 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
245 | | [Template] | L2 Bridge Domain PDR Binary Search
246
247 | tc15-1518B-4t4c-eth-l2bdbasemaclrn-ndrdisc
248 | | ... | framesize=${1518} | min_rate=${10000} | wt=4 | rxq=2
249 | | [Documentation]
250 | | ... | [Cfg] DUT runs L2BD switching config with with\
251 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
252 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
253 | | ... | linerate, step 10kpps.
254 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
255 | | [Template] | L2 Bridge Domain NDR Binary Search
256
257 | tc16-1518B-4t4c-eth-l2bdbasemaclrn-pdrdisc
258 | | ... | framesize=${1518} | min_rate=${10000} | wt=4 | rxq=2
259 | | [Documentation]
260 | | ... | [Cfg] DUT runs L2BD switching config with with\
261 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
262 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
263 | | ... | linerate, step 10kpps, LT=0.5%.
264 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
265 | | [Template] | L2 Bridge Domain PDR Binary Search
266
267 | tc17-9000B-4t4c-eth-l2bdbasemaclrn-ndrdisc
268 | | ... | framesize=${9000} | min_rate=${10000} | wt=4 | rxq=2
269 | | [Documentation]
270 | | ... | [Cfg] DUT runs L2BD switching config with with\
271 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
272 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
273 | | ... | linerate, step 10kpps.
274 | | [Tags] | 9000B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
275 | | [Template] | L2 Bridge Domain NDR Binary Search
276
277 | tc18-9000B-4t4c-eth-l2bdbasemaclrn-pdrdisc
278 | | ... | framesize=${9000} | min_rate=${10000} | wt=4 | rxq=2
279 | | [Documentation]
280 | | ... | [Cfg] DUT runs L2BD switching config with with\
281 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
282 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
283 | | ... | linerate, step 10kpps, LT=0.5%.
284 | | [Tags] | 9000B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
285 | | [Template] | L2 Bridge Domain PDR Binary Search