CSIT-861: SW cryptodev perf tests
[csit.git] / tests / vpp / perf / ip4 / 10ge2p1x520-ethip4-ip4base-iacldstbase-ndrchk.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.IPv4Setup.Dut | ${nodes['DUT1']}
17 | ... | WITH NAME | dut1_v4
18 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT2']}
19 | ... | WITH NAME | dut2_v4
20 | ...
21 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRCHK
22 | ... | NIC_Intel-X520-DA2 | ETH | IP4FWD | FEATURE | IACLDST
23 | ...
24 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
25 | ... | L3 | Intel-X520-DA2
26 | Suite Teardown | Tear down 3-node performance topology
27 | ...
28 | Test Setup | Set up performance test
29 | Test Teardown | Tear down performance ndrchk test
30 | ...
31 | Documentation | *Reference NDR throughput IPv4 whitelist verify test cases*
32 | ...
33 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
34 | ... | with single links between nodes.
35 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for IPv4 routing.
36 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
37 | ... | routing, two static IPv4 /24 routes and IPv4 iAcl security whitelist
38 | ... | ingress /24 filter entries applied on links TG - DUT1 and DUT2 - TG.
39 | ... | DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
40 | ... | *[Ver] TG verification:* In short performance tests, TG verifies
41 | ... | DUTs' throughput at ref-NDR (reference Non Drop Rate) with zero packet
42 | ... | loss tolerance. Ref-NDR value is periodically updated acording to
43 | ... | formula: ref-NDR = 0.9x NDR, where NDR is found in RFC2544 long
44 | ... | performance tests for the same DUT configuration. Test packets are
45 | ... | generated by TG on links to DUTs. TG traffic profile contains two L3
46 | ... | flow-groups (flow-group per direction, 253 flows per flow-group) with
47 | ... | all packets containing Ethernet header, IPv4 header with IP protocol=61
48 | ... | and static payload. MAC addresses are matching MAC addresses of the
49 | ... | TG node interfaces.
50 | ... | *[Ref] Applicable standard specifications:* RFC2544.
51
52 *** Variables ***
53 # Traffic profile:
54 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src253
55
56 *** Test Cases ***
57 | tc01-64B-1t1c-ethip4-ip4base-iacldstbase-ndrchk
58 | | [Documentation]
59 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
60 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
61 | | ... | ref-NDR for 64 Byte frames using single trial throughput test
62 | | ... | at 2x 3.6mpps.
63 | | [Tags] | 64B | 1T1C | STHREAD
64 | | ${framesize}= | Set Variable | ${64}
65 | | ${rate}= | Set Variable | 3.6mpps
66 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
67 | | And Add PCI devices to DUTs in 3-node single link topology
68 | | And Add no multi seg to all DUTs
69 | | And Apply startup configuration on all VPP DUTs
70 | | When Initialize IPv4 forwarding in 3-node circular topology
71 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
72 | | ... | ${dut1} | ip4 | dst
73 | | And Vpp Configures Classify Session L3
74 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
75 | | ... | ip4 | dst | 20.20.20.2
76 | | And Vpp Enable Input Acl Interface
77 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
78 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
79 | | ... | ${dut2} | ip4 | dst
80 | | And Vpp Configures Classify Session L3
81 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
82 | | ... | ip4 | dst | 10.10.10.2
83 | | And Vpp Enable Input Acl Interface
84 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
85 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
86 | | ... | ${framesize} | ${traffic_profile}
87
88 | tc02-1518B-1t1c-ethip4-ip4base-iacldstbase-ndrchk
89 | | [Documentation]
90 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
91 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
92 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
93 | | ... | at 2x 812743pps.
94 | | [Tags] | 1518B | 1T1C | STHREAD
95 | | ${framesize}= | Set Variable | ${1518}
96 | | ${rate}= | Set Variable | 812743pps
97 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
98 | | And Add PCI devices to DUTs in 3-node single link topology
99 | | And Add no multi seg to all DUTs
100 | | And Apply startup configuration on all VPP DUTs
101 | | When Initialize IPv4 forwarding in 3-node circular topology
102 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
103 | | ... | ${dut1} | ip4 | dst
104 | | And Vpp Configures Classify Session L3
105 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
106 | | ... | ip4 | dst | 20.20.20.2
107 | | And Vpp Enable Input Acl Interface
108 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
109 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
110 | | ... | ${dut2} | ip4 | dst
111 | | And Vpp Configures Classify Session L3
112 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
113 | | ... | ip4 | dst | 10.10.10.2
114 | | And Vpp Enable Input Acl Interface
115 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
116 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
117 | | ... | ${framesize} | ${traffic_profile}
118
119 | tc03-9000B-1t1c-ethip4-ip4base-iacldstbase-ndrchk
120 | | [Documentation]
121 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
122 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
123 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
124 | | ... | at 2x 138580pps.
125 | | [Tags] | 9000B | 1T1C | STHREAD
126 | | ${framesize}= | Set Variable | ${9000}
127 | | ${rate}= | Set Variable | 138580pps
128 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
129 | | And Add PCI devices to DUTs in 3-node single link topology
130 | | And Apply startup configuration on all VPP DUTs
131 | | When Initialize IPv4 forwarding in 3-node circular topology
132 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
133 | | ... | ${dut1} | ip4 | dst
134 | | And Vpp Configures Classify Session L3
135 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
136 | | ... | ip4 | dst | 20.20.20.2
137 | | And Vpp Enable Input Acl Interface
138 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
139 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
140 | | ... | ${dut2} | ip4 | dst
141 | | And Vpp Configures Classify Session L3
142 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
143 | | ... | ip4 | dst | 10.10.10.2
144 | | And Vpp Enable Input Acl Interface
145 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
146 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
147 | | ... | ${framesize} | ${traffic_profile}
148
149 | tc04-64B-2t2c-ethip4-ip4base-iacldstbase-ndrchk
150 | | [Documentation]
151 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
152 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
153 | | ... | ref-NDR for 64 Byte frames using single trial throughput test
154 | | ... | at 2x 6.3mpps.
155 | | [Tags] | 64B | 2T2C | MTHREAD
156 | | ${framesize}= | Set Variable | ${64}
157 | | ${rate}= | Set Variable | 6.3mpps
158 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
159 | | And Add PCI devices to DUTs in 3-node single link topology
160 | | And Add no multi seg to all DUTs
161 | | And Apply startup configuration on all VPP DUTs
162 | | When Initialize IPv4 forwarding in 3-node circular topology
163 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
164 | | ... | ${dut1} | ip4 | dst
165 | | And Vpp Configures Classify Session L3
166 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
167 | | ... | ip4 | dst | 20.20.20.2
168 | | And Vpp Enable Input Acl Interface
169 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
170 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
171 | | ... | ${dut2} | ip4 | dst
172 | | And Vpp Configures Classify Session L3
173 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
174 | | ... | ip4 | dst | 10.10.10.2
175 | | And Vpp Enable Input Acl Interface
176 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
177 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
178 | | ... | ${framesize} | ${traffic_profile}
179
180 | tc05-1518B-2t2c-ethip4-ip4base-iacldstbase-ndrchk
181 | | [Documentation]
182 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
183 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
184 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
185 | | ... | at 2x 812743pps.
186 | | [Tags] | 1518B | 2T2C | MTHREAD
187 | | ${framesize}= | Set Variable | ${1518}
188 | | ${rate}= | Set Variable | 812743pps
189 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
190 | | And Add PCI devices to DUTs in 3-node single link topology
191 | | And Add no multi seg to all DUTs
192 | | And Apply startup configuration on all VPP DUTs
193 | | When Initialize IPv4 forwarding in 3-node circular topology
194 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
195 | | ... | ${dut1} | ip4 | dst
196 | | And Vpp Configures Classify Session L3
197 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
198 | | ... | ip4 | dst | 20.20.20.2
199 | | And Vpp Enable Input Acl Interface
200 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
201 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
202 | | ... | ${dut2} | ip4 | dst
203 | | And Vpp Configures Classify Session L3
204 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
205 | | ... | ip4 | dst | 10.10.10.2
206 | | And Vpp Enable Input Acl Interface
207 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
208 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
209 | | ... | ${framesize} | ${traffic_profile}
210
211 | tc06-9000B-2t2c-ethip4-ip4base-iacldstbase-ndrchk
212 | | [Documentation]
213 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
214 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
215 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
216 | | ... | at 2x 138580pps.
217 | | [Tags] | 9000B | 2T2C | MTHREAD
218 | | ${framesize}= | Set Variable | ${9000}
219 | | ${rate}= | Set Variable | 138580pps
220 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
221 | | And Add PCI devices to DUTs in 3-node single link topology
222 | | And Apply startup configuration on all VPP DUTs
223 | | When Initialize IPv4 forwarding in 3-node circular topology
224 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
225 | | ... | ${dut1} | ip4 | dst
226 | | And Vpp Configures Classify Session L3
227 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
228 | | ... | ip4 | dst | 20.20.20.2
229 | | And Vpp Enable Input Acl Interface
230 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
231 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
232 | | ... | ${dut2} | ip4 | dst
233 | | And Vpp Configures Classify Session L3
234 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
235 | | ... | ip4 | dst | 10.10.10.2
236 | | And Vpp Enable Input Acl Interface
237 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
238 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
239 | | ... | ${framesize} | ${traffic_profile}
240
241 | tc07-64B-4t4c-ethip4-ip4base-iacldstbase-ndrchk
242 | | [Documentation]
243 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
244 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
245 | | ... | ref-NDR for 64 Byte frames using single trial throughput test
246 | | ... | at 2x 9.7mpps.
247 | | [Tags] | 64B | 4T4C | MTHREAD
248 | | ${framesize}= | Set Variable | ${64}
249 | | ${rate}= | Set Variable | 9.7mpps
250 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
251 | | And Add PCI devices to DUTs in 3-node single link topology
252 | | And Add no multi seg to all DUTs
253 | | And Apply startup configuration on all VPP DUTs
254 | | And Initialize IPv4 forwarding in 3-node circular topology
255 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
256 | | ... | ${dut1} | ip4 | dst
257 | | And Vpp Configures Classify Session L3
258 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
259 | | ... | ip4 | dst | 20.20.20.2
260 | | And Vpp Enable Input Acl Interface
261 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
262 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
263 | | ... | ${dut2} | ip4 | dst
264 | | And Vpp Configures Classify Session L3
265 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
266 | | ... | ip4 | dst | 10.10.10.2
267 | | And Vpp Enable Input Acl Interface
268 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
269 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
270 | | ... | ${framesize} | ${traffic_profile}
271
272 | tc08-1518B-4t4c-ethip4-ip4base-iacldstbase-ndrchk
273 | | [Documentation]
274 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
275 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
276 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
277 | | ... | at 2x 812743pps.
278 | | [Tags] | 1518B | 4T4C | MTHREAD
279 | | ${framesize}= | Set Variable | ${1518}
280 | | ${rate}= | Set Variable | 812743pps
281 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
282 | | And Add PCI devices to DUTs in 3-node single link topology
283 | | And Add no multi seg to all DUTs
284 | | And Apply startup configuration on all VPP DUTs
285 | | When Initialize IPv4 forwarding in 3-node circular topology
286 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
287 | | ... | ${dut1} | ip4 | dst
288 | | And Vpp Configures Classify Session L3
289 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
290 | | ... | ip4 | dst | 20.20.20.2
291 | | And Vpp Enable Input Acl Interface
292 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
293 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
294 | | ... | ${dut2} | ip4 | dst
295 | | And Vpp Configures Classify Session L3
296 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
297 | | ... | ip4 | dst | 10.10.10.2
298 | | And Vpp Enable Input Acl Interface
299 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
300 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
301 | | ... | ${framesize} | ${traffic_profile}
302
303 | tc09-9000B-4t4c-ethip4-ip4base-iacldstbase-ndrchk
304 | | [Documentation]
305 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
306 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
307 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
308 | | ... | at 2x 138580pps.
309 | | [Tags] | 9000B | 4T4C | MTHREAD
310 | | ${framesize}= | Set Variable | ${9000}
311 | | ${rate}= | Set Variable | 138580pps
312 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
313 | | And Add PCI devices to DUTs in 3-node single link topology
314 | | And Apply startup configuration on all VPP DUTs
315 | | When Initialize IPv4 forwarding in 3-node circular topology
316 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
317 | | ... | ${dut1} | ip4 | dst
318 | | And Vpp Configures Classify Session L3
319 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
320 | | ... | ip4 | dst | 20.20.20.2
321 | | And Vpp Enable Input Acl Interface
322 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
323 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
324 | | ... | ${dut2} | ip4 | dst
325 | | And Vpp Configures Classify Session L3
326 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
327 | | ... | ip4 | dst | 10.10.10.2
328 | | And Vpp Enable Input Acl Interface
329 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
330 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
331 | | ... | ${framesize} | ${traffic_profile}