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