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