CSIT-469 Rename performance suites
[csit.git] / tests / perf / 10ge2p1x710-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 | PERFTEST_LONG
17 | ... | NIC_Intel-X710 | PERFTEST_BASE
18 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
19 | ... | L2 | Intel-X710
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 | ... | X710 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, 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 #X710 bandwidth limit
53 | ${s_limit} | ${10000000000}
54
55 *** Keywords ***
56 | L2 Bridge Domain NDR Binary Search
57 | | [Arguments] | ${framesize} | ${min_rate} | ${wt} | ${rxq}
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 | | Add '${wt}' worker threads and rxqueues '${rxq}' in 3-node single-link topo
65 | | Add PCI devices to DUTs from 3-node single link topology
66 | | ${get_framesize}= | Get Frame Size | ${framesize}
67 | | Run Keyword If | ${get_framesize} < ${1522} | Add No Multi Seg to all DUTs
68 | | Apply startup configuration on all VPP DUTs
69 | | L2 bridge domain initialized in a 3-node circular topology
70 | | Find NDR using binary search and pps
71 | | ... | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
72 | | ... | ${min_rate} | ${max_rate} | ${threshold}
73
74 | L2 Bridge Domain PDR Binary Search
75 | | [Arguments] | ${framesize} | ${min_rate} | ${wt} | ${rxq}
76 | | Set Test Variable | ${framesize}
77 | | Set Test Variable | ${min_rate}
78 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
79 | | ${binary_min}= | Set Variable | ${min_rate}
80 | | ${binary_max}= | Set Variable | ${max_rate}
81 | | ${threshold}= | Set Variable | ${min_rate}
82 | | Add '${wt}' worker threads and rxqueues '${rxq}' in 3-node single-link topo
83 | | Add PCI devices to DUTs from 3-node single link topology
84 | | ${get_framesize}= | Get Frame Size | ${framesize}
85 | | Run Keyword If | ${get_framesize} < ${1522} | Add No Multi Seg to all DUTs
86 | | Apply startup configuration on all VPP DUTs
87 | | L2 bridge domain initialized in a 3-node circular topology
88 | | Find PDR using binary search and pps
89 | | ... | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
90 | | ... | ${min_rate} | ${max_rate} | ${threshold}
91 | | ... | ${glob_loss_acceptance} | ${glob_loss_acceptance_type}
92
93 *** Test Cases ***
94 | TC01: 64B NDR binary search - DUT L2BD - 1thread 1core 1rxq
95 | | ... | ${64} | ${100000} | 1 | 1
96 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
97 | | [Documentation]
98 | | ... | [Cfg] DUT runs L2BD switching config with with\
99 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
100 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
101 | | ... | linerate, step 100kpps.
102 | | [Template] | L2 Bridge Domain NDR Binary Search
103
104 | TC02: 64B PDR binary search - DUT L2BD - 1thread 1core 1rxq
105 | | ... | ${64} | ${100000} | 1 | 1
106 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
107 | | [Documentation]
108 | | ... | [Cfg] DUT runs L2BD switching config with with\
109 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
110 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
111 | | ... | linerate, step 100kpps, LT=0.5%.
112 | | [Template] | L2 Bridge Domain PDR Binary Search
113
114 | TC03: 1518B NDR binary search - DUT L2BD - 1thread 1core 1rxq
115 | | ... | ${1518} | ${10000} | 1 | 1
116 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
117 | | [Documentation]
118 | | ... | [Cfg] DUT runs L2BD switching config with with\
119 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
120 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
121 | | ... | linerate, step 10kpps.
122 | | [Template] | L2 Bridge Domain NDR Binary Search
123
124 | TC04: 1518B PDR binary search - DUT L2BD - 1thread 1core 1rxq
125 | | ... | ${1518} | ${10000} | 1 | 1
126 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
127 | | [Documentation]
128 | | ... | [Cfg] DUT runs L2BD switching config with with\
129 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
130 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
131 | | ... | linerate, step 10kpps, LT=0.5%.
132 | | [Template] | L2 Bridge Domain PDR Binary Search
133
134 | TC05: 9000B NDR binary search - DUT L2BD - 1thread 1core 1rxq
135 | | ... | ${9000} | ${10000} | 1 | 1
136 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
137 | | [Documentation]
138 | | ... | [Cfg] DUT runs L2BD switching config with with\
139 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
140 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
141 | | ... | linerate, step 10kpps.
142 | | [Template] | L2 Bridge Domain NDR Binary Search
143
144 | TC06: 9000B PDR binary search - DUT L2BD - 1thread 1core 1rxq
145 | | ... | ${9000} | ${10000} | 1 | 1
146 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
147 | | [Documentation]
148 | | ... | [Cfg] DUT runs L2BD switching config with with\
149 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
150 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
151 | | ... | linerate, step 10kpps, LT=0.5%.
152 | | [Template] | L2 Bridge Domain PDR Binary Search
153
154 | TC07: 64B NDR binary search - DUT L2BD - 2thread 2core 1rxq
155 | | ... | ${64} | ${100000} | 2 | 1
156 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
157 | | [Documentation]
158 | | ... | [Cfg] DUT runs L2BD switching config with with\
159 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
160 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
161 | | ... | linerate, step 100kpps.
162 | | [Template] | L2 Bridge Domain NDR Binary Search
163
164 | TC08: 64B PDR binary search - DUT L2BD - 2thread 2core 1rxq
165 | | ... | ${64} | ${100000} | 2 | 1
166 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
167 | | [Documentation]
168 | | ... | [Cfg] DUT runs L2BD switching config with with\
169 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
170 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
171 | | ... | linerate, step 100kpps, LT=0.5%.
172 | | [Template] | L2 Bridge Domain PDR Binary Search
173
174 | TC09: 1518B NDR binary search - DUT L2BD - 2thread 2core 1rxq
175 | | ... | ${1518} | ${10000} | 2 | 1
176 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR | SKIP_PATCH
177 | | [Documentation]
178 | | ... | [Cfg] DUT runs L2BD switching config with with\
179 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
180 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
181 | | ... | linerate, step 10kpps.
182 | | [Template] | L2 Bridge Domain NDR Binary Search
183
184 | TC10: 1518B PDR binary search - DUT L2BD - 2thread 2core 1rxq
185 | | ... | ${1518} | ${10000} | 2 | 1
186 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
187 | | [Documentation]
188 | | ... | [Cfg] DUT runs L2BD switching config with with\
189 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
190 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
191 | | ... | linerate, step 100kpps, LT=0.5%.
192 | | [Template] | L2 Bridge Domain PDR Binary Search
193
194 | TC11: 9000B NDR binary search - DUT L2BD - 2thread 2core 1rxq
195 | | ... | ${9000} | ${10000} | 2 | 1
196 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR | SKIP_PATCH
197 | | [Documentation]
198 | | ... | [Cfg] DUT runs L2BD switching config with with\
199 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
200 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
201 | | ... | linerate, step 10kpps.
202 | | [Template] | L2 Bridge Domain NDR Binary Search
203
204 | TC12: 9000B PDR binary search - DUT L2BD - 2thread 2core 1rxq
205 | | ... | ${9000} | ${10000} | 2 | 1
206 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
207 | | [Documentation]
208 | | ... | [Cfg] DUT runs L2BD switching config with with\
209 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
210 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
211 | | ... | linerate, step 10kpps, LT=0.5%.
212 | | [Template] | L2 Bridge Domain PDR Binary Search
213
214 | TC13: 64B NDR binary search - DUT L2BD - 4thread 4core 2rxq
215 | | ... | ${64} | ${100000} | 4 | 2
216 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
217 | | [Documentation]
218 | | ... | [Cfg] DUT runs L2BD switching config with with\
219 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
220 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
221 | | ... | linerate, step 100kpps.
222 | | [Template] | L2 Bridge Domain NDR Binary Search
223
224 | TC14: 64B PDR binary search - DUT L2BD - 4thread 4core 2rxq
225 | | ... | ${64} | ${100000} | 4 | 2
226 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
227 | | [Documentation]
228 | | ... | [Cfg] DUT runs L2BD switching config with with\
229 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
230 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
231 | | ... | linerate, step 100kpps, LT=0.5%.
232 | | [Template] | L2 Bridge Domain PDR Binary Search
233
234 | TC15: 1518B NDR binary search - DUT L2BD - 4thread 4core 2rxq
235 | | ... | ${1518} | ${10000} | 4 | 2
236 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR | SKIP_PATCH
237 | | [Documentation]
238 | | ... | [Cfg] DUT runs L2BD switching config with with\
239 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
240 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
241 | | ... | linerate, step 10kpps.
242 | | [Template] | L2 Bridge Domain NDR Binary Search
243
244 | TC16: 1518B PDR binary search - DUT L2BD - 4thread 4core 2rxq
245 | | ... | ${1518} | ${10000} | 4 | 2
246 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
247 | | [Documentation]
248 | | ... | [Cfg] DUT runs L2BD switching config with with\
249 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
250 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
251 | | ... | linerate, step 10kpps, LT=0.5%.
252 | | [Template] | L2 Bridge Domain PDR Binary Search
253
254 | TC17: 9000B NDR binary search - DUT L2BD - 4thread 4core 2rxq
255 | | ... | ${9000} | ${10000} | 4 | 2
256 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR | SKIP_PATCH
257 | | [Documentation]
258 | | ... | [Cfg] DUT runs L2BD switching config with with\
259 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
260 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
261 | | ... | linerate, step 10kpps.
262 | | [Template] | L2 Bridge Domain NDR Binary Search
263
264 | TC18: 9000B PDR binary search - DUT L2BD - 4thread 4core 2rxq
265 | | ... | ${9000} | ${10000} | 4 | 2
266 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
267 | | [Documentation]
268 | | ... | [Cfg] DUT runs L2BD switching config with with\
269 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
270 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
271 | | ... | linerate, step 10kpps, LT=0.5%.
272 | | [Template] | L2 Bridge Domain PDR Binary Search