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