6cc088c70d4ffe4445c74bbe2cce60949de7657e
[csit.git] / tests / suites / performance / Long_IPv6_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 | 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 | ... | L3 | 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 L3 streams (1 stream per
28 | ... | direction). Packets contain Ethernet header, IPv6 header, and random
29 | ... | payload. Ethernet header MAC addresses are matching MAC addresses
30 | ... | of the TG node.
31
32 *** Test Cases ***
33 | Find NDR by using RFC2544 binary search and 78B frames through IPv6 forwarding in 3-node topology
34 | | [Documentation]
35 | | ... | Find throughput with non drop rate for 78B frames by using
36 | | ... | binary search with threshold 0.1Mpps.
37 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
38 | | ${framesize}= | Set Variable | 78
39 | | ${min_rate}= | Set Variable | 100000
40 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_78B}
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   IPv6 forwarding initialized in a 3-node circular topology
49 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
50 | | ...                                       | ${binary_max} | 3-node-IPv6
51 | | ...                                       | ${min_rate} | ${max_rate}
52 | | ...                                       | ${threshold}
53
54 | Find NDR by using RFC2544 binary search and 1518B frames through IPv6 forwarding 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   IPv6 forwarding initialized in a 3-node circular topology
70 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
71 | | ...                                       | ${binary_max} | 3-node-IPv6
72 | | ...                                       | ${min_rate} | ${max_rate}
73 | | ...                                       | ${threshold}
74
75 | Find NDR by using RFC2544 binary search and 9000B frames through IPv6 forwarding in 3-node topology
76 | | [Documentation]
77 | | ... | Find throughput with non drop rate for 9000B frames by using
78 | | ... | binary search with threshold 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   IPv6 forwarding initialized in a 3-node circular topology
90 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
91 | | ...                                       | ${binary_max} | 3-node-IPv6
92 | | ...                                       | ${min_rate} | ${max_rate}
93 | | ...                                       | ${threshold}
94
95 | Find NDR with 2 cores and rss 1 by using RFC2544 binary search and 78B frames through IPv6 forwarding in 3-node topology
96 | | [Documentation]
97 | | ... | Find throughput on 2 cores with non drop rate for 78B frames by using
98 | | ... | binary search with threshold 0.1Mpps.
99 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
100 | | ${framesize}= | Set Variable | 78
101 | | ${min_rate}= | Set Variable | 100000
102 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_78B}
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   IPv6 forwarding initialized in a 3-node circular topology
111 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
112 | | ...                                       | ${binary_max} | 3-node-IPv6
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 IPv6 forwarding 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   IPv6 forwarding initialized in a 3-node circular topology
132 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
133 | | ...                                       | ${binary_max} | 3-node-IPv6
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 IPv6 forwarding 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   IPv6 forwarding initialized in a 3-node circular topology
152 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
153 | | ...                                       | ${binary_max} | 3-node-IPv6
154 | | ...                                       | ${min_rate} | ${max_rate}
155 | | ...                                       | ${threshold}
156
157 | Find NDR with 4 cores and rss 2 by using RFC2544 binary search and 78B frames through IPv6 forwarding in 3-node topology
158 | | [Documentation]
159 | | ... | Find throughput on 4 cores and rss 2 with non drop rate for 78B
160 | | ... | frames by using binary search with threshold 0.1Mpps.
161 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
162 | | ${framesize}= | Set Variable | 78
163 | | ${min_rate}= | Set Variable | 100000
164 | | ${max_rate}= | Set Variable | ${10Ge_linerate_pps_78B}
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   IPv6 forwarding initialized in a 3-node circular topology
173 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
174 | | ...                                       | ${binary_max} | 3-node-IPv6
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 IPv6 forwarding 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   IPv6 forwarding initialized in a 3-node circular topology
194 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
195 | | ...                                       | ${binary_max} | 3-node-IPv6
196 | | ...                                       | ${min_rate} | ${max_rate}
197 | | ...                                       | ${threshold}
198
199 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 9000B frames through IPv6 forwarding 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 linear search starting at 138,580pps, stepping down
203 | | ... | with step of 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   IPv6 forwarding initialized in a 3-node circular topology
215 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
216 | | ...                                       | ${binary_max} | 3-node-IPv6
217 | | ...                                       | ${min_rate} | ${max_rate}
218 | | ...                                       | ${threshold}
219