dab6a29cb672e16f2f55b9f7510a1005ffc7f640
[csit.git] / tests / vpp / perf / ip4 / 10ge2p1x520-ethip4-ip4base-iacldstbase-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 | IP4FWD | FEATURE | IACLDST
19 | ...
20 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
21 | ... | L3 | 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 IPv4 iAcl whitelist 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 IPv4 routing.
34 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
35 | ... | routing, two static IPv4 /24 routes and IPv4 iAcl security whitelist
36 | ... | ingress /24 filter entries applied on links TG - DUT1 and DUT2 - TG.
37 | ... | DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
38 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
39 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
40 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
41 | ... | of packets transmitted. NDR and PDR are discovered for different
42 | ... | Ethernet L2 frame sizes using either binary search or linear search
43 | ... | algorithms with configured starting rate and final step that determines
44 | ... | throughput measurement resolution. Test packets are generated by TG on
45 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
46 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
47 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and
48 | ... | static payload. MAC addresses are matching MAC addresses of the TG
49 | ... | node interfaces.
50 | ... | *[Ref] Applicable standard specifications:* RFC2544.
51
52 *** Variables ***
53 # X520-DA2 bandwidth limit
54 | ${s_limit} | ${10000000000}
55 # Traffic profile:
56 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src253
57
58 *** Keywords ***
59 | Discover NDR or PDR for ethip4-ip4base-iacldstbase
60 | | [Documentation]
61 | | ... | [Cfg] DUT runs IPv4 routing config with ${wt} thread(s), ${wt}\
62 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
63 | | ... | [Ver] Find NDR or PDR for ${framesize} frames using binary search\
64 | | ... | start at 10GE linerate.
65 | | ...
66 | | [Arguments] | ${wt} | ${rxq} | ${framesize} | ${min_rate} | ${search_type}
67 | | ...
68 | | Set Test Variable | ${framesize}
69 | | Set Test Variable | ${min_rate}
70 | | ${get_framesize}= | Get Frame Size | ${framesize}
71 | | ${max_rate}= | Calculate pps | ${s_limit} | ${get_framesize}
72 | | ${binary_min}= | Set Variable | ${min_rate}
73 | | ${binary_max}= | Set Variable | ${max_rate}
74 | | ${threshold}= | Set Variable | ${min_rate}
75 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
76 | | And Add PCI devices to DUTs in 3-node single link topology
77 | | And Run Keyword If | ${get_framesize} < ${1522}
78 | | ... | Add no multi seg to all DUTs
79 | | And Apply startup configuration on all VPP DUTs
80 | | When Initialize IPv4 forwarding in 3-node circular topology
81 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
82 | | ... | ${dut1} | ip4 | dst
83 | | And Vpp Configures Classify Session L3
84 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
85 | | ... | ip4 | dst | 20.20.20.2
86 | | And Vpp Enable Input Acl Interface
87 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
88 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
89 | | ... | ${dut2} | ip4 | dst
90 | | And Vpp Configures Classify Session L3
91 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
92 | | ... | ip4 | dst | 10.10.10.2
93 | | And Vpp Enable Input Acl Interface
94 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
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-ethip4-ip4base-iacldstbase-ndrdisc
107 | | [Documentation]
108 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
109 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR
110 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
111 | | ... | step 50kpps.
112 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
113 | | ...
114 | | [Template] | Discover NDR or PDR for ethip4-ip4base-iacldstbase
115 | | wt=1 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=NDR
116
117 | tc02-64B-1t1c-ethip4-ip4base-iacldstbase-pdrdisc
118 | | [Documentation]
119 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
120 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR
121 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
122 | | ... | step 50kpps, LT=0.5%.
123 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
124 | | ...
125 | | [Template] | Discover NDR or PDR for ethip4-ip4base-iacldstbase
126 | | wt=1 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=PDR
127
128 | tc03-1518B-1t1c-ethip4-ip4base-iacldstbase-ndrdisc
129 | | [Documentation]
130 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
131 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR
132 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
133 | | ... | step 50kpps.
134 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
135 | | ...
136 | | [Template] | Discover NDR or PDR for ethip4-ip4base-iacldstbase
137 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=NDR
138
139 | tc04-1518B-1t1c-ethip4-ip4base-iacldstbase-pdrdisc
140 | | [Documentation]
141 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
142 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR
143 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
144 | | ... | step 50kpps, LT=0.5%.
145 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
146 | | ...
147 | | [Template] | Discover NDR or PDR for ethip4-ip4base-iacldstbase
148 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=PDR
149
150 | tc05-9000B-1t1c-ethip4-ip4base-iacldstbase-ndrdisc
151 | | [Documentation]
152 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
153 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR
154 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
155 | | ... | step 10kpps.
156 | | [Tags] | 9000B | 1T1C | STHREAD | NDRDISC
157 | | ...
158 | | [Template] | Discover NDR or PDR for ethip4-ip4base-iacldstbase
159 | | wt=1 | rxq=1 | framesize=${9000} | min_rate=${10000} | search_type=NDR
160
161 | tc06-9000B-1t1c-ethip4-ip4base-iacldstbase-pdrdisc
162 | | [Documentation]
163 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
164 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR
165 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
166 | | ... | step 10kpps, LT=0.5%.
167 | | [Tags] | 9000B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
168 | | ...
169 | | [Template] | Discover NDR or PDR for ethip4-ip4base-iacldstbase
170 | | wt=1 | rxq=1 | framesize=${9000} | min_rate=${10000} | search_type=PDR
171
172 | tc07-64B-2t2c-ethip4-ip4base-iacldstbase-ndrdisc
173 | | [Documentation]
174 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
175 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR
176 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
177 | | ... | step 50kpps.
178 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
179 | | ...
180 | | [Template] | Discover NDR or PDR for ethip4-ip4base-iacldstbase
181 | | wt=2 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=NDR
182
183 | tc08-64B-2t2c-ethip4-ip4base-iacldstbase-pdrdisc
184 | | [Documentation]
185 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
186 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR
187 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
188 | | ... | step 50kpps, LT=0.5%.
189 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
190 | | ...
191 | | [Template] | Discover NDR or PDR for ethip4-ip4base-iacldstbase
192 | | wt=2 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=PDR
193
194 | tc09-1518B-2t2c-ethip4-ip4base-iacldstbase-ndrdisc
195 | | [Documentation]
196 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
197 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR
198 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
199 | | ... | step 50kpps.
200 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
201 | | ...
202 | | [Template] | Discover NDR or PDR for ethip4-ip4base-iacldstbase
203 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=NDR
204
205 | tc10-1518B-2t2c-ethip4-ip4base-iacldstbase-pdrdisc
206 | | [Documentation]
207 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
208 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR
209 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
210 | | ... | step 50kpps, LT=0.5%.
211 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
212 | | ...
213 | | [Template] | Discover NDR or PDR for ethip4-ip4base-iacldstbase
214 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=PDR
215
216 | tc11-9000B-2t2c-ethip4-ip4base-iacldstbase-ndrdisc
217 | | [Documentation]
218 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
219 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR
220 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
221 | | ... | step 10kpps.
222 | | [Tags] | 9000B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
223 | | ...
224 | | [Template] | Discover NDR or PDR for ethip4-ip4base-iacldstbase
225 | | wt=2 | rxq=1 | framesize=${9000} | min_rate=${10000} | search_type=NDR
226
227 | tc12-9000B-2t2c-ethip4-ip4base-iacldstbase-pdrdisc
228 | | [Documentation]
229 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
230 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR
231 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
232 | | ... | step 10kpps, LT=0.5%.
233 | | [Tags] | 9000B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
234 | | ...
235 | | [Template] | Discover NDR or PDR for ethip4-ip4base-iacldstbase
236 | | wt=2 | rxq=1 | framesize=${9000} | min_rate=${10000} | search_type=PDR
237
238 | tc13-64B-4t4c-ethip4-ip4base-iacldstbase-ndrdisc
239 | | [Documentation]
240 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
241 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find NDR
242 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
243 | | ... | step 50kpps.
244 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
245 | | ...
246 | | [Template] | Discover NDR or PDR for ethip4-ip4base-iacldstbase
247 | | wt=4 | rxq=2 | framesize=${64} | min_rate=${50000} | search_type=NDR
248
249 | tc14-64B-4t4c-ethip4-ip4base-iacldstbase-pdrdisc
250 | | [Documentation]
251 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
252 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find PDR
253 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
254 | | ... | step 50kpps, LT=0.5%.
255 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
256 | | ...
257 | | [Template] | Discover NDR or PDR for ethip4-ip4base-iacldstbase
258 | | wt=4 | rxq=2 | framesize=${64} | min_rate=${50000} | search_type=PDR
259
260 | tc15-1518B-4t4c-ethip4-ip4base-iacldstbase-ndrdisc
261 | | [Documentation]
262 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
263 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find NDR
264 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
265 | | ... | step 50kpps.
266 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
267 | | ...
268 | | [Template] | Discover NDR or PDR for ethip4-ip4base-iacldstbase
269 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${50000} | search_type=NDR
270
271 | tc16-1518B-4t4c-ethip4-ip4base-iacldstbase-pdrdisc
272 | | [Documentation]
273 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
274 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find PDR
275 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
276 | | ... | step 50kpps, LT=0.5%.
277 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
278 | | ...
279 | | [Template] | Discover NDR or PDR for ethip4-ip4base-iacldstbase
280 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${50000} | search_type=PDR
281
282 | tc17-9000B-4t4c-ethip4-ip4base-iacldstbase-ndrdisc
283 | | [Documentation]
284 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
285 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find NDR
286 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
287 | | ... | step 10kpps.
288 | | [Tags] | 9000B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
289 | | ...
290 | | [Template] | Discover NDR or PDR for ethip4-ip4base-iacldstbase
291 | | wt=4 | rxq=2 | framesize=${9000} | min_rate=${10000} | search_type=NDR
292
293 | tc18-9000B-4t4c-ethip4-ip4base-iacldstbase-pdrdisc
294 | | [Documentation]
295 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
296 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find PDR
297 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
298 | | ... | step 10kpps, LT=0.5%.
299 | | [Tags] | 9000B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
300 | | ...
301 | | [Template] | Discover NDR or PDR for ethip4-ip4base-iacldstbase
302 | | wt=4 | rxq=2 | framesize=${9000} | min_rate=${10000} | search_type=PDR
303