CSIT-861: SW cryptodev perf tests
[csit.git] / tests / vpp / perf / crypto / 40ge2p1xl710-ethip4ipsecbasetnl-ip4base-tnl-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 | NDRPDRDISC
19 | ... | IP4FWD | IPSEC | IPSECHW | IPSECTUN | NIC_Intel-XL710 | BASE
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}= | ${1}
71 # Traffic profile:
72 | ${traffic_profile} | trex-sl-3n-ethip4-ip4dst${n_tunnels}
73
74 *** Test Cases ***
75 | tc01-64B-1t1c-ethip4ipsecbasetnl-ip4base-tnl-aes-gcm-ndrdisc
76 | | [Documentation]
77 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM in each direction, configured\
78 | | ... | 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 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 | | And Initialize IPSec in 3-node circular topology
101 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
102 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
103 | | And VPP IPsec Add Multiple Tunnels
104 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
105 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
106 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
107 | | ... | ${addr_range}
108 | | Then Find NDR using binary search and pps | ${framesize}
109 | | ... | ${binary_min} | ${binary_max} | ${traffic_profile}
110 | | ... | ${min_rate} | ${max_rate} | ${threshold}
111
112 | tc02-64B-1t1c-ethip4ipsecbasetnl-ip4base-tnl-aes-gcm-pdrdisc
113 | | [Documentation]
114 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM in each direction, configured\
115 | | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port.
116 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 40GE\
117 | | ... | linerate, step 100kpps and loss tolerance of 0.5%.
118 | | ...
119 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
120 | | ...
121 | | ${framesize}= | Set Variable | ${64}
122 | | ${min_rate}= | Set Variable | ${10000}
123 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
124 | | ${binary_min}= | Set Variable | ${min_rate}
125 | | ${binary_max}= | Set Variable | ${max_rate}
126 | | ${threshold}= | Set Variable | ${min_rate}
127 | | ${encr_alg}= | Crypto Alg AES GCM 128
128 | | ${auth_alg}= | Integ Alg AES GCM 128
129 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
130 | | And Generate keys for IPSec | ${encr_alg} | ${auth_alg}
131 | | And Add PCI devices to DUTs in 3-node single link topology
132 | | And Add no multi seg to all DUTs
133 | | And Add cryptodev to all DUTs | ${1}
134 | | And Add DPDK dev default RXD to all DUTs | 2048
135 | | And Add DPDK dev default TXD to all DUTs | 2048
136 | | And Apply startup configuration on all VPP DUTs
137 | | And Initialize IPSec in 3-node circular topology
138 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
139 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
140 | | And VPP IPsec Add Multiple Tunnels
141 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
142 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
143 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
144 | | ... | ${addr_range}
145 | | Then Find PDR using binary search and pps | ${framesize}
146 | | ... | ${binary_min} | ${binary_max} | ${traffic_profile}
147 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
148 | | ... | ${perf_pdr_loss_acceptance_type}
149
150 | tc03-1518B-1t1c-ethip4ipsecbasetnl-ip4base-tnl-aes-gcm-ndrdisc
151 | | [Documentation]
152 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM in each direction, configured\
153 | | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port.
154 | | ... | [Ver] Find NDR for 1518 Byte frames\
155 | | ... | using binary search start at 40GE linerate, step 100kpps.
156 | | ...
157 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
158 | | ...
159 | | ${framesize}= | Set Variable | ${1518}
160 | | ${min_rate}= | Set Variable | ${10000}
161 | | ${max_rate}= | Calculate pps | ${s_24.5G}
162 | | ... | ${framesize + ${ipsec_overhead_gcm}}
163 | | ${binary_min}= | Set Variable | ${min_rate}
164 | | ${binary_max}= | Set Variable | ${max_rate}
165 | | ${threshold}= | Set Variable | ${min_rate}
166 | | ${encr_alg}= | Crypto Alg AES GCM 128
167 | | ${auth_alg}= | Integ Alg AES GCM 128
168 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
169 | | And Generate keys for IPSec | ${encr_alg} | ${auth_alg}
170 | | And Add PCI devices to DUTs in 3-node single link topology
171 | | And Add cryptodev to all DUTs | ${1}
172 | | And Add DPDK dev default RXD to all DUTs | 2048
173 | | And Add DPDK dev default TXD to all DUTs | 2048
174 | | And Apply startup configuration on all VPP DUTs
175 | | And Initialize IPSec in 3-node circular topology
176 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
177 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
178 | | And VPP IPsec Add Multiple Tunnels
179 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
180 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
181 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
182 | | ... | ${addr_range}
183 | | Then Find NDR using binary search and pps | ${framesize}
184 | | ... | ${binary_min} | ${binary_max} | ${traffic_profile}
185 | | ... | ${min_rate} | ${max_rate} | ${threshold}
186
187 | tc04-1518B-1t1c-ethip4ipsecbasetnl-ip4base-tnl-aes-gcm-pdrdisc
188 | | [Documentation]
189 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM in each direction, configured\
190 | | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port.
191 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 40GE\
192 | | ... | linerate, step 100kpps and loss tolerance of 0.5%.
193 | | ...
194 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
195 | | ...
196 | | ${framesize}= | Set Variable | ${1518}
197 | | ${min_rate}= | Set Variable | ${10000}
198 | | ${max_rate}= | Calculate pps | ${s_24.5G}
199 | | ... | ${framesize + ${ipsec_overhead_gcm}}
200 | | ${binary_min}= | Set Variable | ${min_rate}
201 | | ${binary_max}= | Set Variable | ${max_rate}
202 | | ${threshold}= | Set Variable | ${min_rate}
203 | | ${encr_alg}= | Crypto Alg AES GCM 128
204 | | ${auth_alg}= | Integ Alg AES GCM 128
205 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
206 | | And Generate keys for IPSec | ${encr_alg} | ${auth_alg}
207 | | And Add PCI devices to DUTs in 3-node single link topology
208 | | And Add cryptodev to all DUTs | ${1}
209 | | And Add DPDK dev default RXD to all DUTs | 2048
210 | | And Add DPDK dev default TXD to all DUTs | 2048
211 | | And Apply startup configuration on all VPP DUTs
212 | | And Initialize IPSec in 3-node circular topology
213 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
214 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
215 | | And VPP IPsec Add Multiple Tunnels
216 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
217 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
218 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
219 | | ... | ${addr_range}
220 | | Then Find PDR using binary search and pps | ${framesize}
221 | | ... | ${binary_min} | ${binary_max} | ${traffic_profile}
222 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
223 | | ... | ${perf_pdr_loss_acceptance_type}
224
225 | tc05-IMIX-1t1c-ethip4ipsecbasetnl-ip4base-tnl-aes-gcm-ndrdisc
226 | | [Documentation]
227 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM in each direction, configured\
228 | | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port.
229 | | ... | [Ver] Find NDR for IMIX_v4_1 frames\
230 | | ... | using binary search start at 40GE linerate, step 100kpps.
231 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
232 | | ...
233 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
234 | | ...
235 | | ${framesize}= | Set Variable | IMIX_v4_1
236 | | ${imix_size}= | Get Frame Size | ${framesize}
237 | | ${min_rate}= | Set Variable | ${10000}
238 | | ${max_rate}= | Calculate pps | ${s_24.5G}
239 | | ... | ${imix_size} + ${ipsec_overhead_gcm}
240 | | ${binary_min}= | Set Variable | ${min_rate}
241 | | ${binary_max}= | Set Variable | ${max_rate}
242 | | ${threshold}= | Set Variable | ${min_rate}
243 | | ${encr_alg}= | Crypto Alg AES GCM 128
244 | | ${auth_alg}= | Integ Alg AES GCM 128
245 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
246 | | And Generate keys for IPSec | ${encr_alg} | ${auth_alg}
247 | | And Add PCI devices to DUTs in 3-node single link topology
248 | | And Add cryptodev to all DUTs | ${1}
249 | | And Add DPDK dev default RXD to all DUTs | 2048
250 | | And Add DPDK dev default TXD to all DUTs | 2048
251 | | And Apply startup configuration on all VPP DUTs
252 | | And Initialize IPSec in 3-node circular topology
253 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
254 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
255 | | And VPP IPsec Add Multiple Tunnels
256 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
257 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
258 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
259 | | ... | ${addr_range}
260 | | Then Find NDR using binary search and pps | ${framesize}
261 | | ... | ${binary_min} | ${binary_max} | ${traffic_profile}
262 | | ... | ${min_rate} | ${max_rate} | ${threshold}
263
264 | tc06-IMIX-1t1c-ethip4ipsecbasetnl-ip4base-tnl-aes-gcm-pdrdisc
265 | | [Documentation]
266 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM in each direction, configured\
267 | | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port.
268 | | ... | [Ver] Find PDR for IMIX_v4_1 frames using binary search start at 40GE\
269 | | ... | linerate, step 100kpps and loss tolerance of 0.5%.
270 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
271 | | ...
272 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
273 | | ...
274 | | ${framesize}= | Set Variable | IMIX_v4_1
275 | | ${imix_size}= | Get Frame Size | ${framesize}
276 | | ${min_rate}= | Set Variable | ${10000}
277 | | ${max_rate}= | Calculate pps | ${s_24.5G}
278 | | ... | ${imix_size} + ${ipsec_overhead_gcm}
279 | | ${binary_min}= | Set Variable | ${min_rate}
280 | | ${binary_max}= | Set Variable | ${max_rate}
281 | | ${threshold}= | Set Variable | ${min_rate}
282 | | ${encr_alg}= | Crypto Alg AES GCM 128
283 | | ${auth_alg}= | Integ Alg AES GCM 128
284 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
285 | | And Generate keys for IPSec | ${encr_alg} | ${auth_alg}
286 | | And Add PCI devices to DUTs in 3-node single link topology
287 | | And Add cryptodev to all DUTs | ${1}
288 | | And Add DPDK dev default RXD to all DUTs | 2048
289 | | And Add DPDK dev default TXD to all DUTs | 2048
290 | | And Apply startup configuration on all VPP DUTs
291 | | And Initialize IPSec in 3-node circular topology
292 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
293 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
294 | | And VPP IPsec Add Multiple Tunnels
295 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
296 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
297 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
298 | | ... | ${addr_range}
299 | | Then Find PDR using binary search and pps | ${framesize}
300 | | ... | ${binary_min} | ${binary_max} | ${traffic_profile}
301 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
302 | | ... | ${perf_pdr_loss_acceptance_type}
303
304 | tc07-64B-2t2c-ethip4ipsecbasetnl-ip4base-tnl-aes-gcm-ndrdisc
305 | | [Documentation]
306 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM in each direction, configured\
307 | | ... | with 2 thread, 2 phy core, 1 receive queue per NIC port.
308 | | ... | [Ver] Find NDR for 64 Byte frames\
309 | | ... | using binary search start at 40GE linerate, step 100kpps.
310 | | ...
311 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
312 | | ...
313 | | ${framesize}= | Set Variable | ${64}
314 | | ${min_rate}= | Set Variable | ${10000}
315 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
316 | | ${binary_min}= | Set Variable | ${min_rate}
317 | | ${binary_max}= | Set Variable | ${max_rate}
318 | | ${threshold}= | Set Variable | ${min_rate}
319 | | ${encr_alg}= | Crypto Alg AES GCM 128
320 | | ${auth_alg}= | Integ Alg AES GCM 128
321 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
322 | | And Generate keys for IPSec | ${encr_alg} | ${auth_alg}
323 | | And Add PCI devices to DUTs in 3-node single link topology
324 | | And Add no multi seg to all DUTs
325 | | And Add cryptodev to all DUTs | ${2}
326 | | And Add DPDK dev default RXD to all DUTs | 2048
327 | | And Add DPDK dev default TXD to all DUTs | 2048
328 | | And Apply startup configuration on all VPP DUTs
329 | | And Initialize IPSec in 3-node circular topology
330 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
331 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
332 | | And VPP IPsec Add Multiple Tunnels
333 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
334 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
335 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
336 | | ... | ${addr_range}
337 | | Then Find NDR using binary search and pps | ${framesize}
338 | | ... | ${binary_min} | ${binary_max} | ${traffic_profile}
339 | | ... | ${min_rate} | ${max_rate} | ${threshold}
340
341 | tc08-64B-2t2c-ethip4ipsecbasetnl-ip4base-tnl-aes-gcm-pdrdisc
342 | | [Documentation]
343 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM in each direction, configured\
344 | | ... | with 2 thread, 2 phy core, 1 receive queue per NIC port.
345 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 40GE\
346 | | ... | linerate, step 100kpps and loss tolerance of 0.5%.
347 | | ...
348 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
349 | | ...
350 | | ${framesize}= | Set Variable | ${64}
351 | | ${min_rate}= | Set Variable | ${10000}
352 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
353 | | ${binary_min}= | Set Variable | ${min_rate}
354 | | ${binary_max}= | Set Variable | ${max_rate}
355 | | ${threshold}= | Set Variable | ${min_rate}
356 | | ${encr_alg}= | Crypto Alg AES GCM 128
357 | | ${auth_alg}= | Integ Alg AES GCM 128
358 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
359 | | And Generate keys for IPSec | ${encr_alg} | ${auth_alg}
360 | | And Add PCI devices to DUTs in 3-node single link topology
361 | | And Add no multi seg to all DUTs
362 | | And Add cryptodev to all DUTs | ${2}
363 | | And Add DPDK dev default RXD to all DUTs | 2048
364 | | And Add DPDK dev default TXD to all DUTs | 2048
365 | | And Apply startup configuration on all VPP DUTs
366 | | And Initialize IPSec in 3-node circular topology
367 | | Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4} | ${dut1_if2}
368 | | Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4} | ${dut2_if1}
369 | | And VPP IPsec Add Multiple Tunnels
370 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
371 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
372 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
373 | | ... | ${addr_range}
374 | | Then Find PDR using binary search and pps | ${framesize}
375 | | ... | ${binary_min} | ${binary_max} | ${traffic_profile}
376 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
377 | | ... | ${perf_pdr_loss_acceptance_type}