91350e434ffb077d51d36be8e2ff6c30fabe5954
[csit.git] / tests / vpp / perf / container_memif / 10ge2p1x520-eth-l2xcbase-eth-1memif-1dcr-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 | ...
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
18 | ... | NIC_Intel-X520-DA2 | ETH | L2XCFWD | BASE | MEMIF | SINGLE_MEMIF
19 | ... | DOCKER
20 | ...
21 | Suite Setup | Run Keywords
22 | ... | Set up 3-node performance topology with DUT's NIC model | L2
23 | ... | Intel-X520-DA2
24 | ... | AND | Set up performance test suite with MEMIF
25 | ... | AND | Set up performance topology with containers
26 | ...
27 | Suite Teardown | Tear down 3-node performance topology with container
28 | ...
29 | Test Setup | Run Keywords
30 | ... | Set up performance test
31 | ... | AND | Restart VPP in all 'VNF' containers
32 | ...
33 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
34 | ... | ${framesize} | ${traffic_profile}
35 | ...
36 | Test Template | Find NDRPDR for l2xcbase-eth-1memif-1dcr
37 | ...
38 | Documentation | *RFC2544: Pkt throughput L2XC test cases*
39 | ...
40 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
41 | ... | with single links between nodes.
42 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 cross connect.
43 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 configured with L2 cross-
44 | ... | connect. DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
45 | ... | Container is connected to VPP via Memif interface running same VPP
46 | ... | version as running on DUT. Resources are limited via cgroup to use 5
47 | ... | cores allocated from pool of isolated CPUs. There are no memory
48 | ... | contraints. Cross Horizontal topology with packets flowing via DUT (VPP)
49 | ... | to Container, then via horizontal memif to the next Container, and so on
50 | ... | until the last Container then to NIC (in last Container). Single
51 | ... | Container is supported as of now.
52 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
53 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
54 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
55 | ... | of packets transmitted. NDR and PDR are discovered for different
56 | ... | Ethernet L2 frame sizes using either binary search or linear search
57 | ... | algorithms with configured starting rate and final step that determines
58 | ... | throughput measurement resolution. Test packets are generated by TG on
59 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
60 | ... | (flow-group per direction, 254 flows per flow-group) with all packets
61 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
62 | ... | payload. MAC addresses are matching MAC addresses of the TG node
63 | ... | interfaces.
64 | ... | *[Ref] Applicable standard specifications:* RFC2544.
65
66 *** Variables ***
67 # X520-DA2 bandwidth limit
68 | ${s_limit} | ${10000000000}
69 # Traffic profile
70 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
71 # Container settings
72 | ${container_count}= | ${1}
73 | ${container_engine}= | Docker
74 | ${container_image}= | ubuntu:xenial-20180412
75 | ${container_install_dkms}= | ${TRUE}
76 | ${container_chain_topology}= | cross_horiz
77 # CPU settings
78 | ${system_cpus}= | ${1}
79 | ${vpp_cpus}= | ${5}
80 | ${container_cpus}= | ${5}
81
82 *** Keywords ***
83 | Find NDRPDR for l2xcbase-eth-1memif-1dcr
84 | | [Documentation]
85 | | ... | [Cfg] DUT runs L2XC switching config with ${wt} thread(s), ${wt}\
86 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
87 | | ... | [Ver] Find ${search_type} for ${framesize} frames using binary search\
88 | | ... | start at 10GE linerate, step 50kpps.
89 | | ...
90 | | [Arguments] | ${framesize} | ${wt} | ${rxq} | ${search_type}
91 | | ... | ${min_rate}=${50000}
92 | | Set Test Variable | ${framesize}
93 | | Set Test Variable | ${min_rate}
94 | | ${get_framesize}= | Get Frame Size | ${framesize}
95 | | ${max_rate}= | Calculate pps | ${s_limit} | ${get_framesize}
96 | | ${binary_min}= | Set Variable | ${min_rate}
97 | | ${binary_max}= | Set Variable | ${max_rate}
98 | | ${threshold}= | Set Variable | ${min_rate}
99 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
100 | | And Add single PCI device to all DUTs
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 | | And Initialize L2 xconnect for single memif in 3-node circular topology
105 | | ... | ${rxq}
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-1memif-1dcr-ndrdisc
118 | | [Documentation]
119 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core,\
120 | | ... | 1 receive queue per NIC port.
121 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
122 | | ... | linerate, step 50kpps.
123 | | ...
124 | | [Tags] | 64B | 1C | NDRDISC
125 | | framesize=${64} | wt=1 | rxq=1 | search_type=NDR
126
127 | tc02-64B-1t1c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
128 | | [Documentation]
129 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core,\
130 | | ... | 1 receive queue per NIC port.
131 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
132 | | ... | linerate, step 50kpps, LT=0.5%.
133 | | ...
134 | | [Tags] | 64B | 1C | PDRDISC
135 | | framesize=${64} | wt=1 | rxq=1 | search_type=PDR
136
137 | tc03-1518B-1t1c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
138 | | [Documentation]
139 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core,\
140 | | ... | 1 receive queue per NIC port.
141 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
142 | | ... | linerate, step 50kpps.
143 | | ...
144 | | [Tags] | 1518B | 1C | NDRDISC
145 | | framesize=${1518} | wt=1 | rxq=1 | search_type=NDR
146
147 | tc04-1518B-1t1c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
148 | | [Documentation]
149 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core,\
150 | | ... | 1 receive queue per NIC port.
151 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
152 | | ... | linerate, step 50kpps, LT=0.5%.
153 | | ...
154 | | [Tags] | 1518B | 1C | PDRDISC
155 | | framesize=${1518} | wt=1 | rxq=1 | search_type=PDR
156
157 | tc05-9000B-1t1c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
158 | | [Documentation]
159 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core,\
160 | | ... | 1 receive queue per NIC port.
161 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
162 | | ... | linerate, step 50kpps.
163 | | ...
164 | | [Tags] | 9000B | 1C | NDRDISC
165 | | framesize=${9000} | wt=1 | rxq=1 | search_type=NDR
166
167 | tc06-9000B-1t1c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
168 | | [Documentation]
169 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core,\
170 | | ... | 1 receive queue per NIC port.
171 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
172 | | ... | linerate, step 50kpps, LT=0.5%.
173 | | ...
174 | | [Tags] | 9000B | 1C | PDRDISC
175 | | framesize=${9000} | wt=1 | rxq=1 | search_type=PDR
176
177 | tc07-IMIX-1t1c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
178 | | [Documentation]
179 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core,\
180 | | ... | 1 receive queue per NIC port.
181 | | ... | [Ver] Find NDR for IMIX_v4_1 frames using binary search start at 10GE\
182 | | ... | linerate, step 50kpps.
183 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
184 | | ...
185 | | [Tags] | IMIX | 1C | NDRDISC
186 | | framesize=IMIX_v4_1 | wt=1 | rxq=1 | search_type=NDR
187
188 | tc08-IMIX-1t1c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
189 | | [Documentation]
190 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core,\
191 | | ... | 1 receive queue per NIC port.
192 | | ... | [Ver] Find PDR for IMIX_v4_1 frames using binary search start at 10GE\
193 | | ... | linerate, step 50kpps, LT=0.5%.
194 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
195 | | ...
196 | | [Tags] | IMIX | 1C | PDRDISC
197 | | framesize=IMIX_v4_1 | wt=1 | rxq=1 | search_type=PDR
198
199 | tc09-64B-2t2c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
200 | | [Documentation]
201 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy core,\
202 | | ... | 1 receive queue per NIC port.
203 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
204 | | ... | linerate, step 50kpps.
205 | | ...
206 | | [Tags] | 64B | 2C | NDRDISC
207 | | framesize=${64} | wt=2 | rxq=1 | search_type=NDR
208
209 | tc10-64B-2t2c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
210 | | [Documentation]
211 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy core,\
212 | | ... | 1 receive queue per NIC port.
213 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
214 | | ... | linerate, step 50kpps, LT=0.5%.
215 | | ...
216 | | [Tags] | 64B | 1C | PDRDISC
217 | | framesize=${64} | wt=2 | rxq=1 | search_type=PDR
218
219 | tc11-1518B-2t2c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
220 | | [Documentation]
221 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy core,\
222 | | ... | 1 receive queue per NIC port.
223 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
224 | | ... | linerate, step 50kpps.
225 | | ...
226 | | [Tags] | 1518B | 2C | NDRDISC
227 | | framesize=${1518} | wt=2 | rxq=1 | search_type=NDR
228
229 | tc12-1518B-2t2c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
230 | | [Documentation]
231 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy core,\
232 | | ... | 1 receive queue per NIC port.
233 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
234 | | ... | linerate, step 50kpps, LT=0.5%.
235 | | ...
236 | | [Tags] | 1518B | 2C | PDRDISC
237 | | framesize=${1518} | wt=2 | rxq=1 | search_type=PDR
238
239 | tc13-9000B-2t2c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
240 | | [Documentation]
241 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy core,\
242 | | ... | 1 receive queue per NIC port.
243 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
244 | | ... | linerate, step 50kpps.
245 | | ...
246 | | [Tags] | 9000B | 2C | NDRDISC
247 | | framesize=${9000} | wt=2 | rxq=1 | search_type=NDR
248
249 | tc14-9000B-2t2c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
250 | | [Documentation]
251 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy core,\
252 | | ... | 1 receive queue per NIC port.
253 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
254 | | ... | linerate, step 50kpps, LT=0.5%.
255 | | ...
256 | | [Tags] | 9000B | 2C | PDRDISC
257 | | framesize=${9000} | wt=2 | rxq=1 | search_type=PDR
258
259 | tc15-IMIX-2t2c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
260 | | [Documentation]
261 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy core,\
262 | | ... | 1 receive queue per NIC port.
263 | | ... | [Ver] Find NDR for IMIX_v4_1 frames using binary search start at 10GE\
264 | | ... | linerate, step 50kpps.
265 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
266 | | ...
267 | | [Tags] | IMIX | 2C | NDRDISC
268 | | framesize=IMIX_v4_1 | wt=2 | rxq=1 | search_type=NDR
269
270 | tc16-IMIX-2t2c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
271 | | [Documentation]
272 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy core,\
273 | | ... | 1 receive queue per NIC port.
274 | | ... | [Ver] Find PDR for IMIX_v4_1 frames using binary search start at 10GE\
275 | | ... | linerate, step 50kpps, LT=0.5%.
276 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
277 | | ...
278 | | [Tags] | IMIX | 2C | PDRDISC
279 | | framesize=IMIX_v4_1 | wt=2 | rxq=1 | search_type=PDR
280
281 | tc17-64B-4t4c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
282 | | [Documentation]
283 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core,\
284 | | ... | 2 receive queue per NIC port.
285 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
286 | | ... | linerate, step 50kpps.
287 | | ...
288 | | [Tags] | 64B | 4C | NDRDISC
289 | | framesize=${64} |  wt=4 | rxq=2 | search_type=NDR
290
291 | tc18-64B-4t4c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
292 | | [Documentation]
293 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core,\
294 | | ... | 2 receive queue per NIC port.
295 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
296 | | ... | linerate, step 50kpps, LT=0.5%.
297 | | ...
298 | | [Tags] | 64B | 4C | PDRDISC
299 | | framesize=${64} |  wt=4 | rxq=2 | search_type=PDR
300
301 | tc19-1518B-4t4c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
302 | | [Documentation]
303 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core,\
304 | | ... | 2 receive queue per NIC port.
305 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
306 | | ... | linerate, step 50kpps.
307 | | ...
308 | | [Tags] | 1518B | 4C | NDRDISC
309 | | framesize=${1518} |  wt=4 | rxq=2| search_type=NDR
310
311 | tc20-1518B-4t4c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
312 | | [Documentation]
313 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core,\
314 | | ... | 2 receive queue per NIC port.
315 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
316 | | ... | linerate, step 50kpps, LT=0.5%.
317 | | ...
318 | | [Tags] | 1518B | 4C | PDRDISC
319 | | framesize=${1518} |  wt=4 | rxq=2 | search_type=PDR
320
321 | tc21-9000B-4t4c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
322 | | [Documentation]
323 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core,\
324 | | ... | 2 receive queue per NIC port.
325 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
326 | | ... | linerate, step 50kpps.
327 | | ...
328 | | [Tags] | 9000B | 4C | NDRDISC
329 | | framesize=${9000} |  wt=4 | rxq=2 | search_type=NDR
330
331 | tc22-9000B-4t4c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
332 | | [Documentation]
333 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core,\
334 | | ... | 2 receive queue per NIC port.
335 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
336 | | ... | linerate, step 50kpps, LT=0.5%.
337 | | ...
338 | | [Tags] | 9000B | 4C | PDRDISC
339 | | framesize=${9000} |  wt=4 | rxq=2 | search_type=PDR
340
341 | tc23-IMIX-4t4c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
342 | | [Documentation]
343 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core,\
344 | | ... | 2 receive queue per NIC port.
345 | | ... | [Ver] Find NDR for IMIX_v4_1 frames using binary search start at 10GE\
346 | | ... | linerate, step 50kpps.
347 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
348 | | ...
349 | | [Tags] | IMIX | 4C | NDRDISC
350 | | framesize=IMIX_v4_1 |  wt=4 | rxq=2 | search_type=NDR
351
352 | tc24-IMIX-4t4c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
353 | | [Documentation]
354 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core,\
355 | | ... | 2 receive queue per NIC port.
356 | | ... | [Ver] Find PDR for IMIX_v4_1 frames using binary search start at 10GE\
357 | | ... | linerate, step 50kpps, LT=0.5%.
358 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
359 | | ...
360 | | [Tags] | IMIX | 4C | PDRDISC
361 | | framesize=IMIX_v4_1 | wt=4 | rxq=2 | search_type=PDR