Added Ethernet frame size tags for performance tests:
[csit.git] / tests / perf / 40ge2p1xl710-ethip4ipsecscaleip4-ip4base-tunnels-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.robot
16 | Resource | resources/libraries/robot/ipsec.robot
17 | ...
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | SCALE | NDRPDRDISC
19 | ... | IP4FWD | IPSEC | IPSECHW | IPSECTUN | NIC_Intel-XL710
20 | ...
21 | Suite Setup | Run Keywords
22 | ... | 3-node Performance Suite Setup with DUT's NIC model | L3 | Intel-XL710
23 | ... | AND | Verify Crypto Device On All DUTs | force_init=${True}
24 | ... | AND | Verify Kernel Module On All DUTs | igb_uio | force_load=${True}
25 | Suite Teardown | 3-node Performance Suite Teardown
26 | ...
27 | Test Setup | Performance test setup
28 | Test Teardown | Performance test teardown | ${min_rate}pps | ${framesize}
29 | ... | 3-node-IPv4-dst-${n_tunnels}
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
72 *** Test Cases ***
73 | tc01-64B-1t1c-ethip4ipsecscale1ip4-ip4base-tunnels-aes-gcm-ndrdisc
74 | | [Documentation]
75 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM in each direction, configured\
76 | | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port.
77 | | ... | [Ver] Find NDR for 64 Byte frames\
78 | | ... | using binary search start at 40GE linerate, step 100kpps.
79 | | ...
80 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
81 | | ...
82 | | ${n_tunnels}= | Set Variable | ${1}
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 GCM 128
90 | | ${auth_alg}= | Integ Alg AES GCM 128
91 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
92 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
93 | | And Add PCI devices to DUTs from 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 | | And IPsec initialized in a 3-node circular topology
98 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
99 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
100 | | And VPP IPsec Add Multiple Tunnels
101 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
102 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
103 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
104 | | ... | ${addr_range}
105 | | Then Find NDR using binary search and pps | ${framesize}
106 | | ... | ${binary_min} | ${binary_max} | 3-node-IPv4-dst-${n_tunnels}
107 | | ... | ${min_rate} | ${max_rate} | ${threshold}
108
109 | tc02-64B-1t1c-ethip4ipsecscale1ip4-ip4base-tunnels-aes-gcm-pdrdisc
110 | | [Documentation]
111 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM in each direction, configured\
112 | | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port.
113 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 40GE\
114 | | ... | linerate, step 100kpps and loss tolerance of 0.5%.
115 | | ...
116 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
117 | | ...
118 | | ${n_tunnels}= | Set Variable | ${1}
119 | | ${framesize}= | Set Variable | ${64}
120 | | ${min_rate}= | Set Variable | ${10000}
121 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
122 | | ${binary_min}= | Set Variable | ${min_rate}
123 | | ${binary_max}= | Set Variable | ${max_rate}
124 | | ${threshold}= | Set Variable | ${min_rate}
125 | | ${encr_alg}= | Crypto Alg AES GCM 128
126 | | ${auth_alg}= | Integ Alg AES GCM 128
127 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
128 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
129 | | And Add PCI devices to DUTs from 3-node single link topology
130 | | And Add No Multi Seg to all DUTs
131 | | And Add Cryptodev to all DUTs | ${1}
132 | | And Apply startup configuration on all VPP DUTs
133 | | And IPsec initialized in a 3-node circular topology
134 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
135 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
136 | | And VPP IPsec Add Multiple Tunnels
137 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
138 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
139 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
140 | | ... | ${addr_range}
141 | | Then Find PDR using binary search and pps | ${framesize}
142 | | ... | ${binary_min} | ${binary_max} | 3-node-IPv4-dst-${n_tunnels}
143 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
144 | | ... | ${perf_pdr_loss_acceptance_type}
145
146 | tc03-64B-1t1c-ethip4ipsecscale1000ip4-ip4base-tunnels-aes-gcm-ndrdisc
147 | | [Documentation]
148 | | ... | [Cfg] DUTs run 1000 IPsec tunnels AES GCM in each direction,\
149 | | ... | configured with 1 thread, 1 phy core, 1 receive queue per NIC port.
150 | | ... | [Ver] Find NDR for 64 Byte frames\
151 | | ... | using binary search start at 40GE linerate, step 100kpps.
152 | | ...
153 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
154 | | ...
155 | | ${n_tunnels}= | Set Variable | ${1000}
156 | | ${framesize}= | Set Variable | ${64}
157 | | ${min_rate}= | Set Variable | ${10000}
158 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
159 | | ${binary_min}= | Set Variable | ${min_rate}
160 | | ${binary_max}= | Set Variable | ${max_rate}
161 | | ${threshold}= | Set Variable | ${min_rate}
162 | | ${encr_alg}= | Crypto Alg AES GCM 128
163 | | ${auth_alg}= | Integ Alg AES GCM 128
164 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
165 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
166 | | And Add PCI devices to DUTs from 3-node single link topology
167 | | And Add No Multi Seg to all DUTs
168 | | And Add Cryptodev to all DUTs | ${1}
169 | | And Apply startup configuration on all VPP DUTs
170 | | And IPsec initialized in a 3-node circular topology
171 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
172 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
173 | | And VPP IPsec Add Multiple Tunnels
174 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
175 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
176 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
177 | | ... | ${addr_range}
178 | | Then Find NDR using binary search and pps | ${framesize}
179 | | ... | ${binary_min} | ${binary_max} | 3-node-IPv4-dst-${n_tunnels}
180 | | ... | ${min_rate} | ${max_rate} | ${threshold}
181
182 | tc04-64B-1t1c-ethip4ipsecscale1000ip4-ip4base-tunnels-aes-gcm-pdrdisc
183 | | [Documentation]
184 | | ... | [Cfg] DUTs run 1000 IPsec tunnels AES GCM in each direction,\
185 | | ... | configured with 1 thread, 1 phy core, 1 receive queue per NIC port.
186 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 40GE\
187 | | ... | linerate, step 100kpps and loss tolerance of 0.5%.
188 | | ...
189 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
190 | | ...
191 | | ${n_tunnels}= | Set Variable | ${1000}
192 | | ${framesize}= | Set Variable | ${64}
193 | | ${min_rate}= | Set Variable | ${10000}
194 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
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 '1' worker threads and rxqueues '1' in 3-node single-link topo
201 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
202 | | And Add PCI devices to DUTs from 3-node single link topology
203 | | And Add No Multi Seg to all DUTs
204 | | And Add Cryptodev to all DUTs | ${1}
205 | | And Apply startup configuration on all VPP DUTs
206 | | And IPsec initialized in a 3-node circular topology
207 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
208 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
209 | | And VPP IPsec Add Multiple Tunnels
210 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
211 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
212 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
213 | | ... | ${addr_range}
214 | | Then Find PDR using binary search and pps | ${framesize}
215 | | ... | ${binary_min} | ${binary_max} | 3-node-IPv4-dst-${n_tunnels}
216 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
217 | | ... | ${perf_pdr_loss_acceptance_type}
218
219 | tc05-1518B-1t1c-ethip4ipsecscale1ip4-ip4base-tunnels-aes-gcm-ndrdisc
220 | | [Documentation]
221 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM in each direction, configured\
222 | | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port.
223 | | ... | [Ver] Find NDR for 1518 Byte frames\
224 | | ... | using binary search start at 40GE linerate, step 100kpps.
225 | | ...
226 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
227 | | ...
228 | | ${n_tunnels}= | Set Variable | ${1}
229 | | ${framesize}= | Set Variable | ${1518}
230 | | ${min_rate}= | Set Variable | ${10000}
231 | | ${max_rate}= | Calculate pps | ${s_24.5G}
232 | | ... | ${framesize + ${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 '1' worker threads and rxqueues '1' in 3-node single-link topo
239 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
240 | | And Add PCI devices to DUTs from 3-node single link topology
241 | | And Add Cryptodev to all DUTs | ${1}
242 | | And Apply startup configuration on all VPP DUTs
243 | | And IPsec initialized in a 3-node circular topology
244 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
245 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
246 | | And VPP IPsec Add Multiple Tunnels
247 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
248 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
249 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
250 | | ... | ${addr_range}
251 | | Then Find NDR using binary search and pps | ${framesize}
252 | | ... | ${binary_min} | ${binary_max} | 3-node-IPv4-dst-${n_tunnels}
253 | | ... | ${min_rate} | ${max_rate} | ${threshold}
254
255 | tc06-1518B-1t1c-ethip4ipsecscale1ip4-ip4base-tunnels-aes-gcm-pdrdisc
256 | | [Documentation]
257 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM in each direction, configured\
258 | | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port.
259 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 40GE\
260 | | ... | linerate, step 100kpps and loss tolerance of 0.5%.
261 | | ...
262 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
263 | | ...
264 | | ${n_tunnels}= | Set Variable | ${1}
265 | | ${framesize}= | Set Variable | ${1518}
266 | | ${min_rate}= | Set Variable | ${10000}
267 | | ${max_rate}= | Calculate pps | ${s_24.5G}
268 | | ... | ${framesize + ${ipsec_overhead_gcm}}
269 | | ${binary_min}= | Set Variable | ${min_rate}
270 | | ${binary_max}= | Set Variable | ${max_rate}
271 | | ${threshold}= | Set Variable | ${min_rate}
272 | | ${encr_alg}= | Crypto Alg AES GCM 128
273 | | ${auth_alg}= | Integ Alg AES GCM 128
274 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
275 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
276 | | And Add PCI devices to DUTs from 3-node single link topology
277 | | And Add Cryptodev to all DUTs | ${1}
278 | | And Apply startup configuration on all VPP DUTs
279 | | And IPsec initialized in a 3-node circular topology
280 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
281 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
282 | | And VPP IPsec Add Multiple Tunnels
283 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
284 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
285 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
286 | | ... | ${addr_range}
287 | | Then Find PDR using binary search and pps | ${framesize}
288 | | ... | ${binary_min} | ${binary_max} | 3-node-IPv4-dst-${n_tunnels}
289 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
290 | | ... | ${perf_pdr_loss_acceptance_type}
291
292 | tc07-1518B-1t1c-ethip4ipsecscale1000ip4-ip4base-tunnels-aes-gcm-ndrdisc
293 | | [Documentation]
294 | | ... | [Cfg] DUTs run 1000 IPsec tunnels AES GCM in each direction,\
295 | | ... | configured with 1 thread, 1 phy core, 1 receive queue per NIC port.
296 | | ... | [Ver] Find NDR for 1518 Byte frames\
297 | | ... | using binary search start at 40GE linerate, step 100kpps.
298 | | ...
299 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
300 | | ...
301 | | ${n_tunnels}= | Set Variable | ${1000}
302 | | ${framesize}= | Set Variable | ${1518}
303 | | ${min_rate}= | Set Variable | ${10000}
304 | | ${max_rate}= | Calculate pps | ${s_24.5G}
305 | | ... | ${framesize + ${ipsec_overhead_gcm}}
306 | | ${binary_min}= | Set Variable | ${min_rate}
307 | | ${binary_max}= | Set Variable | ${max_rate}
308 | | ${threshold}= | Set Variable | ${min_rate}
309 | | ${encr_alg}= | Crypto Alg AES GCM 128
310 | | ${auth_alg}= | Integ Alg AES GCM 128
311 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
312 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
313 | | And Add PCI devices to DUTs from 3-node single link topology
314 | | And Add Cryptodev to all DUTs | ${1}
315 | | And Apply startup configuration on all VPP DUTs
316 | | And IPsec initialized in a 3-node circular topology
317 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
318 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
319 | | And VPP IPsec Add Multiple Tunnels
320 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
321 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
322 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
323 | | ... | ${addr_range}
324 | | Then Find NDR using binary search and pps | ${framesize}
325 | | ... | ${binary_min} | ${binary_max} | 3-node-IPv4-dst-${n_tunnels}
326 | | ... | ${min_rate} | ${max_rate} | ${threshold}
327
328 | tc08-1518B-1t1c-ethip4ipsecscale1000ip4-ip4base-tunnels-aes-gcm-pdrdisc
329 | | [Documentation]
330 | | ... | [Cfg] DUTs run 1000 IPsec tunnel AES GCM in each direction,\
331 | | ... | configured with 1 thread, 1 phy core, 1 receive queue per NIC port.
332 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 40GE\
333 | | ... | linerate, step 100kpps and loss tolerance of 0.5%.
334 | | ...
335 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
336 | | ...
337 | | ${n_tunnels}= | Set Variable | ${1000}
338 | | ${framesize}= | Set Variable | ${1518}
339 | | ${min_rate}= | Set Variable | ${10000}
340 | | ${max_rate}= | Calculate pps | ${s_24.5G}
341 | | ... | ${framesize + ${ipsec_overhead_gcm}}
342 | | ${binary_min}= | Set Variable | ${min_rate}
343 | | ${binary_max}= | Set Variable | ${max_rate}
344 | | ${threshold}= | Set Variable | ${min_rate}
345 | | ${encr_alg}= | Crypto Alg AES GCM 128
346 | | ${auth_alg}= | Integ Alg AES GCM 128
347 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
348 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
349 | | And Add PCI devices to DUTs from 3-node single link topology
350 | | And Add Cryptodev to all DUTs | ${1}
351 | | And Apply startup configuration on all VPP DUTs
352 | | And IPsec initialized in a 3-node circular topology
353 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
354 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
355 | | And VPP IPsec Add Multiple Tunnels
356 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
357 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
358 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
359 | | ... | ${addr_range}
360 | | Then Find PDR using binary search and pps | ${framesize}
361 | | ... | ${binary_min} | ${binary_max} | 3-node-IPv4-dst-${n_tunnels}
362 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
363 | | ... | ${perf_pdr_loss_acceptance_type}
364
365 | tc09-IMIX-1t1c-ethip4ipsecscale1ip4-ip4base-tunnels-aes-gcm-ndrdisc
366 | | [Documentation]
367 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM in each direction, configured\
368 | | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port.
369 | | ... | [Ver] Find NDR for IMIX_v4_1 frames\
370 | | ... | using binary search start at 40GE linerate, step 100kpps.
371 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
372 | | ...
373 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
374 | | ...
375 | | ${n_tunnels}= | Set Variable | ${1}
376 | | ${framesize}= | Set Variable | IMIX_v4_1
377 | | ${imix_size}= | Get Frame Size | ${framesize}
378 | | ${min_rate}= | Set Variable | ${10000}
379 | | ${max_rate}= | Calculate pps | ${s_24.5G}
380 | | ... | ${imix_size} + ${ipsec_overhead_gcm}
381 | | ${binary_min}= | Set Variable | ${min_rate}
382 | | ${binary_max}= | Set Variable | ${max_rate}
383 | | ${threshold}= | Set Variable | ${min_rate}
384 | | ${encr_alg}= | Crypto Alg AES GCM 128
385 | | ${auth_alg}= | Integ Alg AES GCM 128
386 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
387 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
388 | | And Add PCI devices to DUTs from 3-node single link topology
389 | | And Add Cryptodev to all DUTs | ${1}
390 | | And Apply startup configuration on all VPP DUTs
391 | | And IPsec initialized in a 3-node circular topology
392 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
393 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
394 | | And VPP IPsec Add Multiple Tunnels
395 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
396 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
397 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
398 | | ... | ${addr_range}
399 | | Then Find NDR using binary search and pps | ${framesize}
400 | | ... | ${binary_min} | ${binary_max} | 3-node-IPv4-dst-${n_tunnels}
401 | | ... | ${min_rate} | ${max_rate} | ${threshold}
402
403 | tc10-IMIX-1t1c-ethip4ipsecscale1ip4-ip4base-tunnels-aes-gcm-pdrdisc
404 | | [Documentation]
405 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM in each direction, configured\
406 | | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port.
407 | | ... | [Ver] Find PDR for IMIX_v4_1 frames using binary search start at 40GE\
408 | | ... | linerate, step 100kpps and loss tolerance of 0.5%.
409 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
410 | | ...
411 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
412 | | ...
413 | | ${n_tunnels}= | Set Variable | ${1}
414 | | ${framesize}= | Set Variable | IMIX_v4_1
415 | | ${imix_size}= | Get Frame Size | ${framesize}
416 | | ${min_rate}= | Set Variable | ${10000}
417 | | ${max_rate}= | Calculate pps | ${s_24.5G}
418 | | ... | ${imix_size} + ${ipsec_overhead_gcm}
419 | | ${binary_min}= | Set Variable | ${min_rate}
420 | | ${binary_max}= | Set Variable | ${max_rate}
421 | | ${threshold}= | Set Variable | ${min_rate}
422 | | ${encr_alg}= | Crypto Alg AES GCM 128
423 | | ${auth_alg}= | Integ Alg AES GCM 128
424 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
425 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
426 | | And Add PCI devices to DUTs from 3-node single link topology
427 | | And Add Cryptodev to all DUTs | ${1}
428 | | And Apply startup configuration on all VPP DUTs
429 | | And IPsec initialized in a 3-node circular topology
430 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
431 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
432 | | And VPP IPsec Add Multiple Tunnels
433 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
434 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
435 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
436 | | ... | ${addr_range}
437 | | Then Find PDR using binary search and pps | ${framesize}
438 | | ... | ${binary_min} | ${binary_max} | 3-node-IPv4-dst-${n_tunnels}
439 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
440 | | ... | ${perf_pdr_loss_acceptance_type}
441
442 | tc11-IMIX-1t1c-ethip4ipsecscale1000ip4-ip4base-tunnels-aes-gcm-ndrdisc
443 | | [Documentation]
444 | | ... | [Cfg] DUTs run 1000 IPsec tunnels AES GCM in each direction,\
445 | | ... | configured with 1 thread, 1 phy core, 1 receive queue per NIC port.
446 | | ... | [Ver] Find NDR for IMIX_v4_1 frames\
447 | | ... | using binary search start at 40GE linerate, step 100kpps.
448 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
449 | | ...
450 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
451 | | ...
452 | | ${n_tunnels}= | Set Variable | ${1000}
453 | | ${framesize}= | Set Variable | IMIX_v4_1
454 | | ${imix_size}= | Get Frame Size | ${framesize}
455 | | ${min_rate}= | Set Variable | ${10000}
456 | | ${max_rate}= | Calculate pps | ${s_24.5G}
457 | | ... | ${imix_size} + ${ipsec_overhead_gcm}
458 | | ${binary_min}= | Set Variable | ${min_rate}
459 | | ${binary_max}= | Set Variable | ${max_rate}
460 | | ${threshold}= | Set Variable | ${min_rate}
461 | | ${encr_alg}= | Crypto Alg AES GCM 128
462 | | ${auth_alg}= | Integ Alg AES GCM 128
463 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
464 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
465 | | And Add PCI devices to DUTs from 3-node single link topology
466 | | And Add Cryptodev to all DUTs | ${1}
467 | | And Apply startup configuration on all VPP DUTs
468 | | And IPsec initialized in a 3-node circular topology
469 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
470 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
471 | | And VPP IPsec Add Multiple Tunnels
472 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
473 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
474 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
475 | | ... | ${addr_range}
476 | | Then Find NDR using binary search and pps | ${framesize}
477 | | ... | ${binary_min} | ${binary_max} | 3-node-IPv4-dst-${n_tunnels}
478 | | ... | ${min_rate} | ${max_rate} | ${threshold}
479
480 | tc12-IMIX-1t1c-ethip4ipsecscale1000ip4-ip4base-tunnels-aes-gcm-pdrdisc
481 | | [Documentation]
482 | | ... | [Cfg] DUTs run 1000 IPsec tunnels AES GCM in each direction,\
483 | | ... | configured with 1 thread, 1 phy core, 1 receive queue per NIC port.
484 | | ... | [Ver] Find PDR for IMIX_v4_1 frames using binary search start at 40GE\
485 | | ... | linerate, step 100kpps and loss tolerance of 0.5%.
486 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
487 | | ...
488 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
489 | | ...
490 | | ${n_tunnels}= | Set Variable | ${1000}
491 | | ${framesize}= | Set Variable | IMIX_v4_1
492 | | ${imix_size}= | Get Frame Size | ${framesize}
493 | | ${min_rate}= | Set Variable | ${10000}
494 | | ${max_rate}= | Calculate pps | ${s_24.5G}
495 | | ... | ${imix_size} + ${ipsec_overhead_gcm}
496 | | ${binary_min}= | Set Variable | ${min_rate}
497 | | ${binary_max}= | Set Variable | ${max_rate}
498 | | ${threshold}= | Set Variable | ${min_rate}
499 | | ${encr_alg}= | Crypto Alg AES GCM 128
500 | | ${auth_alg}= | Integ Alg AES GCM 128
501 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
502 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
503 | | And Add PCI devices to DUTs from 3-node single link topology
504 | | And Add Cryptodev to all DUTs | ${1}
505 | | And Apply startup configuration on all VPP DUTs
506 | | And IPsec initialized in a 3-node circular topology
507 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
508 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
509 | | And VPP IPsec Add Multiple Tunnels
510 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
511 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
512 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
513 | | ... | ${addr_range}
514 | | Then Find PDR using binary search and pps | ${framesize}
515 | | ... | ${binary_min} | ${binary_max} | 3-node-IPv4-dst-${n_tunnels}
516 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
517 | | ... | ${perf_pdr_loss_acceptance_type}
518
519 | tc13-64B-2t2c-ethip4ipsecscale1ip4-ip4base-tunnels-aes-gcm-ndrdisc
520 | | [Documentation]
521 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM in each direction, configured\
522 | | ... | with 2 thread, 2 phy core, 1 receive queue per NIC port.
523 | | ... | [Ver] Find NDR for 64 Byte frames\
524 | | ... | using binary search start at 40GE linerate, step 100kpps.
525 | | ...
526 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
527 | | ...
528 | | ${n_tunnels}= | Set Variable | ${1}
529 | | ${framesize}= | Set Variable | ${64}
530 | | ${min_rate}= | Set Variable | ${10000}
531 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
532 | | ${binary_min}= | Set Variable | ${min_rate}
533 | | ${binary_max}= | Set Variable | ${max_rate}
534 | | ${threshold}= | Set Variable | ${min_rate}
535 | | ${encr_alg}= | Crypto Alg AES GCM 128
536 | | ${auth_alg}= | Integ Alg AES GCM 128
537 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
538 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
539 | | And Add PCI devices to DUTs from 3-node single link topology
540 | | And Add No Multi Seg to all DUTs
541 | | And Add Cryptodev to all DUTs | ${2}
542 | | And Apply startup configuration on all VPP DUTs
543 | | And IPsec initialized in a 3-node circular topology
544 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
545 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
546 | | And VPP IPsec Add Multiple Tunnels
547 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
548 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
549 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
550 | | ... | ${addr_range}
551 | | Then Find NDR using binary search and pps | ${framesize}
552 | | ... | ${binary_min} | ${binary_max} | 3-node-IPv4-dst-${n_tunnels}
553 | | ... | ${min_rate} | ${max_rate} | ${threshold}
554
555 | tc14-64B-2t2c-ethip4ipsecscale1ip4-ip4base-tunnels-aes-gcm-pdrdisc
556 | | [Documentation]
557 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM in each direction, configured\
558 | | ... | with 2 thread, 2 phy core, 1 receive queue per NIC port.
559 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 40GE\
560 | | ... | linerate, step 100kpps and loss tolerance of 0.5%.
561 | | ...
562 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
563 | | ...
564 | | ${n_tunnels}= | Set Variable | ${1}
565 | | ${framesize}= | Set Variable | ${64}
566 | | ${min_rate}= | Set Variable | ${10000}
567 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
568 | | ${binary_min}= | Set Variable | ${min_rate}
569 | | ${binary_max}= | Set Variable | ${max_rate}
570 | | ${threshold}= | Set Variable | ${min_rate}
571 | | ${encr_alg}= | Crypto Alg AES GCM 128
572 | | ${auth_alg}= | Integ Alg AES GCM 128
573 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
574 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
575 | | And Add PCI devices to DUTs from 3-node single link topology
576 | | And Add No Multi Seg to all DUTs
577 | | And Add Cryptodev to all DUTs | ${2}
578 | | And Apply startup configuration on all VPP DUTs
579 | | And IPsec initialized in a 3-node circular topology
580 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
581 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
582 | | And VPP IPsec Add Multiple Tunnels
583 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
584 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
585 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
586 | | ... | ${addr_range}
587 | | Then Find PDR using binary search and pps | ${framesize}
588 | | ... | ${binary_min} | ${binary_max} | 3-node-IPv4-dst-${n_tunnels}
589 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
590 | | ... | ${perf_pdr_loss_acceptance_type}
591
592 | tc15-64B-2t2c-ethip4ipsecscale1000ip4-ip4base-tunnels-aes-gcm-ndrdisc
593 | | [Documentation]
594 | | ... | [Cfg] DUTs run 1000 IPsec tunnels AES GCM in each direction,\
595 | | ... | configured with 2 thread, 2 phy core, 1 receive queue per NIC port.
596 | | ... | [Ver] Find NDR for 64 Byte frames\
597 | | ... | using binary search start at 40GE linerate, step 100kpps.
598 | | ...
599 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
600 | | ...
601 | | ${n_tunnels}= | Set Variable | ${1000}
602 | | ${framesize}= | Set Variable | ${64}
603 | | ${min_rate}= | Set Variable | ${10000}
604 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
605 | | ${binary_min}= | Set Variable | ${min_rate}
606 | | ${binary_max}= | Set Variable | ${max_rate}
607 | | ${threshold}= | Set Variable | ${min_rate}
608 | | ${encr_alg}= | Crypto Alg AES GCM 128
609 | | ${auth_alg}= | Integ Alg AES GCM 128
610 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
611 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
612 | | And Add PCI devices to DUTs from 3-node single link topology
613 | | And Add No Multi Seg to all DUTs
614 | | And Add Cryptodev to all DUTs | ${2}
615 | | And Apply startup configuration on all VPP DUTs
616 | | And IPsec initialized in a 3-node circular topology
617 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
618 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
619 | | And VPP IPsec Add Multiple Tunnels
620 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
621 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
622 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
623 | | ... | ${addr_range}
624 | | Then Find NDR using binary search and pps | ${framesize}
625 | | ... | ${binary_min} | ${binary_max} | 3-node-IPv4-dst-${n_tunnels}
626 | | ... | ${min_rate} | ${max_rate} | ${threshold}
627
628 | tc16-64B-2t2c-ethip4ipsecscale1000ip4-ip4base-tunnels-aes-gcm-pdrdisc
629 | | [Documentation]
630 | | ... | [Cfg] DUTs run 1000 IPsec tunnels AES GCM in each direction,\
631 | | ... | configured with 2 thread, 2 phy core, 1 receive queue per NIC port.
632 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 40GE\
633 | | ... | linerate, step 100kpps and loss tolerance of 0.5%.
634 | | ...
635 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
636 | | ...
637 | | ${n_tunnels}= | Set Variable | ${1000}
638 | | ${framesize}= | Set Variable | ${64}
639 | | ${min_rate}= | Set Variable | ${10000}
640 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
641 | | ${binary_min}= | Set Variable | ${min_rate}
642 | | ${binary_max}= | Set Variable | ${max_rate}
643 | | ${threshold}= | Set Variable | ${min_rate}
644 | | ${encr_alg}= | Crypto Alg AES GCM 128
645 | | ${auth_alg}= | Integ Alg AES GCM 128
646 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
647 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
648 | | And Add PCI devices to DUTs from 3-node single link topology
649 | | And Add No Multi Seg to all DUTs
650 | | And Add Cryptodev to all DUTs | ${2}
651 | | And Apply startup configuration on all VPP DUTs
652 | | And IPsec initialized in a 3-node circular topology
653 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
654 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
655 | | And VPP IPsec Add Multiple Tunnels
656 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
657 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
658 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
659 | | ... | ${addr_range}
660 | | Then Find PDR using binary search and pps | ${framesize}
661 | | ... | ${binary_min} | ${binary_max} | 3-node-IPv4-dst-${n_tunnels}
662 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
663 | | ... | ${perf_pdr_loss_acceptance_type}