CSIT-322 XL710 BD tests
[csit.git] / tests / perf / Long_Bridge_Domain_Intel-XL710.robot
1 # Copyright (c) 2016 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.NodePath
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PERFTEST_LONG
18 | ...        | NIC_Intel-XL710
19 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
20 | ... | L2 | Intel-XL710
21 | Suite Teardown | 3-node Performance Suite Teardown
22 | Test Setup | Setup all DUTs before test
23 | Test Teardown | Run Keywords
24 | ...           | Run Keyword If Test Failed
25 | ...           | Traffic should pass with no loss | 10
26 | ...           | ${min_rate}pps | ${framesize} | 3-node-bridge
27 | ...           | fail_on_loss=${False}
28 | ...           | AND | Remove startup configuration of VPP from all DUTs
29 | ...           | AND | Show vpp trace dump on all DUTs
30 | Documentation | *RFC2544: Pkt throughput L2BD test cases*
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 for L2 switching of IPv4.
35 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 bridge-
36 | ... | domain and MAC learning enabled. DUT1 and DUT2 tested with 2p40GE NIC
37 | ... | XL710-DA2 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
58 *** Test Cases ***
59 | TC01: 64B NDR binary search - DUT L2BD - 1thread 1core 1rxq
60 | | [Documentation]
61 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
62 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
63 | | ... | using binary search start at 18.75Mpps rate, step 100kpps.
64 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
65 | | ${framesize}= | Set Variable | ${64}
66 | | ${min_rate}= | Set Variable | ${100000}
67 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
68 | | ${binary_min}= | Set Variable | ${min_rate}
69 | | ${binary_max}= | Set Variable | ${max_rate}
70 | | ${threshold}= | Set Variable | ${min_rate}
71 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
72 | | And   Add PCI devices to DUTs from 3-node single link topology
73 | | And   Add No Multi Seg to all DUTs
74 | | And   Apply startup configuration on all VPP DUTs
75 | | And   L2 bridge domain initialized in a 3-node circular topology
76 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
77 | | ...                                       | ${binary_max} | 3-node-bridge
78 | | ...                                       | ${min_rate} | ${max_rate}
79 | | ...                                       | ${threshold}
80
81 | TC03: 1518B NDR binary search - DUT L2BD - 1thread 1core 1rxq
82 | | [Documentation]
83 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
84 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
85 | | ... | using binary search start at 24.5G rate, step 10kpps.
86 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
87 | | ${framesize}= | Set Variable | ${1518}
88 | | ${min_rate}= | Set Variable | ${10000}
89 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
90 | | ${binary_min}= | Set Variable | ${min_rate}
91 | | ${binary_max}= | Set Variable | ${max_rate}
92 | | ${threshold}= | Set Variable | ${min_rate}
93 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
94 | | And   Add PCI devices to DUTs from 3-node single link topology
95 | | And   Add No Multi Seg to all DUTs
96 | | And   Apply startup configuration on all VPP DUTs
97 | | And   L2 bridge domain initialized in a 3-node circular topology
98 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
99 | | ...                                       | ${binary_max} | 3-node-bridge
100 | | ...                                       | ${min_rate} | ${max_rate}
101 | | ...                                       | ${threshold}
102
103 | TC07: 64B NDR binary search - DUT L2BD - 2threads 2cores 1rxq
104 | | [Documentation]
105 | | ... | [Cfg] DUT runs L2BD 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] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
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 rxqueues '1' in 3-node single-link topo
116 | | And   Add PCI devices to DUTs from 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   L2 bridge domain initialized in a 3-node circular topology
120 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
121 | | ...                                       | ${binary_max} | 3-node-bridge
122 | | ...                                       | ${min_rate} | ${max_rate}
123 | | ...                                       | ${threshold}
124
125 | TC09: 1518B NDR binary search - DUT L2BD - 2threads 2cores 1rxq
126 | | [Documentation]
127 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores, \
128 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
129 | | ... | using binary search start at 24.5G rate, step 10kpps.
130 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR | SKIP_PATCH
131 | | ${framesize}= | Set Variable | ${1518}
132 | | ${min_rate}= | Set Variable | ${10000}
133 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
134 | | ${binary_min}= | Set Variable | ${min_rate}
135 | | ${binary_max}= | Set Variable | ${max_rate}
136 | | ${threshold}= | Set Variable | ${min_rate}
137 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
138 | | And   Add PCI devices to DUTs from 3-node single link topology
139 | | And   Add No Multi Seg to all DUTs
140 | | And   Apply startup configuration on all VPP DUTs
141 | | And   L2 bridge domain initialized in a 3-node circular topology
142 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
143 | | ...                                       | ${binary_max} | 3-node-bridge
144 | | ...                                       | ${min_rate} | ${max_rate}
145 | | ...                                       | ${threshold}
146
147 | TC13: 64B NDR binary search - DUT L2BD - 4threads 4cores 2rxq
148 | | [Documentation]
149 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
150 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames
151 | | ... | using binary search start at 18.75Mpps rate, step 100kpps.
152 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
153 | | ${framesize}= | Set Variable | ${64}
154 | | ${min_rate}= | Set Variable | ${100000}
155 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
156 | | ${binary_min}= | Set Variable | ${min_rate}
157 | | ${binary_max}= | Set Variable | ${max_rate}
158 | | ${threshold}= | Set Variable | ${min_rate}
159 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
160 | | And   Add PCI devices to DUTs from 3-node single link topology
161 | | And   Add No Multi Seg to all DUTs
162 | | And   Apply startup configuration on all VPP DUTs
163 | | And   L2 bridge domain initialized in a 3-node circular topology
164 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
165 | | ...                                       | ${binary_max} | 3-node-bridge
166 | | ...                                       | ${min_rate} | ${max_rate}
167 | | ...                                       | ${threshold}
168
169 | TC15: 1518B NDR binary search - DUT L2BD - 4threads 4cores 2rxq
170 | | [Documentation]
171 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores, \
172 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames
173 | | ... | using binary search start at 24.5G rate, step 10kpps.
174 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR | SKIP_PATCH
175 | | ${framesize}= | Set Variable | ${1518}
176 | | ${min_rate}= | Set Variable | ${10000}
177 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
178 | | ${binary_min}= | Set Variable | ${min_rate}
179 | | ${binary_max}= | Set Variable | ${max_rate}
180 | | ${threshold}= | Set Variable | ${min_rate}
181 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
182 | | And   Add PCI devices to DUTs from 3-node single link topology
183 | | And   Add No Multi Seg to all DUTs
184 | | And   Apply startup configuration on all VPP DUTs
185 | | And   L2 bridge domain initialized in a 3-node circular topology
186 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
187 | | ...                                       | ${binary_max} | 3-node-bridge
188 | | ...                                       | ${min_rate} | ${max_rate}
189 | | ...                                       | ${threshold}
190
191 | TC19: IMIX_v4_1 NDR binary search - DUT L2BD - 1thread 1core 1rxq
192 | | [Documentation]
193 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core, \
194 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
195 | | ... | using binary search start at 24.5G rate, step 100kpps.
196 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
197 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
198 | | ${framesize}= | Set Variable | IMIX_v4_1
199 | | ${min_rate}= | Set Variable | ${100000}
200 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
201 | | ${binary_min}= | Set Variable | ${min_rate}
202 | | ${binary_max}= | Set Variable | ${max_rate}
203 | | ${threshold}= | Set Variable | ${min_rate}
204 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
205 | | And   Add all PCI devices to all DUTs
206 | | And   Add No Multi Seg to all DUTs
207 | | And   Apply startup configuration on all VPP DUTs
208 | | And   L2 bridge domain initialized in a 3-node circular topology
209 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
210 | | ...                                       | ${binary_max} | 3-node-bridge
211 | | ...                                       | ${min_rate} | ${max_rate}
212 | | ...                                       | ${threshold}
213
214 | TC20: IMIX_v4_1 NDR binary search - DUT L2BD - 2thread 2core 1rxq
215 | | [Documentation]
216 | | ... | [Cfg] DUT runs L2BD switching config with 2 thread, 2 phy core, \
217 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
218 | | ... | using binary search start at 24.5G rate, step 100kpps.
219 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
220 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR | SKIP_PATCH
221 | | ${framesize}= | Set Variable | IMIX_v4_1
222 | | ${min_rate}= | Set Variable | ${100000}
223 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
224 | | ${binary_min}= | Set Variable | ${min_rate}
225 | | ${binary_max}= | Set Variable | ${max_rate}
226 | | ${threshold}= | Set Variable | ${min_rate}
227 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
228 | | And   Add all PCI devices to all DUTs
229 | | And   Add No Multi Seg to all DUTs
230 | | And   Apply startup configuration on all VPP DUTs
231 | | And   L2 bridge domain initialized in a 3-node circular topology
232 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
233 | | ...                                       | ${binary_max} | 3-node-bridge
234 | | ...                                       | ${min_rate} | ${max_rate}
235 | | ...                                       | ${threshold}
236
237 | TC21: IMIX_v4_1 NDR binary search - DUT L2BD - 4thread 4core 2rxq
238 | | [Documentation]
239 | | ... | [Cfg] DUT runs L2BD switching config with 4 thread, 4 phy core, \
240 | | ... | 2 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
241 | | ... | using binary search start at 24.5G rate, step 100kpps.
242 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
243 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR | SKIP_PATCH
244 | | ${framesize}= | Set Variable | IMIX_v4_1
245 | | ${min_rate}= | Set Variable | ${100000}
246 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
247 | | ${binary_min}= | Set Variable | ${min_rate}
248 | | ${binary_max}= | Set Variable | ${max_rate}
249 | | ${threshold}= | Set Variable | ${min_rate}
250 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
251 | | And   Add all PCI devices to all DUTs
252 | | And   Add No Multi Seg to all DUTs
253 | | And   Apply startup configuration on all VPP DUTs
254 | | And   L2 bridge domain initialized in a 3-node circular topology
255 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
256 | | ...                                       | ${binary_max} | 3-node-bridge
257 | | ...                                       | ${min_rate} | ${max_rate}
258 | | ...                                       | ${threshold}