8eef6c8c567f410095575cd130f51b5c8ab9d17f
[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 | Show statistics on 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 linear 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 linear search starting
41 | | ... | at 4.2Mpps, stepping down with step of 0.1Mpps. Frames from and to TG
42 | | ... | are 64B long. Tagging is applied between DUTs inserting 4B VLAN ID
43 | | ... | into a packet header.
44 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
45 | | ${framesize}= | Set Variable | 64
46 | | ${start_rate}= | Set Variable | 4200000
47 | | ${step_rate}= | Set Variable | 100000
48 | | ${min_rate}= | Set Variable | 100000
49 | | ${max_rate}= | Set Variable | 14880952
50 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
51 | | And VPP interfaces in path are up
52 | | When VLAN dot1q subinterfaces initialized on 3-node topology
53 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
54 | | And L2 tag rewrite method setup on interfaces
55 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
56 | | ... | ${tag_rewrite}
57 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
58 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
59 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
60 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
61 | | ...                                       | ${step_rate} | 3-node-xconnect
62 | | ...                                       | ${min_rate} | ${max_rate}
63
64 | 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
65 | | [Documentation]
66 | | ... | Find throughput with non drop rate by using linear search starting
67 | | ... | at 812,743pps, stepping down with step of 10,000pps. Frames from and
68 | | ... | to TG are 1518B long. Tagging is applied between DUTs inserting 4B
69 | | ... | VLAN ID into a packet header.
70 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
71 | | ${framesize}= | Set Variable | 1518
72 | | ${start_rate}= | Set Variable | 812743
73 | | ${step_rate}= | Set Variable | 10000
74 | | ${min_rate}= | Set Variable | 10000
75 | | ${max_rate}= | Set Variable | 812743
76 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
77 | | And VPP interfaces in path are up
78 | | When VLAN dot1q subinterfaces initialized on 3-node topology
79 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
80 | | And L2 tag rewrite method setup on interfaces
81 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
82 | | ... | ${tag_rewrite}
83 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
84 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
85 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
86 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
87 | | ...                                       | ${step_rate} | 3-node-xconnect
88 | | ...                                       | ${min_rate} | ${max_rate}
89
90 | 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
91 | | [Documentation]
92 | | ... | Find throughput with non drop rate by using linear search starting
93 | | ... | at 138,580pps, stepping down with step of 5,000pps. Frames from and
94 | | ... | to TG are 9000B long. Tagging is applied between DUTs inserting 4B
95 | | ... | VLAN ID into a packet header.
96 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
97 | | ${framesize}= | Set Variable | 9000
98 | | ${start_rate}= | Set Variable | 138580
99 | | ${step_rate}= | Set Variable | 5000
100 | | ${min_rate}= | Set Variable | 5000
101 | | ${max_rate}= | Set Variable | 138580
102 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
103 | | And VPP interfaces in path are up
104 | | When VLAN dot1q subinterfaces initialized on 3-node topology
105 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
106 | | And L2 tag rewrite method setup on interfaces
107 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
108 | | ... | ${tag_rewrite}
109 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
110 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
111 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
112 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
113 | | ...                                       | ${step_rate} | 3-node-xconnect
114 | | ...                                       | ${min_rate} | ${max_rate}
115
116 | 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
117 | | [Documentation]
118 | | ... | Find throughput on 2 cores with non drop rate by using linear search
119 | | ... | starting at 7.8Mpps, stepping down with step of 0.1Mpps. Frames from
120 | | ... | and to TG are 64B long. Tagging is applied between DUTs inserting 4B
121 | | ... | VLAN ID into a packet header.
122 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
123 | | ${framesize}= | Set Variable | 64
124 | | ${start_rate}= | Set Variable | 7800000
125 | | ${step_rate}= | Set Variable | 100000
126 | | ${min_rate}= | Set Variable | 100000
127 | | ${max_rate}= | Set Variable | 14880952
128 | | Given Setup '2' worker threads and rss '1' without HTT on all DUTs
129 | | And VPP interfaces in path are up
130 | | When VLAN dot1q subinterfaces initialized on 3-node topology
131 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
132 | | And L2 tag rewrite method setup on interfaces
133 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
134 | | ... | ${tag_rewrite}
135 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
136 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
137 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
138 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
139 | | ...                                       | ${step_rate} | 3-node-xconnect
140 | | ...                                       | ${min_rate} | ${max_rate}
141
142 | 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
143 | | [Documentation]
144 | | ... | Find throughput on 2 cores with non drop rate by using linear search
145 | | ... | starting at 812,743pps, stepping down with step of 10,000pps. Frames
146 | | ... | from and to TG are 1518B long. Tagging is applied between DUTs
147 | | ... | inserting 4B VLAN ID into a packet header.
148 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
149 | | ${framesize}= | Set Variable | 1518
150 | | ${start_rate}= | Set Variable | 812743
151 | | ${step_rate}= | Set Variable | 10000
152 | | ${min_rate}= | Set Variable | 10000
153 | | ${max_rate}= | Set Variable | 812743
154 | | Given Setup '2' worker threads and rss '1' without HTT on all DUTs
155 | | And VPP interfaces in path are up
156 | | When VLAN dot1q subinterfaces initialized on 3-node topology
157 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
158 | | And L2 tag rewrite method setup on interfaces
159 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
160 | | ... | ${tag_rewrite}
161 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
162 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
163 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
164 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
165 | | ...                                       | ${step_rate} | 3-node-xconnect
166 | | ...                                       | ${min_rate} | ${max_rate}
167
168 | 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
169 | | [Documentation]
170 | | ... | Find throughput on 2 cores with non drop rate by using linear search
171 | | ... | starting at 138,580pps, stepping down with step of 5,000pps. Frames
172 | | ... | from and to TG are 9000B long. Tagging is applied between DUTs
173 | | ... | inserting 4B VLAN ID into a packet header.
174 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
175 | | ${framesize}= | Set Variable | 9000
176 | | ${start_rate}= | Set Variable | 138580
177 | | ${step_rate}= | Set Variable | 5000
178 | | ${min_rate}= | Set Variable | 5000
179 | | ${max_rate}= | Set Variable | 138580
180 | | Given Setup '2' worker threads and rss '1' without HTT on all DUTs
181 | | And VPP interfaces in path are up
182 | | When VLAN dot1q subinterfaces initialized on 3-node topology
183 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
184 | | And L2 tag rewrite method setup on interfaces
185 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
186 | | ... | ${tag_rewrite}
187 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
188 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
189 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
190 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
191 | | ...                                       | ${step_rate} | 3-node-xconnect
192 | | ...                                       | ${min_rate} | ${max_rate}
193
194 | 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
195 | | [Documentation]
196 | | ... | Find throughput on 4 cores and rss 2 with non drop rate by using
197 | | ... | linear search starting at 12Mpps, stepping down with step of 0.1Mpps.
198 | | ... | Frames from and to TG are 64B long. Tagging is applied between DUTs
199 | | ... | inserting 4B VLAN ID into a packet header.
200 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
201 | | ${framesize}= | Set Variable | 64
202 | | ${start_rate}= | Set Variable | 12000000
203 | | ${step_rate}= | Set Variable | 100000
204 | | ${min_rate}= | Set Variable | 100000
205 | | ${max_rate}= | Set Variable | 14880952
206 | | Given Setup '4' worker threads and rss '2' without HTT on all DUTs
207 | | And VPP interfaces in path are up
208 | | When VLAN dot1q subinterfaces initialized on 3-node topology
209 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
210 | | And L2 tag rewrite method setup on interfaces
211 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
212 | | ... | ${tag_rewrite}
213 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
214 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
215 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
216 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
217 | | ...                                       | ${step_rate} | 3-node-xconnect
218 | | ...                                       | ${min_rate} | ${max_rate}
219
220 | 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
221 | | [Documentation]
222 | | ... | Find throughput on 4 cores and rss 2 with non drop rate by using
223 | | ... | linear search starting at 812,743pps, stepping down with step of
224 | | ... | 10,000pps. Frames from and to TG are 1518B long. Tagging is applied
225 | | ... | between DUTs inserting 4B VLAN ID into a packet header.
226 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
227 | | ${framesize}= | Set Variable | 1518
228 | | ${start_rate}= | Set Variable | 812743
229 | | ${step_rate}= | Set Variable | 10000
230 | | ${min_rate}= | Set Variable | 10000
231 | | ${max_rate}= | Set Variable | 812743
232 | | Given Setup '4' worker threads and rss '2' without HTT on all DUTs
233 | | And VPP interfaces in path are up
234 | | When VLAN dot1q subinterfaces initialized on 3-node topology
235 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
236 | | And L2 tag rewrite method setup on interfaces
237 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
238 | | ... | ${tag_rewrite}
239 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
240 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
241 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
242 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
243 | | ...                                       | ${step_rate} | 3-node-xconnect
244 | | ...                                       | ${min_rate} | ${max_rate}
245
246 | 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
247 | | [Documentation]
248 | | ... | Find throughput on 4 cores and rss 2 with non drop rate by using
249 | | ... | linear search starting at 138,580pps, stepping down with step of
250 | | ... | 5,000pps. Frames from and to TG are 9000B long. Tagging is applied
251 | | ... | between DUTs inserting 4B VLAN ID into a packet header.
252 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
253 | | ${framesize}= | Set Variable | 9000
254 | | ${start_rate}= | Set Variable | 138580
255 | | ${step_rate}= | Set Variable | 5000
256 | | ${min_rate}= | Set Variable | 5000
257 | | ${max_rate}= | Set Variable | 138580
258 | | Given Setup '4' worker threads and rss '2' without HTT on all DUTs
259 | | And VPP interfaces in path are up
260 | | When VLAN dot1q subinterfaces initialized on 3-node topology
261 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
262 | | And L2 tag rewrite method setup on interfaces
263 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
264 | | ... | ${tag_rewrite}
265 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
266 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
267 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
268 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
269 | | ...                                       | ${step_rate} | 3-node-xconnect
270 | | ...                                       | ${min_rate} | ${max_rate}