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