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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 | Resource | resources/libraries/robot/performance/performance_setup.robot
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
18 | ... | NIC_Intel-X710 | ETH | L2XCFWD | BASE | MEMIF | SINGLE_MEMIF | DOCKER
20 | Suite Setup | Run Keywords
21 | ... | Set up 3-node performance topology with DUT's NIC model | L2
23 | ... | AND | Set up performance test suite with MEMIF
24 | ... | AND | Set up performance topology with containers
26 | Suite Teardown | Tear down 3-node performance topology with container
28 | Test Setup | Run Keywords
29 | ... | Set up performance test
30 | ... | AND | Restart VPP in all 'VNF' containers
32 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
33 | ... | ${framesize} | ${traffic_profile}
35 | Test Template | Find NDRPDR for l2xcbase-eth-1memif-1dcr
37 | Documentation | *Raw results L2XC test cases*
39 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
40 | ... | with single links between nodes.
41 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 cross connect.
42 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 configured with L2 cross-
43 | ... | connect. DUT1 and DUT2 tested with 2p10GE NIC X710 by Intel.
44 | ... | Container is connected to VPP via Memif interface running same VPP
45 | ... | version as running on DUT. Resources are limited via cgroup to use 5
46 | ... | cores allocated from pool of isolated CPUs. There are no memory
47 | ... | contraints. Cross Horizontal topology with packets flowing via DUT (VPP)
48 | ... | to Container, then via horizontal memif to the next Container, and so on
49 | ... | until the last Container then to NIC (in last Container). Single
50 | ... | Container is supported as of now.
51 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
52 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
53 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
54 | ... | of packets transmitted. NDR and PDR are discovered for different
55 | ... | Ethernet L2 frame sizes using either binary search or linear search
56 | ... | algorithms with configured starting rate and final step that determines
57 | ... | throughput measurement resolution. Test packets are generated by TG on
58 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
59 | ... | (flow-group per direction, 254 flows per flow-group) with all packets
60 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
61 | ... | payload. MAC addresses are matching MAC addresses of the TG node
63 | ... | *[Ref] Applicable standard specifications:* RFC2544.
66 # X710-DA2 bandwidth limit
67 | ${s_limit} | ${10000000000}
69 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
71 | ${container_count}= | ${1}
72 | ${container_engine}= | Docker
73 | ${container_image}= | ubuntu:xenial-20180412
74 | ${container_install_dkms}= | ${TRUE}
75 | ${container_chain_topology}= | cross_horiz
77 | ${system_cpus}= | ${1}
79 | ${container_cpus}= | ${5}
82 | Find NDRPDR for l2xcbase-eth-1memif-1dcr
84 | | ... | [Cfg] DUT runs L2XC switching config with ${wt} thread(s), ${wt}\
85 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
86 | | ... | [Ver] Find ${search_type} for ${framesize} frames using binary search\
87 | | ... | start at 10GE linerate, step 50kpps.
89 | | [Arguments] | ${framesize} | ${wt} | ${rxq} | ${search_type}
90 | | ... | ${min_rate}=${50000}
91 | | Set Test Variable | ${framesize}
92 | | Set Test Variable | ${min_rate}
93 | | ${get_framesize}= | Get Frame Size | ${framesize}
94 | | ${max_rate}= | Calculate pps | ${s_limit} | ${get_framesize}
95 | | ${binary_min}= | Set Variable | ${min_rate}
96 | | ${binary_max}= | Set Variable | ${max_rate}
97 | | ${threshold}= | Set Variable | ${min_rate}
98 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
99 | | And Add single PCI device to all DUTs
100 | | And Run Keyword If | ${get_framesize} < ${1522}
101 | | ... | Add no multi seg to all DUTs
102 | | And Apply startup configuration on all VPP DUTs
103 | | And Initialize L2 xconnect for single memif in 3-node circular topology
105 | | Then Run Keyword If | '${search_type}' == 'NDR'
106 | | ... | Find NDR using binary search and pps
107 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
108 | | ... | ${min_rate} | ${max_rate} | ${threshold}
109 | | ... | ELSE IF | '${search_type}' == 'PDR'
110 | | ... | Find PDR using binary search and pps
111 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
112 | | ... | ${min_rate} | ${max_rate} | ${threshold}
113 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
116 | tc01-64B-1t1c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
118 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core,\
119 | | ... | 1 receive queue per NIC port.
120 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
121 | | ... | linerate, step 50kpps.
123 | | [Tags] | 64B | 1C | NDRDISC
124 | | framesize=${64} | wt=1 | rxq=1 | search_type=NDR
126 | tc02-64B-1t1c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
128 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core,\
129 | | ... | 1 receive queue per NIC port.
130 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
131 | | ... | linerate, step 50kpps, LT=0.5%.
133 | | [Tags] | 64B | 1C | PDRDISC
134 | | framesize=${64} | wt=1 | rxq=1 | search_type=PDR
136 | tc03-1518B-1t1c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
138 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core,\
139 | | ... | 1 receive queue per NIC port.
140 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
141 | | ... | linerate, step 50kpps.
143 | | [Tags] | 1518B | 1C | NDRDISC
144 | | framesize=${1518} | wt=1 | rxq=1 | search_type=NDR
146 | tc04-1518B-1t1c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
148 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core,\
149 | | ... | 1 receive queue per NIC port.
150 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
151 | | ... | linerate, step 50kpps, LT=0.5%.
153 | | [Tags] | 1518B | 1C | PDRDISC
154 | | framesize=${1518} | wt=1 | rxq=1 | search_type=PDR
156 | tc05-9000B-1t1c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
158 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core,\
159 | | ... | 1 receive queue per NIC port.
160 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
161 | | ... | linerate, step 50kpps.
163 | | [Tags] | 9000B | 1C | NDRDISC
164 | | framesize=${9000} | wt=1 | rxq=1 | search_type=NDR
166 | tc06-9000B-1t1c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
168 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core,\
169 | | ... | 1 receive queue per NIC port.
170 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
171 | | ... | linerate, step 50kpps, LT=0.5%.
173 | | [Tags] | 9000B | 1C | PDRDISC
174 | | framesize=${9000} | wt=1 | rxq=1 | search_type=PDR
176 | tc07-IMIX-1t1c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
178 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core,\
179 | | ... | 1 receive queue per NIC port.
180 | | ... | [Ver] Find NDR for IMIX_v4_1 frames using binary search start at 10GE\
181 | | ... | linerate, step 50kpps.
182 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
184 | | [Tags] | IMIX | 1C | NDRDISC
185 | | framesize=IMIX_v4_1 | wt=1 | rxq=1 | search_type=NDR
187 | tc08-IMIX-1t1c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
189 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core,\
190 | | ... | 1 receive queue per NIC port.
191 | | ... | [Ver] Find PDR for IMIX_v4_1 frames using binary search start at 10GE\
192 | | ... | linerate, step 50kpps, LT=0.5%.
193 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
195 | | [Tags] | IMIX | 1C | PDRDISC
196 | | framesize=IMIX_v4_1 | wt=1 | rxq=1 | search_type=PDR
198 | tc09-64B-2t2c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
200 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy core,\
201 | | ... | 1 receive queue per NIC port.
202 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
203 | | ... | linerate, step 50kpps.
205 | | [Tags] | 64B | 2C | NDRDISC
206 | | framesize=${64} | wt=2 | rxq=1 | search_type=NDR
208 | tc10-64B-2t2c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
210 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy core,\
211 | | ... | 1 receive queue per NIC port.
212 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
213 | | ... | linerate, step 50kpps, LT=0.5%.
215 | | [Tags] | 64B | 1C | PDRDISC
216 | | framesize=${64} | wt=2 | rxq=1 | search_type=PDR
218 | tc11-1518B-2t2c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
220 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy core,\
221 | | ... | 1 receive queue per NIC port.
222 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
223 | | ... | linerate, step 50kpps.
225 | | [Tags] | 1518B | 2C | NDRDISC
226 | | framesize=${1518} | wt=2 | rxq=1 | search_type=NDR
228 | tc12-1518B-2t2c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
230 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy core,\
231 | | ... | 1 receive queue per NIC port.
232 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
233 | | ... | linerate, step 50kpps, LT=0.5%.
235 | | [Tags] | 1518B | 2C | PDRDISC
236 | | framesize=${1518} | wt=2 | rxq=1 | search_type=PDR
238 | tc13-9000B-2t2c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
240 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy core,\
241 | | ... | 1 receive queue per NIC port.
242 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
243 | | ... | linerate, step 50kpps.
245 | | [Tags] | 9000B | 2C | NDRDISC
246 | | framesize=${9000} | wt=2 | rxq=1 | search_type=NDR
248 | tc14-9000B-2t2c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
250 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy core,\
251 | | ... | 1 receive queue per NIC port.
252 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
253 | | ... | linerate, step 50kpps, LT=0.5%.
255 | | [Tags] | 9000B | 2C | PDRDISC
256 | | framesize=${9000} | wt=2 | rxq=1 | search_type=PDR
258 | tc15-IMIX-2t2c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
260 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy core,\
261 | | ... | 1 receive queue per NIC port.
262 | | ... | [Ver] Find NDR for IMIX_v4_1 frames using binary search start at 10GE\
263 | | ... | linerate, step 50kpps.
264 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
266 | | [Tags] | IMIX | 2C | NDRDISC
267 | | framesize=IMIX_v4_1 | wt=2 | rxq=1 | search_type=NDR
269 | tc16-IMIX-2t2c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
271 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy core,\
272 | | ... | 1 receive queue per NIC port.
273 | | ... | [Ver] Find PDR for IMIX_v4_1 frames using binary search start at 10GE\
274 | | ... | linerate, step 50kpps, LT=0.5%.
275 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
277 | | [Tags] | IMIX | 2C | PDRDISC
278 | | framesize=IMIX_v4_1 | wt=2 | rxq=1 | search_type=PDR
280 | tc17-64B-4t4c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
282 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core,\
283 | | ... | 2 receive queue per NIC port.
284 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
285 | | ... | linerate, step 50kpps.
287 | | [Tags] | 64B | 4C | NDRDISC
288 | | framesize=${64} | wt=4 | rxq=2 | search_type=NDR
290 | tc18-64B-4t4c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
292 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core,\
293 | | ... | 2 receive queue per NIC port.
294 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
295 | | ... | linerate, step 50kpps, LT=0.5%.
297 | | [Tags] | 64B | 4C | PDRDISC
298 | | framesize=${64} | wt=4 | rxq=2 | search_type=PDR
300 | tc19-1518B-4t4c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
302 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core,\
303 | | ... | 2 receive queue per NIC port.
304 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
305 | | ... | linerate, step 50kpps.
307 | | [Tags] | 1518B | 4C | NDRDISC
308 | | framesize=${1518} | wt=4 | rxq=2 | search_type=NDR
310 | tc20-1518B-4t4c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
312 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core,\
313 | | ... | 2 receive queue per NIC port.
314 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
315 | | ... | linerate, step 50kpps, LT=0.5%.
317 | | [Tags] | 1518B | 4C | PDRDISC
318 | | framesize=${1518} | wt=4 | rxq=2 | search_type=PDR
320 | tc21-9000B-4t4c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
322 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core,\
323 | | ... | 2 receive queue per NIC port.
324 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
325 | | ... | linerate, step 50kpps.
327 | | [Tags] | 9000B | 4C | NDRDISC
328 | | framesize=${9000} | wt=4 | rxq=2 | search_type=NDR
330 | tc22-9000B-4t4c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
332 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core,\
333 | | ... | 2 receive queue per NIC port.
334 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
335 | | ... | linerate, step 50kpps, LT=0.5%.
337 | | [Tags] | 9000B | 4C | PDRDISC
338 | | framesize=${9000} | wt=4 | rxq=2 | search_type=PDR
340 | tc23-IMIX-4t4c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
342 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core,\
343 | | ... | 2 receive queue per NIC port.
344 | | ... | [Ver] Find NDR for IMIX_v4_1 frames using binary search start at 10GE\
345 | | ... | linerate, step 50kpps.
346 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
348 | | [Tags] | IMIX | 4C | NDRDISC
349 | | framesize=IMIX_v4_1 | wt=4 | rxq=2 | search_type=NDR
351 | tc24-IMIX-4t4c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
353 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core,\
354 | | ... | 2 receive queue per NIC port.
355 | | ... | [Ver] Find PDR for IMIX_v4_1 frames using binary search start at 10GE\
356 | | ... | linerate, step 50kpps, LT=0.5%.
357 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
359 | | [Tags] | IMIX | 4C | PDRDISC
360 | | framesize=IMIX_v4_1 | wt=4 | rxq=2 | search_type=PDR