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