f94abca58adb20720b3ac056e55cddccb4340392
[csit.git] / tests / suites / performance / Long_IPv4_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 | Library | resources.libraries.python.topology.Topology
17 | Library | resources.libraries.python.NodePath
18 | Library | resources.libraries.python.InterfaceUtil
19 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT1']} | WITH NAME | dut1_v4
20 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT2']} | WITH NAME | dut2_v4
21 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PERFTEST_LONG
22 | ...        | NIC_Intel-X520-DA2
23 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
24 | ... | L3 | Intel-X520-DA2
25 | Suite Teardown | 3-node Performance Suite Teardown
26 | Test Setup | Setup all DUTs before test
27 | Test Teardown | Run Keywords | Show statistics on all DUTs
28 | ...                          | Remove startup configuration of VPP from all DUTs
29 | Documentation | *Throughput search suite (based on RFC2544).*
30 | ...
31 | ... | Test suite uses 3-node topology TG - DUT1 - DUT2 - TG, with one link
32 | ... | between nodes. Traffic profile contain 2 L3 streams (1 stream per
33 | ... | direction). Packets contain Ethernet header, IPv4 header,
34 | ... | IP protocol=61 and random payload. Ethernet header MAC addresses are
35 | ... | matching MAC addresses of the TG node.
36
37 *** Test Cases ***
38 | Find NDR by using RFC2544 linear search and 64B frames through IPv4 forwarding in 3-node topology
39 | | [Documentation]
40 | | ... | Find throughput with non drop rate for 64B frames by using
41 | | ... | linear search starting at 5.0Mpps, stepping down with step of 0.1Mpps
42 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
43 | | ${framesize}= | Set Variable | 64
44 | | ${start_rate}= | Set Variable | 5000000
45 | | ${step_rate}= | Set Variable | 100000
46 | | ${min_rate}= | Set Variable | 100000
47 | | ${max_rate}= | Set Variable | 14880952
48 | | Given Add '1' worker threads and rss '1' without HTT to all DUTs
49 | | And   Add all PCI devices to all DUTs
50 | | And   Add No Multi Seg to all DUTs
51 | | And   Apply startup configuration on all VPP DUTs
52 | | And   IPv4 forwarding initialized in a 3-node circular topology
53 | | Then  Find NDR using linear search and pps | ${framesize} | ${start_rate}
54 | | ...                                        | ${step_rate} | 3-node-IPv4
55 | | ...                                        | ${min_rate} | ${max_rate}
56
57 | Find NDR by using RFC2544 linear search and 1518B frames through IPv4 forwarding in 3-node topology
58 | | [Documentation]
59 | | ... | Find throughput with non drop rate for 1518B frames by using
60 | | ... | linear search starting at 812,743pps, stepping down with step of
61 | | ... | 10,000pps
62 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
63 | | ${framesize}= | Set Variable | 1518
64 | | ${start_rate}= | Set Variable | 812743
65 | | ${step_rate}= | Set Variable | 10000
66 | | ${min_rate}= | Set Variable | 10000
67 | | ${max_rate}= | Set Variable | 812743
68 | | Given Add '1' worker threads and rss '1' without HTT to all DUTs
69 | | And   Add all PCI devices to all DUTs
70 | | And   Add No Multi Seg to all DUTs
71 | | And   Apply startup configuration on all VPP DUTs
72 | | And   IPv4 forwarding initialized in a 3-node circular topology
73 | | Then  Find NDR using linear search and pps | ${framesize} | ${start_rate}
74 | | ...                                        | ${step_rate} | 3-node-IPv4
75 | | ...                                        | ${min_rate} | ${max_rate}
76
77 | Find NDR by using RFC2544 linear search and 9000B frames through IPv4 forwarding in 3-node topology
78 | | [Documentation]
79 | | ... | Find throughput with non drop rate for 9000B frames by using
80 | | ... | linear search starting at 138,580pps, stepping down with step of
81 | | ... | 5,000pps
82 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
83 | | ${framesize}= | Set Variable | 9000
84 | | ${start_rate}= | Set Variable | 138580
85 | | ${step_rate}= | Set Variable | 5000
86 | | ${min_rate}= | Set Variable | 5000
87 | | ${max_rate}= | Set Variable | 138580
88 | | Given Add '1' worker threads and rss '1' without HTT to all DUTs
89 | | And   Add all PCI devices to all DUTs
90 | | And   Apply startup configuration on all VPP DUTs
91 | | And   IPv4 forwarding initialized in a 3-node circular topology
92 | | Then  Find NDR using linear search and pps | ${framesize} | ${start_rate}
93 | | ...                                        | ${step_rate} | 3-node-IPv4
94 | | ...                                        | ${min_rate} | ${max_rate}
95
96 | Find NDR with 2 cores and rss 1 by using RFC2544 linear search and 64B frames through IPv4 forwarding in 3-node topology
97 | | [Documentation]
98 | | ... | Find throughput on 2 cores with non drop rate for 64B frames by using
99 | | ... | linear search starting at 10Mpps, stepping down with step of 0.1Mpps
100 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
101 | | ${framesize}= | Set Variable | 64
102 | | ${start_rate}= | Set Variable | 10000000
103 | | ${step_rate}= | Set Variable | 100000
104 | | ${min_rate}= | Set Variable | 100000
105 | | ${max_rate}= | Set Variable | 14880952
106 | | Given Add '2' worker threads and rss '1' without HTT to all DUTs
107 | | And   Add all PCI devices to all DUTs
108 | | And   Add No Multi Seg to all DUTs
109 | | And   Apply startup configuration on all VPP DUTs
110 | | And   IPv4 forwarding initialized in a 3-node circular topology
111 | | Then  Find NDR using linear search and pps | ${framesize} | ${start_rate}
112 | | ...                                        | ${step_rate} | 3-node-IPv4
113 | | ...                                        | ${min_rate} | ${max_rate}
114
115 | Find NDR with 2 cores and rss 1 by using RFC2544 linear search and 1518B frames through IPv4 forwarding in 3-node topology
116 | | [Documentation]
117 | | ... | Find throughput on 2 cores with non drop rate for 1518B frames by
118 | | ... | using linear search starting at 812,743pps, stepping down with step
119 | | ... | of 10.000pps
120 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
121 | | ${framesize}= | Set Variable | 1518
122 | | ${start_rate}= | Set Variable | 812743
123 | | ${step_rate}= | Set Variable | 10000
124 | | ${min_rate}= | Set Variable | 10000
125 | | ${max_rate}= | Set Variable | 812743
126 | | Given Add '2' worker threads and rss '1' without HTT to all DUTs
127 | | And   Add all PCI devices to all DUTs
128 | | And   Add No Multi Seg to all DUTs
129 | | And   Apply startup configuration on all VPP DUTs
130 | | And   IPv4 forwarding initialized in a 3-node circular topology
131 | | Then  Find NDR using linear search and pps | ${framesize} | ${start_rate}
132 | | ...                                        | ${step_rate} | 3-node-IPv4
133 | | ...                                        | ${min_rate} | ${max_rate}
134
135 | Find NDR with 2 cores and rss 1 by using RFC2544 linear search and 9000B frames through IPv4 forwarding in 3-node topology
136 | | [Documentation]
137 | | ... | Find throughput on 2 cores with non drop rate for 9000B frames by
138 | | ... | using linear search starting at 138,580pps, stepping down with step
139 | | ... | of 5,000pps
140 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
141 | | ${framesize}= | Set Variable | 9000
142 | | ${start_rate}= | Set Variable | 138580
143 | | ${step_rate}= | Set Variable | 5000
144 | | ${min_rate}= | Set Variable | 5000
145 | | ${max_rate}= | Set Variable | 138580
146 | | Given Add '2' worker threads and rss '1' without HTT to all DUTs
147 | | And   Add all PCI devices to all DUTs
148 | | And   Apply startup configuration on all VPP DUTs
149 | | And   IPv4 forwarding initialized in a 3-node circular topology
150 | | Then  Find NDR using linear search and pps | ${framesize} | ${start_rate}
151 | | ...                                        | ${step_rate} | 3-node-IPv4
152 | | ...                                        | ${min_rate} | ${max_rate}
153
154 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 64B frames through IPv4 forwarding in 3-node topology
155 | | [Documentation]
156 | | ... | Find throughput on 4 cores and rss 2 with non drop rate for 64B
157 | | ... | frames by using linear search starting at 13Mpps, stepping down with
158 | | ... | step of 0.1Mpps
159 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
160 | | ${framesize}= | Set Variable | 64
161 | | ${start_rate}= | Set Variable | 13000000
162 | | ${step_rate}= | Set Variable | 100000
163 | | ${min_rate}= | Set Variable | 100000
164 | | ${max_rate}= | Set Variable | 14880952
165 | | Given Add '4' worker threads and rss '2' without HTT to all DUTs
166 | | And   Add all PCI devices to all DUTs
167 | | And   Add No Multi Seg to all DUTs
168 | | And   Apply startup configuration on all VPP DUTs
169 | | And   IPv4 forwarding initialized in a 3-node circular topology
170 | | Then  Find NDR using linear search and pps | ${framesize} | ${start_rate}
171 | | ...                                        | ${step_rate} | 3-node-IPv4
172 | | ...                                        | ${min_rate} | ${max_rate}
173
174 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 1518B frames through IPv4 forwarding in 3-node topology
175 | | [Documentation]
176 | | ... | Find throughput on 4 cores and rss 2 with non drop rate for 1518B
177 | | ... | frames by using linear search starting at 812,743pps, stepping down
178 | | ... | with step of 10.000pps
179 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
180 | | ${framesize}= | Set Variable | 1518
181 | | ${start_rate}= | Set Variable | 812743
182 | | ${step_rate}= | Set Variable | 10000
183 | | ${min_rate}= | Set Variable | 10000
184 | | ${max_rate}= | Set Variable | 812743
185 | | Given Add '4' worker threads and rss '2' without HTT to all DUTs
186 | | And   Add all PCI devices to all DUTs
187 | | And   Add No Multi Seg to all DUTs
188 | | And   Apply startup configuration on all VPP DUTs
189 | | And   IPv4 forwarding initialized in a 3-node circular topology
190 | | Then  Find NDR using linear search and pps | ${framesize} | ${start_rate}
191 | | ...                                        | ${step_rate} | 3-node-IPv4
192 | | ...                                        | ${min_rate} | ${max_rate}
193
194 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 9000B frames through IPv4 forwarding in 3-node topology
195 | | [Documentation]
196 | | ... | Find throughput on 4 cores and rss 2 with non drop rate for 9000B
197 | | ... | frames by using linear search starting at 138,580pps, stepping down
198 | | ... | with step of 5,000pps
199 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
200 | | ${framesize}= | Set Variable | 9000
201 | | ${start_rate}= | Set Variable | 138580
202 | | ${step_rate}= | Set Variable | 5000
203 | | ${min_rate}= | Set Variable | 5000
204 | | ${max_rate}= | Set Variable | 138580
205 | | Given Add '4' worker threads and rss '2' without HTT to all DUTs
206 | | And   Add all PCI devices to all DUTs
207 | | And   Apply startup configuration on all VPP DUTs
208 | | And   IPv4 forwarding initialized in a 3-node circular topology
209 | | Then  Find NDR using linear search and pps | ${framesize} | ${start_rate}
210 | | ...                                        | ${step_rate} | 3-node-IPv4
211 | | ...                                        | ${min_rate} | ${max_rate}
212
213 | Find NDR with 2 cores by using RFC2544 binary search and 64B frames through IPv4 forwarding in 3-node topology
214 | | [Documentation]
215 | | ... | Find throughput on 2 cores with non drop rate for 64B
216 | | ... | frames by using binary search with threshold 5,000pps
217 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
218 | | ${framesize}= | Set Variable | 64
219 | | ${binary_min}= | Set Variable | 6000000
220 | | ${binary_max}= | Set Variable | 14000000
221 | | ${min_rate}= | Set Variable | 100000
222 | | ${max_rate}= | Set Variable | 14880952
223 | | ${threshold}= | Set Variable | 5000
224 | | Given Add '2' worker threads and rss '1' without HTT to all DUTs
225 | | And   Add all PCI devices to all DUTs
226 | | And   Add No Multi Seg to all DUTs
227 | | And   Apply startup configuration on all VPP DUTs
228 | | And   IPv4 forwarding initialized in a 3-node circular topology
229 | | Then  Find NDR using binary search and pps | ${framesize} | ${binary_min}
230 | | ...                                        | ${binary_max} | 3-node-IPv4
231 | | ...                                        | ${min_rate} | ${max_rate}
232 | | ...                                        | ${threshold}
233
234 | Find NDR with 4 cores and rss 2 by using RFC2544 binary search and 64B frames through IPv4 forwarding in 3-node topology
235 | | [Documentation]
236 | | ... | Find throughput on 4 cores and rss 2 with non drop rate for 64B
237 | | ... | frames by using binary search with threshold 5,000pps
238 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
239 | | ${framesize}= | Set Variable | 64
240 | | ${binary_min}= | Set Variable | 6000000
241 | | ${binary_max}= | Set Variable | 14000000
242 | | ${min_rate}= | Set Variable | 100000
243 | | ${max_rate}= | Set Variable | 14880952
244 | | ${threshold}= | Set Variable | 5000
245 | | Given Add '4' worker threads and rss '2' without HTT to all DUTs
246 | | And   Add all PCI devices to all DUTs
247 | | And   Add No Multi Seg to all DUTs
248 | | And   Apply startup configuration on all VPP DUTs
249 | | And   IPv4 forwarding initialized in a 3-node circular topology
250 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
251 | | ...                                       | ${binary_max} | 3-node-IPv4
252 | | ...                                       | ${min_rate} | ${max_rate}
253 | | ...                                       | ${threshold}