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