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