ce65b8116c43081df636f1246d822a9a1e4033e6
[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 *** Settings ***
14 | Resource | resources/libraries/robot/performance.robot
15 | Library | resources.libraries.python.NodePath
16 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PERFTEST_LONG
17 | ...        | NIC_Intel-X520-DA2
18 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
19 | ... | L2 | Intel-X520-DA2
20 | Suite Teardown | 3-node Performance Suite Teardown
21 | Test Setup | Setup all DUTs before test
22 | Test Teardown | Run Keywords | Show statistics on all DUTs
23 | ...                          | 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 linear 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 | | ... | linear search starting at 5.0Mpps, stepping down with step of 0.1Mpps
37 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
38 | | ${framesize}= | Set Variable | 64
39 | | ${start_rate}= | Set Variable | 5000000
40 | | ${step_rate}= | Set Variable | 100000
41 | | ${min_rate}= | Set Variable | 100000
42 | | ${max_rate}= | Set Variable | 14880952
43 | | Given Add '1' worker threads and rss '1' without HTT to all DUTs
44 | | And   Add all PCI devices to all DUTs
45 | | And   Add No Multi Seg to all DUTs
46 | | And   Apply startup configuration on all VPP DUTs
47 | | And   L2 bridge domain initialized in a 3-node circular topology
48 | | Then  Find NDR using linear search and pps | ${framesize} | ${start_rate}
49 | | ...                                        | ${step_rate} | 3-node-bridge
50 | | ...                                        | ${min_rate} | ${max_rate}
51
52 | Find NDR by using RFC2544 linear search and 1518B frames through bridge domain 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 Add '1' worker threads and rss '1' without HTT to all DUTs
64 | | And   Add all PCI devices to all DUTs
65 | | And   Add No Multi Seg to all DUTs
66 | | And   Apply startup configuration on all VPP DUTs
67 | | And   L2 bridge domain initialized in a 3-node circular topology
68 | | Then  Find NDR using linear search and pps | ${framesize} | ${start_rate}
69 | | ...                                        | ${step_rate} | 3-node-bridge
70 | | ...                                        | ${min_rate} | ${max_rate}
71
72 | Find NDR by using RFC2544 linear search and 9000B frames through bridge domain in 3-node topology
73 | | [Documentation]
74 | | ... | Find throughput with non drop rate for 9000B frames by using
75 | | ... | linear search starting at 138,580pps, stepping down with step of
76 | | ... | 5,000pps
77 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
78 | | ${framesize}= | Set Variable | 9000
79 | | ${start_rate}= | Set Variable | 138580
80 | | ${step_rate}= | Set Variable | 5000
81 | | ${min_rate}= | Set Variable | 5000
82 | | ${max_rate}= | Set Variable | 138580
83 | | Given Add '1' worker threads and rss '1' without HTT to all DUTs
84 | | And   Add all PCI devices to all DUTs
85 | | And   Apply startup configuration on all VPP DUTs
86 | | And   L2 bridge domain initialized in a 3-node circular topology
87 | | Then  Find NDR using linear search and pps | ${framesize} | ${start_rate}
88 | | ...                                       | ${step_rate} | 3-node-bridge
89 | | ...                                       | ${min_rate} | ${max_rate}
90
91 | Find NDR with 2 cores and rss 1 by using RFC2544 linear search and 64B frames through bridge domain in 3-node topology
92 | | [Documentation]
93 | | ... | Find throughput on 2 cores with non drop rate for 64B frames by using
94 | | ... | linear search starting at 9.0Mpps, stepping down with step of 0.1Mpps
95 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
96 | | ${framesize}= | Set Variable | 64
97 | | ${start_rate}= | Set Variable | 9000000
98 | | ${step_rate}= | Set Variable | 100000
99 | | ${min_rate}= | Set Variable | 100000
100 | | ${max_rate}= | Set Variable | 14880952
101 | | Given Add '2' worker threads and rss '1' without HTT to all DUTs
102 | | And   Add all PCI devices to all DUTs
103 | | And   Add No Multi Seg to all DUTs
104 | | And   Apply startup configuration on all VPP DUTs
105 | | And   L2 bridge domain initialized in a 3-node circular topology
106 | | Then  Find NDR using linear search and pps | ${framesize} | ${start_rate}
107 | | ...                                        | ${step_rate} | 3-node-bridge
108 | | ...                                        | ${min_rate} | ${max_rate}
109
110 | Find NDR with 2 cores and rss 1 by using RFC2544 linear search and 1518B frames through bridge domain in 3-node topology
111 | | [Documentation]
112 | | ... | Find throughput on 2 cores with non drop rate for 1518B frames by
113 | | ... | using linear search starting at 812,743pps, stepping down with step
114 | | ... | of 10,000pps
115 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
116 | | ${framesize}= | Set Variable | 1518
117 | | ${start_rate}= | Set Variable | 812743
118 | | ${step_rate}= | Set Variable | 10000
119 | | ${min_rate}= | Set Variable | 10000
120 | | ${max_rate}= | Set Variable | 812743
121 | | Given Add '2' worker threads and rss '1' without HTT to all DUTs
122 | | And   Add all PCI devices to all DUTs
123 | | And   Add No Multi Seg to all DUTs
124 | | And   Apply startup configuration on all VPP DUTs
125 | | And   L2 bridge domain initialized in a 3-node circular topology
126 | | Then  Find NDR using linear search and pps | ${framesize} | ${start_rate}
127 | | ...                                        | ${step_rate} | 3-node-bridge
128 | | ...                                        | ${min_rate} | ${max_rate}
129
130 | Find NDR with 2 cores and rss 1 by using RFC2544 linear search and 9000B frames through bridge domain in 3-node topology
131 | | [Documentation]
132 | | ... | Find throughput on 2 cores with non drop rate for 9000B frames by
133 | | ... | using linear search starting at 138,580pps, stepping down with step
134 | | ... | of 5,000pps
135 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
136 | | ${framesize}= | Set Variable | 9000
137 | | ${start_rate}= | Set Variable | 138580
138 | | ${step_rate}= | Set Variable | 5000
139 | | ${min_rate}= | Set Variable | 5000
140 | | ${max_rate}= | Set Variable | 138580
141 | | Given Add '2' worker threads and rss '1' without HTT to all DUTs
142 | | And   Add all PCI devices to all DUTs
143 | | And   Apply startup configuration on all VPP DUTs
144 | | And   L2 bridge domain initialized in a 3-node circular topology
145 | | Then  Find NDR using linear search and pps | ${framesize} | ${start_rate}
146 | | ...                                        | ${step_rate} | 3-node-bridge
147 | | ...                                        | ${min_rate} | ${max_rate}
148
149 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 64B frames through bridge domain in 3-node topology
150 | | [Documentation]
151 | | ... | Find throughput on 4 cores and rss 2 with non drop rate for 64B
152 | | ... | frames by using linear search starting at 13.2Mpps, stepping down
153 | | ... | with step of 0.1Mpps
154 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
155 | | ${framesize}= | Set Variable | 64
156 | | ${start_rate}= | Set Variable | 13200000
157 | | ${step_rate}= | Set Variable | 100000
158 | | ${min_rate}= | Set Variable | 100000
159 | | ${max_rate}= | Set Variable | 14880952
160 | | Given Add '4' worker threads and rss '2' without HTT to all DUTs
161 | | And   Add all PCI devices to all DUTs
162 | | And   Add No Multi Seg to all DUTs
163 | | And   Apply startup configuration on all VPP DUTs
164 | | And   L2 bridge domain initialized in a 3-node circular topology
165 | | Then  Find NDR using linear search and pps | ${framesize} | ${start_rate}
166 | | ...                                        | ${step_rate} | 3-node-bridge
167 | | ...                                        | ${min_rate} | ${max_rate}
168
169 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 1518B frames through bridge domain in 3-node topology
170 | | [Documentation]
171 | | ... | Find throughput on 4 cores and rss 2 with non drop rate for 1518B
172 | | ... | frames by using linear search starting at 812,743pps, stepping down
173 | | ... | with step of 10,000pps
174 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
175 | | ${framesize}= | Set Variable | 1518
176 | | ${start_rate}= | Set Variable | 812743
177 | | ${step_rate}= | Set Variable | 10000
178 | | ${min_rate}= | Set Variable | 10000
179 | | ${max_rate}= | Set Variable | 812743
180 | | Given Add '4' worker threads and rss '2' without HTT to all DUTs
181 | | And   Add all PCI devices to all DUTs
182 | | And   Add No Multi Seg to all DUTs
183 | | And   Apply startup configuration on all VPP DUTs
184 | | And   L2 bridge domain initialized in a 3-node circular topology
185 | | Then  Find NDR using linear search and pps | ${framesize} | ${start_rate}
186 | | ...                                        | ${step_rate} | 3-node-bridge
187 | | ...                                        | ${min_rate} | ${max_rate}
188
189 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 9000B frames through bridge domain in 3-node topology
190 | | [Documentation]
191 | | ... | Find throughput on 4 cores and rss 2 with non drop rate for 9000B
192 | | ... | frames by using linear search starting at 138,580pps, stepping
193 | | ... | down with step of 5,000pps
194 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
195 | | ${framesize}= | Set Variable | 9000
196 | | ${start_rate}= | Set Variable | 138580
197 | | ${step_rate}= | Set Variable | 5000
198 | | ${min_rate}= | Set Variable | 5000
199 | | ${max_rate}= | Set Variable | 138580
200 | | Given Add '4' worker threads and rss '2' without HTT to all DUTs
201 | | And   Add all PCI devices to all DUTs
202 | | And   Apply startup configuration on all VPP DUTs
203 | | And   L2 bridge domain initialized in a 3-node circular topology
204 | | Then  Find NDR using linear search and pps | ${framesize} | ${start_rate}
205 | | ...                                        | ${step_rate} | 3-node-bridge
206 | | ...                                        | ${min_rate} | ${max_rate}