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