Remove THIS tag and use unix endlines
[csit.git] / tests / vpp / perf / container_memif / 10ge2p1x710-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-X710 | ETH | L2XCFWD | BASE | MEMIF | SINGLE_MEMIF | DOCKER
19 | ...
20 | Suite Setup | Run Keywords
21 | ... | Set up 3-node performance topology with DUT's NIC model | L2
22 | ... | Intel-X710
23 | ... | AND | Set up performance test suite with MEMIF
24 | ... | AND | Set up performance topology with containers
25 | ...
26 | Suite Teardown | Tear down 3-node performance topology with container
27 | ...
28 | Test Setup | Run Keywords
29 | ... | Set up performance test
30 | ... | AND | Restart VPP in all 'VNF' containers
31 | ...
32 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
33 | ... | ${framesize} | ${traffic_profile}
34 | ...
35 | Test Template | Find NDRPDR for l2xcbase-eth-1memif-1dcr
36 | ...
37 | Documentation |  *Raw results L2XC test cases*
38 | ...
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
62 | ... | interfaces.
63 | ... | *[Ref] Applicable standard specifications:* RFC2544.
64
65 *** Variables ***
66 # X710-DA2 bandwidth limit
67 | ${s_limit} | ${10000000000}
68 # Traffic profile
69 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
70 # Container settings
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
76 # CPU settings
77 | ${system_cpus}= | ${1}
78 | ${vpp_cpus}= | ${5}
79 | ${container_cpus}= | ${5}
80
81 *** Keywords ***
82 | Find NDRPDR for l2xcbase-eth-1memif-1dcr
83 | | [Documentation]
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.
88 | | ...
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
104 | | ... | ${rxq}
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}
114
115 *** Test Cases ***
116 | tc01-64B-1t1c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
117 | | [Documentation]
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.
122 | | ...
123 | | [Tags] | 64B | 1C | NDRDISC
124 | | framesize=${64} | wt=1 | rxq=1 | search_type=NDR
125
126 | tc02-64B-1t1c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
127 | | [Documentation]
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%.
132 | | ...
133 | | [Tags] | 64B | 1C | PDRDISC
134 | | framesize=${64} | wt=1 | rxq=1 | search_type=PDR
135
136 | tc03-1518B-1t1c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
137 | | [Documentation]
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.
142 | | ...
143 | | [Tags] | 1518B | 1C | NDRDISC
144 | | framesize=${1518} | wt=1 | rxq=1 | search_type=NDR
145
146 | tc04-1518B-1t1c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
147 | | [Documentation]
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%.
152 | | ...
153 | | [Tags] | 1518B | 1C | PDRDISC
154 | | framesize=${1518} | wt=1 | rxq=1 | search_type=PDR
155
156 | tc05-9000B-1t1c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
157 | | [Documentation]
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.
162 | | ...
163 | | [Tags] | 9000B | 1C | NDRDISC
164 | | framesize=${9000} | wt=1 | rxq=1 | search_type=NDR
165
166 | tc06-9000B-1t1c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
167 | | [Documentation]
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%.
172 | | ...
173 | | [Tags] | 9000B | 1C | PDRDISC
174 | | framesize=${9000} | wt=1 | rxq=1 | search_type=PDR
175
176 | tc07-IMIX-1t1c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
177 | | [Documentation]
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)
183 | | ...
184 | | [Tags] | IMIX | 1C | NDRDISC
185 | | framesize=IMIX_v4_1 | wt=1 | rxq=1 | search_type=NDR
186
187 | tc08-IMIX-1t1c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
188 | | [Documentation]
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)
194 | | ...
195 | | [Tags] | IMIX | 1C | PDRDISC
196 | | framesize=IMIX_v4_1 | wt=1 | rxq=1 | search_type=PDR
197
198 | tc09-64B-2t2c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
199 | | [Documentation]
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.
204 | | ...
205 | | [Tags] | 64B | 2C | NDRDISC
206 | | framesize=${64} | wt=2 | rxq=1 | search_type=NDR
207
208 | tc10-64B-2t2c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
209 | | [Documentation]
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%.
214 | | ...
215 | | [Tags] | 64B | 1C | PDRDISC
216 | | framesize=${64} | wt=2 | rxq=1 | search_type=PDR
217
218 | tc11-1518B-2t2c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
219 | | [Documentation]
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.
224 | | ...
225 | | [Tags] | 1518B | 2C | NDRDISC
226 | | framesize=${1518} | wt=2 | rxq=1 | search_type=NDR
227
228 | tc12-1518B-2t2c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
229 | | [Documentation]
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%.
234 | | ...
235 | | [Tags] | 1518B | 2C | PDRDISC
236 | | framesize=${1518} | wt=2 | rxq=1 | search_type=PDR
237
238 | tc13-9000B-2t2c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
239 | | [Documentation]
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.
244 | | ...
245 | | [Tags] | 9000B | 2C | NDRDISC
246 | | framesize=${9000} | wt=2 | rxq=1 | search_type=NDR
247
248 | tc14-9000B-2t2c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
249 | | [Documentation]
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%.
254 | | ...
255 | | [Tags] | 9000B | 2C | PDRDISC
256 | | framesize=${9000} | wt=2 | rxq=1 | search_type=PDR
257
258 | tc15-IMIX-2t2c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
259 | | [Documentation]
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)
265 | | ...
266 | | [Tags] | IMIX | 2C | NDRDISC
267 | | framesize=IMIX_v4_1 | wt=2 | rxq=1 | search_type=NDR
268
269 | tc16-IMIX-2t2c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
270 | | [Documentation]
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)
276 | | ...
277 | | [Tags] | IMIX | 2C | PDRDISC
278 | | framesize=IMIX_v4_1 | wt=2 | rxq=1 | search_type=PDR
279
280 | tc17-64B-4t4c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
281 | | [Documentation]
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.
286 | | ...
287 | | [Tags] | 64B | 4C | NDRDISC
288 | | framesize=${64} |  wt=4 | rxq=2 | search_type=NDR
289
290 | tc18-64B-4t4c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
291 | | [Documentation]
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%.
296 | | ...
297 | | [Tags] | 64B | 4C | PDRDISC
298 | | framesize=${64} |  wt=4 | rxq=2 | search_type=PDR
299
300 | tc19-1518B-4t4c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
301 | | [Documentation]
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.
306 | | ...
307 | | [Tags] | 1518B | 4C | NDRDISC
308 | | framesize=${1518} |  wt=4 | rxq=2 | search_type=NDR
309
310 | tc20-1518B-4t4c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
311 | | [Documentation]
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%.
316 | | ...
317 | | [Tags] | 1518B | 4C | PDRDISC
318 | | framesize=${1518} |  wt=4 | rxq=2 | search_type=PDR
319
320 | tc21-9000B-4t4c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
321 | | [Documentation]
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.
326 | | ...
327 | | [Tags] | 9000B | 4C | NDRDISC
328 | | framesize=${9000} |  wt=4 | rxq=2 | search_type=NDR
329
330 | tc22-9000B-4t4c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
331 | | [Documentation]
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%.
336 | | ...
337 | | [Tags] | 9000B | 4C | PDRDISC
338 | | framesize=${9000} |  wt=4 | rxq=2 | search_type=PDR
339
340 | tc23-IMIX-4t4c-eth-l2xcbase-eth-1memif-1dcr-ndrdisc
341 | | [Documentation]
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)
347 | | ...
348 | | [Tags] | IMIX | 4C | NDRDISC
349 | | framesize=IMIX_v4_1 |  wt=4 | rxq=2 | search_type=NDR
350
351 | tc24-IMIX-4t4c-eth-l2xcbase-eth-1memif-1dcr-pdrdisc
352 | | [Documentation]
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)
358 | | ...
359 | | [Tags] | IMIX | 4C | PDRDISC
360 | | framesize=IMIX_v4_1 | wt=4 | rxq=2 | search_type=PDR