FIX: Vhost tagging
[csit.git] / tests / vpp / perf / l2 / 10ge2p1x520-eth-l2bdbasemaclrn-acloutpermit-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 | Library | resources.libraries.python.Classify
17 | ...
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
19 | ... | NIC_Intel-X520-DA2 | ETH | L2BDMACLRN
20 | ...
21 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
22 | ... | L2 | Intel-X520-DA2
23 | Suite Teardown | Tear down 3-node performance topology
24 | ...
25 | Test Setup | Set up performance test
26 | Test Teardown | Run Keywords | Tear down performance discovery test | ${min_rate}pps
27 | ... | ${framesize} | ${traffic_profile}
28 | ... | AND | Vpp Log Plugin Acl Settings | ${dut1}
29 | ... | AND | Cli Show Acl | ${dut1}
30 | ... | AND | Run Keyword And Ignore Error
31 |     | ... | Vpp Log Plugin Acl Interface Assignment | ${dut1}
32 | ...
33 | Documentation | *RFC2544: Packet throughput L2BD test cases with ACL*
34 | ...
35 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
36 | ... | with single links between nodes.
37 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 switching of IPv4.
38 | ... | *[Cfg] DUT configuration:* DUT1 is configured with L2 bridge domain\
39 | ... | and MAC learning enabled. DUT2 is configured with L2 cross-connects.\
40 | ... | Required ACL rules are applied to output paths of both DUT1 intefaces.\
41 | ... | DUT1 and DUT2 are tested with 2p10GE NIC X520 Niantic by Intel.\
42 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop\
43 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop\
44 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage\
45 | ... | of packets transmitted. NDR and PDR are discovered for different\
46 | ... | Ethernet L2 frame sizes using either binary search or linear search\
47 | ... | algorithms with configured starting rate and final step that determines\
48 | ... | throughput measurement resolution. Test packets are generated by TG on\
49 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups\
50 | ... | (flow-group per direction, 253 flows per flow-group) with all packets\
51 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static\
52 | ... | payload. MAC addresses are matching MAC addresses of the TG node\
53 | ... | interfaces.
54 | ... | *[Ref] Applicable standard specifications:* RFC2544.
55
56 *** Variables ***
57 # X520-DA2 bandwidth limit
58 | ${s_limit}= | ${10000000000}
59
60 # starting points for non-hitting ACLs
61 | ${src_ip_start}= | 30.30.30.1
62 | ${dst_ip_start}= | 40.40.40.1
63 | ${ip_step}= | ${1}
64 | ${sport_start}= | ${1000}
65 | ${dport_start}= | ${1000}
66 | ${port_step}= | ${1}
67 | ${trex_stream1_subnet}= | 10.10.10.0/24
68 | ${trex_stream2_subnet}= | 20.20.20.0/24
69
70 *** Keywords ***
71 | Discover NDR or PDR for L2 Bridge Domain with ACLs
72 | | [Arguments] | ${wt} | ${rxq} | ${no_hit_aces_number} | ${acl_apply_type}
73 | | ...         | ${acl_action} | ${flows_per_dir} | ${framesize} | ${min_rate}
74 | | ...         | ${search_type}
75 | | Set Test Variable | ${framesize}
76 | | Set Test Variable | ${min_rate}
77 | | Set Test Variable | ${no_hit_aces_number}
78 | | Set Test Variable | ${acl_apply_type}
79 | | Set Test Variable | ${acl_action}
80 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
81 | | ${binary_min}= | Set Variable | ${min_rate}
82 | | ${binary_max}= | Set Variable | ${max_rate}
83 | | ${threshold}= | Set Variable | ${min_rate}
84 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
85 | | And Add PCI devices to DUTs in 3-node single link topology
86 | | ${get_framesize}= | Get Frame Size | ${framesize}
87 | | And Run Keyword If | ${get_framesize} < ${1522} | Add no multi seg to all DUTs
88 | | And Apply startup configuration on all VPP DUTs
89 | | When Initialize L2 bridge domain with IPv4 ACLs on DUT1 in 3-node circular topology
90 | | ${traffic_profile}= | Set Variable If
91 | | ... | '${flows_per_dir}' == '100' | trex-sl-3n-ethip4udp-10u10p-conc
92 | | ... | '${flows_per_dir}' == '10k' | trex-sl-3n-ethip4udp-10u1000p-conc
93 | | ... | '${flows_per_dir}' == '100k' | trex-sl-3n-ethip4udp-100u1000p-conc
94 | | Set Test Variable | ${traffic_profile}
95 | | Then Run Keyword If | '${search_type}' == 'NDR'
96 | | ... | Find NDR using binary search and pps
97 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
98 | | ... | ${min_rate} | ${max_rate} | ${threshold}
99 | | ... | ELSE IF | '${search_type}' == 'PDR'
100 | | ... | Find PDR using binary search and pps
101 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
102 | | ... | ${min_rate} | ${max_rate} | ${threshold}
103 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
104
105 *** Test Cases ***
106 | tc01-64B-1t1c-eth-l2bdbasemaclrn-oacl1-stateless-flows100-ndrdisc
107 | | ...
108 | | [Tags] | 1T1C | STHREAD | NDRDISC | FEATURE | ACL | SRC_USER_100
109 | | [Documentation]
110 | | ... | [Cfg] DUT runs L2BD switching config with ACL 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 10kpps.
114 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with ACLs
115 | | wt=1 | rxq=1 | no_hit_aces_number=1 | acl_apply_type=output
116 | | ... | acl_action=permit | flows_per_dir=100 | framesize=${64}
117 | | ... | min_rate=${10000} | search_type=NDR
118
119 | tc02-64B-1t1c-eth-l2bdbasemaclrn-oacl1-stateless-flows100-pdrdisc
120 | | [Tags] | 1T1C | STHREAD | PDRDISC | FEATURE | ACL | SRC_USER_100 | SKIP_PATCH
121 | | [Documentation]
122 | | ... | [Cfg] DUT runs L2BD switching config with ACL 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 10kpps, LT=0.5%.
126 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with ACLs
127 | | wt=1 | rxq=1 | no_hit_aces_number=1 | acl_apply_type=output
128 | | ... | acl_action=permit | flows_per_dir=100 | framesize=${64}
129 | | ... | min_rate=${10000} | search_type=PDR
130
131 | tc03-64B-1t1c-eth-l2bdbasemaclrn-oacl10-stateless-flows100-ndrdisc
132 | | [Tags] | 1T1C | STHREAD | NDRDISC | FEATURE | ACL | SRC_USER_100
133 | | [Documentation]
134 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
135 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
136 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
137 | | ... | linerate, step 10kpps.
138 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with ACLs
139 | | wt=1 | rxq=1 | no_hit_aces_number=10 | acl_apply_type=output
140 | | ... | acl_action=permit | flows_per_dir=100 | framesize=${64}
141 | | ... | min_rate=${10000} | search_type=NDR
142
143 | tc04-64B-1t1c-eth-l2bdbasemaclrn-oacl10-stateless-flows100-pdrdisc
144 | | [Tags] | 1T1C | STHREAD | PDRDISC | FEATURE | ACL | SRC_USER_100 | SKIP_PATCH
145 | | [Documentation]
146 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
147 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
148 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
149 | | ... | linerate, step 10kpps, LT=0.5%.
150 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with ACLs
151 | | wt=1 | rxq=1 | no_hit_aces_number=10 | acl_apply_type=output
152 | | ... | acl_action=permit | flows_per_dir=100 | framesize=${64}
153 | | ... | min_rate=${10000} | search_type=PDR
154
155 | tc05-64B-1t1c-eth-l2bdbasemaclrn-oacl50-stateless-flows100-ndrdisc
156 | | [Tags] | 1T1C | STHREAD | NDRDISC | FEATURE | ACL | SRC_USER_100
157 | | [Documentation]
158 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
159 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
160 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
161 | | ... | linerate, step 10kpps.
162 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with ACLs
163 | | wt=1 | rxq=1 | no_hit_aces_number=50 | acl_apply_type=output
164 | | ... | acl_action=permit | flows_per_dir=100 | framesize=${64}
165 | | ... | min_rate=${10000} | search_type=NDR
166
167 | tc06-64B-1t1c-eth-l2bdbasemaclrn-oacl50-stateless-flows100-pdrdisc
168 | | [Tags] | 1T1C | STHREAD | PDRDISC | FEATURE | ACL | SRC_USER_100 | SKIP_PATCH
169 | | [Documentation]
170 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
171 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
172 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
173 | | ... | linerate, step 10kpps, LT=0.5%.
174 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with ACLs
175 | | wt=1 | rxq=1 | no_hit_aces_number=50 | acl_apply_type=output
176 | | ... | acl_action=permit | flows_per_dir=100 | framesize=${64}
177 | | ... | min_rate=${10000} | search_type=PDR
178
179 | tc07-64B-1t1c-eth-l2bdbasemaclrn-oacl1-stateless-flows10k-ndrdisc
180 | | [Tags] | 1T1C | STHREAD | NDRDISC | FEATURE | ACL | SRC_USER_100
181 | | [Documentation]
182 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
183 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
184 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
185 | | ... | linerate, step 10kpps.
186 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with ACLs
187 | | wt=1 | rxq=1 | no_hit_aces_number=1 | acl_apply_type=output
188 | | ... | acl_action=permit | flows_per_dir=10k | framesize=${64}
189 | | ... | min_rate=${10000} | search_type=NDR
190
191 | tc08-64B-1t1c-eth-l2bdbasemaclrn-oacl1-stateless-flows10k-pdrdisc
192 | | [Tags] | 1T1C | STHREAD | PDRDISC | FEATURE | ACL | SRC_USER_100 | SKIP_PATCH
193 | | [Documentation]
194 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
195 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
196 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
197 | | ... | linerate, step 10kpps, LT=0.5%.
198 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with ACLs
199 | | wt=1 | rxq=1 | no_hit_aces_number=1 | acl_apply_type=output
200 | | ... | acl_action=permit | flows_per_dir=10k | framesize=${64}
201 | | ... | min_rate=${10000} | search_type=PDR
202
203 | tc09-64B-1t1c-eth-l2bdbasemaclrn-oacl10-stateless-flows10k-ndrdisc
204 | | [Tags] | 1T1C | STHREAD | NDRDISC | FEATURE | ACL | SRC_USER_100
205 | | [Documentation]
206 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
207 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
208 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
209 | | ... | linerate, step 10kpps.
210 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with ACLs
211 | | wt=1 | rxq=1 | no_hit_aces_number=10 | acl_apply_type=output
212 | | ... | acl_action=permit | flows_per_dir=10k | framesize=${64}
213 | | ... | min_rate=${10000} | search_type=NDR
214
215 | tc10-64B-1t1c-eth-l2bdbasemaclrn-oacl10-stateless-flows10k-pdrdisc
216 | | [Tags] | 1T1C | STHREAD | PDRDISC | FEATURE | ACL | SRC_USER_100 | SKIP_PATCH
217 | | [Documentation]
218 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
219 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
220 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
221 | | ... | linerate, step 10kpps, LT=0.5%.
222 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with ACLs
223 | | wt=1 | rxq=1 | no_hit_aces_number=10 | acl_apply_type=output
224 | | ... | acl_action=permit | flows_per_dir=10k | framesize=${64}
225 | | ... | min_rate=${10000} | search_type=PDR
226
227 | tc11-64B-1t1c-eth-l2bdbasemaclrn-oacl50-stateless-flows10k-ndrdisc
228 | | [Tags] | 1T1C | STHREAD | NDRDISC | FEATURE | ACL | SRC_USER_100
229 | | [Documentation]
230 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
231 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
232 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
233 | | ... | linerate, step 10kpps.
234 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with ACLs
235 | | wt=1 | rxq=1 | no_hit_aces_number=50 | acl_apply_type=output
236 | | ... | acl_action=permit | flows_per_dir=10k | framesize=${64}
237 | | ... | min_rate=${10000} | search_type=NDR
238
239 | tc12-64B-1t1c-eth-l2bdbasemaclrn-oacl50-stateless-flows10k-pdrdisc
240 | | [Tags] | 1T1C | STHREAD | PDRDISC | FEATURE | ACL | SRC_USER_100 | SKIP_PATCH
241 | | [Documentation]
242 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
243 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
244 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
245 | | ... | linerate, step 10kpps, LT=0.5%.
246 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with ACLs
247 | | wt=1 | rxq=1 | no_hit_aces_number=50 | acl_apply_type=output
248 | | ... | acl_action=permit | flows_per_dir=10k | framesize=${64}
249 | | ... | min_rate=${10000} | search_type=PDR
250
251 | tc13-64B-1t1c-eth-l2bdbasemaclrn-oacl1-stateless-flows100k-ndrdisc
252 | | [Tags] | 1T1C | STHREAD | NDRDISC | FEATURE | ACL | SRC_USER_100
253 | | [Documentation]
254 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
255 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
256 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
257 | | ... | linerate, step 10kpps.
258 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with ACLs
259 | | wt=1 | rxq=1 | no_hit_aces_number=1 | acl_apply_type=output
260 | | ... | acl_action=permit | flows_per_dir=100k | framesize=${64}
261 | | ... | min_rate=${10000} | search_type=NDR
262
263 | tc14-64B-1t1c-eth-l2bdbasemaclrn-oacl1-stateless-flows100k-pdrdisc
264 | | [Tags] | 1T1C | STHREAD | PDRDISC | FEATURE | ACL | SRC_USER_100 | SKIP_PATCH
265 | | [Documentation]
266 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
267 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
268 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
269 | | ... | linerate, step 10kpps, LT=0.5%.
270 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with ACLs
271 | | wt=1 | rxq=1 | no_hit_aces_number=1 | acl_apply_type=output
272 | | ... | acl_action=permit | flows_per_dir=100k | framesize=${64}
273 | | ... | min_rate=${10000} | search_type=PDR
274
275 | tc15-64B-1t1c-eth-l2bdbasemaclrn-oacl10-stateless-flows100k-ndrdisc
276 | | [Tags] | 1T1C | STHREAD | NDRDISC | FEATURE | ACL | SRC_USER_100
277 | | [Documentation]
278 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
279 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
280 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
281 | | ... | linerate, step 10kpps.
282 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with ACLs
283 | | wt=1 | rxq=1 | no_hit_aces_number=10 | acl_apply_type=output
284 | | ... | acl_action=permit | flows_per_dir=100k | framesize=${64}
285 | | ... | min_rate=${10000} | search_type=NDR
286
287 | tc16-64B-1t1c-eth-l2bdbasemaclrn-oacl10-stateless-flows100k-pdrdisc
288 | | [Tags] | 1T1C | STHREAD | PDRDISC | FEATURE | ACL | SRC_USER_100 | SKIP_PATCH
289 | | [Documentation]
290 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
291 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
292 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
293 | | ... | linerate, step 10kpps, LT=0.5%.
294 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with ACLs
295 | | wt=1 | rxq=1 | no_hit_aces_number=10 | acl_apply_type=output
296 | | ... | acl_action=permit | flows_per_dir=100k | framesize=${64}
297 | | ... | min_rate=${10000} | search_type=PDR
298
299 | tc17-64B-1t1c-eth-l2bdbasemaclrn-oacl50-stateless-flows100k-ndrdisc
300 | | [Tags] | 1T1C | STHREAD | NDRDISC | FEATURE | ACL | SRC_USER_100
301 | | [Documentation]
302 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
303 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
304 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
305 | | ... | linerate, step 10kpps.
306 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with ACLs
307 | | wt=1 | rxq=1 | no_hit_aces_number=50 | acl_apply_type=output
308 | | ... | acl_action=permit | flows_per_dir=100k | framesize=${64}
309 | | ... | min_rate=${10000} | search_type=NDR
310
311 | tc18-64B-1t1c-eth-l2bdbasemaclrn-oacl50-stateless-flows100k-pdrdisc
312 | | [Tags] | 1T1C | STHREAD | PDRDISC | FEATURE | ACL | SRC_USER_100 | SKIP_PATCH
313 | | [Documentation]
314 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
315 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
316 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
317 | | ... | linerate, step 10kpps, LT=0.5%.
318 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with ACLs
319 | | wt=1 | rxq=1 | no_hit_aces_number=50 | acl_apply_type=output
320 | | ... | acl_action=permit | flows_per_dir=100k | framesize=${64}
321 | | ... | min_rate=${10000} | search_type=PDR