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