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