CSIT-548: Add x520 IP4base perf test with 2 VMs per DUT
[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 | 3-node Performance Suite Setup with DUT's NIC model
23 | ... | L2 | Intel-XL710
24 | Suite Teardown | 3-node Performance Suite Teardown
25 | ...
26 | Test Setup | Performance test setup
27 | Test Teardown | Performance test teardown | ${min_rate}pps | ${framesize}
28 | ... | 3-node-xconnect
29 | ...
30 | Documentation | *RFC2544: Pkt throughput L2XC 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 cross connect.
35 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 cross-
36 | ... | connect. DUT1 and DUT2 tested with 2p40GE NIC XL710 by Intel.
37 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
38 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
39 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
40 | ... | of packets transmitted. NDR and PDR are discovered for different
41 | ... | Ethernet L2 frame sizes using either binary search or linear search
42 | ... | algorithms with configured starting rate and final step that determines
43 | ... | throughput measurement resolution. Test packets are generated by TG on
44 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
45 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
46 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
47 | ... | payload. MAC addresses are matching MAC addresses of the TG node
48 | ... | interfaces.
49 | ... | *[Ref] Applicable standard specifications:* RFC2544.
50
51 *** Variables ***
52 # XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
53 | ${s_24.5G} | ${24500000000}
54 # XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
55 | ${s_18.75Mpps} | ${18750000}
56
57 *** Test Cases ***
58 | tc01-64B-1t1c-eth-l2xcbase-ndrdisc
59 | | [Documentation]
60 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
61 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
62 | | ... | using binary search start at 18.75Mpps rate, step 100kpps.
63 | | [Tags] | 1T1C | STHREAD | NDRDISC
64 | | ${framesize}= | Set Variable | 64
65 | | ${min_rate}= | Set Variable | ${100000}
66 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
67 | | ${binary_min}= | Set Variable | ${min_rate}
68 | | ${binary_max}= | Set Variable | ${max_rate}
69 | | ${threshold}= | Set Variable | ${min_rate}
70 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
71 | | And   Add PCI devices to DUTs from 3-node single link topology
72 | | And   Add No Multi Seg to all DUTs
73 | | And   Apply startup configuration on all VPP DUTs
74 | | And   L2 xconnect initialized in a 3-node circular topology
75 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
76 | | ...                                       | ${binary_max} | 3-node-xconnect
77 | | ...                                       | ${min_rate} | ${max_rate}
78 | | ...                                       | ${threshold}
79
80 | tc03-1518B-1t1c-eth-l2xcbase-ndrdisc
81 | | [Documentation]
82 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
83 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
84 | | ... | using binary search start at 24.5G rate, step 10kpps.
85 | | [Tags] | 1T1C | STHREAD | NDRDISC
86 | | ${framesize}= | Set Variable | 1518
87 | | ${min_rate}= | Set Variable | ${10000}
88 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
89 | | ${binary_min}= | Set Variable | ${min_rate}
90 | | ${binary_max}= | Set Variable | ${max_rate}
91 | | ${threshold}= | Set Variable | ${min_rate}
92 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
93 | | And   Add PCI devices to DUTs from 3-node single link topology
94 | | And   Add No Multi Seg to all DUTs
95 | | And   Apply startup configuration on all VPP DUTs
96 | | And   L2 xconnect initialized in a 3-node circular topology
97 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
98 | | ...                                       | ${binary_max} | 3-node-xconnect
99 | | ...                                       | ${min_rate} | ${max_rate}
100 | | ...                                       | ${threshold}
101
102 | tc07-64B-2t2c-eth-l2xcbase-ndrdisc
103 | | [Documentation]
104 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
105 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
106 | | ... | using binary search start at 18.75Mpps rate, step 100kpps.
107 | | [Tags] | 2T2C | MTHREAD | NDRDISC
108 | | ${framesize}= | Set Variable | 64
109 | | ${min_rate}= | Set Variable | ${100000}
110 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
111 | | ${binary_min}= | Set Variable | ${min_rate}
112 | | ${binary_max}= | Set Variable | ${max_rate}
113 | | ${threshold}= | Set Variable | ${min_rate}
114 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
115 | | And   Add PCI devices to DUTs from 3-node single link topology
116 | | And   Add No Multi Seg to all DUTs
117 | | And   Apply startup configuration on all VPP DUTs
118 | | And   L2 xconnect initialized in a 3-node circular topology
119 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
120 | | ...                                       | ${binary_max} | 3-node-xconnect
121 | | ...                                       | ${min_rate} | ${max_rate}
122 | | ...                                       | ${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] | 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 rxqueues '1' in 3-node single-link topo
137 | | And   Add PCI devices to DUTs from 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   L2 xconnect initialized in a 3-node circular topology
141 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
142 | | ...                                       | ${binary_max} | 3-node-xconnect
143 | | ...                                       | ${min_rate} | ${max_rate}
144 | | ...                                       | ${threshold}
145
146 | tc13-64B-4t4c-eth-l2xcbase-ndrdisc
147 | | [Documentation]
148 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
149 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames
150 | | ... | using binary search start at 18.75Mpps rate, step 100kpps.
151 | | [Tags] | 4T4C | MTHREAD | NDRDISC
152 | | ${framesize}= | Set Variable | 64
153 | | ${min_rate}= | Set Variable | ${100000}
154 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
155 | | ${binary_min}= | Set Variable | ${min_rate}
156 | | ${binary_max}= | Set Variable | ${max_rate}
157 | | ${threshold}= | Set Variable | ${min_rate}
158 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
159 | | And   Add PCI devices to DUTs from 3-node single link topology
160 | | And   Add No Multi Seg to all DUTs
161 | | And   Apply startup configuration on all VPP DUTs
162 | | And   L2 xconnect initialized in a 3-node circular topology
163 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
164 | | ...                                       | ${binary_max} | 3-node-xconnect
165 | | ...                                       | ${min_rate} | ${max_rate}
166 | | ...                                       | ${threshold}
167
168 | tc15-1518B-4t4c-eth-l2xcbase-ndrdisc
169 | | [Documentation]
170 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
171 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames
172 | | ... | using binary search start at 24.5G rate, step 10kpps.
173 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
174 | | ${framesize}= | Set Variable | 1518
175 | | ${min_rate}= | Set Variable | ${10000}
176 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
177 | | ${binary_min}= | Set Variable | ${min_rate}
178 | | ${binary_max}= | Set Variable | ${max_rate}
179 | | ${threshold}= | Set Variable | ${min_rate}
180 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
181 | | And   Add PCI devices to DUTs from 3-node single link topology
182 | | And   Add No Multi Seg to all DUTs
183 | | And   Apply startup configuration on all VPP DUTs
184 | | And   L2 xconnect initialized in a 3-node circular topology
185 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
186 | | ...                                       | ${binary_max} | 3-node-xconnect
187 | | ...                                       | ${min_rate} | ${max_rate}
188 | | ...                                       | ${threshold}
189
190 | tc19-IMIX-1t1c-eth-l2xcbase-ndrdisc
191 | | [Documentation]
192 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
193 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
194 | | ... | using binary search start at 24.5G rate, step 100kpps.
195 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
196 | | [Tags] | 1T1C | STHREAD | NDRDISC
197 | | ${framesize}= | Set Variable | IMIX_v4_1
198 | | ${min_rate}= | Set Variable | ${100000}
199 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
200 | | ${binary_min}= | Set Variable | ${min_rate}
201 | | ${binary_max}= | Set Variable | ${max_rate}
202 | | ${threshold}= | Set Variable | ${min_rate}
203 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
204 | | And   Add all PCI devices to all DUTs
205 | | And   Add No Multi Seg to all DUTs
206 | | And   Apply startup configuration on all VPP DUTs
207 | | And   L2 xconnect initialized in a 3-node circular topology
208 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
209 | | ...                                       | ${binary_max} | 3-node-xconnect
210 | | ...                                       | ${min_rate} | ${max_rate}
211 | | ...                                       | ${threshold}
212
213 | tc20-IMIX-2t2c-eth-l2xcbase-ndrdisc
214 | | [Documentation]
215 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 2 phy core, \
216 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
217 | | ... | using binary search start at 24.5G rate, step 100kpps.
218 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
219 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
220 | | ${framesize}= | Set Variable | IMIX_v4_1
221 | | ${min_rate}= | Set Variable | ${100000}
222 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
223 | | ${binary_min}= | Set Variable | ${min_rate}
224 | | ${binary_max}= | Set Variable | ${max_rate}
225 | | ${threshold}= | Set Variable | ${min_rate}
226 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
227 | | And   Add all PCI devices to all DUTs
228 | | And   Add No Multi Seg to all DUTs
229 | | And   Apply startup configuration on all VPP DUTs
230 | | And   L2 xconnect initialized in a 3-node circular topology
231 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
232 | | ...                                       | ${binary_max} | 3-node-xconnect
233 | | ...                                       | ${min_rate} | ${max_rate}
234 | | ...                                       | ${threshold}
235
236 | tc21-IMIX-4t4c-eth-l2xcbase-ndrdisc
237 | | [Documentation]
238 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core, \
239 | | ... | 2 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
240 | | ... | using binary search start at 24.5G rate, step 100kpps.
241 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
242 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
243 | | ${framesize}= | Set Variable | IMIX_v4_1
244 | | ${min_rate}= | Set Variable | ${100000}
245 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${353.83333}
246 | | ${binary_min}= | Set Variable | ${min_rate}
247 | | ${binary_max}= | Set Variable | ${max_rate}
248 | | ${threshold}= | Set Variable | ${min_rate}
249 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
250 | | And   Add all PCI devices to all DUTs
251 | | And   Add No Multi Seg to all DUTs
252 | | And   Apply startup configuration on all VPP DUTs
253 | | And   L2 xconnect initialized in a 3-node circular topology
254 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
255 | | ...                                       | ${binary_max} | 3-node-xconnect
256 | | ...                                       | ${min_rate} | ${max_rate}
257 | | ...                                       | ${threshold}