CSIT-687: Directory structure reorganization
[csit.git] / tests / vpp / perf / crypto / 40ge2p1xl710-ethip4ipsectptlispgpe-ip4base-cbc-sha1-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 | Resource | resources/libraries/robot/crypto/ipsec.robot
17 | Resource | resources/libraries/robot/overlay/lispgpe.robot
18 | ...
19 | Variables | resources/test_data/lisp/performance/lisp_static_adjacency.py
20 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC | IP4FWD
21 | ... | LISPGPE | IPSEC | IPSECHW | IPSECTRAN | ENCAP | IP4UNRLAY | IP4OVRLAY
22 | ... | NIC_Intel-XL710
23 | ...
24 | Suite Setup | Set up IPSec performance test suite | L3 | Intel-XL710
25 | ...
26 | Suite Teardown | Tear down 3-node performance topology
27 | ...
28 | Test Setup | Set up performance test
29 | ...
30 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
31 | ... | ${framesize} | ${traffic_profile}
32 | ...
33 | Documentation | *IPv4 IPsec transport mode performance test suite.*
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 on TG-DUTn,\
38 | ... | Eth-IPv4-IPSec-LISPGPE-IPv4 on DUT1-DUT2
39 | ... | *[Cfg] DUT configuration:* Each DUT is configured with LISP and IPsec\
40 | ... | in each direction. IPsec is in transport mode. DUTs get IPv4 traffic\
41 | ... | from TG, encrypt it and send to another DUT, where packets are\
42 | ... | decrypted and sent back to TG.
43 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop\
44 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop\
45 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in number\
46 | ... | of packets transmitted. NDR is discovered for different\
47 | ... | number of IPsec tunnels using binary search algorithms with configured\
48 | ... | starting rate and final step that determines throughput measurement\
49 | ... | resolution. Test packets are generated by TG on\
50 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups\
51 | ... | (flow-group per direction, number of flows per flow-group equals to\
52 | ... | number of IPSec tunnels) with all packets\
53 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and\
54 | ... | static payload. MAC addresses are matching MAC addresses of the TG\
55 | ... | node interfaces. Incrementing of IP.dst (IPv4 destination address)\
56 | ... | field is applied to both streams.
57 | ... | *[Ref] Applicable standard specifications:* RFC6830, RFC4303 and\
58 | ... | RFC2544.
59
60 *** Variables ***
61 # XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
62 | ${s_24.5G} | ${24500000000}
63 # XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
64 | ${s_18.75Mpps} | ${18750000}
65 | ${dut2_spi}= | ${1000}
66 | ${dut1_spi}= | ${1001}
67 | ${ESP_PROTO}= | ${50}
68 | ${ipsec_overhead}= | ${54}
69 # Traffic profile:
70 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src253
71
72 *** Test Cases ***
73 | tc01-64B-1t1c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-ndrdisc
74 | | [Documentation]
75 | | ... | [Cfg] Each DUT is configured with LISP and IPsec in each direction.\
76 | | ... | IPsec is in transport mode. DUTs are configured with 1 thread, 1 phy\
77 | | ... | core, 1 receive queue per NIC port.
78 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 40GE\
79 | | ... | linerate, step 100kpps.
80 | | ...
81 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
82 | | ...
83 | | ${framesize}= | Set Variable | ${64}
84 | | ${min_rate}= | Set Variable | ${10000}
85 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
86 | | ${binary_min}= | Set Variable | ${min_rate}
87 | | ${binary_max}= | Set Variable | ${max_rate}
88 | | ${threshold}= | Set Variable | ${min_rate}
89 | | ${encr_alg}= | Crypto Alg AES CBC 128
90 | | ${auth_alg}= | Integ Alg SHA1 96
91 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
92 | | And Generate keys for IPSec | ${encr_alg} | ${auth_alg}
93 | | And Add PCI devices to DUTs in 3-node single link topology
94 | | And Add no multi seg to all DUTs
95 | | And Add cryptodev to all DUTs | ${1}
96 | | And Apply startup configuration on all VPP DUTs
97 | | When Initialize LISP GPE IPv4 over IPsec in 3-node circular topology
98 | | ... | ${encr_alg} | ${auth_alg}
99 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
100 | | ... | ${binary_max} | ${traffic_profile}
101 | | ... | ${min_rate} | ${max_rate} | ${threshold}
102
103 | tc02-64B-1t1c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-pdrdisc
104 | | [Documentation]
105 | | ... | [Cfg] Each DUT is configured with LISP and IPsec in each direction.\
106 | | ... | IPsec is in transport mode. DUTs are configured with 1 thread, 1 phy\
107 | | ... | core, 1 receive queue per NIC port.
108 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 40GE\
109 | | ... | linerate, step 100kpps, LT=0.5%.
110 | | ...
111 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
112 | | ...
113 | | ${framesize}= | Set Variable | ${64}
114 | | ${min_rate}= | Set Variable | ${10000}
115 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
116 | | ${binary_min}= | Set Variable | ${min_rate}
117 | | ${binary_max}= | Set Variable | ${max_rate}
118 | | ${threshold}= | Set Variable | ${min_rate}
119 | | ${encr_alg}= | Crypto Alg AES CBC 128
120 | | ${auth_alg}= | Integ Alg SHA1 96
121 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
122 | | And Generate keys for IPSec | ${encr_alg} | ${auth_alg}
123 | | And Add PCI devices to DUTs in 3-node single link topology
124 | | And Add no multi seg to all DUTs
125 | | And Add cryptodev to all DUTs | ${1}
126 | | And Apply startup configuration on all VPP DUTs
127 | | When Initialize LISP GPE IPv4 over IPsec in 3-node circular topology
128 | | ... | ${encr_alg} | ${auth_alg}
129 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
130 | | ... | ${binary_max} | ${traffic_profile}
131 | | ... | ${min_rate} | ${max_rate} | ${threshold}
132 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
133
134 | tc03-1518B-1t1c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-ndrdisc
135 | | [Documentation]
136 | | ... | [Cfg] Each DUT is configured with LISP and IPsec in each direction.\
137 | | ... | IPsec is in transport mode. DUTs are configured with 1 thread, 1 phy\
138 | | ... | core, 1 receive queue per NIC port.
139 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 40GE\
140 | | ... | linerate, step 100kpps.
141 | | ...
142 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
143 | | ...
144 | | ${framesize}= | Set Variable | ${1518}
145 | | ${min_rate}= | Set Variable | ${10000}
146 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize + ${ipsec_overhead}}
147 | | ${binary_min}= | Set Variable | ${min_rate}
148 | | ${binary_max}= | Set Variable | ${max_rate}
149 | | ${threshold}= | Set Variable | ${min_rate}
150 | | ${encr_alg}= | Crypto Alg AES CBC 128
151 | | ${auth_alg}= | Integ Alg SHA1 96
152 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
153 | | And Generate keys for IPSec | ${encr_alg} | ${auth_alg}
154 | | And Add PCI devices to DUTs in 3-node single link topology
155 | | And Add cryptodev to all DUTs | ${1}
156 | | And Apply startup configuration on all VPP DUTs
157 | | When Initialize LISP GPE IPv4 over IPsec in 3-node circular topology
158 | | ... | ${encr_alg} | ${auth_alg}
159 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
160 | | ... | ${binary_max} | ${traffic_profile}
161 | | ... | ${min_rate} | ${max_rate} | ${threshold}
162
163 | tc04-1518B-1t1c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-pdrdisc
164 | | [Documentation]
165 | | ... | [Cfg] Each DUT is configured with LISP and IPsec in each direction.\
166 | | ... | IPsec is in transport mode. DUTs are configured with 1 thread, 1 phy\
167 | | ... | core, 1 receive queue per NIC port.
168 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 40GE\
169 | | ... | linerate, step 100kpps, LT=0.5%.
170 | | ...
171 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
172 | | ...
173 | | ${framesize}= | Set Variable | ${1518}
174 | | ${min_rate}= | Set Variable | ${10000}
175 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize + ${ipsec_overhead}}
176 | | ${binary_min}= | Set Variable | ${min_rate}
177 | | ${binary_max}= | Set Variable | ${max_rate}
178 | | ${threshold}= | Set Variable | ${min_rate}
179 | | ${encr_alg}= | Crypto Alg AES CBC 128
180 | | ${auth_alg}= | Integ Alg SHA1 96
181 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
182 | | And Generate keys for IPSec | ${encr_alg} | ${auth_alg}
183 | | And Add PCI devices to DUTs in 3-node single link topology
184 | | And Add cryptodev to all DUTs | ${1}
185 | | And Apply startup configuration on all VPP DUTs
186 | | When Initialize LISP GPE IPv4 over IPsec in 3-node circular topology
187 | | ... | ${encr_alg} | ${auth_alg}
188 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
189 | | ... | ${binary_max} | ${traffic_profile}
190 | | ... | ${min_rate} | ${max_rate} | ${threshold}
191 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
192
193 | tc05-IMIX-1t1c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-ndrdisc
194 | | [Documentation]
195 | | ... | [Cfg] Each DUT is configured with LISP and IPsec in each direction.\
196 | | ... | IPsec is in transport mode. DUTs are configured with 1 thread, 1 phy\
197 | | ... | core, 1 receive queue per NIC port.
198 | | ... | [Ver] Find NDR for IMIX_v4_1 frames using binary search start at 40GE\
199 | | ... | linerate, step 100kpps.
200 | | ...
201 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
202 | | ...
203 | | ${framesize}= | Set Variable | IMIX_v4_1
204 | | ${imix_size}= | Get Frame Size | ${framesize}
205 | | ${min_rate}= | Set Variable | ${10000}
206 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${imix_size} + ${ipsec_overhead}
207 | | ${binary_min}= | Set Variable | ${min_rate}
208 | | ${binary_max}= | Set Variable | ${max_rate}
209 | | ${threshold}= | Set Variable | ${min_rate}
210 | | ${encr_alg}= | Crypto Alg AES CBC 128
211 | | ${auth_alg}= | Integ Alg SHA1 96
212 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
213 | | And Generate keys for IPSec | ${encr_alg} | ${auth_alg}
214 | | And Add PCI devices to DUTs in 3-node single link topology
215 | | And Add cryptodev to all DUTs | ${1}
216 | | And Apply startup configuration on all VPP DUTs
217 | | When Initialize LISP GPE IPv4 over IPsec in 3-node circular topology
218 | | ... | ${encr_alg} | ${auth_alg}
219 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
220 | | ... | ${binary_max} | ${traffic_profile}
221 | | ... | ${min_rate} | ${max_rate} | ${threshold}
222
223 | tc06-IMIX-1t1c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-pdrdisc
224 | | [Documentation]
225 | | ... | [Cfg] Each DUT is configured with LISP and IPsec in each direction.\
226 | | ... | IPsec is in transport mode. DUTs are configured with 1 thread, 1 phy\
227 | | ... | core, 1 receive queue per NIC port.
228 | | ... | [Ver] Find NDR for IMIX_v4_1 frames using binary search start at 40GE\
229 | | ... | linerate, step 100kpps, LT=0.5%.
230 | | ...
231 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
232 | | ...
233 | | ${framesize}= | Set Variable | IMIX_v4_1
234 | | ${imix_size}= | Get Frame Size | ${framesize}
235 | | ${min_rate}= | Set Variable | ${10000}
236 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${imix_size} + ${ipsec_overhead}
237 | | ${binary_min}= | Set Variable | ${min_rate}
238 | | ${binary_max}= | Set Variable | ${max_rate}
239 | | ${threshold}= | Set Variable | ${min_rate}
240 | | ${encr_alg}= | Crypto Alg AES CBC 128
241 | | ${auth_alg}= | Integ Alg SHA1 96
242 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
243 | | And Generate keys for IPSec | ${encr_alg} | ${auth_alg}
244 | | And Add PCI devices to DUTs in 3-node single link topology
245 | | And Add cryptodev to all DUTs | ${1}
246 | | And Apply startup configuration on all VPP DUTs
247 | | When Initialize LISP GPE IPv4 over IPsec in 3-node circular topology
248 | | ... | ${encr_alg} | ${auth_alg}
249 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
250 | | ... | ${binary_max} | ${traffic_profile}
251 | | ... | ${min_rate} | ${max_rate} | ${threshold}
252 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
253
254 | tc07-64B-2t2c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-ndrdisc
255 | | [Documentation]
256 | | ... | [Cfg] Each DUT is configured with LISP and IPsec in each direction.\
257 | | ... | IPsec is in transport mode. DUTs are configured with 2 threads, 2 phy\
258 | | ... | cores, 1 receive queue per NIC port.
259 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 40GE\
260 | | ... | linerate, step 100kpps.
261 | | ...
262 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
263 | | ...
264 | | ${framesize}= | Set Variable | ${64}
265 | | ${min_rate}= | Set Variable | ${10000}
266 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
267 | | ${binary_min}= | Set Variable | ${min_rate}
268 | | ${binary_max}= | Set Variable | ${max_rate}
269 | | ${threshold}= | Set Variable | ${min_rate}
270 | | ${encr_alg}= | Crypto Alg AES CBC 128
271 | | ${auth_alg}= | Integ Alg SHA1 96
272 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
273 | | And Generate keys for IPSec | ${encr_alg} | ${auth_alg}
274 | | And Add PCI devices to DUTs in 3-node single link topology
275 | | And Add no multi seg to all DUTs
276 | | And Add cryptodev to all DUTs | ${2}
277 | | And Apply startup configuration on all VPP DUTs
278 | | When Initialize LISP GPE IPv4 over IPsec in 3-node circular topology
279 | | ... | ${encr_alg} | ${auth_alg}
280 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
281 | | ... | ${binary_max} | ${traffic_profile}
282 | | ... | ${min_rate} | ${max_rate} | ${threshold}
283
284 | tc08-64B-2t2c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-pdrdisc
285 | | [Documentation]
286 | | ... | [Cfg] Each DUT is configured with LISP and IPsec in each direction.\
287 | | ... | IPsec is in transport mode. DUTs are configured with 2 threads, 2 phy\
288 | | ... | cores, 1 receive queue per NIC port.
289 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 40GE\
290 | | ... | linerate, step 100kpps, LT=0.5%.
291 | | ...
292 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
293 | | ...
294 | | ${framesize}= | Set Variable | ${64}
295 | | ${min_rate}= | Set Variable | ${10000}
296 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
297 | | ${binary_min}= | Set Variable | ${min_rate}
298 | | ${binary_max}= | Set Variable | ${max_rate}
299 | | ${threshold}= | Set Variable | ${min_rate}
300 | | ${encr_alg}= | Crypto Alg AES CBC 128
301 | | ${auth_alg}= | Integ Alg SHA1 96
302 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
303 | | And Generate keys for IPSec | ${encr_alg} | ${auth_alg}
304 | | And Add PCI devices to DUTs in 3-node single link topology
305 | | And Add no multi seg to all DUTs
306 | | And Add cryptodev to all DUTs | ${2}
307 | | And Apply startup configuration on all VPP DUTs
308 | | When Initialize LISP GPE IPv4 over IPsec in 3-node circular topology
309 | | ... | ${encr_alg} | ${auth_alg}
310 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
311 | | ... | ${binary_max} | ${traffic_profile}
312 | | ... | ${min_rate} | ${max_rate} | ${threshold}
313 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
314
315 | tc13-64B-4t4c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-ndrdisc
316 | | [Documentation]
317 | | ... | [Cfg] Each DUT is configured with LISP and IPsec in each direction.\
318 | | ... | IPsec is in transport mode. DUTs are configured with 4 threads, 4 phy\
319 | | ... | cores, 2 receive queue per NIC port.
320 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 40GE\
321 | | ... | linerate, step 100kpps.
322 | | ...
323 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
324 | | ...
325 | | ${framesize}= | Set Variable | ${64}
326 | | ${min_rate}= | Set Variable | ${10000}
327 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
328 | | ${binary_min}= | Set Variable | ${min_rate}
329 | | ${binary_max}= | Set Variable | ${max_rate}
330 | | ${threshold}= | Set Variable | ${min_rate}
331 | | ${encr_alg}= | Crypto Alg AES CBC 128
332 | | ${auth_alg}= | Integ Alg SHA1 96
333 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
334 | | And Generate keys for IPSec | ${encr_alg} | ${auth_alg}
335 | | And Add PCI devices to DUTs in 3-node single link topology
336 | | And Add no multi seg to all DUTs
337 | | And Add cryptodev to all DUTs | ${4}
338 | | And Apply startup configuration on all VPP DUTs
339 | | When Initialize LISP GPE IPv4 over IPsec in 3-node circular topology
340 | | ... | ${encr_alg} | ${auth_alg}
341 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
342 | | ... | ${binary_max} | ${traffic_profile}
343 | | ... | ${min_rate} | ${max_rate} | ${threshold}
344
345 | tc14-64B-4t4c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-pdrdisc
346 | | [Documentation]
347 | | ... | [Cfg] Each DUT is configured with LISP and IPsec in each direction.\
348 | | ... | IPsec is in transport mode. DUTs are configured with 4 threads, 4 phy\
349 | | ... | cores, 2 receive queue per NIC port.
350 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 40GE\
351 | | ... | linerate, step 100kpps, LT=0.5%.
352 | | ...
353 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
354 | | ...
355 | | ${framesize}= | Set Variable | ${64}
356 | | ${min_rate}= | Set Variable | ${10000}
357 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
358 | | ${binary_min}= | Set Variable | ${min_rate}
359 | | ${binary_max}= | Set Variable | ${max_rate}
360 | | ${threshold}= | Set Variable | ${min_rate}
361 | | ${encr_alg}= | Crypto Alg AES CBC 128
362 | | ${auth_alg}= | Integ Alg SHA1 96
363 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
364 | | And Generate keys for IPSec | ${encr_alg} | ${auth_alg}
365 | | And Add PCI devices to DUTs in 3-node single link topology
366 | | And Add no multi seg to all DUTs
367 | | And Add cryptodev to all DUTs | ${4}
368 | | And Apply startup configuration on all VPP DUTs
369 | | When Initialize LISP GPE IPv4 over IPsec in 3-node circular topology
370 | | ... | ${encr_alg} | ${auth_alg}
371 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
372 | | ... | ${binary_max} | ${traffic_profile}
373 | | ... | ${min_rate} | ${max_rate} | ${threshold}
374 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}