FIX: Crypto execution order
[csit.git] / tests / vpp / perf / crypto / 40ge2p1xl710-ethip4ipsecscale1000tnl-ip4base-tnl-cbc-sha1-ndrpdrdisc.robot
1 # Copyright (c) 2017 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Resource | resources/libraries/robot/performance/performance_setup.robot
16 | Resource | resources/libraries/robot/crypto/ipsec.robot
17 | ...
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | SCALE | NDRPDRDISC
19 | ... | IP4FWD | IPSEC | IPSECHW | IPSECTUN | NIC_Intel-XL710 | TNL_1000
20 | ...
21 | Suite Setup | Set up IPSec performance test suite | L3 | Intel-XL710
22 | ... | HW_cryptodev
23 | ...
24 | Suite Teardown | Tear down 3-node performance topology
25 | ...
26 | Test Setup | Set up performance test
27 | ...
28 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
29 | ... | ${framesize} | ${traffic_profile}
30 | ...
31 | Documentation | *IPv4 IPsec tunnel mode performance test suite.*
32 | ...
33 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
34 | ... | with single links between nodes.
35 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 on TG-DUTn,
36 | ... | Eth-IPv4-IPSec on DUT1-DUT2
37 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with multiple
38 | ... | IPsec tunnels between them. DUTs get IPv4 traffic from TG, encrypt it
39 | ... | and send to another DUT, where packets are decrypted and sent back to TG
40 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
41 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
42 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in number
43 | ... | of packets transmitted. NDR is discovered for different
44 | ... | number of IPsec tunnels using binary search algorithms with configured
45 | ... | starting rate and final step that determines throughput measurement
46 | ... | resolution. Test packets are generated by TG on
47 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
48 | ... | (flow-group per direction, number of flows per flow-group equals to
49 | ... | number of IPSec tunnels) with all packets
50 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and
51 | ... | static payload. MAC addresses are matching MAC addresses of the TG
52 | ... | node interfaces. Incrementing of IP.dst (IPv4 destination address) field
53 | ... | is applied to both streams.
54 | ... | *[Ref] Applicable standard specifications:* RFC4303 and RFC2544.
55
56 *** Variables ***
57 # XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
58 | ${s_24.5G}= | ${24500000000}
59 # XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
60 | ${s_18.75Mpps}= | ${18750000}
61 | ${tg_if1_ip4}= | 192.168.10.2
62 | ${dut1_if1_ip4}= | 192.168.10.1
63 | ${dut1_if2_ip4}= | 172.168.1.1
64 | ${dut2_if1_ip4}= | 172.168.1.2
65 | ${dut2_if2_ip4}= | 192.168.20.1
66 | ${tg_if2_ip4}= | 192.168.20.2
67 | ${raddr_ip4}= | 20.0.0.0
68 | ${laddr_ip4}= | 10.0.0.0
69 | ${addr_range}= | ${32}
70 | ${ipsec_overhead}= | ${58}
71 | ${n_tunnels}= | ${1000}
72 # Traffic profile:
73 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}
74
75 *** Test Cases ***
76 | tc01-64B-1t1c-ethip4ipsecscale1000tnl-ip4base-tnl-cbc-sha1-ndrdisc
77 | | [Documentation]
78 | | ... | [Cfg] DUTs run 1000 IPsec tunnels CBC-SHA1 in each direction,\
79 | | ... | configured with 1 thread, 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 | 1T1C | STHREAD | NDRDISC
84 | | ...
85 | | # FIXME: Move repeated lines into a keyword.
86 | | ${framesize}= | Set Variable | ${64}
87 | | ${min_rate}= | Set Variable | ${50000}
88 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
89 | | ${binary_min}= | Set Variable | ${min_rate}
90 | | ${binary_max}= | Set Variable | ${max_rate}
91 | | ${threshold}= | Set Variable | ${min_rate}
92 | | ${encr_alg}= | Crypto Alg AES CBC 128
93 | | ${auth_alg}= | Integ Alg SHA1 96
94 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
95 | | And Add PCI devices to DUTs in 3-node single link topology
96 | | And Add no multi seg to all DUTs
97 | | And Add cryptodev to all DUTs | ${1}
98 | | And Add DPDK dev default RXD to all DUTs | 2048
99 | | And Add DPDK dev default TXD to all DUTs | 2048
100 | | And Apply startup configuration on all VPP DUTs
101 | | When Generate keys for IPSec | ${encr_alg} | ${auth_alg}
102 | | And Initialize IPSec in 3-node circular topology
103 | | And Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4}
104 | | ... | ${dut1_if2}
105 | | And Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4}
106 | | ... | ${dut2_if1}
107 | | And VPP IPsec Add Multiple Tunnels
108 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
109 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
110 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
111 | | ... | ${addr_range}
112 | | And Set interfaces in path in 3-node circular topology up
113 | | Then Find NDR using binary search and pps | ${framesize}
114 | | ... | ${binary_min} | ${binary_max} | ${traffic_profile}
115 | | ... | ${min_rate} | ${max_rate} | ${threshold}
116
117 | tc02-64B-1t1c-ethip4ipsecscale1000tnl-ip4base-tnl-cbc-sha1-pdrdisc
118 | | [Documentation]
119 | | ... | [Cfg] DUTs run 1000 IPsec tunnels CBC-SHA1 in each direction,\
120 | | ... | configured with 1 thread, 1 phy core, 1 receive queue per NIC port.
121 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 40GE\
122 | | ... | linerate, step 50kpps and loss tolerance of 0.5%.
123 | | ...
124 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
125 | | ...
126 | | ${framesize}= | Set Variable | ${64}
127 | | ${min_rate}= | Set Variable | ${50000}
128 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
129 | | ${binary_min}= | Set Variable | ${min_rate}
130 | | ${binary_max}= | Set Variable | ${max_rate}
131 | | ${threshold}= | Set Variable | ${min_rate}
132 | | ${encr_alg}= | Crypto Alg AES CBC 128
133 | | ${auth_alg}= | Integ Alg SHA1 96
134 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
135 | | And Add PCI devices to DUTs in 3-node single link topology
136 | | And Add no multi seg to all DUTs
137 | | And Add cryptodev to all DUTs | ${1}
138 | | And Add DPDK dev default RXD to all DUTs | 2048
139 | | And Add DPDK dev default TXD to all DUTs | 2048
140 | | And Apply startup configuration on all VPP DUTs
141 | | When Generate keys for IPSec | ${encr_alg} | ${auth_alg}
142 | | And Initialize IPSec in 3-node circular topology
143 | | And Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4}
144 | | ... | ${dut1_if2}
145 | | And Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4}
146 | | ... | ${dut2_if1}
147 | | And VPP IPsec Add Multiple Tunnels
148 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
149 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
150 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
151 | | ... | ${addr_range}
152 | | And Set interfaces in path in 3-node circular topology up
153 | | Then Find PDR using binary search and pps | ${framesize}
154 | | ... | ${binary_min} | ${binary_max} | ${traffic_profile}
155 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
156 | | ... | ${perf_pdr_loss_acceptance_type}
157
158 | tc03-1518B-1t1c-ethip4ipsecscale1000tnl-ip4base-tnl-cbc-sha1-ndrdisc
159 | | [Documentation]
160 | | ... | [Cfg] DUTs run 1000 IPsec tunnels CBC-SHA1 in each direction,\
161 | | ... | configured with 1 thread, 1 phy core, 1 receive queue per NIC port.
162 | | ... | [Ver] Find NDR for 1518 Byte frames\
163 | | ... | using binary search start at 40GE linerate, step 50kpps.
164 | | ...
165 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
166 | | ...
167 | | ${framesize}= | Set Variable | ${1518}
168 | | ${min_rate}= | Set Variable | ${50000}
169 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize + ${ipsec_overhead}}
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 CBC 128
174 | | ${auth_alg}= | Integ Alg SHA1 96
175 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
176 | | And Add PCI devices to DUTs in 3-node single link topology
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-ethip4ipsecscale1000tnl-ip4base-tnl-cbc-sha1-pdrdisc
198 | | [Documentation]
199 | | ... | [Cfg] DUTs run 1000 IPsec tunnel CBC-SHA1 in each direction,\
200 | | ... | configured with 1 thread, 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 | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
205 | | ...
206 | | ${framesize}= | Set Variable | ${1518}
207 | | ${min_rate}= | Set Variable | ${50000}
208 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize + ${ipsec_overhead}}
209 | | ${binary_min}= | Set Variable | ${min_rate}
210 | | ${binary_max}= | Set Variable | ${max_rate}
211 | | ${threshold}= | Set Variable | ${min_rate}
212 | | ${encr_alg}= | Crypto Alg AES CBC 128
213 | | ${auth_alg}= | Integ Alg SHA1 96
214 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
215 | | And Add PCI devices to DUTs in 3-node single link topology
216 | | And Add cryptodev to all DUTs | ${1}
217 | | And Add DPDK dev default RXD to all DUTs | 2048
218 | | And Add DPDK dev default TXD to all DUTs | 2048
219 | | And Apply startup configuration on all VPP DUTs
220 | | When Generate keys for IPSec | ${encr_alg} | ${auth_alg}
221 | | And Initialize IPSec in 3-node circular topology
222 | | And Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4}
223 | | ... | ${dut1_if2}
224 | | And Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4}
225 | | ... | ${dut2_if1}
226 | | And VPP IPsec Add Multiple Tunnels
227 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
228 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
229 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
230 | | ... | ${addr_range}
231 | | And Set interfaces in path in 3-node circular topology up
232 | | Then Find PDR using binary search and pps | ${framesize}
233 | | ... | ${binary_min} | ${binary_max} | ${traffic_profile}
234 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
235 | | ... | ${perf_pdr_loss_acceptance_type}
236
237 | tc05-IMIX-1t1c-ethip4ipsecscale1000tnl-ip4base-tnl-cbc-sha1-ndrdisc
238 | | [Documentation]
239 | | ... | [Cfg] DUTs run 1000 IPsec tunnels CBC-SHA1 in each direction,\
240 | | ... | configured with 1 thread, 1 phy core, 1 receive queue per NIC port.
241 | | ... | [Ver] Find NDR for IMIX_v4_1 frames\
242 | | ... | using binary search start at 40GE linerate, step 50kpps.
243 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
244 | | ...
245 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
246 | | ...
247 | | ${framesize}= | Set Variable | IMIX_v4_1
248 | | ${imix_size}= | Get Frame Size | ${framesize}
249 | | ${min_rate}= | Set Variable | ${50000}
250 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${imix_size} + ${ipsec_overhead}
251 | | ${binary_min}= | Set Variable | ${min_rate}
252 | | ${binary_max}= | Set Variable | ${max_rate}
253 | | ${threshold}= | Set Variable | ${min_rate}
254 | | ${encr_alg}= | Crypto Alg AES CBC 128
255 | | ${auth_alg}= | Integ Alg SHA1 96
256 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
257 | | And Add PCI devices to DUTs in 3-node single link topology
258 | | And Add cryptodev to all DUTs | ${1}
259 | | And Add DPDK dev default RXD to all DUTs | 2048
260 | | And Add DPDK dev default TXD to all DUTs | 2048
261 | | And Apply startup configuration on all VPP DUTs
262 | | When Generate keys for IPSec | ${encr_alg} | ${auth_alg}
263 | | And Initialize IPSec in 3-node circular topology
264 | | And Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4}
265 | | ... | ${dut1_if2}
266 | | And Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4}
267 | | ... | ${dut2_if1}
268 | | And VPP IPsec Add Multiple Tunnels
269 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
270 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
271 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
272 | | ... | ${addr_range}
273 | | And Set interfaces in path in 3-node circular topology up
274 | | Then Find NDR using binary search and pps | ${framesize}
275 | | ... | ${binary_min} | ${binary_max} | ${traffic_profile}
276 | | ... | ${min_rate} | ${max_rate} | ${threshold}
277
278 | tc06-IMIX-1t1c-ethip4ipsecscale1000tnl-ip4base-tnl-cbc-sha1-pdrdisc
279 | | [Documentation]
280 | | ... | [Cfg] DUTs run 1000 IPsec tunnels CBC-SHA1 in each direction,\
281 | | ... | configured with 1 thread, 1 phy core, 1 receive queue per NIC port.
282 | | ... | [Ver] Find PDR for IMIX_v4_1 frames using binary search start at 40GE\
283 | | ... | linerate, step 50kpps and loss tolerance of 0.5%.
284 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
285 | | ...
286 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
287 | | ...
288 | | ${framesize}= | Set Variable | IMIX_v4_1
289 | | ${imix_size}= | Get Frame Size | ${framesize}
290 | | ${min_rate}= | Set Variable | ${50000}
291 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${imix_size} + ${ipsec_overhead}
292 | | ${binary_min}= | Set Variable | ${min_rate}
293 | | ${binary_max}= | Set Variable | ${max_rate}
294 | | ${threshold}= | Set Variable | ${min_rate}
295 | | ${encr_alg}= | Crypto Alg AES CBC 128
296 | | ${auth_alg}= | Integ Alg SHA1 96
297 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
298 | | And Add PCI devices to DUTs in 3-node single link topology
299 | | And Add cryptodev to all DUTs | ${1}
300 | | And Add DPDK dev default RXD to all DUTs | 2048
301 | | And Add DPDK dev default TXD to all DUTs | 2048
302 | | And Apply startup configuration on all VPP DUTs
303 | | When Generate keys for IPSec | ${encr_alg} | ${auth_alg}
304 | | And Initialize IPSec in 3-node circular topology
305 | | And Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4}
306 | | ... | ${dut1_if2}
307 | | And Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4}
308 | | ... | ${dut2_if1}
309 | | And VPP IPsec Add Multiple Tunnels
310 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
311 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
312 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
313 | | ... | ${addr_range}
314 | | And Set interfaces in path in 3-node circular topology up
315 | | Then Find PDR using binary search and pps | ${framesize}
316 | | ... | ${binary_min} | ${binary_max} | ${traffic_profile}
317 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
318 | | ... | ${perf_pdr_loss_acceptance_type}
319
320 | tc07-64B-2t2c-ethip4ipsecscale1000tnl-ip4base-tnl-cbc-sha1-ndrdisc
321 | | [Documentation]
322 | | ... | [Cfg] DUTs run 1000 IPsec tunnels CBC-SHA1 in each direction,\
323 | | ... | configured with 2 thread, 2 phy core, 1 receive queue per NIC port.
324 | | ... | [Ver] Find NDR for 64 Byte frames\
325 | | ... | using binary search start at 40GE linerate, step 50kpps.
326 | | ...
327 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
328 | | ...
329 | | ${framesize}= | Set Variable | ${64}
330 | | ${min_rate}= | Set Variable | ${50000}
331 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
332 | | ${binary_min}= | Set Variable | ${min_rate}
333 | | ${binary_max}= | Set Variable | ${max_rate}
334 | | ${threshold}= | Set Variable | ${min_rate}
335 | | ${encr_alg}= | Crypto Alg AES CBC 128
336 | | ${auth_alg}= | Integ Alg SHA1 96
337 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
338 | | And Add PCI devices to DUTs in 3-node single link topology
339 | | And Add no multi seg to all DUTs
340 | | And Add cryptodev to all DUTs | ${2}
341 | | And Add DPDK dev default RXD to all DUTs | 2048
342 | | And Add DPDK dev default TXD to all DUTs | 2048
343 | | And Apply startup configuration on all VPP DUTs
344 | | When Generate keys for IPSec | ${encr_alg} | ${auth_alg}
345 | | And Initialize IPSec in 3-node circular topology
346 | | And Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4}
347 | | ... | ${dut1_if2}
348 | | And Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4}
349 | | ... | ${dut2_if1}
350 | | And VPP IPsec Add Multiple Tunnels
351 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
352 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
353 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
354 | | ... | ${addr_range}
355 | | And Set interfaces in path in 3-node circular topology up
356 | | Then Find NDR using binary search and pps | ${framesize}
357 | | ... | ${binary_min} | ${binary_max} | ${traffic_profile}
358 | | ... | ${min_rate} | ${max_rate} | ${threshold}
359
360 | tc08-64B-2t2c-ethip4ipsecscale1000tnl-ip4base-tnl-cbc-sha1-pdrdisc
361 | | [Documentation]
362 | | ... | [Cfg] DUTs run 1000 IPsec tunnels CBC-SHA1 in each direction,\
363 | | ... | configured with 2 thread, 2 phy core, 1 receive queue per NIC port.
364 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 40GE\
365 | | ... | linerate, step 50kpps and loss tolerance of 0.5%.
366 | | ...
367 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
368 | | ...
369 | | ${framesize}= | Set Variable | ${64}
370 | | ${min_rate}= | Set Variable | ${50000}
371 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
372 | | ${binary_min}= | Set Variable | ${min_rate}
373 | | ${binary_max}= | Set Variable | ${max_rate}
374 | | ${threshold}= | Set Variable | ${min_rate}
375 | | ${encr_alg}= | Crypto Alg AES CBC 128
376 | | ${auth_alg}= | Integ Alg SHA1 96
377 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
378 | | And Add PCI devices to DUTs in 3-node single link topology
379 | | And Add no multi seg to all DUTs
380 | | And Add cryptodev to all DUTs | ${2}
381 | | And Add DPDK dev default RXD to all DUTs | 2048
382 | | And Add DPDK dev default TXD to all DUTs | 2048
383 | | And Apply startup configuration on all VPP DUTs
384 | | When Generate keys for IPSec | ${encr_alg} | ${auth_alg}
385 | | And Initialize IPSec in 3-node circular topology
386 | | And Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4}
387 | | ... | ${dut1_if2}
388 | | And Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4}
389 | | ... | ${dut2_if1}
390 | | And VPP IPsec Add Multiple Tunnels
391 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
392 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
393 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
394 | | ... | ${addr_range}
395 | | And Set interfaces in path in 3-node circular topology up
396 | | Then Find PDR using binary search and pps | ${framesize}
397 | | ... | ${binary_min} | ${binary_max} | ${traffic_profile}
398 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
399 | | ... | ${perf_pdr_loss_acceptance_type}