Replace linear search with binary search
[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 binary 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 | | ... | binary search with threshold 0.1Mpps.
42 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
43 | | ${framesize}= | Set Variable | 64
44 | | ${min_rate}= | Set Variable | 100000
45 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
46 | | ${binary_min}= | Set Variable | ${min_rate}
47 | | ${binary_max}= | Set Variable | ${max_rate}
48 | | ${threshold}= | Set Variable | ${min_rate}
49 | | Given Add '1' worker threads and rss '1' without HTT to all DUTs
50 | | And   Add all PCI devices to all DUTs
51 | | And   Add No Multi Seg to all DUTs
52 | | And   Apply startup configuration on all VPP DUTs
53 | | And   IPv4 forwarding initialized in a 3-node circular topology
54 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
55 | | ...                                       | ${binary_max} | 3-node-IPv4
56 | | ...                                       | ${min_rate} | ${max_rate}
57 | | ...                                       | ${threshold}
58
59 | Find NDR by using RFC2544 binary search and 1518B frames through IPv4 forwarding in 3-node topology
60 | | [Documentation]
61 | | ... | Find throughput with non drop rate for 1518B frames by using
62 | | ... | binary search with threshold 10,000pps.
63 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
64 | | ${framesize}= | Set Variable | 1518
65 | | ${min_rate}= | Set Variable | 10000
66 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B}
67 | | ${binary_min}= | Set Variable | ${min_rate}
68 | | ${binary_max}= | Set Variable | ${max_rate}
69 | | ${threshold}= | Set Variable | ${min_rate}
70 | | Given Add '1' worker threads and rss '1' without HTT to all DUTs
71 | | And   Add all PCI devices to all DUTs
72 | | And   Add No Multi Seg to all DUTs
73 | | And   Apply startup configuration on all VPP DUTs
74 | | And   IPv4 forwarding initialized in a 3-node circular topology
75 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
76 | | ...                                       | ${binary_max} | 3-node-IPv4
77 | | ...                                       | ${min_rate} | ${max_rate}
78 | | ...                                       | ${threshold}
79
80 | Find NDR by using RFC2544 binary search and 9000B frames through IPv4 forwarding in 3-node topology
81 | | [Documentation]
82 | | ... | Find throughput with non drop rate for 9000B frames by using
83 | | ... | binary search with threshold 5,000pps.
84 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
85 | | ${framesize}= | Set Variable | 9000
86 | | ${min_rate}= | Set Variable | 5000
87 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9000B}
88 | | ${binary_min}= | Set Variable | ${min_rate}
89 | | ${binary_max}= | Set Variable | ${max_rate}
90 | | ${threshold}= | Set Variable | ${min_rate}
91 | | Given Add '1' worker threads and rss '1' without HTT to all DUTs
92 | | And   Add all PCI devices to all DUTs
93 | | And   Apply startup configuration on all VPP DUTs
94 | | And   IPv4 forwarding initialized in a 3-node circular topology
95 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
96 | | ...                                       | ${binary_max} | 3-node-IPv4
97 | | ...                                       | ${min_rate} | ${max_rate}
98 | | ...                                       | ${threshold}
99
100 | Find NDR with 2 cores and rss 1 by using RFC2544 binary search and 64B frames through IPv4 forwarding in 3-node topology
101 | | [Documentation]
102 | | ... | Find throughput on 2 cores with non drop rate for 64B frames by using
103 | | ... | binary search with threshold 0.1Mpps.
104 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
105 | | ${framesize}= | Set Variable | 64
106 | | ${min_rate}= | Set Variable | 100000
107 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
108 | | ${binary_min}= | Set Variable | ${min_rate}
109 | | ${binary_max}= | Set Variable | ${max_rate}
110 | | ${threshold}= | Set Variable | ${min_rate}
111 | | Given Add '2' worker threads and rss '1' without HTT to all DUTs
112 | | And   Add all PCI devices to all DUTs
113 | | And   Add No Multi Seg to all DUTs
114 | | And   Apply startup configuration on all VPP DUTs
115 | | And   IPv4 forwarding initialized in a 3-node circular topology
116 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
117 | | ...                                       | ${binary_max} | 3-node-IPv4
118 | | ...                                       | ${min_rate} | ${max_rate}
119 | | ...                                       | ${threshold}
120
121 | Find NDR with 2 cores and rss 1 by using RFC2544 binary search and 1518B frames through IPv4 forwarding in 3-node topology
122 | | [Documentation]
123 | | ... | Find throughput on 2 cores with non drop rate for 1518B frames by
124 | | ... | using binary search with threshold 10,000pps.
125 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
126 | | ${framesize}= | Set Variable | 1518
127 | | ${min_rate}= | Set Variable | 10000
128 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B}
129 | | ${binary_min}= | Set Variable | ${min_rate}
130 | | ${binary_max}= | Set Variable | ${max_rate}
131 | | ${threshold}= | Set Variable | ${min_rate}
132 | | Given Add '2' worker threads and rss '1' without HTT to all DUTs
133 | | And   Add all PCI devices to all DUTs
134 | | And   Add No Multi Seg to all DUTs
135 | | And   Apply startup configuration on all VPP DUTs
136 | | And   IPv4 forwarding initialized in a 3-node circular topology
137 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
138 | | ...                                       | ${binary_max} | 3-node-IPv4
139 | | ...                                       | ${min_rate} | ${max_rate}
140 | | ...                                       | ${threshold}
141
142 | Find NDR with 2 cores and rss 1 by using RFC2544 binary search and 9000B frames through IPv4 forwarding in 3-node topology
143 | | [Documentation]
144 | | ... | Find throughput on 2 cores with non drop rate for 9000B frames by
145 | | ... | using binary search with threshold 5,000pps.
146 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
147 | | ${framesize}= | Set Variable | 9000
148 | | ${min_rate}= | Set Variable | 5000
149 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9000B}
150 | | ${binary_min}= | Set Variable | ${min_rate}
151 | | ${binary_max}= | Set Variable | ${max_rate}
152 | | ${threshold}= | Set Variable | ${min_rate}
153 | | Given Add '2' worker threads and rss '1' without HTT to all DUTs
154 | | And   Add all PCI devices to all DUTs
155 | | And   Apply startup configuration on all VPP DUTs
156 | | And   IPv4 forwarding initialized in a 3-node circular topology
157 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
158 | | ...                                       | ${binary_max} | 3-node-IPv4
159 | | ...                                       | ${min_rate} | ${max_rate}
160 | | ...                                       | ${threshold}
161
162 | Find NDR with 4 cores and rss 2 by using RFC2544 binary search and 64B frames through IPv4 forwarding in 3-node topology
163 | | [Documentation]
164 | | ... | Find throughput on 4 cores and rss 2 with non drop rate for 64B
165 | | ... | frames by using binary search with threshold 0.1Mpps.
166 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
167 | | ${framesize}= | Set Variable | 64
168 | | ${min_rate}= | Set Variable | 100000
169 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_64B}
170 | | ${binary_min}= | Set Variable | ${min_rate}
171 | | ${binary_max}= | Set Variable | ${max_rate}
172 | | ${threshold}= | Set Variable | ${min_rate}
173 | | Given Add '4' worker threads and rss '2' without HTT to all DUTs
174 | | And   Add all PCI devices to all DUTs
175 | | And   Add No Multi Seg to all DUTs
176 | | And   Apply startup configuration on all VPP DUTs
177 | | And   IPv4 forwarding initialized in a 3-node circular topology
178 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
179 | | ...                                       | ${binary_max} | 3-node-IPv4
180 | | ...                                       | ${min_rate} | ${max_rate}
181 | | ...                                       | ${threshold}
182
183 | Find NDR with 4 cores and rss 2 by using RFC2544 binary search and 1518B frames through IPv4 forwarding in 3-node topology
184 | | [Documentation]
185 | | ... | Find throughput on 4 cores and rss 2 with non drop rate for 1518B
186 | | ... | frames by using binary search with threshold 10,000pps.
187 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
188 | | ${framesize}= | Set Variable | 1518
189 | | ${min_rate}= | Set Variable | 10000
190 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_1518B}
191 | | ${binary_min}= | Set Variable | ${min_rate}
192 | | ${binary_max}= | Set Variable | ${max_rate}
193 | | ${threshold}= | Set Variable | ${min_rate}
194 | | Given Add '4' worker threads and rss '2' without HTT to all DUTs
195 | | And   Add all PCI devices to all DUTs
196 | | And   Add No Multi Seg to all DUTs
197 | | And   Apply startup configuration on all VPP DUTs
198 | | And   IPv4 forwarding initialized in a 3-node circular topology
199 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
200 | | ...                                       | ${binary_max} | 3-node-IPv4
201 | | ...                                       | ${min_rate} | ${max_rate}
202 | | ...                                       | ${threshold}
203
204 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 9000B frames through IPv4 forwarding in 3-node topology
205 | | [Documentation]
206 | | ... | Find throughput on 4 cores and rss 2 with non drop rate for 9000B
207 | | ... | frames by using binary search with threshold 5,000pps.
208 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
209 | | ${framesize}= | Set Variable | 9000
210 | | ${min_rate}= | Set Variable | 5000
211 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_9000B}
212 | | ${binary_min}= | Set Variable | ${min_rate}
213 | | ${binary_max}= | Set Variable | ${max_rate}
214 | | ${threshold}= | Set Variable | ${min_rate}
215 | | Given Add '4' worker threads and rss '2' without HTT to all DUTs
216 | | And   Add all PCI devices to all DUTs
217 | | And   Apply startup configuration on all VPP DUTs
218 | | And   IPv4 forwarding initialized in a 3-node circular topology
219 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
220 | | ...                                       | ${binary_max} | 3-node-IPv4
221 | | ...                                       | ${min_rate} | ${max_rate}
222 | | ...                                       | ${threshold}
223