Add test cases with "dpdk no-multi-seg" in vpp startup config
[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 Keywords | Show statistics on all DUTs
24 | ...                          | Remove startup configuration of VPP from all DUTs
25 | Documentation | *Throughput search suite (based on RFC2544).*
26 | ...
27 | ... | Test suite uses 3-node topology TG - DUT1 - DUT2 - TG, with one link
28 | ... | between nodes. Traffic profile contain 2 L2 streams (1 stream per
29 | ... | direction). Packets contain Ethernet header, IPv4 header,
30 | ... | IP protocol=61 and random payload. Ethernet header MAC addresses are
31 | ... | matching MAC addresses of the TG node. DUT nodes are interconnected
32 | ... | with VLAN dot1q configured interfaces with VLAN 10.
33
34 *** Variables ***
35 | ${subid}= | 10
36 | ${tag_rewrite}= | pop-1
37
38 *** Test Cases ***
39 | Find NDR by using RFC2544 linear search and 64B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect in 3-node topology
40 | | [Documentation]
41 | | ... | Find throughput with non drop rate by using linear search starting
42 | | ... | at 4.2Mpps, stepping down with step of 0.1Mpps. Frames from and to TG
43 | | ... | are 64B long. Tagging is applied between DUTs inserting 4B VLAN ID
44 | | ... | into a packet header.
45 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
46 | | ${framesize}= | Set Variable | 64
47 | | ${start_rate}= | Set Variable | 4200000
48 | | ${step_rate}= | Set Variable | 100000
49 | | ${min_rate}= | Set Variable | 100000
50 | | ${max_rate}= | Set Variable | 14880952
51 | | Given Add '1' worker threads and rss '1' without HTT to all DUTs
52 | | And   Add all PCI devices to all DUTs
53 | | And   Add No Multi Seg to all DUTs
54 | | And   Apply startup configuration on all VPP DUTs
55 | | And   VPP interfaces in path are up
56 | | When VLAN dot1q subinterfaces initialized on 3-node topology
57 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
58 | | And L2 tag rewrite method setup on interfaces
59 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
60 | | ... | ${tag_rewrite}
61 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
62 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
63 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
64 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
65 | | ...                                       | ${step_rate} | 3-node-xconnect
66 | | ...                                       | ${min_rate} | ${max_rate}
67
68 | Find NDR by using RFC2544 linear 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 linear search starting
71 | | ... | at 812,743pps, stepping down with step of 10,000pps. Frames from and
72 | | ... | to TG are 1518B long. Tagging is applied between DUTs inserting 4B
73 | | ... | VLAN ID into a packet header.
74 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
75 | | ${framesize}= | Set Variable | 1518
76 | | ${start_rate}= | Set Variable | 812743
77 | | ${step_rate}= | Set Variable | 10000
78 | | ${min_rate}= | Set Variable | 10000
79 | | ${max_rate}= | Set Variable | 812743
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 linear search and pps | ${framesize} | ${start_rate}
94 | | ...                                       | ${step_rate} | 3-node-xconnect
95 | | ...                                       | ${min_rate} | ${max_rate}
96
97 | Find NDR by using RFC2544 linear search and 9000B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect in 3-node topology
98 | | [Documentation]
99 | | ... | Find throughput with non drop rate by using linear search starting
100 | | ... | at 138,580pps, stepping down with step of 5,000pps. Frames from and
101 | | ... | to TG are 9000B long. Tagging is applied between DUTs inserting 4B
102 | | ... | VLAN ID into a packet header.
103 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
104 | | ${framesize}= | Set Variable | 9000
105 | | ${start_rate}= | Set Variable | 138580
106 | | ${step_rate}= | Set Variable | 5000
107 | | ${min_rate}= | Set Variable | 5000
108 | | ${max_rate}= | Set Variable | 138580
109 | | Given Add '1' worker threads and rss '1' without HTT to all DUTs
110 | | And   Add all PCI devices to all DUTs
111 | | And   Apply startup configuration on all VPP DUTs
112 | | And   VPP interfaces in path are up
113 | | When VLAN dot1q subinterfaces initialized on 3-node topology
114 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
115 | | And L2 tag rewrite method setup on interfaces
116 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
117 | | ... | ${tag_rewrite}
118 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
119 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
120 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
121 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
122 | | ...                                       | ${step_rate} | 3-node-xconnect
123 | | ...                                       | ${min_rate} | ${max_rate}
124
125 | Find NDR with 2 cores and rss 1 by using RFC2544 linear search and 64B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect in 3-node topology
126 | | [Documentation]
127 | | ... | Find throughput on 2 cores with non drop rate by using linear search
128 | | ... | starting at 7.8Mpps, stepping down with step of 0.1Mpps. Frames from
129 | | ... | and to TG are 64B long. Tagging is applied between DUTs inserting 4B
130 | | ... | VLAN ID into a packet header.
131 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
132 | | ${framesize}= | Set Variable | 64
133 | | ${start_rate}= | Set Variable | 7800000
134 | | ${step_rate}= | Set Variable | 100000
135 | | ${min_rate}= | Set Variable | 100000
136 | | ${max_rate}= | Set Variable | 14880952
137 | | Given Add '2' worker threads and rss '1' without HTT to all DUTs
138 | | And   Add all PCI devices to all DUTs
139 | | And   Add No Multi Seg to all DUTs
140 | | And   Apply startup configuration on all VPP DUTs
141 | | And   VPP interfaces in path are up
142 | | When VLAN dot1q subinterfaces initialized on 3-node topology
143 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
144 | | And L2 tag rewrite method setup on interfaces
145 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
146 | | ... | ${tag_rewrite}
147 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
148 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
149 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
150 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
151 | | ...                                       | ${step_rate} | 3-node-xconnect
152 | | ...                                       | ${min_rate} | ${max_rate}
153
154 | Find NDR with 2 cores and rss 1 by using RFC2544 linear search and 1518B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect in 3-node topology
155 | | [Documentation]
156 | | ... | Find throughput on 2 cores with non drop rate by using linear search
157 | | ... | starting at 812,743pps, stepping down with step of 10,000pps. Frames
158 | | ... | from and to TG are 1518B long. Tagging is applied between DUTs
159 | | ... | inserting 4B VLAN ID into a packet header.
160 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
161 | | ${framesize}= | Set Variable | 1518
162 | | ${start_rate}= | Set Variable | 812743
163 | | ${step_rate}= | Set Variable | 10000
164 | | ${min_rate}= | Set Variable | 10000
165 | | ${max_rate}= | Set Variable | 812743
166 | | Given Add '2' worker threads and rss '1' without HTT to all DUTs
167 | | And   Add all PCI devices to all DUTs
168 | | And   Add No Multi Seg to all DUTs
169 | | And   Apply startup configuration on all VPP DUTs
170 | | And   VPP interfaces in path are up
171 | | When VLAN dot1q subinterfaces initialized on 3-node topology
172 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
173 | | And L2 tag rewrite method setup on interfaces
174 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
175 | | ... | ${tag_rewrite}
176 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
177 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
178 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
179 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
180 | | ...                                       | ${step_rate} | 3-node-xconnect
181 | | ...                                       | ${min_rate} | ${max_rate}
182
183 | Find NDR with 2 cores and rss 1 by using RFC2544 linear search and 9000B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect in 3-node topology
184 | | [Documentation]
185 | | ... | Find throughput on 2 cores with non drop rate by using linear search
186 | | ... | starting at 138,580pps, stepping down with step of 5,000pps. Frames
187 | | ... | from and to TG are 9000B long. Tagging is applied between DUTs
188 | | ... | inserting 4B VLAN ID into a packet header.
189 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
190 | | ${framesize}= | Set Variable | 9000
191 | | ${start_rate}= | Set Variable | 138580
192 | | ${step_rate}= | Set Variable | 5000
193 | | ${min_rate}= | Set Variable | 5000
194 | | ${max_rate}= | Set Variable | 138580
195 | | Given Add '2' worker threads and rss '1' without HTT to all DUTs
196 | | And   Add all PCI devices to all DUTs
197 | | And   Apply startup configuration on all VPP DUTs
198 | | And   VPP interfaces in path are up
199 | | When VLAN dot1q subinterfaces initialized on 3-node topology
200 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
201 | | And L2 tag rewrite method setup on interfaces
202 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
203 | | ... | ${tag_rewrite}
204 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
205 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
206 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
207 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
208 | | ...                                       | ${step_rate} | 3-node-xconnect
209 | | ...                                       | ${min_rate} | ${max_rate}
210
211 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 64B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect in 3-node topology
212 | | [Documentation]
213 | | ... | Find throughput on 4 cores and rss 2 with non drop rate by using
214 | | ... | linear search starting at 12Mpps, stepping down with step of 0.1Mpps.
215 | | ... | Frames from and to TG are 64B long. Tagging is applied between DUTs
216 | | ... | inserting 4B VLAN ID into a packet header.
217 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
218 | | ${framesize}= | Set Variable | 64
219 | | ${start_rate}= | Set Variable | 12000000
220 | | ${step_rate}= | Set Variable | 100000
221 | | ${min_rate}= | Set Variable | 100000
222 | | ${max_rate}= | Set Variable | 14880952
223 | | Given Add '4' worker threads and rss '2' without HTT to all DUTs
224 | | And   Add all PCI devices to all DUTs
225 | | And   Add No Multi Seg to all DUTs
226 | | And   Apply startup configuration on all VPP DUTs
227 | | And   VPP interfaces in path are up
228 | | When VLAN dot1q subinterfaces initialized on 3-node topology
229 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
230 | | And L2 tag rewrite method setup on interfaces
231 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
232 | | ... | ${tag_rewrite}
233 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
234 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
235 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
236 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
237 | | ...                                       | ${step_rate} | 3-node-xconnect
238 | | ...                                       | ${min_rate} | ${max_rate}
239
240 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 1518B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect in 3-node topology
241 | | [Documentation]
242 | | ... | Find throughput on 4 cores and rss 2 with non drop rate by using
243 | | ... | linear search starting at 812,743pps, stepping down with step of
244 | | ... | 10,000pps. Frames from and to TG are 1518B long. Tagging is applied
245 | | ... | between DUTs inserting 4B VLAN ID into a packet header.
246 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
247 | | ${framesize}= | Set Variable | 1518
248 | | ${start_rate}= | Set Variable | 812743
249 | | ${step_rate}= | Set Variable | 10000
250 | | ${min_rate}= | Set Variable | 10000
251 | | ${max_rate}= | Set Variable | 812743
252 | | Given Add '4' worker threads and rss '2' without HTT to all DUTs
253 | | And   Add all PCI devices to all DUTs
254 | | And   Add No Multi Seg to all DUTs
255 | | And   Apply startup configuration on all VPP DUTs
256 | | And   VPP interfaces in path are up
257 | | When VLAN dot1q subinterfaces initialized on 3-node topology
258 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
259 | | And L2 tag rewrite method setup on interfaces
260 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
261 | | ... | ${tag_rewrite}
262 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
263 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
264 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
265 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
266 | | ...                                       | ${step_rate} | 3-node-xconnect
267 | | ...                                       | ${min_rate} | ${max_rate}
268
269 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 9000B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect in 3-node topology
270 | | [Documentation]
271 | | ... | Find throughput on 4 cores and rss 2 with non drop rate by using
272 | | ... | linear search starting at 138,580pps, stepping down with step of
273 | | ... | 5,000pps. Frames from and to TG are 9000B long. Tagging is applied
274 | | ... | between DUTs inserting 4B VLAN ID into a packet header.
275 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
276 | | ${framesize}= | Set Variable | 9000
277 | | ${start_rate}= | Set Variable | 138580
278 | | ${step_rate}= | Set Variable | 5000
279 | | ${min_rate}= | Set Variable | 5000
280 | | ${max_rate}= | Set Variable | 138580
281 | | Given Add '4' worker threads and rss '2' without HTT to all DUTs
282 | | And   Add all PCI devices to all DUTs
283 | | And   Apply startup configuration on all VPP DUTs
284 | | And   VPP interfaces in path are up
285 | | When VLAN dot1q subinterfaces initialized on 3-node topology
286 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
287 | | And L2 tag rewrite method setup on interfaces
288 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
289 | | ... | ${tag_rewrite}
290 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
291 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
292 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
293 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
294 | | ...                                       | ${step_rate} | 3-node-xconnect
295 | | ...                                       | ${min_rate} | ${max_rate}