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