CSIT-664: Refactor setups and teardowns
[csit.git] / tests / perf / 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.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 thread, 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 100kpps.
66 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
67 | | ${framesize}= | Set Variable | 64
68 | | ${min_rate}= | Set Variable | ${100000}
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 DUTs in 3-node single link topology
75 | | And Add no multi seg to all DUTs
76 | | And Apply startup configuration on all VPP DUTs
77 | | And Initialize L2 xconnect in 3-node circular topology
78 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
79 | | ... | ${binary_max} | ${traffic_profile}
80 | | ... | ${min_rate} | ${max_rate} | ${threshold}
81
82 | tc03-1518B-1t1c-eth-l2xcbase-ndrdisc
83 | | [Documentation]
84 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
85 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
86 | | ... | using binary search start at 24.5G rate, step 10kpps.
87 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
88 | | ${framesize}= | Set Variable | 1518
89 | | ${min_rate}= | Set Variable | ${10000}
90 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
91 | | ${binary_min}= | Set Variable | ${min_rate}
92 | | ${binary_max}= | Set Variable | ${max_rate}
93 | | ${threshold}= | Set Variable | ${min_rate}
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 Apply startup configuration on all VPP DUTs
98 | | And Initialize L2 xconnect in 3-node circular topology
99 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
100 | | ... | ${binary_max} | ${traffic_profile}
101 | | ... | ${min_rate} | ${max_rate} | ${threshold}
102
103 | tc07-64B-2t2c-eth-l2xcbase-ndrdisc
104 | | [Documentation]
105 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
106 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
107 | | ... | using binary search start at 18.75Mpps rate, step 100kpps.
108 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
109 | | ${framesize}= | Set Variable | 64
110 | | ${min_rate}= | Set Variable | ${100000}
111 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
112 | | ${binary_min}= | Set Variable | ${min_rate}
113 | | ${binary_max}= | Set Variable | ${max_rate}
114 | | ${threshold}= | Set Variable | ${min_rate}
115 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
116 | | And Add PCI devices to DUTs in 3-node single link topology
117 | | And Add no multi seg to all DUTs
118 | | And Apply startup configuration on all VPP DUTs
119 | | And Initialize L2 xconnect in 3-node circular topology
120 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
121 | | ... | ${binary_max} | ${traffic_profile}
122 | | ... | ${min_rate} | ${max_rate} | ${threshold}
123
124 | tc09-1518B-2t2c-eth-l2xcbase-ndrdisc
125 | | [Documentation]
126 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
127 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
128 | | ... | using binary search start at 24.5G rate, step 10kpps.
129 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
130 | | ${framesize}= | Set Variable | 1518
131 | | ${min_rate}= | Set Variable | ${10000}
132 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
133 | | ${binary_min}= | Set Variable | ${min_rate}
134 | | ${binary_max}= | Set Variable | ${max_rate}
135 | | ${threshold}= | Set Variable | ${min_rate}
136 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
137 | | And Add PCI devices to DUTs in 3-node single link topology
138 | | And Add no multi seg to all DUTs
139 | | And Apply startup configuration on all VPP DUTs
140 | | And Initialize L2 xconnect in 3-node circular topology
141 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
142 | | ... | ${binary_max} | ${traffic_profile}
143 | | ... | ${min_rate} | ${max_rate} | ${threshold}
144
145 | tc13-64B-4t4c-eth-l2xcbase-ndrdisc
146 | | [Documentation]
147 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
148 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames
149 | | ... | using binary search start at 18.75Mpps rate, step 100kpps.
150 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
151 | | ${framesize}= | Set Variable | 64
152 | | ${min_rate}= | Set Variable | ${100000}
153 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
154 | | ${binary_min}= | Set Variable | ${min_rate}
155 | | ${binary_max}= | Set Variable | ${max_rate}
156 | | ${threshold}= | Set Variable | ${min_rate}
157 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
158 | | And Add PCI devices to DUTs in 3-node single link topology
159 | | And Add no multi seg to all DUTs
160 | | And Apply startup configuration on all VPP DUTs
161 | | And Initialize L2 xconnect in 3-node circular topology
162 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
163 | | ... | ${binary_max} | ${traffic_profile}
164 | | ... | ${min_rate} | ${max_rate} | ${threshold}
165
166 | tc15-1518B-4t4c-eth-l2xcbase-ndrdisc
167 | | [Documentation]
168 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
169 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames
170 | | ... | using binary search start at 24.5G rate, step 10kpps.
171 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
172 | | ${framesize}= | Set Variable | 1518
173 | | ${min_rate}= | Set Variable | ${10000}
174 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
175 | | ${binary_min}= | Set Variable | ${min_rate}
176 | | ${binary_max}= | Set Variable | ${max_rate}
177 | | ${threshold}= | Set Variable | ${min_rate}
178 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
179 | | And Add PCI devices to DUTs in 3-node single link topology
180 | | And Add no multi seg to all DUTs
181 | | And Apply startup configuration on all VPP DUTs
182 | | And Initialize L2 xconnect in 3-node circular topology
183 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
184 | | ... | ${binary_max} | ${traffic_profile}
185 | | ... | ${min_rate} | ${max_rate} | ${threshold}
186
187 | tc19-IMIX-1t1c-eth-l2xcbase-ndrdisc
188 | | [Documentation]
189 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
190 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
191 | | ... | using binary search start at 24.5G rate, step 100kpps.
192 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
193 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
194 | | ${framesize}= | Set Variable | IMIX_v4_1
195 | | ${min_rate}= | Set Variable | ${100000}
196 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
197 | | ${binary_min}= | Set Variable | ${min_rate}
198 | | ${binary_max}= | Set Variable | ${max_rate}
199 | | ${threshold}= | Set Variable | ${min_rate}
200 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
201 | | And Add all PCI devices to all DUTs
202 | | And Add no multi seg to all DUTs
203 | | And Apply startup configuration on all VPP DUTs
204 | | And Initialize L2 xconnect in 3-node circular topology
205 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
206 | | ... | ${binary_max} | ${traffic_profile}
207 | | ... | ${min_rate} | ${max_rate} | ${threshold}
208
209 | tc20-IMIX-2t2c-eth-l2xcbase-ndrdisc
210 | | [Documentation]
211 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 2 phy core, \
212 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
213 | | ... | using binary search start at 24.5G rate, step 100kpps.
214 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
215 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
216 | | ${framesize}= | Set Variable | IMIX_v4_1
217 | | ${min_rate}= | Set Variable | ${100000}
218 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
219 | | ${binary_min}= | Set Variable | ${min_rate}
220 | | ${binary_max}= | Set Variable | ${max_rate}
221 | | ${threshold}= | Set Variable | ${min_rate}
222 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
223 | | And Add all PCI devices to all DUTs
224 | | And Add no multi seg to all DUTs
225 | | And Apply startup configuration on all VPP DUTs
226 | | And Initialize L2 xconnect in 3-node circular topology
227 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
228 | | ... | ${binary_max} | ${traffic_profile}
229 | | ... | ${min_rate} | ${max_rate} | ${threshold}
230
231 | tc21-IMIX-4t4c-eth-l2xcbase-ndrdisc
232 | | [Documentation]
233 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core, \
234 | | ... | 2 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
235 | | ... | using binary search start at 24.5G rate, step 100kpps.
236 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
237 | | [Tags] | IMIX | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
238 | | ${framesize}= | Set Variable | IMIX_v4_1
239 | | ${min_rate}= | Set Variable | ${100000}
240 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
241 | | ${binary_min}= | Set Variable | ${min_rate}
242 | | ${binary_max}= | Set Variable | ${max_rate}
243 | | ${threshold}= | Set Variable | ${min_rate}
244 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
245 | | And Add all PCI devices to all DUTs
246 | | And Add no multi seg to all DUTs
247 | | And Apply startup configuration on all VPP DUTs
248 | | And Initialize L2 xconnect in 3-node circular topology
249 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
250 | | ... | ${binary_max} | ${traffic_profile}
251 | | ... | ${min_rate} | ${max_rate} | ${threshold}