CSIT-524: Traffic generator using python profiles
[csit.git] / tests / perf / 40ge2p1xl710-ethip4ipsecbasetnl-ip4base-int-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.robot
16 | Resource | resources/libraries/robot/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 | Run Keywords
22 | ... | 3-node Performance Suite Setup with DUT's NIC model | L3 | Intel-XL710
23 | ... | AND | Verify Crypto Device On All DUTs | force_init=${True}
24 | ... | AND | Verify Kernel Module On All DUTs | igb_uio | force_load=${True}
25 | Suite Teardown | 3-node Performance Suite Teardown
26 | ...
27 | Test Setup | Performance test setup
28 | Test Teardown | Performance test teardown | ${min_rate}pps | ${framesize}
29 | ... | ${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-int-aes-gcm-ndrdisc
77 | | [Documentation]
78 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM 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 100kpps.
82 | | ...
83 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
84 | | ...
85 | | ${framesize}= | Set Variable | ${64}
86 | | ${min_rate}= | Set Variable | ${10000}
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 '1' worker threads and rxqueues '1' in 3-node single-link topo
94 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
95 | | And Add PCI devices to DUTs from 3-node single link topology
96 | | And Add No Multi Seg to all DUTs
97 | | And Add Cryptodev to all DUTs | ${1}
98 | | And Apply startup configuration on all VPP DUTs
99 | | And IPsec initialized in a 3-node circular topology
100 | | And VPP IPsec Create Tunnel Interfaces
101 | | ... | ${dut1} | ${dut2} | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${n_tunnels}
102 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key} | ${laddr_ip4}
103 | | ... | ${raddr_ip4} | ${addr_range}
104 | | Then Find NDR using binary search and pps | ${framesize}
105 | | ... | ${binary_min} | ${binary_max} | ${traffic_profile}
106 | | ... | ${min_rate} | ${max_rate} | ${threshold}
107
108 | tc02-64B-1t1c-ethip4ipsecbasetnl-ip4base-int-aes-gcm-pdrdisc
109 | | [Documentation]
110 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM in each direction, configured\
111 | | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port.
112 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 40GE\
113 | | ... | linerate, step 100kpps and loss tolerance of 0.5%.
114 | | ...
115 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
116 | | ...
117 | | ${framesize}= | Set Variable | ${64}
118 | | ${min_rate}= | Set Variable | ${10000}
119 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
120 | | ${binary_min}= | Set Variable | ${min_rate}
121 | | ${binary_max}= | Set Variable | ${max_rate}
122 | | ${threshold}= | Set Variable | ${min_rate}
123 | | ${encr_alg}= | Crypto Alg AES GCM 128
124 | | ${auth_alg}= | Integ Alg AES GCM 128
125 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
126 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
127 | | And Add PCI devices to DUTs from 3-node single link topology
128 | | And Add No Multi Seg to all DUTs
129 | | And Add Cryptodev to all DUTs | ${1}
130 | | And Apply startup configuration on all VPP DUTs
131 | | And IPsec initialized in a 3-node circular topology
132 | | And VPP IPsec Create Tunnel Interfaces
133 | | ... | ${dut1} | ${dut2} | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${n_tunnels}
134 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key} | ${laddr_ip4}
135 | | ... | ${raddr_ip4} | ${addr_range}
136 | | Then Find PDR using binary search and pps | ${framesize}
137 | | ... | ${binary_min} | ${binary_max} | ${traffic_profile}
138 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
139 | | ... | ${perf_pdr_loss_acceptance_type}
140
141 | tc03-1518B-1t1c-ethip4ipsecbasetnl-ip4base-int-aes-gcm-ndrdisc
142 | | [Documentation]
143 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM in each direction, configured\
144 | | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port.
145 | | ... | [Ver] Find NDR for 1518 Byte frames\
146 | | ... | using binary search start at 40GE linerate, step 100kpps.
147 | | ...
148 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
149 | | ...
150 | | ${framesize}= | Set Variable | ${1518}
151 | | ${min_rate}= | Set Variable | ${10000}
152 | | ${max_rate}= | Calculate pps | ${s_24.5G}
153 | | ... | ${framesize + ${ipsec_overhead_gcm}}
154 | | ${binary_min}= | Set Variable | ${min_rate}
155 | | ${binary_max}= | Set Variable | ${max_rate}
156 | | ${threshold}= | Set Variable | ${min_rate}
157 | | ${encr_alg}= | Crypto Alg AES GCM 128
158 | | ${auth_alg}= | Integ Alg AES GCM 128
159 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
160 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
161 | | And Add PCI devices to DUTs from 3-node single link topology
162 | | And Add Cryptodev to all DUTs | ${1}
163 | | And Apply startup configuration on all VPP DUTs
164 | | And IPsec initialized in a 3-node circular topology
165 | | And VPP IPsec Create Tunnel Interfaces
166 | | ... | ${dut1} | ${dut2} | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${n_tunnels}
167 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key} | ${laddr_ip4}
168 | | ... | ${raddr_ip4} | ${addr_range}
169 | | Then Find NDR using binary search and pps | ${framesize}
170 | | ... | ${binary_min} | ${binary_max} | ${traffic_profile}
171 | | ... | ${min_rate} | ${max_rate} | ${threshold}
172
173 | tc04-1518B-1t1c-ethip4ipsecbasetnl-ip4base-int-aes-gcm-pdrdisc
174 | | [Documentation]
175 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM in each direction, configured\
176 | | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port.
177 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 40GE\
178 | | ... | linerate, step 100kpps and loss tolerance of 0.5%.
179 | | ...
180 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
181 | | ...
182 | | ${framesize}= | Set Variable | ${1518}
183 | | ${min_rate}= | Set Variable | ${10000}
184 | | ${max_rate}= | Calculate pps | ${s_24.5G}
185 | | ... | ${framesize + ${ipsec_overhead_gcm}}
186 | | ${binary_min}= | Set Variable | ${min_rate}
187 | | ${binary_max}= | Set Variable | ${max_rate}
188 | | ${threshold}= | Set Variable | ${min_rate}
189 | | ${encr_alg}= | Crypto Alg AES GCM 128
190 | | ${auth_alg}= | Integ Alg AES GCM 128
191 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
192 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
193 | | And Add PCI devices to DUTs from 3-node single link topology
194 | | And Add Cryptodev to all DUTs | ${1}
195 | | And Apply startup configuration on all VPP DUTs
196 | | And IPsec initialized in a 3-node circular topology
197 | | And VPP IPsec Create Tunnel Interfaces
198 | | ... | ${dut1} | ${dut2} | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${n_tunnels}
199 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key} | ${laddr_ip4}
200 | | ... | ${raddr_ip4} | ${addr_range}
201 | | Then Find PDR using binary search and pps | ${framesize}
202 | | ... | ${binary_min} | ${binary_max} | ${traffic_profile}
203 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
204 | | ... | ${perf_pdr_loss_acceptance_type}
205
206 | tc05-IMIX-1t1c-ethip4ipsecbasetnl-ip4base-int-aes-gcm-ndrdisc
207 | | [Documentation]
208 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM in each direction, configured\
209 | | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port.
210 | | ... | [Ver] Find NDR for IMIX_v4_1 frames\
211 | | ... | using binary search start at 40GE linerate, step 100kpps.
212 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
213 | | ...
214 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
215 | | ...
216 | | ${framesize}= | Set Variable | IMIX_v4_1
217 | | ${imix_size}= | Get Frame Size | ${framesize}
218 | | ${min_rate}= | Set Variable | ${10000}
219 | | ${max_rate}= | Calculate pps | ${s_24.5G}
220 | | ... | ${imix_size} + ${ipsec_overhead_gcm}
221 | | ${binary_min}= | Set Variable | ${min_rate}
222 | | ${binary_max}= | Set Variable | ${max_rate}
223 | | ${threshold}= | Set Variable | ${min_rate}
224 | | ${encr_alg}= | Crypto Alg AES GCM 128
225 | | ${auth_alg}= | Integ Alg AES GCM 128
226 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
227 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
228 | | And Add PCI devices to DUTs from 3-node single link topology
229 | | And Add Cryptodev to all DUTs | ${1}
230 | | And Apply startup configuration on all VPP DUTs
231 | | And IPsec initialized in a 3-node circular topology
232 | | And VPP IPsec Create Tunnel Interfaces
233 | | ... | ${dut1} | ${dut2} | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${n_tunnels}
234 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key} | ${laddr_ip4}
235 | | ... | ${raddr_ip4} | ${addr_range}
236 | | Then Find NDR using binary search and pps | ${framesize}
237 | | ... | ${binary_min} | ${binary_max} | ${traffic_profile}
238 | | ... | ${min_rate} | ${max_rate} | ${threshold}
239
240 | tc06-IMIX-1t1c-ethip4ipsecbasetnl-ip4base-int-aes-gcm-pdrdisc
241 | | [Documentation]
242 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM in each direction, configured\
243 | | ... | with 1 thread, 1 phy core, 1 receive queue per NIC port.
244 | | ... | [Ver] Find PDR for IMIX_v4_1 frames using binary search start at 40GE\
245 | | ... | linerate, step 100kpps and loss tolerance of 0.5%.
246 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
247 | | ...
248 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
249 | | ...
250 | | ${framesize}= | Set Variable | IMIX_v4_1
251 | | ${imix_size}= | Get Frame Size | ${framesize}
252 | | ${min_rate}= | Set Variable | ${10000}
253 | | ${max_rate}= | Calculate pps | ${s_24.5G}
254 | | ... | ${imix_size} + ${ipsec_overhead_gcm}
255 | | ${binary_min}= | Set Variable | ${min_rate}
256 | | ${binary_max}= | Set Variable | ${max_rate}
257 | | ${threshold}= | Set Variable | ${min_rate}
258 | | ${encr_alg}= | Crypto Alg AES GCM 128
259 | | ${auth_alg}= | Integ Alg AES GCM 128
260 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
261 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
262 | | And Add PCI devices to DUTs from 3-node single link topology
263 | | And Add Cryptodev to all DUTs | ${1}
264 | | And Apply startup configuration on all VPP DUTs
265 | | And IPsec initialized in a 3-node circular topology
266 | | And VPP IPsec Create Tunnel Interfaces
267 | | ... | ${dut1} | ${dut2} | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${n_tunnels}
268 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key} | ${laddr_ip4}
269 | | ... | ${raddr_ip4} | ${addr_range}
270 | | Then Find PDR using binary search and pps | ${framesize}
271 | | ... | ${binary_min} | ${binary_max} | ${traffic_profile}
272 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
273 | | ... | ${perf_pdr_loss_acceptance_type}
274
275 | tc07-64B-2t2c-ethip4ipsecbasetnl-ip4base-int-aes-gcm-ndrdisc
276 | | [Documentation]
277 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM in each direction, configured\
278 | | ... | with 2 thread, 2 phy core, 1 receive queue per NIC port.
279 | | ... | [Ver] Find NDR for 64 Byte frames\
280 | | ... | using binary search start at 40GE linerate, step 100kpps.
281 | | ...
282 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
283 | | ...
284 | | ${framesize}= | Set Variable | ${64}
285 | | ${min_rate}= | Set Variable | ${10000}
286 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
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 GCM 128
291 | | ${auth_alg}= | Integ Alg AES GCM 128
292 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
293 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
294 | | And Add PCI devices to DUTs from 3-node single link topology
295 | | And Add No Multi Seg to all DUTs
296 | | And Add Cryptodev to all DUTs | ${2}
297 | | And Apply startup configuration on all VPP DUTs
298 | | And IPsec initialized in a 3-node circular topology
299 | | And VPP IPsec Create Tunnel Interfaces
300 | | ... | ${dut1} | ${dut2} | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${n_tunnels}
301 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key} | ${laddr_ip4}
302 | | ... | ${raddr_ip4} | ${addr_range}
303 | | Then Find NDR using binary search and pps | ${framesize}
304 | | ... | ${binary_min} | ${binary_max} | ${traffic_profile}
305 | | ... | ${min_rate} | ${max_rate} | ${threshold}
306
307 | tc08-64B-2t2c-ethip4ipsecbasetnl-ip4base-int-aes-gcm-pdrdisc
308 | | [Documentation]
309 | | ... | [Cfg] DUTs run 1 IPsec tunnel AES GCM in each direction, configured\
310 | | ... | with 2 thread, 2 phy core, 1 receive queue per NIC port.
311 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 40GE\
312 | | ... | linerate, step 100kpps and loss tolerance of 0.5%.
313 | | ...
314 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
315 | | ...
316 | | ${framesize}= | Set Variable | ${64}
317 | | ${min_rate}= | Set Variable | ${10000}
318 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
319 | | ${binary_min}= | Set Variable | ${min_rate}
320 | | ${binary_max}= | Set Variable | ${max_rate}
321 | | ${threshold}= | Set Variable | ${min_rate}
322 | | ${encr_alg}= | Crypto Alg AES GCM 128
323 | | ${auth_alg}= | Integ Alg AES GCM 128
324 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
325 | | And IPsec Generate Keys | ${encr_alg} | ${auth_alg}
326 | | And Add PCI devices to DUTs from 3-node single link topology
327 | | And Add No Multi Seg to all DUTs
328 | | And Add Cryptodev to all DUTs | ${2}
329 | | And Apply startup configuration on all VPP DUTs
330 | | And IPsec initialized in a 3-node circular topology
331 | | And VPP IPsec Create Tunnel Interfaces
332 | | ... | ${dut1} | ${dut2} | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${n_tunnels}
333 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key} | ${laddr_ip4}
334 | | ... | ${raddr_ip4} | ${addr_range}
335 | | Then Find PDR using binary search and pps | ${framesize}
336 | | ... | ${binary_min} | ${binary_max} | ${traffic_profile}
337 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
338 | | ... | ${perf_pdr_loss_acceptance_type}