CSIT-321 L2 Cross-connect - baseline - NIC-to-NIC(XL710)
[csit.git] / tests / perf / Long_Xconnect_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.InterfaceUtil
17 | Library | resources.libraries.python.NodePath
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PERFTEST_LONG
19 | ...        | NIC_Intel-XL710
20 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
21 | ... | L2 | Intel-XL710
22 | Suite Teardown | 3-node Performance Suite Teardown
23 | Test Setup | Setup all DUTs before test
24 | Test Teardown | Run Keywords | Remove startup configuration of VPP from all DUTs
25 | ...           | AND          | Show vpp trace dump on all DUTs
26 | Documentation | *RFC2544: Pkt throughput L2XC test cases*
27 | ...
28 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
29 | ... | with single links between nodes.
30 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 cross connect.
31 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 cross-
32 | ... | connect. DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
33 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
34 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
35 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
36 | ... | of packets transmitted. NDR and PDR are discovered for different
37 | ... | Ethernet L2 frame sizes using either binary search or linear search
38 | ... | algorithms with configured starting rate and final step that determines
39 | ... | throughput measurement resolution. Test packets are generated by TG on
40 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
41 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
42 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
43 | ... | payload. MAC addresses are matching MAC addresses of the TG node
44 | ... | interfaces.
45 | ... | *[Ref] Applicable standard specifications:* RFC2544.
46
47 *** Variables ***
48 #XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
49 | ${s_24.5G} | ${24500000000}
50 #XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
51 | ${s_18.75Mpps} | ${18750000}
52
53 *** Test Cases ***
54 | TC01: 64B NDR binary search - DUT L2XC - 1thread 1core 1rxq
55 | | [Documentation]
56 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
57 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
58 | | ... | using binary search start at 10GE linerate, step 100kpps.
59 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
60 | | ${framesize}= | Set Variable | 64
61 | | ${min_rate}= | Set Variable | 100000
62 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
63 | | ${binary_min}= | Set Variable | ${min_rate}
64 | | ${binary_max}= | Set Variable | ${max_rate}
65 | | ${threshold}= | Set Variable | ${min_rate}
66 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
67 | | And   Add PCI devices to DUTs from 3-node single link topology
68 | | And   Add No Multi Seg to all DUTs
69 | | And   Apply startup configuration on all VPP DUTs
70 | | And   L2 xconnect initialized in a 3-node circular topology
71 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
72 | | ...                                       | ${binary_max} | 3-node-xconnect
73 | | ...                                       | ${min_rate} | ${max_rate}
74 | | ...                                       | ${threshold}
75
76 | TC03: 1518B NDR binary search - DUT L2XC - 1thread 1core 1rxq
77 | | [Documentation]
78 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
79 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
80 | | ... | using binary search start at 10GE linerate, step 10kpps.
81 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
82 | | ${framesize}= | Set Variable | 1518
83 | | ${min_rate}= | Set Variable | 10000
84 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
85 | | ${binary_min}= | Set Variable | ${min_rate}
86 | | ${binary_max}= | Set Variable | ${max_rate}
87 | | ${threshold}= | Set Variable | ${min_rate}
88 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
89 | | And   Add PCI devices to DUTs from 3-node single link topology
90 | | And   Add No Multi Seg to all DUTs
91 | | And   Apply startup configuration on all VPP DUTs
92 | | And   L2 xconnect initialized in a 3-node circular topology
93 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
94 | | ...                                       | ${binary_max} | 3-node-xconnect
95 | | ...                                       | ${min_rate} | ${max_rate}
96 | | ...                                       | ${threshold}
97
98 | TC07: 64B NDR binary search - DUT L2XC - 2threads 2cores 1rxq
99 | | [Documentation]
100 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
101 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
102 | | ... | using binary search start at 10GE linerate, step 100kpps.
103 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
104 | | ${framesize}= | Set Variable | 64
105 | | ${min_rate}= | Set Variable | 100000
106 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
107 | | ${binary_min}= | Set Variable | ${min_rate}
108 | | ${binary_max}= | Set Variable | ${max_rate}
109 | | ${threshold}= | Set Variable | ${min_rate}
110 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
111 | | And   Add PCI devices to DUTs from 3-node single link topology
112 | | And   Add No Multi Seg to all DUTs
113 | | And   Apply startup configuration on all VPP DUTs
114 | | And   L2 xconnect initialized in a 3-node circular topology
115 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
116 | | ...                                       | ${binary_max} | 3-node-xconnect
117 | | ...                                       | ${min_rate} | ${max_rate}
118 | | ...                                       | ${threshold}
119
120 | TC09: 1518B NDR binary search - DUT L2XC - 2threads 2cores 1rxq
121 | | [Documentation]
122 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
123 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
124 | | ... | using binary search start at 10GE linerate, step 10kpps.
125 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
126 | | ${framesize}= | Set Variable | 1518
127 | | ${min_rate}= | Set Variable | 10000
128 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
129 | | ${binary_min}= | Set Variable | ${min_rate}
130 | | ${binary_max}= | Set Variable | ${max_rate}
131 | | ${threshold}= | Set Variable | ${min_rate}
132 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
133 | | And   Add PCI devices to DUTs from 3-node single link topology
134 | | And   Add No Multi Seg to all DUTs
135 | | And   Apply startup configuration on all VPP DUTs
136 | | And   L2 xconnect initialized in a 3-node circular topology
137 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
138 | | ...                                       | ${binary_max} | 3-node-xconnect
139 | | ...                                       | ${min_rate} | ${max_rate}
140 | | ...                                       | ${threshold}
141
142 | TC13: 64B NDR binary search - DUT L2XC - 4threads 4cores 2rxq
143 | | [Documentation]
144 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
145 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames
146 | | ... | using binary search start at 10GE linerate, step 100kpps.
147 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
148 | | ${framesize}= | Set Variable | 64
149 | | ${min_rate}= | Set Variable | 100000
150 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
151 | | ${binary_min}= | Set Variable | ${min_rate}
152 | | ${binary_max}= | Set Variable | ${max_rate}
153 | | ${threshold}= | Set Variable | ${min_rate}
154 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
155 | | And   Add PCI devices to DUTs from 3-node single link topology
156 | | And   Add No Multi Seg to all DUTs
157 | | And   Apply startup configuration on all VPP DUTs
158 | | And   L2 xconnect initialized in a 3-node circular topology
159 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
160 | | ...                                       | ${binary_max} | 3-node-xconnect
161 | | ...                                       | ${min_rate} | ${max_rate}
162 | | ...                                       | ${threshold}
163
164 | TC15: 1518B NDR binary search - DUT L2XC - 4threads 4cores 2rxq
165 | | [Documentation]
166 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
167 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames
168 | | ... | using binary search start at 10GE linerate, step 10kpps.
169 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
170 | | ${framesize}= | Set Variable | 1518
171 | | ${min_rate}= | Set Variable | 10000
172 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
173 | | ${binary_min}= | Set Variable | ${min_rate}
174 | | ${binary_max}= | Set Variable | ${max_rate}
175 | | ${threshold}= | Set Variable | ${min_rate}
176 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
177 | | And   Add PCI devices to DUTs from 3-node single link topology
178 | | And   Add No Multi Seg to all DUTs
179 | | And   Apply startup configuration on all VPP DUTs
180 | | And   L2 xconnect initialized in a 3-node circular topology
181 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
182 | | ...                                       | ${binary_max} | 3-node-xconnect
183 | | ...                                       | ${min_rate} | ${max_rate}
184 | | ...                                       | ${threshold}
185
186 | TC19: IMIX_v4_1 NDR binary search - DUT L2XC - 1thread 1core 1rxq
187 | | [Documentation]
188 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
189 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
190 | | ... | using binary search start at 10GE linerate, step 100kpps.
191 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
192 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
193 | | ${framesize}= | Set Variable | IMIX_v4_1
194 | | ${min_rate}= | Set Variable | 100000
195 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
196 | | ${binary_min}= | Set Variable | ${min_rate}
197 | | ${binary_max}= | Set Variable | ${max_rate}
198 | | ${threshold}= | Set Variable | ${min_rate}
199 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
200 | | And   Add all PCI devices to all DUTs
201 | | And   Add No Multi Seg to all DUTs
202 | | And   Apply startup configuration on all VPP DUTs
203 | | And   L2 xconnect initialized in a 3-node circular topology
204 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
205 | | ...                                       | ${binary_max} | 3-node-xconnect
206 | | ...                                       | ${min_rate} | ${max_rate}
207 | | ...                                       | ${threshold}
208
209 | TC20: IMIX_v4_1 NDR binary search - DUT L2XC - 2threads 2cores 1rxq
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 10GE linerate, step 100kpps.
214 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
215 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
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 rxqueues '1' in 3-node single-link topo
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   L2 xconnect initialized in a 3-node circular topology
227 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
228 | | ...                                       | ${binary_max} | 3-node-xconnect
229 | | ...                                       | ${min_rate} | ${max_rate}
230 | | ...                                       | ${threshold}
231
232 | TC21: IMIX_v4_1 NDR binary search - DUT L2XC - 4threads 4cores 2rxq
233 | | [Documentation]
234 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core, \
235 | | ... | 2 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
236 | | ... | using binary search start at 10GE linerate, step 100kpps.
237 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
238 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
239 | | ${framesize}= | Set Variable | IMIX_v4_1
240 | | ${min_rate}= | Set Variable | 100000
241 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
242 | | ${binary_min}= | Set Variable | ${min_rate}
243 | | ${binary_max}= | Set Variable | ${max_rate}
244 | | ${threshold}= | Set Variable | ${min_rate}
245 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
246 | | And   Add all PCI devices to all DUTs
247 | | And   Add No Multi Seg to all DUTs
248 | | And   Apply startup configuration on all VPP DUTs
249 | | And   L2 xconnect initialized in a 3-node circular topology
250 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
251 | | ...                                       | ${binary_max} | 3-node-xconnect
252 | | ...                                       | ${min_rate} | ${max_rate}
253 | | ...                                       | ${threshold}