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