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