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