IPsectptLispGpe performance test suite
[csit.git] / tests / perf / 40ge2p1xl710-ethip4ipsectptlispgpe-ip4base-cbc-sha1-ndrdisc.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 | ... | 3-node Performance Suite Setup with DUT's NIC model | L3 | Intel-XL710
26 | ... | AND | Verify Crypto Device On All DUTs | force_init=${True}
27 | ... | AND | Verify Kernel Module On All DUTs | igb_uio | force_load=${True}
28 | Suite Teardown | 3-node Performance Suite Teardown
29 | ...
30 | Test Setup | Performance test setup
31 | Test Teardown | Performance test teardown | ${min_rate}pps | ${framesize}
32 | ... | 3-node-IPv4
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
71 *** Test Cases ***
72 | tc01-64B-1t1c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-ndrdisc
73 | | [Documentation]
74 | | ... | [Cfg] Each DUT is configured with LISP and IPsec in each direction.\
75 | | ... | IPsec is in transport mode. DUTs are configured with 1 thread, 1 phy\
76 | | ... | core, 1 receive queue per NIC port.
77 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 40GE\
78 | | ... | linerate, step 100kpps.
79 | | ...
80 | | [Tags] | 1T1C | STHREAD | NDRDISC
81 | | ...
82 | | ${framesize}= | Set Variable | ${64}
83 | | ${min_rate}= | Set Variable | ${10000}
84 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
85 | | ${binary_min}= | Set Variable | ${min_rate}
86 | | ${binary_max}= | Set Variable | ${max_rate}
87 | | ${threshold}= | Set Variable | ${min_rate}
88 | | ${encr_alg}= | Crypto Alg AES CBC 128
89 | | ${auth_alg}= | Integ Alg SHA1 96
90 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
91 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
92 | | And Add PCI devices to DUTs from 3-node single link topology
93 | | And Add No Multi Seg to all DUTs
94 | | And Add Cryptodev to all DUTs | ${1}
95 | | And Apply startup configuration on all VPP DUTs
96 | | When Lisp GPE IPv4 over IPsec initialized in a 3-node circular topology
97 | | ... | ${encr_alg} | ${auth_alg}
98 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
99 | | ... | ${binary_max} | 3-node-IPv4 | ${min_rate} | ${max_rate} | ${threshold}
100
101 | tc02-64B-1t1c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-pdrdisc
102 | | [Documentation]
103 | | ... | [Cfg] Each DUT is configured with LISP and IPsec in each direction.\
104 | | ... | IPsec is in transport mode. DUTs are configured with 1 thread, 1 phy\
105 | | ... | core, 1 receive queue per NIC port.
106 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 40GE\
107 | | ... | linerate, step 100kpps, LT=0.5%.
108 | | ...
109 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
110 | | ...
111 | | ${framesize}= | Set Variable | ${64}
112 | | ${min_rate}= | Set Variable | ${10000}
113 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
114 | | ${binary_min}= | Set Variable | ${min_rate}
115 | | ${binary_max}= | Set Variable | ${max_rate}
116 | | ${threshold}= | Set Variable | ${min_rate}
117 | | ${encr_alg}= | Crypto Alg AES CBC 128
118 | | ${auth_alg}= | Integ Alg SHA1 96
119 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
120 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
121 | | And Add PCI devices to DUTs from 3-node single link topology
122 | | And Add No Multi Seg to all DUTs
123 | | And Add Cryptodev to all DUTs | ${1}
124 | | And Apply startup configuration on all VPP DUTs
125 | | When Lisp GPE IPv4 over IPsec initialized in a 3-node circular topology
126 | | ... | ${encr_alg} | ${auth_alg}
127 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
128 | | ... | ${binary_max} | 3-node-IPv4 | ${min_rate} | ${max_rate} | ${threshold}
129 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
130
131 | tc03-1518B-1t1c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-ndrdisc
132 | | [Documentation]
133 | | ... | [Cfg] Each DUT is configured with LISP and IPsec in each direction.\
134 | | ... | IPsec is in transport mode. DUTs are configured with 1 thread, 1 phy\
135 | | ... | core, 1 receive queue per NIC port.
136 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 40GE\
137 | | ... | linerate, step 100kpps.
138 | | ...
139 | | [Tags] | 1T1C | STHREAD | NDRDISC
140 | | ...
141 | | ${framesize}= | Set Variable | ${1518}
142 | | ${min_rate}= | Set Variable | ${10000}
143 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize + ${ipsec_overhead}}
144 | | ${binary_min}= | Set Variable | ${min_rate}
145 | | ${binary_max}= | Set Variable | ${max_rate}
146 | | ${threshold}= | Set Variable | ${min_rate}
147 | | ${encr_alg}= | Crypto Alg AES CBC 128
148 | | ${auth_alg}= | Integ Alg SHA1 96
149 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
150 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
151 | | And Add PCI devices to DUTs from 3-node single link topology
152 | | And Add Cryptodev to all DUTs | ${1}
153 | | And Apply startup configuration on all VPP DUTs
154 | | When Lisp GPE IPv4 over IPsec initialized in a 3-node circular topology
155 | | ... | ${encr_alg} | ${auth_alg}
156 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
157 | | ... | ${binary_max} | 3-node-IPv4 | ${min_rate} | ${max_rate} | ${threshold}
158
159 | tc04-1518B-1t1c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-pdrdisc
160 | | [Documentation]
161 | | ... | [Cfg] Each DUT is configured with LISP and IPsec in each direction.\
162 | | ... | IPsec is in transport mode. DUTs are configured with 1 thread, 1 phy\
163 | | ... | core, 1 receive queue per NIC port.
164 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 40GE\
165 | | ... | linerate, step 100kpps, LT=0.5%.
166 | | ...
167 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
168 | | ...
169 | | ${framesize}= | Set Variable | ${1518}
170 | | ${min_rate}= | Set Variable | ${10000}
171 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize + ${ipsec_overhead}}
172 | | ${binary_min}= | Set Variable | ${min_rate}
173 | | ${binary_max}= | Set Variable | ${max_rate}
174 | | ${threshold}= | Set Variable | ${min_rate}
175 | | ${encr_alg}= | Crypto Alg AES CBC 128
176 | | ${auth_alg}= | Integ Alg SHA1 96
177 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
178 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
179 | | And Add PCI devices to DUTs from 3-node single link topology
180 | | And Add Cryptodev to all DUTs | ${1}
181 | | And Apply startup configuration on all VPP DUTs
182 | | When Lisp GPE IPv4 over IPsec initialized in a 3-node circular topology
183 | | ... | ${encr_alg} | ${auth_alg}
184 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
185 | | ... | ${binary_max} | 3-node-IPv4 | ${min_rate} | ${max_rate} | ${threshold}
186 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
187
188 | tc05-IMIX-1t1c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-ndrdisc
189 | | [Documentation]
190 | | ... | [Cfg] Each DUT is configured with LISP and IPsec in each direction.\
191 | | ... | IPsec is in transport mode. DUTs are configured with 1 thread, 1 phy\
192 | | ... | core, 1 receive queue per NIC port.
193 | | ... | [Ver] Find NDR for IMIX_v4_1 frames using binary search start at 40GE\
194 | | ... | linerate, step 100kpps.
195 | | ...
196 | | [Tags] | 1T1C | STHREAD | NDRDISC
197 | | ...
198 | | ${framesize}= | Set Variable | IMIX_v4_1
199 | | ${imix_size}= | Get Frame Size | ${framesize}
200 | | ${min_rate}= | Set Variable | ${10000}
201 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${imix_size} + ${ipsec_overhead}
202 | | ${binary_min}= | Set Variable | ${min_rate}
203 | | ${binary_max}= | Set Variable | ${max_rate}
204 | | ${threshold}= | Set Variable | ${min_rate}
205 | | ${encr_alg}= | Crypto Alg AES CBC 128
206 | | ${auth_alg}= | Integ Alg SHA1 96
207 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
208 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
209 | | And Add PCI devices to DUTs from 3-node single link topology
210 | | And Add Cryptodev to all DUTs | ${1}
211 | | And Apply startup configuration on all VPP DUTs
212 | | When Lisp GPE IPv4 over IPsec initialized in a 3-node circular topology
213 | | ... | ${encr_alg} | ${auth_alg}
214 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
215 | | ... | ${binary_max} | 3-node-IPv4 | ${min_rate} | ${max_rate} | ${threshold}
216
217 | tc06-IMIX-1t1c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-pdrdisc
218 | | [Documentation]
219 | | ... | [Cfg] Each DUT is configured with LISP and IPsec in each direction.\
220 | | ... | IPsec is in transport mode. DUTs are configured with 1 thread, 1 phy\
221 | | ... | core, 1 receive queue per NIC port.
222 | | ... | [Ver] Find NDR for IMIX_v4_1 frames using binary search start at 40GE\
223 | | ... | linerate, step 100kpps, LT=0.5%.
224 | | ...
225 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
226 | | ...
227 | | ${framesize}= | Set Variable | IMIX_v4_1
228 | | ${imix_size}= | Get Frame Size | ${framesize}
229 | | ${min_rate}= | Set Variable | ${10000}
230 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${imix_size} + ${ipsec_overhead}
231 | | ${binary_min}= | Set Variable | ${min_rate}
232 | | ${binary_max}= | Set Variable | ${max_rate}
233 | | ${threshold}= | Set Variable | ${min_rate}
234 | | ${encr_alg}= | Crypto Alg AES CBC 128
235 | | ${auth_alg}= | Integ Alg SHA1 96
236 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
237 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
238 | | And Add PCI devices to DUTs from 3-node single link topology
239 | | And Add Cryptodev to all DUTs | ${1}
240 | | And Apply startup configuration on all VPP DUTs
241 | | When Lisp GPE IPv4 over IPsec initialized in a 3-node circular topology
242 | | ... | ${encr_alg} | ${auth_alg}
243 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
244 | | ... | ${binary_max} | 3-node-IPv4 | ${min_rate} | ${max_rate} | ${threshold}
245 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
246
247 | tc07-64B-2t2c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-ndrdisc
248 | | [Documentation]
249 | | ... | [Cfg] Each DUT is configured with LISP and IPsec in each direction.\
250 | | ... | IPsec is in transport mode. DUTs are configured with 2 threads, 2 phy\
251 | | ... | cores, 1 receive queue per NIC port.
252 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 40GE\
253 | | ... | linerate, step 100kpps.
254 | | ...
255 | | [Tags] | 2T2C | MTHREAD | NDRDISC
256 | | ...
257 | | ${framesize}= | Set Variable | ${64}
258 | | ${min_rate}= | Set Variable | ${10000}
259 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
260 | | ${binary_min}= | Set Variable | ${min_rate}
261 | | ${binary_max}= | Set Variable | ${max_rate}
262 | | ${threshold}= | Set Variable | ${min_rate}
263 | | ${encr_alg}= | Crypto Alg AES CBC 128
264 | | ${auth_alg}= | Integ Alg SHA1 96
265 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
266 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
267 | | And Add PCI devices to DUTs from 3-node single link topology
268 | | And Add No Multi Seg to all DUTs
269 | | And Add Cryptodev to all DUTs | ${2}
270 | | And Apply startup configuration on all VPP DUTs
271 | | When Lisp GPE IPv4 over IPsec initialized in a 3-node circular topology
272 | | ... | ${encr_alg} | ${auth_alg}
273 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
274 | | ... | ${binary_max} | 3-node-IPv4 | ${min_rate} | ${max_rate} | ${threshold}
275
276 | tc08-64B-2t2c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-pdrdisc
277 | | [Documentation]
278 | | ... | [Cfg] Each DUT is configured with LISP and IPsec in each direction.\
279 | | ... | IPsec is in transport mode. DUTs are configured with 2 threads, 2 phy\
280 | | ... | cores, 1 receive queue per NIC port.
281 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 40GE\
282 | | ... | linerate, step 100kpps, LT=0.5%.
283 | | ...
284 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
285 | | ...
286 | | ${framesize}= | Set Variable | ${64}
287 | | ${min_rate}= | Set Variable | ${10000}
288 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
289 | | ${binary_min}= | Set Variable | ${min_rate}
290 | | ${binary_max}= | Set Variable | ${max_rate}
291 | | ${threshold}= | Set Variable | ${min_rate}
292 | | ${encr_alg}= | Crypto Alg AES CBC 128
293 | | ${auth_alg}= | Integ Alg SHA1 96
294 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
295 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
296 | | And Add PCI devices to DUTs from 3-node single link topology
297 | | And Add No Multi Seg to all DUTs
298 | | And Add Cryptodev to all DUTs | ${2}
299 | | And Apply startup configuration on all VPP DUTs
300 | | When Lisp GPE IPv4 over IPsec initialized in a 3-node circular topology
301 | | ... | ${encr_alg} | ${auth_alg}
302 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
303 | | ... | ${binary_max} | 3-node-IPv4 | ${min_rate} | ${max_rate} | ${threshold}
304 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
305
306 | tc13-64B-4t4c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-ndrdisc
307 | | [Documentation]
308 | | ... | [Cfg] Each DUT is configured with LISP and IPsec in each direction.\
309 | | ... | IPsec is in transport mode. DUTs are configured with 4 threads, 4 phy\
310 | | ... | cores, 2 receive queue per NIC port.
311 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 40GE\
312 | | ... | linerate, step 100kpps.
313 | | ...
314 | | [Tags] | 4T4C | MTHREAD | NDRDISC
315 | | ...
316 | | ${framesize}= | Set Variable | ${64}
317 | | ${min_rate}= | Set Variable | ${10000}
318 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
319 | | ${binary_min}= | Set Variable | ${min_rate}
320 | | ${binary_max}= | Set Variable | ${max_rate}
321 | | ${threshold}= | Set Variable | ${min_rate}
322 | | ${encr_alg}= | Crypto Alg AES CBC 128
323 | | ${auth_alg}= | Integ Alg SHA1 96
324 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
325 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
326 | | And Add PCI devices to DUTs from 3-node single link topology
327 | | And Add No Multi Seg to all DUTs
328 | | And Add Cryptodev to all DUTs | ${4}
329 | | And Apply startup configuration on all VPP DUTs
330 | | When Lisp GPE IPv4 over IPsec initialized in a 3-node circular topology
331 | | ... | ${encr_alg} | ${auth_alg}
332 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
333 | | ... | ${binary_max} | 3-node-IPv4 | ${min_rate} | ${max_rate} | ${threshold}
334
335 | tc14-64B-4t4c-ethip4ipsectptlispgpe-ip4base-cbc-sha1-pdrdisc
336 | | [Documentation]
337 | | ... | [Cfg] Each DUT is configured with LISP and IPsec in each direction.\
338 | | ... | IPsec is in transport mode. DUTs are configured with 4 threads, 4 phy\
339 | | ... | cores, 2 receive queue per NIC port.
340 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 40GE\
341 | | ... | linerate, step 100kpps, LT=0.5%.
342 | | ...
343 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
344 | | ...
345 | | ${framesize}= | Set Variable | ${64}
346 | | ${min_rate}= | Set Variable | ${10000}
347 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
348 | | ${binary_min}= | Set Variable | ${min_rate}
349 | | ${binary_max}= | Set Variable | ${max_rate}
350 | | ${threshold}= | Set Variable | ${min_rate}
351 | | ${encr_alg}= | Crypto Alg AES CBC 128
352 | | ${auth_alg}= | Integ Alg SHA1 96
353 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
354 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
355 | | And Add PCI devices to DUTs from 3-node single link topology
356 | | And Add No Multi Seg to all DUTs
357 | | And Add Cryptodev to all DUTs | ${4}
358 | | And Apply startup configuration on all VPP DUTs
359 | | When Lisp GPE IPv4 over IPsec initialized in a 3-node circular topology
360 | | ... | ${encr_alg} | ${auth_alg}
361 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
362 | | ... | ${binary_max} | 3-node-IPv4 | ${min_rate} | ${max_rate} | ${threshold}
363 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}