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