CSIT-1142 Change thread perf test TAGs
[csit.git] / tests / vpp / perf / crypto / 40ge2p1xl710-ethip4ipsecbasetnlsw-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 | IPSECSW | IPSECTUN | NIC_Intel-XL710 | BASE
20 | ...
21 | Suite Setup | Set up IPSec performance test suite | L3 | Intel-XL710
22 | ... | SW_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 DPDK SW
38 | ... | crypto devices and multiple IPsec tunnels between them. DUTs get IPv4
39 | ... | traffic from TG, encrypt it and send to another DUT, where packets are
40 | ... | decrypted and sent back to TG.
41 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
42 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
43 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in number
44 | ... | of packets transmitted. NDR is discovered for different
45 | ... | number of IPsec tunnels using binary search algorithms with configured
46 | ... | starting rate and final step that determines throughput measurement
47 | ... | resolution. Test packets are generated by TG on
48 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
49 | ... | (flow-group per direction, number of flows per flow-group equals to
50 | ... | number of IPSec tunnels) with all packets
51 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and
52 | ... | static payload. MAC addresses are matching MAC addresses of the TG
53 | ... | node interfaces. Incrementing of IP.dst (IPv4 destination address) field
54 | ... | is applied to both streams.
55 | ... | *[Ref] Applicable standard specifications:* RFC4303 and RFC2544.
56
57 *** Variables ***
58 # XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
59 | ${s_limit}= | ${24500000000}
60 # XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
61 | ${s_18.75Mpps}= | ${18750000}
62 | ${tg_if1_ip4}= | 192.168.10.2
63 | ${dut1_if1_ip4}= | 192.168.10.1
64 | ${dut1_if2_ip4}= | 172.168.1.1
65 | ${dut2_if1_ip4}= | 172.168.1.2
66 | ${dut2_if2_ip4}= | 192.168.20.1
67 | ${tg_if2_ip4}= | 192.168.20.2
68 | ${raddr_ip4}= | 20.0.0.0
69 | ${laddr_ip4}= | 10.0.0.0
70 | ${addr_range}= | ${32}
71 | ${ipsec_overhead_gcm}= | ${54}
72 | ${n_tunnels}= | ${1}
73 # Traffic profile:
74 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst${n_tunnels}
75
76 *** Keywords ***
77 | Discover NDR or PDR for IPv4 routing with IPSec SW cryptodev
78 | | [Documentation]
79 | | ... | [Cfg] DUT runs IPSec tunneling CBC-SHA1 config with ${wt} thread(s),\
80 | | ... | ${wt} phy core(s), ${rxq} receive queue(s) per NIC port.
81 | | ... | [Ver] Measure NDR or PDR for ${framesize} by bisecting between\
82 | | ... | ${min_rate} and computed max rate, using trial loss rate measurements.
83 | | ...
84 | | [Arguments] | ${wt} | ${rxq} | ${framesize} | ${min_rate} | ${search_type}
85 | | ...
86 | | # Test Variables required for test teardown
87 | | Set Test Variable | ${framesize}
88 | | Set Test Variable | ${min_rate}
89 | | ${get_framesize}= | Get Frame Size | ${framesize}
90 | | ${max_rate}= | Calculate pps | ${s_limit}
91 | | ... | ${get_framesize} + ${ipsec_overhead_gcm}
92 | | ${max_rate}= | Set Variable If
93 | | ... | ${max_rate} > ${s_18.75Mpps} | ${s_18.75Mpps} | ${max_rate}
94 | | ${binary_min}= | Set Variable | ${min_rate}
95 | | ${binary_max}= | Set Variable | ${max_rate}
96 | | ${threshold}= | Set Variable | ${min_rate}
97 | | ${encr_alg}= | Crypto Alg AES CBC 128
98 | | ${auth_alg}= | Integ Alg SHA1 96
99 | | ...
100 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
101 | | And Add PCI devices to all DUTs
102 | | And Add no multi seg to all DUTs
103 | | And Add DPDK SW cryptodev on DUTs in 3-node single-link circular topology
104 | | ... | aesni_mb | ${${wt}}
105 | | And Add DPDK dev default RXD to all DUTs | 2048
106 | | And Add DPDK dev default TXD to all DUTs | 2048
107 | | And Apply startup configuration on all VPP DUTs
108 | | When Generate keys for IPSec | ${encr_alg} | ${auth_alg}
109 | | And Initialize IPSec in 3-node circular topology
110 | | And Vpp Route Add | ${dut1} | ${raddr_ip4} | 8 | ${dut2_if1_ip4}
111 | | ... | ${dut1_if2}
112 | | And Vpp Route Add | ${dut2} | ${laddr_ip4} | 8 | ${dut1_if2_ip4}
113 | | ... | ${dut2_if1}
114 | | And VPP IPsec Add Multiple Tunnels
115 | | ... | ${dut1} | ${dut2} | ${dut1_if2} | ${dut2_if1} | ${n_tunnels}
116 | | ... | ${encr_alg} | ${encr_key} | ${auth_alg} | ${auth_key}
117 | | ... | ${dut1_if2_ip4} | ${dut2_if1_ip4} | ${laddr_ip4} | ${raddr_ip4}
118 | | ... | ${addr_range}
119 | | And Set interfaces in path in 3-node circular topology up
120 | | Then Run Keyword If | '${search_type}' == 'NDR'
121 | | ... | Find NDR using binary search and pps
122 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
123 | | ... | ${min_rate} | ${max_rate} | ${threshold}
124 | | ... | ELSE IF | '${search_type}' == 'PDR'
125 | | ... | Find PDR using binary search and pps
126 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
127 | | ... | ${min_rate} | ${max_rate} | ${threshold}
128 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
129
130 *** Test Cases ***
131 | tc01-64B-1t1c-ethip4ipsecbasetnlsw-ip4base-tnl-cbc-sha1-ndrdisc
132 | | [Documentation]
133 | | ... | [Cfg] DUTs run 1 IPsec tunnel CBC-SHA1 in each direction, configured\
134 | | ... | with 1 phy core, 1 receive queue per NIC port.
135 | | ... | [Ver] Find NDR for 64 Byte frames\
136 | | ... | using binary search start at 40GE linerate, step 50kpps.
137 | | ...
138 | | [Tags] | 64B | 1C | NDRDISC
139 | | ...
140 | | [Template] | Discover NDR or PDR for IPv4 routing with IPSec SW cryptodev
141 | | wt=1 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=NDR
142
143 | tc02-64B-1t1c-ethip4ipsecbasetnlsw-ip4base-tnl-cbc-sha1-pdrdisc
144 | | [Documentation]
145 | | ... | [Cfg] DUTs run 1 IPsec tunnel CBC-SHA1 in each direction, configured\
146 | | ... | with 1 phy core, 1 receive queue per NIC port.
147 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 40GE\
148 | | ... | linerate, step 50kpps and loss tolerance of 0.5%.
149 | | ...
150 | | [Tags] | 64B | 1C | PDRDISC | SKIP_PATCH
151 | | ...
152 | | [Template] | Discover NDR or PDR for IPv4 routing with IPSec SW cryptodev
153 | | wt=1 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=PDR
154
155 | tc03-1518B-1t1c-ethip4ipsecbasetnlsw-ip4base-tnl-cbc-sha1-ndrdisc
156 | | [Documentation]
157 | | ... | [Cfg] DUTs run 1 IPsec tunnel CBC-SHA1 in each direction, configured\
158 | | ... | with 1 phy core, 1 receive queue per NIC port.
159 | | ... | [Ver] Find NDR for 1518 Byte frames\
160 | | ... | using binary search start at 40GE linerate, step 50kpps.
161 | | ...
162 | | [Tags] | 1518B | 1C | NDRDISC
163 | | ...
164 | | [Template] | Discover NDR or PDR for IPv4 routing with IPSec SW cryptodev
165 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=NDR
166
167 | tc04-1518B-1t1c-ethip4ipsecbasetnlsw-ip4base-tnl-cbc-sha1-pdrdisc
168 | | [Documentation]
169 | | ... | [Cfg] DUTs run 1 IPsec tunnel CBC-SHA1 in each direction, configured\
170 | | ... | with 1 phy core, 1 receive queue per NIC port.
171 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 40GE\
172 | | ... | linerate, step 50kpps and loss tolerance of 0.5%.
173 | | ...
174 | | [Tags] | 1518B | 1C | PDRDISC | SKIP_PATCH
175 | | ...
176 | | [Template] | Discover NDR or PDR for IPv4 routing with IPSec SW cryptodev
177 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=PDR
178
179 | tc05-IMIX-1t1c-ethip4ipsecbasetnlsw-ip4base-tnl-cbc-sha1-ndrdisc
180 | | [Documentation]
181 | | ... | [Cfg] DUTs run 1 IPsec tunnel CBC-SHA1 in each direction, configured\
182 | | ... | with 1 phy core, 1 receive queue per NIC port.
183 | | ... | [Ver] Find NDR for IMIX_v4_1 frames\
184 | | ... | using binary search start at 40GE linerate, step 50kpps.
185 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
186 | | ...
187 | | [Tags] | IMIX | 1C | NDRDISC
188 | | ...
189 | | [Template] | Discover NDR or PDR for IPv4 routing with IPSec SW cryptodev
190 | | wt=1 | rxq=1 | framesize=IMIX_v4_1 | min_rate=${50000} | search_type=NDR
191
192 | tc06-IMIX-1t1c-ethip4ipsecbasetnlsw-ip4base-tnl-cbc-sha1-pdrdisc
193 | | [Documentation]
194 | | ... | [Cfg] DUTs run 1 IPsec tunnel CBC-SHA1 in each direction, configured\
195 | | ... | with 1 phy core, 1 receive queue per NIC port.
196 | | ... | [Ver] Find PDR for IMIX_v4_1 frames using binary search start at 40GE\
197 | | ... | linerate, step 50kpps and loss tolerance of 0.5%.
198 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
199 | | ...
200 | | [Tags] | IMIX | 1C | PDRDISC | SKIP_PATCH
201 | | ...
202 | | [Template] | Discover NDR or PDR for IPv4 routing with IPSec SW cryptodev
203 | | wt=1 | rxq=1 | framesize=IMIX_v4_1 | min_rate=${50000} | search_type=PDR
204
205 | tc07-64B-2t2c-ethip4ipsecbasetnlsw-ip4base-tnl-cbc-sha1-ndrdisc
206 | | [Documentation]
207 | | ... | [Cfg] DUTs run 1 IPsec tunnel CBC-SHA1 in each direction, configured\
208 | | ... | with 2 phy core, 1 receive queue per NIC port.
209 | | ... | [Ver] Find NDR for 64 Byte frames\
210 | | ... | using binary search start at 40GE linerate, step 50kpps.
211 | | ...
212 | | [Tags] | 64B | 2C | NDRDISC
213 | | ...
214 | | [Template] | Discover NDR or PDR for IPv4 routing with IPSec SW cryptodev
215 | | wt=2 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=NDR
216
217 | tc08-64B-2t2c-ethip4ipsecbasetnlsw-ip4base-tnl-cbc-sha1-pdrdisc
218 | | [Documentation]
219 | | ... | [Cfg] DUTs run 1 IPsec tunnel CBC-SHA1 in each direction, configured\
220 | | ... | with 2 phy core, 1 receive queue per NIC port.
221 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 40GE\
222 | | ... | linerate, step 50kpps and loss tolerance of 0.5%.
223 | | ...
224 | | [Tags] | 64B | 2C | PDRDISC | SKIP_PATCH
225 | | ...
226 | | [Template] | Discover NDR or PDR for IPv4 routing with IPSec SW cryptodev
227 | | wt=2 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=PDR