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