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