CSIT-1008: Fix 9000B VM Vhost performance tests
[csit.git] / tests / vpp / perf / vm_vhost / 40ge2p1xl710-eth-l2xcbase-eth-4vhostvr1024-2vm-ndrpdrdisc.robot
1 # Copyright (c) 2018 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.QemuUtils
17 | ...
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
19 | ... | NIC_Intel-XL710 | ETH | L2XCFWD | BASE | VHOST | VM | VHOST_1024
20 | ...
21 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
22 | ... | L2 | Intel-XL710
23 | Suite Teardown | Tear down 3-node performance topology
24 | ...
25 | Test Setup | Set up performance test
26 | Test Teardown | Tear down performance test with vhost and VM with dpdk-testpmd
27 | ... | ${min_rate}pps | ${framesize} | ${traffic_profile}
28 | ... | dut1_node=${dut1} | dut1_vm_refs=${dut1_vm_refs}
29 | ... | dut2_node=${dut2} | dut2_vm_refs=${dut2_vm_refs}
30 | ...
31 | Documentation | *RFC2544: Packet throughput L2XC test cases with vhost*
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 switching of IPv4.
36 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 cross-
37 | ... | connects. Qemu Guests are connected to VPP via vhost-user interfaces.
38 | ... | Guests are running DPDK testpmd interconnecting vhost-user interfaces
39 | ... | using 5 cores pinned to cpus on NUMA1 (cpus 24-28 and 29-34) and 2048M
40 | ... | memory. Testpmd is using socket-mem=1024M (512x2M hugepages), 5 cores
41 | ... | (1 main core and 4 cores dedicated for io), forwarding mode is set to
42 | ... | io, rxd/txd=1024, burst=64. DUT1, DUT2 are tested with 2p40GE NIC XL710
43 | ... | by Intel.
44 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
45 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
46 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
47 | ... | of packets transmitted. NDR and PDR are discovered for different
48 | ... | Ethernet L2 frame sizes using either binary search or linear search
49 | ... | algorithms with configured starting rate and final step that determines
50 | ... | throughput measurement resolution. Test packets are generated by TG on
51 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
52 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
53 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
54 | ... | payload. MAC addresses are matching MAC addresses of the TG node
55 | ... | interfaces.
56 | ... | *[Ref] Applicable standard specifications:* RFC2544.
57
58 *** Variables ***
59 | ${perf_qemu_qsz}= | 1024
60 # XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
61 | ${s_24.5G}= | ${24500000000}
62 # XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
63 | ${s_18.75Mpps}= | ${18750000}
64 # CPU settings
65 | ${system_cpus}= | ${1}
66 | ${vpp_cpus}= | ${5}
67 | ${vm_cpus}= | ${5}
68 # Traffic profile:
69 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
70
71 *** Keywords ***
72 | Discover NDR or PDR for eth-l2xcbase-eth-4vhostvr1024-2vm
73 | | [Documentation]
74 | | ... | [Cfg] DUT runs L2XC switching config with ${wt} thread, ${wt} phy\
75 | | ... | core, ${rxq} receive queue per NIC port.
76 | | ... | [Ver] Find NDR for ${framesize} frames using binary search start at
77 | | ... | 40GE linerate, step 10kpps.
78 | | ...
79 | | [Arguments] | ${wt} | ${rxq} | ${framesize} | ${min_rate} | ${search_type}
80 | | ...
81 | | # Test Variables required for test and test teardown
82 | | Set Test Variable | ${framesize}
83 | | Set Test Variable | ${min_rate}
84 | | ${get_framesize}= | Get Frame Size | ${framesize}
85 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${get_framesize}
86 | | ${max_rate}= | Set Variable If
87 | | ... | ${max_rate} > ${s_18.75Mpps} | ${s_18.75Mpps} | ${max_rate}
88 | | ${binary_min}= | Set Variable | ${min_rate}
89 | | ${binary_max}= | Set Variable | ${max_rate}
90 | | ${threshold}= | Set Variable | ${min_rate}
91 | | ${dut1_vm_refs}= | Create Dictionary
92 | | ${dut2_vm_refs}= | Create Dictionary
93 | | Set Test Variable | ${dut1_vm_refs}
94 | | Set Test Variable | ${dut2_vm_refs}
95 | | ${jumbo_frames}= | Set Variable If | ${get_framesize} < ${1522}
96 | | ... | ${False} | ${True}
97 | | Set Test Variable | ${jumbo_frames}
98 | | ...
99 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
100 | | And Add PCI devices to DUTs in 3-node single link topology
101 | | And Run Keyword If | ${get_framesize} < ${1522}
102 | | ... | Add no multi seg to all DUTs
103 | | And Apply startup configuration on all VPP DUTs
104 | | When Initialize L2 xconnect with Vhost-User for '2' in 3-node circular topology
105 | | And Configure '2' guest VMs with dpdk-testpmd connected via vhost-user in 3-node circular topology
106 | | Then Run Keyword If | '${search_type}' == 'NDR'
107 | | ... | Find NDR using binary search and pps
108 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
109 | | ... | ${min_rate} | ${max_rate} | ${threshold}
110 | | ... | ELSE IF | '${search_type}' == 'PDR'
111 | | ... | Find PDR using binary search and pps
112 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
113 | | ... | ${min_rate} | ${max_rate} | ${threshold}
114 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
115
116 *** Test Cases ***
117 | tc01-64B-1t1c-eth-l2xcbase-eth-4vhostvr1024-2vm-ndrdisc
118 | | [Documentation]
119 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
120 | | ... | 1 receive queue per NIC port.
121 | | ... | [Ver] Find NDR for 64 Byte frames \
122 | | ... | using binary search start at 40GE linerate, step 10kpps.
123 | | ...
124 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
125 | | ...
126 | | [Template] | Discover NDR or PDR for eth-l2xcbase-eth-4vhostvr1024-2vm
127 | | wt=1 | rxq=1 | framesize=${64} | min_rate=${10000} | search_type=NDR
128
129 | tc02-64B-1t1c-eth-l2xcbase-eth-4vhostvr1024-2vm-pdrdisc
130 | | [Documentation]
131 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
132 | | ... | 1 receive queue per NIC port.
133 | | ... | [Ver] Find PDR for 64 Byte frames \
134 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
135 | | ...
136 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
137 | | ...
138 | | [Template] | Discover NDR or PDR for eth-l2xcbase-eth-4vhostvr1024-2vm
139 | | wt=1 | rxq=1 | framesize=${64} | min_rate=${10000} | search_type=PDR
140
141 | tc03-1518B-1t1c-eth-l2xcbase-eth-4vhostvr1024-2vm-ndrdisc
142 | | [Documentation]
143 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
144 | | ... | 1 receive queue per NIC port.
145 | | ... | [Ver] Find NDR for 1518 Byte frames \
146 | | ... | using binary search start at 40GE linerate, step 10kpps.
147 | | ...
148 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
149 | | ...
150 | | [Template] | Discover NDR or PDR for eth-l2xcbase-eth-4vhostvr1024-2vm
151 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${10000} | search_type=NDR
152
153 | tc04-1518B-1t1c-eth-l2xcbase-eth-4vhostvr1024-2vm-pdrdisc
154 | | [Documentation]
155 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
156 | | ... | 1 receive queue per NIC port.
157 | | ... | [Ver] Find PDR for 1518 Byte frames \
158 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
159 | | ...
160 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
161 | | ...
162 | | [Template] | Discover NDR or PDR for eth-l2xcbase-eth-4vhostvr1024-2vm
163 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${10000} | search_type=PDR
164
165 | tc05-IMIX-1t1c-eth-l2xcbase-eth-4vhostvr1024-2vm-ndrdisc
166 | | [Documentation]
167 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
168 | | ... | 1 receive queue per NIC port.
169 | | ... | [Ver] Find NDR for IMIX_v4_1 frame \
170 | | ... | size using binary search start at 40GE linerate, step 10kpps.
171 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
172 | | ...
173 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
174 | | ...
175 | | [Template] | Discover NDR or PDR for eth-l2xcbase-eth-4vhostvr1024-2vm
176 | | wt=1 | rxq=1 | framesize=IMIX_v4_1 | min_rate=${10000} | search_type=NDR
177
178 | tc06-IMIX-1t1c-eth-l2xcbase-eth-4vhostvr1024-2vm-pdrdisc
179 | | [Documentation]
180 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
181 | | ... | 1 receive queue per NIC port.
182 | | ... | [Ver] Find PDR for IMIX_v4_1 frame \
183 | | ... | size using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
184 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
185 | | ...
186 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
187 | | ...
188 | | [Template] | Discover NDR or PDR for eth-l2xcbase-eth-4vhostvr1024-2vm
189 | | wt=1 | rxq=1 | framesize=IMIX_v4_1 | min_rate=${10000} | search_type=PDR
190
191 | tc07-64B-2t2c-eth-l2xcbase-eth-4vhostvr1024-2vm-ndrdisc
192 | | [Documentation]
193 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
194 | | ... | 1 receive queue per NIC port.
195 | | ... | [Ver] Find NDR for 64 Byte frames \
196 | | ... | using binary search start at 40GE linerate, step 10kpps.
197 | | ...
198 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
199 | | ...
200 | | [Template] | Discover NDR or PDR for eth-l2xcbase-eth-4vhostvr1024-2vm
201 | | wt=2 | rxq=1 | framesize=${64} | min_rate=${10000} | search_type=NDR
202
203 | tc08-64B-2t2c-eth-l2xcbase-eth-4vhostvr1024-2vm-pdrdisc
204 | | [Documentation]
205 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
206 | | ... | 1 receive queue per NIC port.
207 | | ... | [Ver] Find PDR for 64 Byte frames \
208 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
209 | | ...
210 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
211 | | ...
212 | | [Template] | Discover NDR or PDR for eth-l2xcbase-eth-4vhostvr1024-2vm
213 | | wt=2 | rxq=1 | framesize=${64} | min_rate=${10000} | search_type=PDR
214
215 | tc09-1518B-2t2c-eth-l2xcbase-eth-4vhostvr1024-2vm-ndrdisc
216 | | [Documentation]
217 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
218 | | ... | 1 receive queue per NIC port.
219 | | ... | [Ver] Find NDR for 1518 Byte frames \
220 | | ... | using binary search start at 40GE linerate, step 10kpps.
221 | | ...
222 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
223 | | ...
224 | | [Template] | Discover NDR or PDR for eth-l2xcbase-eth-4vhostvr1024-2vm
225 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${10000} | search_type=NDR
226
227 | tc10-1518B-2t2c-eth-l2xcbase-eth-4vhostvr1024-2vm-pdrdisc
228 | | [Documentation]
229 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
230 | | ... | 1 receive queue per NIC port.
231 | | ... | [Ver] Find PDR for 1518 Byte frames \
232 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
233 | | ...
234 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
235 | | ...
236 | | [Template] | Discover NDR or PDR for eth-l2xcbase-eth-4vhostvr1024-2vm
237 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${10000} | search_type=PDR
238
239 | tc11-IMIX-2t2c-eth-l2xcbase-eth-4vhostvr1024-2vm-ndrdisc
240 | | [Documentation]
241 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
242 | | ... | 1 receive queue per NIC port.
243 | | ... | [Ver] Find NDR for IMIX_v4_1 frame \
244 | | ... | size using binary search start at 40GE linerate, step 10kpps.
245 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
246 | | ...
247 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
248 | | ...
249 | | [Template] | Discover NDR or PDR for eth-l2xcbase-eth-4vhostvr1024-2vm
250 | | wt=2 | rxq=1 | framesize=IMIX_v4_1 | min_rate=${10000} | search_type=NDR
251
252 | tc12-IMIX-2t2c-eth-l2xcbase-eth-4vhostvr1024-2vm-pdrdisc
253 | | [Documentation]
254 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
255 | | ... | 1 receive queue per NIC port.
256 | | ... | [Ver] Find PDR for IMIX_v4_1 frame \
257 | | ... | size using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
258 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
259 | | ...
260 | | [Tags] | IMIX | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
261 | | ...
262 | | [Template] | Discover NDR or PDR for eth-l2xcbase-eth-4vhostvr1024-2vm
263 | | wt=2 | rxq=1 | framesize=IMIX_v4_1 | min_rate=${10000} | search_type=PDR
264
265 | tc13-64B-4t4c-eth-l2xcbase-eth-4vhostvr1024-2vm-ndrdisc
266 | | [Documentation]
267 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
268 | | ... | 2 receive queues per NIC port.
269 | | ... | [Ver] Find NDR for 64 Byte frames \
270 | | ... | using binary search start at 40GE linerate, step 10kpps.
271 | | ...
272 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
273 | | ...
274 | | [Template] | Discover NDR or PDR for eth-l2xcbase-eth-4vhostvr1024-2vm
275 | | wt=4 | rxq=2 | framesize=${64} | min_rate=${10000} | search_type=NDR
276
277 | tc14-64B-4t4c-eth-l2xcbase-eth-4vhostvr1024-2vm-pdrdisc
278 | | [Documentation]
279 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
280 | | ... | 2 receive queues per NIC port.
281 | | ... | [Ver] Find PDR for 64 Byte frames \
282 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
283 | | ...
284 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
285 | | ...
286 | | [Template] | Discover NDR or PDR for eth-l2xcbase-eth-4vhostvr1024-2vm
287 | | wt=4 | rxq=2 | framesize=${64} | min_rate=${10000} | search_type=PDR
288
289 | tc15-1518B-4t4c-eth-l2xcbase-eth-4vhostvr1024-2vm-ndrdisc
290 | | [Documentation]
291 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
292 | | ... | 2 receive queues per NIC port.
293 | | ... | [Ver] Find NDR for 1518 Byte frames \
294 | | ... | using binary search start at 40GE linerate, step 10kpps.
295 | | ...
296 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
297 | | ...
298 | | [Template] | Discover NDR or PDR for eth-l2xcbase-eth-4vhostvr1024-2vm
299 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${10000} | search_type=NDR
300
301 | tc16-1518B-4t4c-eth-l2xcbase-eth-4vhostvr1024-2vm-pdrdisc
302 | | [Documentation]
303 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
304 | | ... | 2 receive queues per NIC port.
305 | | ... | [Ver] Find PDR for 1518 Byte frames \
306 | | ... | using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
307 | | ...
308 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
309 | | ...
310 | | [Template] | Discover NDR or PDR for eth-l2xcbase-eth-4vhostvr1024-2vm
311 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${10000} | search_type=PDR
312
313 | tc17-IMIX-4t4c-eth-l2xcbase-eth-4vhostvr1024-2vm-ndrdisc
314 | | [Documentation]
315 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
316 | | ... | 2 receive queues per NIC port.
317 | | ... | [Ver] Find NDR for IMIX_v4_1 frame \
318 | | ... | size using binary search start at 40GE linerate, step 10kpps.
319 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
320 | | ...
321 | | [Tags] | IMIX | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
322 | | ...
323 | | [Template] | Discover NDR or PDR for eth-l2xcbase-eth-4vhostvr1024-2vm
324 | | wt=4 | rxq=2 | framesize=IMIX_v4_1 | min_rate=${10000} | search_type=NDR
325
326 | tc18-IMIX-4t4c-eth-l2xcbase-eth-4vhostvr1024-2vm-pdrdisc
327 | | [Documentation]
328 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
329 | | ... | 2 receive queues per NIC port.
330 | | ... | [Ver] Find PDR for IMIX_v4_1 frame \
331 | | ... | size using binary search start at 40GE linerate, step 10kpps, LT=0.5%.
332 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
333 | | ...
334 | | [Tags] | IMIX | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
335 | | ...
336 | | [Template] | Discover NDR or PDR for eth-l2xcbase-eth-4vhostvr1024-2vm
337 | | wt=4 | rxq=2 | framesize=IMIX_v4_1 | min_rate=${10000} | search_type=PDR