76dd5a10a9ad1ef9651941cde8e45f753a7f3b4d
[csit.git] / tests / suites / performance / Long_Xconnect_Dot1q_Intel-X520-DA2.robot
1 # Copyright (c) 2016 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.robot
16 | Resource | resources/libraries/robot/tagging.robot
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PERFTEST_LONG
18 | ...        | NIC_Intel-X520-DA2
19 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
20 | ... | L2 | Intel-X520-DA2
21 | Suite Teardown | 3-node Performance Suite Teardown
22 | Test Setup | Setup all DUTs before test
23 | Test Teardown | Run Keyword | Remove startup configuration of VPP from all DUTs
24 | Documentation | *Throughput search suite (based on RFC2544).*
25 | ...
26 | ... | Test suite uses 3-node topology TG - DUT1 - DUT2 - TG, with one link
27 | ... | between nodes. Traffic profile contain 2 L2 streams (1 stream per
28 | ... | direction). Packets contain Ethernet header, IPv4 header,
29 | ... | IP protocol=61 and random payload. Ethernet header MAC addresses are
30 | ... | matching MAC addresses of the TG node. DUT nodes are interconnected
31 | ... | with VLAN dot1q configured interfaces with VLAN 10.
32
33 *** Variables ***
34 | ${subid}= | 10
35 | ${tag_rewrite}= | pop-1
36
37 *** Test Cases ***
38 | Find NDR by using RFC2544 binary search and 64B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect in 3-node topology
39 | | [Documentation]
40 | | ... | Find throughput with non drop rate by using binary search with
41 | | ... | threshold 0.1Mpps. Frames from and to TG are 64B long. Tagging is
42 | | ... | applied between DUTs inserting 4B VLAN ID into a packet header.
43 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
44 | | ${framesize}= | Set Variable | 64
45 | | ${min_rate}= | Set Variable | 100000
46 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_68B}
47 | | ${binary_min}= | Set Variable | ${min_rate}
48 | | ${binary_max}= | Set Variable | ${max_rate}
49 | | ${threshold}= | Set Variable | ${min_rate}
50 | | Given Add '1' worker threads and rss '1' without HTT to all DUTs
51 | | And   Add all PCI devices to all DUTs
52 | | And   Add No Multi Seg to all DUTs
53 | | And   Apply startup configuration on all VPP DUTs
54 | | And   VPP interfaces in path are up
55 | | When VLAN dot1q subinterfaces initialized on 3-node topology
56 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
57 | | And L2 tag rewrite method setup on interfaces
58 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
59 | | ... | ${tag_rewrite}
60 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
61 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
62 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
63 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
64 | | ...                                       | ${binary_max} | 3-node-xconnect
65 | | ...                                       | ${min_rate} | ${max_rate}
66 | | ...                                       | ${threshold}
67
68 | Find NDR by using RFC2544 binary search and 1518B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect in 3-node topology
69 | | [Documentation]
70 | | ... | Find throughput with non drop rate by using binary search with
71 | | ... | threshold 10,000pps. Frames from and to TG are 1518B long. Tagging is
72 | | ... | applied between DUTs inserting 4B VLAN ID into a packet header.
73 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
74 | | ${framesize}= | Set Variable | 1518
75 | | ${min_rate}= | Set Variable | 10000
76 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1522B}
77 | | ${binary_min}= | Set Variable | ${min_rate}
78 | | ${binary_max}= | Set Variable | ${max_rate}
79 | | ${threshold}= | Set Variable | ${min_rate}
80 | | Given Add '1' worker threads and rss '1' without HTT to all DUTs
81 | | And   Add all PCI devices to all DUTs
82 | | And   Add No Multi Seg to all DUTs
83 | | And   Apply startup configuration on all VPP DUTs
84 | | And   VPP interfaces in path are up
85 | | When VLAN dot1q subinterfaces initialized on 3-node topology
86 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
87 | | And L2 tag rewrite method setup on interfaces
88 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
89 | | ... | ${tag_rewrite}
90 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
91 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
92 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
93 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
94 | | ...                                       | ${binary_max} | 3-node-xconnect
95 | | ...                                       | ${min_rate} | ${max_rate}
96 | | ...                                       | ${threshold}
97
98 | Find NDR by using RFC2544 binary search and 9000B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect in 3-node topology
99 | | [Documentation]
100 | | ... | Find throughput with non drop rate by using binary searchwith
101 | | ... | threshold 5,000pps. Frames from and to TG are 9000B long. Tagging is
102 | | ... | applied between DUTs inserting 4B VLAN ID into a packet header.
103 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
104 | | ${framesize}= | Set Variable | 9000
105 | | ${min_rate}= | Set Variable | 5000
106 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9004B}
107 | | ${binary_min}= | Set Variable | ${min_rate}
108 | | ${binary_max}= | Set Variable | ${max_rate}
109 | | ${threshold}= | Set Variable | ${min_rate}
110 | | Given Add '1' worker threads and rss '1' without HTT to all DUTs
111 | | And   Add all PCI devices to all DUTs
112 | | And   Apply startup configuration on all VPP DUTs
113 | | And   VPP interfaces in path are up
114 | | When VLAN dot1q subinterfaces initialized on 3-node topology
115 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
116 | | And L2 tag rewrite method setup on interfaces
117 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
118 | | ... | ${tag_rewrite}
119 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
120 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
121 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
122 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
123 | | ...                                       | ${binary_max} | 3-node-xconnect
124 | | ...                                       | ${min_rate} | ${max_rate}
125 | | ...                                       | ${threshold}
126
127 | Find NDR with 2 cores and rss 1 by using RFC2544 binary search and 64B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect in 3-node topology
128 | | [Documentation]
129 | | ... | Find throughput on 2 cores with non drop rate by using binary search
130 | | ... | with threshold 0.1Mpps. Frames from and to TG are 64B long. Tagging
131 | | ... | is applied between DUTs inserting 4B VLAN ID into a packet header.
132 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
133 | | ${framesize}= | Set Variable | 64
134 | | ${min_rate}= | Set Variable | 100000
135 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_68B}
136 | | ${binary_min}= | Set Variable | ${min_rate}
137 | | ${binary_max}= | Set Variable | ${max_rate}
138 | | ${threshold}= | Set Variable | ${min_rate}
139 | | Given Add '2' worker threads and rss '1' without HTT to all DUTs
140 | | And   Add all PCI devices to all DUTs
141 | | And   Add No Multi Seg to all DUTs
142 | | And   Apply startup configuration on all VPP DUTs
143 | | And   VPP interfaces in path are up
144 | | When VLAN dot1q subinterfaces initialized on 3-node topology
145 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
146 | | And L2 tag rewrite method setup on interfaces
147 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
148 | | ... | ${tag_rewrite}
149 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
150 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
151 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
152 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
153 | | ...                                       | ${binary_max} | 3-node-xconnect
154 | | ...                                       | ${min_rate} | ${max_rate}
155 | | ...                                       | ${threshold}
156
157 | Find NDR with 2 cores and rss 1 by using RFC2544 binary search and 1518B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect in 3-node topology
158 | | [Documentation]
159 | | ... | Find throughput on 2 cores with non drop rate by using binary search
160 | | ... | with threshold 10,000pps. Frames from and to TG are 1518B long.
161 | | ... | Tagging is applied between DUTs inserting 4B VLAN ID into a packet
162 | | ... | header.
163 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
164 | | ${framesize}= | Set Variable | 1518
165 | | ${min_rate}= | Set Variable | 10000
166 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1522B}
167 | | ${binary_min}= | Set Variable | ${min_rate}
168 | | ${binary_max}= | Set Variable | ${max_rate}
169 | | ${threshold}= | Set Variable | ${min_rate}
170 | | Given Add '2' worker threads and rss '1' without HTT to all DUTs
171 | | And   Add all PCI devices to all DUTs
172 | | And   Add No Multi Seg to all DUTs
173 | | And   Apply startup configuration on all VPP DUTs
174 | | And   VPP interfaces in path are up
175 | | When VLAN dot1q subinterfaces initialized on 3-node topology
176 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
177 | | And L2 tag rewrite method setup on interfaces
178 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
179 | | ... | ${tag_rewrite}
180 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
181 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
182 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
183 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
184 | | ...                                       | ${binary_max} | 3-node-xconnect
185 | | ...                                       | ${min_rate} | ${max_rate}
186 | | ...                                       | ${threshold}
187
188 | Find NDR with 2 cores and rss 1 by using RFC2544 binary search and 9000B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect in 3-node topology
189 | | [Documentation]
190 | | ... | Find throughput on 2 cores with non drop rate by using binary search
191 | | ... | with threshold 5,000pps. Frames from and to TG are 9000B long.
192 | | ... | Tagging is applied between DUTs inserting 4B VLAN ID into a packet
193 | | ... | header.
194 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
195 | | ${framesize}= | Set Variable | 9000
196 | | ${min_rate}= | Set Variable | 5000
197 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9004B}
198 | | ${binary_min}= | Set Variable | ${min_rate}
199 | | ${binary_max}= | Set Variable | ${max_rate}
200 | | ${threshold}= | Set Variable | ${min_rate}
201 | | Given Add '2' worker threads and rss '1' without HTT to all DUTs
202 | | And   Add all PCI devices to all DUTs
203 | | And   Apply startup configuration on all VPP DUTs
204 | | And   VPP interfaces in path are up
205 | | When VLAN dot1q subinterfaces initialized on 3-node topology
206 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
207 | | And L2 tag rewrite method setup on interfaces
208 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
209 | | ... | ${tag_rewrite}
210 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
211 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
212 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
213 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
214 | | ...                                       | ${binary_max} | 3-node-xconnect
215 | | ...                                       | ${min_rate} | ${max_rate}
216 | | ...                                       | ${threshold}
217
218 | Find NDR with 4 cores and rss 2 by using RFC2544 binary search and 64B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect in 3-node topology
219 | | [Documentation]
220 | | ... | Find throughput on 4 cores and rss 2 with non drop rate by using
221 | | ... | binary search with threshold 0.1Mpps. Frames from and to TG are 64B
222 | | ... | long. Tagging is applied between DUTs inserting 4B VLAN ID into a
223 | | ... | packet header.
224 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
225 | | ${framesize}= | Set Variable | 64
226 | | ${min_rate}= | Set Variable | 100000
227 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_68B}
228 | | ${binary_min}= | Set Variable | ${min_rate}
229 | | ${binary_max}= | Set Variable | ${max_rate}
230 | | ${threshold}= | Set Variable | ${min_rate}
231 | | Given Add '4' worker threads and rss '2' without HTT to all DUTs
232 | | And   Add all PCI devices to all DUTs
233 | | And   Add No Multi Seg to all DUTs
234 | | And   Apply startup configuration on all VPP DUTs
235 | | And   VPP interfaces in path are up
236 | | When VLAN dot1q subinterfaces initialized on 3-node topology
237 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
238 | | And L2 tag rewrite method setup on interfaces
239 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
240 | | ... | ${tag_rewrite}
241 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
242 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
243 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
244 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
245 | | ...                                       | ${binary_max} | 3-node-xconnect
246 | | ...                                       | ${min_rate} | ${max_rate}
247 | | ...                                       | ${threshold}
248
249 | Find NDR with 4 cores and rss 2 by using RFC2544 binary search and 1518B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect in 3-node topology
250 | | [Documentation]
251 | | ... | Find throughput on 4 cores and rss 2 with non drop rate by using
252 | | ... | binary search with threshold 10,000pps. Frames from and to TG are
253 | | ... | 1518B long. Tagging is applied between DUTs inserting 4B VLAN ID into
254 | | ... | a packet header.
255 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
256 | | ${framesize}= | Set Variable | 1518
257 | | ${min_rate}= | Set Variable | 10000
258 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1522B}
259 | | ${binary_min}= | Set Variable | ${min_rate}
260 | | ${binary_max}= | Set Variable | ${max_rate}
261 | | ${threshold}= | Set Variable | ${min_rate}
262 | | Given Add '4' worker threads and rss '2' without HTT to all DUTs
263 | | And   Add all PCI devices to all DUTs
264 | | And   Add No Multi Seg to all DUTs
265 | | And   Apply startup configuration on all VPP DUTs
266 | | And   VPP interfaces in path are up
267 | | When VLAN dot1q subinterfaces initialized on 3-node topology
268 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
269 | | And L2 tag rewrite method setup on interfaces
270 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
271 | | ... | ${tag_rewrite}
272 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
273 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
274 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
275 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
276 | | ...                                       | ${binary_max} | 3-node-xconnect
277 | | ...                                       | ${min_rate} | ${max_rate}
278 | | ...                                       | ${threshold}
279
280 | Find NDR with 4 cores and rss 2 by using RFC2544 binary search and 9000B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect in 3-node topology
281 | | [Documentation]
282 | | ... | Find throughput on 4 cores and rss 2 with non drop rate by using
283 | | ... | binary search with threshold 5,000pps. Frames from and to TG are
284 | | ... | 9000B long. Tagging is applied between DUTs inserting 4B VLAN ID into
285 | | ... | a packet header.
286 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
287 | | ${framesize}= | Set Variable | 9000
288 | | ${min_rate}= | Set Variable | 5000
289 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9004B}
290 | | ${binary_min}= | Set Variable | ${min_rate}
291 | | ${binary_max}= | Set Variable | ${max_rate}
292 | | ${threshold}= | Set Variable | ${min_rate}
293 | | Given Add '4' worker threads and rss '2' without HTT to all DUTs
294 | | And   Add all PCI devices to all DUTs
295 | | And   Apply startup configuration on all VPP DUTs
296 | | And   VPP interfaces in path are up
297 | | When VLAN dot1q subinterfaces initialized on 3-node topology
298 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
299 | | And L2 tag rewrite method setup on interfaces
300 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
301 | | ... | ${tag_rewrite}
302 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
303 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
304 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
305 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
306 | | ...                                       | ${binary_max} | 3-node-xconnect
307 | | ...                                       | ${min_rate} | ${max_rate}
308 | | ...                                       | ${threshold}