CSIT-1142 Change thread perf test TAGs
[csit.git] / tests / vpp / perf / l2 / 40ge2p1xl710-eth-l2xcbase-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 | Library | resources.libraries.python.InterfaceUtil
17 | Library | resources.libraries.python.NodePath
18 | ...
19 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
20 | ... | NIC_Intel-XL710 | ETH | L2XCFWD | BASE
21 | ...
22 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
23 | ... | L2 | Intel-XL710
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 | *RFC2544: Pkt throughput L2XC test cases*
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 for L2 cross connect.
36 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 cross-
37 | ... | connect. DUT1 and DUT2 tested with 2p40GE NIC XL710 by Intel.
38 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
39 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
40 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
41 | ... | of packets transmitted. NDR and PDR are discovered for different
42 | ... | Ethernet L2 frame sizes using either binary search or linear search
43 | ... | algorithms with configured starting rate and final step that determines
44 | ... | throughput measurement resolution. Test packets are generated by TG on
45 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
46 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
47 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
48 | ... | payload. MAC addresses are matching MAC addresses of the TG node
49 | ... | interfaces.
50 | ... | *[Ref] Applicable standard specifications:* RFC2544.
51
52 *** Variables ***
53 # XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
54 | ${s_24.5G} | ${24500000000}
55 # XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
56 | ${s_18.75Mpps} | ${18750000}
57 # Traffic profile:
58 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
59
60 *** Test Cases ***
61 | tc01-64B-1t1c-eth-l2xcbase-ndrdisc
62 | | [Documentation]
63 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core, \
64 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
65 | | ... | using binary search start at 18.75Mpps rate, step 50kpps.
66 | | [Tags] | 64B | 1C | NDRDISC
67 | | ${framesize}= | Set Variable | 64
68 | | ${min_rate}= | Set Variable | ${50000}
69 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
70 | | ${binary_min}= | Set Variable | ${min_rate}
71 | | ${binary_max}= | Set Variable | ${max_rate}
72 | | ${threshold}= | Set Variable | ${min_rate}
73 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
74 | | And Add PCI devices to all DUTs
75 | | And Add no multi seg to all DUTs
76 | | And Add DPDK dev default RXD to all DUTs | 2048
77 | | And Add DPDK dev default TXD to all DUTs | 2048
78 | | And Apply startup configuration on all VPP DUTs
79 | | And Initialize L2 xconnect in 3-node circular topology
80 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
81 | | ... | ${binary_max} | ${traffic_profile}
82 | | ... | ${min_rate} | ${max_rate} | ${threshold}
83
84 | tc03-1518B-1t1c-eth-l2xcbase-ndrdisc
85 | | [Documentation]
86 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core, \
87 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
88 | | ... | using binary search start at 24.5G rate, step 50kpps.
89 | | [Tags] | 1518B | 1C | NDRDISC
90 | | ${framesize}= | Set Variable | 1518
91 | | ${min_rate}= | Set Variable | ${50000}
92 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
93 | | ${binary_min}= | Set Variable | ${min_rate}
94 | | ${binary_max}= | Set Variable | ${max_rate}
95 | | ${threshold}= | Set Variable | ${min_rate}
96 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
97 | | And Add PCI devices to all DUTs
98 | | And Add no multi seg to all DUTs
99 | | And Add DPDK dev default RXD to all DUTs | 2048
100 | | And Add DPDK dev default TXD to all DUTs | 2048
101 | | And Apply startup configuration on all VPP DUTs
102 | | And Initialize L2 xconnect in 3-node circular topology
103 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
104 | | ... | ${binary_max} | ${traffic_profile}
105 | | ... | ${min_rate} | ${max_rate} | ${threshold}
106
107 | tc07-64B-2t2c-eth-l2xcbase-ndrdisc
108 | | [Documentation]
109 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy cores, \
110 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
111 | | ... | using binary search start at 18.75Mpps rate, step 50kpps.
112 | | [Tags] | 64B | 2C | NDRDISC
113 | | ${framesize}= | Set Variable | 64
114 | | ${min_rate}= | Set Variable | ${50000}
115 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
116 | | ${binary_min}= | Set Variable | ${min_rate}
117 | | ${binary_max}= | Set Variable | ${max_rate}
118 | | ${threshold}= | Set Variable | ${min_rate}
119 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
120 | | And Add PCI devices to all DUTs
121 | | And Add no multi seg to all DUTs
122 | | And Add DPDK dev default RXD to all DUTs | 2048
123 | | And Add DPDK dev default TXD to all DUTs | 2048
124 | | And Apply startup configuration on all VPP DUTs
125 | | And Initialize L2 xconnect in 3-node circular topology
126 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
127 | | ... | ${binary_max} | ${traffic_profile}
128 | | ... | ${min_rate} | ${max_rate} | ${threshold}
129
130 | tc09-1518B-2t2c-eth-l2xcbase-ndrdisc
131 | | [Documentation]
132 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy cores, \
133 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
134 | | ... | using binary search start at 24.5G rate, step 50kpps.
135 | | [Tags] | 1518B | 2C | NDRDISC | SKIP_PATCH
136 | | ${framesize}= | Set Variable | 1518
137 | | ${min_rate}= | Set Variable | ${50000}
138 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
139 | | ${binary_min}= | Set Variable | ${min_rate}
140 | | ${binary_max}= | Set Variable | ${max_rate}
141 | | ${threshold}= | Set Variable | ${min_rate}
142 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
143 | | And Add PCI devices to all DUTs
144 | | And Add no multi seg to all DUTs
145 | | And Add DPDK dev default RXD to all DUTs | 2048
146 | | And Add DPDK dev default TXD to all DUTs | 2048
147 | | And Apply startup configuration on all VPP DUTs
148 | | And Initialize L2 xconnect in 3-node circular topology
149 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
150 | | ... | ${binary_max} | ${traffic_profile}
151 | | ... | ${min_rate} | ${max_rate} | ${threshold}
152
153 | tc13-64B-4t4c-eth-l2xcbase-ndrdisc
154 | | [Documentation]
155 | | ... | [Cfg] DUT runs L2XC switching config with 4 phy cores, \
156 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames
157 | | ... | using binary search start at 18.75Mpps rate, step 50kpps.
158 | | [Tags] | 64B | 4C | NDRDISC
159 | | ${framesize}= | Set Variable | 64
160 | | ${min_rate}= | Set Variable | ${50000}
161 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
162 | | ${binary_min}= | Set Variable | ${min_rate}
163 | | ${binary_max}= | Set Variable | ${max_rate}
164 | | ${threshold}= | Set Variable | ${min_rate}
165 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
166 | | And Add PCI devices to all DUTs
167 | | And Add no multi seg to all DUTs
168 | | And Add DPDK dev default RXD to all DUTs | 2048
169 | | And Add DPDK dev default TXD to all DUTs | 2048
170 | | And Apply startup configuration on all VPP DUTs
171 | | And Initialize L2 xconnect in 3-node circular topology
172 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
173 | | ... | ${binary_max} | ${traffic_profile}
174 | | ... | ${min_rate} | ${max_rate} | ${threshold}
175
176 | tc15-1518B-4t4c-eth-l2xcbase-ndrdisc
177 | | [Documentation]
178 | | ... | [Cfg] DUT runs L2XC switching config with 4 phy cores, \
179 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames
180 | | ... | using binary search start at 24.5G rate, step 50kpps.
181 | | [Tags] | 1518B | 4C | NDRDISC | SKIP_PATCH
182 | | ${framesize}= | Set Variable | 1518
183 | | ${min_rate}= | Set Variable | ${50000}
184 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
185 | | ${binary_min}= | Set Variable | ${min_rate}
186 | | ${binary_max}= | Set Variable | ${max_rate}
187 | | ${threshold}= | Set Variable | ${min_rate}
188 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
189 | | And Add PCI devices to all DUTs
190 | | And Add no multi seg to all DUTs
191 | | And Add DPDK dev default RXD to all DUTs | 2048
192 | | And Add DPDK dev default TXD to all DUTs | 2048
193 | | And Apply startup configuration on all VPP DUTs
194 | | And Initialize L2 xconnect in 3-node circular topology
195 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
196 | | ... | ${binary_max} | ${traffic_profile}
197 | | ... | ${min_rate} | ${max_rate} | ${threshold}
198
199 | tc19-IMIX-1t1c-eth-l2xcbase-ndrdisc
200 | | [Documentation]
201 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core, \
202 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
203 | | ... | using binary search start at 24.5G rate, step 50kpps.
204 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
205 | | [Tags] | IMIX | 1C | NDRDISC
206 | | ${framesize}= | Set Variable | IMIX_v4_1
207 | | ${min_rate}= | Set Variable | ${50000}
208 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
209 | | ${binary_min}= | Set Variable | ${min_rate}
210 | | ${binary_max}= | Set Variable | ${max_rate}
211 | | ${threshold}= | Set Variable | ${min_rate}
212 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
213 | | And Add PCI devices to all DUTs
214 | | And Add no multi seg to all DUTs
215 | | And Add DPDK dev default RXD to all DUTs | 2048
216 | | And Add DPDK dev default TXD to all DUTs | 2048
217 | | And Apply startup configuration on all VPP DUTs
218 | | And Initialize L2 xconnect in 3-node circular topology
219 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
220 | | ... | ${binary_max} | ${traffic_profile}
221 | | ... | ${min_rate} | ${max_rate} | ${threshold}
222
223 | tc20-IMIX-2t2c-eth-l2xcbase-ndrdisc
224 | | [Documentation]
225 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy core, \
226 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
227 | | ... | using binary search start at 24.5G rate, step 50kpps.
228 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
229 | | [Tags] | IMIX | 2C | NDRDISC | SKIP_PATCH
230 | | ${framesize}= | Set Variable | IMIX_v4_1
231 | | ${min_rate}= | Set Variable | ${50000}
232 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
233 | | ${binary_min}= | Set Variable | ${min_rate}
234 | | ${binary_max}= | Set Variable | ${max_rate}
235 | | ${threshold}= | Set Variable | ${min_rate}
236 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
237 | | And Add PCI devices to all DUTs
238 | | And Add no multi seg to all DUTs
239 | | And Add DPDK dev default RXD to all DUTs | 2048
240 | | And Add DPDK dev default TXD to all DUTs | 2048
241 | | And Apply startup configuration on all VPP DUTs
242 | | And Initialize L2 xconnect in 3-node circular topology
243 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
244 | | ... | ${binary_max} | ${traffic_profile}
245 | | ... | ${min_rate} | ${max_rate} | ${threshold}
246
247 | tc21-IMIX-4t4c-eth-l2xcbase-ndrdisc
248 | | [Documentation]
249 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core, \
250 | | ... | 2 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
251 | | ... | using binary search start at 24.5G rate, step 50kpps.
252 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
253 | | [Tags] | IMIX | 4C | NDRDISC | SKIP_PATCH
254 | | ${framesize}= | Set Variable | IMIX_v4_1
255 | | ${min_rate}= | Set Variable | ${50000}
256 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
257 | | ${binary_min}= | Set Variable | ${min_rate}
258 | | ${binary_max}= | Set Variable | ${max_rate}
259 | | ${threshold}= | Set Variable | ${min_rate}
260 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
261 | | And Add PCI devices to all DUTs
262 | | And Add no multi seg to all DUTs
263 | | And Add DPDK dev default RXD to all DUTs | 2048
264 | | And Add DPDK dev default TXD to all DUTs | 2048
265 | | And Apply startup configuration on all VPP DUTs
266 | | And Initialize L2 xconnect in 3-node circular topology
267 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
268 | | ... | ${binary_max} | ${traffic_profile}
269 | | ... | ${min_rate} | ${max_rate} | ${threshold}