477e0467edc5d3f1c9e3f33b9880730dd2ddd02a
[csit.git] / tests / suites / performance / long_bridge_domain.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 | Suite Setup | 3-node Performance Suite Setup | L2
18 | Suite Teardown | 3-node Performance Suite Teardown
19 | Test Setup | Setup all DUTs before test
20 | Test Teardown | Run Keywords | Show statistics on all DUTs
21 | ...           | AND          | Reset startup configuration of VPP on all DUTs
22 | Documentation | *Throughput search suite (based on RFC2544).*
23 | ...
24 | ... | Test suite uses 3-node topology TG - DUT1 - DUT2 - TG, with one link
25 | ... | between nodes. Traffic profile contain 2 L2 streams (1 stream per
26 | ... | direction). Packets contain Ethernet header, IPv4 header,
27 | ... | IP protocol=61 and random payload. Ethernet header MAC addresses are
28 | ... | matching MAC addresses of the TG node.
29
30 *** Test Cases ***
31 | Find NDR by using RFC2544 linear search and 64B frames through bridge domain in 3-node topology
32 | | [Documentation]
33 | | ... | Find throughput with non drop rate for 64B frames by using
34 | | ... | linear search starting at 4.1Mpps, stepping down with step of 0.1Mpps
35 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
36 | | ${framesize}= | Set Variable | 64
37 | | ${start_rate}= | Set Variable | 4100000
38 | | ${step_rate}= | Set Variable | 100000
39 | | ${min_rate}= | Set Variable | 100000
40 | | ${max_rate}= | Set Variable | 14880952
41 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
42 | | AND   L2 bridge domain initialized in a 3-node circular topology
43 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
44 | | ...                                       | ${step_rate} | 3-node-bridge
45 | | ...                                       | ${min_rate} | ${max_rate}
46
47 | Find NDR by using RFC2544 linear search and 1518B frames through bridge domain in 3-node topology
48 | | [Documentation]
49 | | ... | Find throughput with non drop rate for 1518B frames by using
50 | | ... | linear search starting at 812,743pps, stepping down with step of
51 | | ... | 10,000pps
52 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
53 | | ${framesize}= | Set Variable | 1518
54 | | ${start_rate}= | Set Variable | 812743
55 | | ${step_rate}= | Set Variable | 10000
56 | | ${min_rate}= | Set Variable | 10000
57 | | ${max_rate}= | Set Variable | 812743
58 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
59 | | AND   L2 bridge domain initialized in a 3-node circular topology
60 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
61 | | ...                                       | ${step_rate} | 3-node-bridge
62 | | ...                                       | ${min_rate} | ${max_rate}
63
64 | Find NDR by using RFC2544 linear search and 9000B frames through bridge domain in 3-node topology
65 | | [Documentation]
66 | | ... | Find throughput with non drop rate for 9000B frames by using
67 | | ... | linear search starting at 138,580pps, stepping down with step of
68 | | ... | 5,000pps
69 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
70 | | ${framesize}= | Set Variable | 9000
71 | | ${start_rate}= | Set Variable | 138580
72 | | ${step_rate}= | Set Variable | 5000
73 | | ${min_rate}= | Set Variable | 5000
74 | | ${max_rate}= | Set Variable | 138580
75 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
76 | | AND   L2 bridge domain initialized in a 3-node circular topology
77 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
78 | | ...                                       | ${step_rate} | 3-node-bridge
79 | | ...                                       | ${min_rate} | ${max_rate}
80
81 | Find NDR with 2 cores and rss 1 by using RFC2544 linear search and 64B frames through bridge domain in 3-node topology
82 | | [Documentation]
83 | | ... | Find throughput on 2 cores with non drop rate for 64B frames by using
84 | | ... | linear search starting at 8.2Mpps, stepping down with step of 0.1Mpps
85 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
86 | | ${framesize}= | Set Variable | 64
87 | | ${start_rate}= | Set Variable | 8200000
88 | | ${step_rate}= | Set Variable | 100000
89 | | ${min_rate}= | Set Variable | 100000
90 | | ${max_rate}= | Set Variable | 14880952
91 | | Given Setup '2' worker threads and rss '1' without HTT on all DUTs
92 | | AND   L2 bridge domain initialized in a 3-node circular topology
93 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
94 | | ...                                       | ${step_rate} | 3-node-bridge
95 | | ...                                       | ${min_rate} | ${max_rate}
96
97 | Find NDR with 2 cores and rss 1 by using RFC2544 linear search and 1518B frames through bridge domain in 3-node topology
98 | | [Documentation]
99 | | ... | Find throughput on 2 cores with non drop rate for 1518B frames by
100 | | ... | using linear search starting at 812,743pps, stepping down with step
101 | | ... | of 10,000pps
102 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
103 | | ${framesize}= | Set Variable | 1518
104 | | ${start_rate}= | Set Variable | 812743
105 | | ${step_rate}= | Set Variable | 10000
106 | | ${min_rate}= | Set Variable | 10000
107 | | ${max_rate}= | Set Variable | 812743
108 | | Given Setup '2' worker threads and rss '1' without HTT on all DUTs
109 | | AND   L2 bridge domain initialized in a 3-node circular topology
110 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
111 | | ...                                       | ${step_rate} | 3-node-bridge
112 | | ...                                       | ${min_rate} | ${max_rate}
113
114 | Find NDR with 2 cores and rss 1 by using RFC2544 linear search and 9000B frames through bridge domain in 3-node topology
115 | | [Documentation]
116 | | ... | Find throughput on 2 cores with non drop rate for 9000B frames by
117 | | ... | using linear search starting at 138,580pps, stepping down with step
118 | | ... | of 5,000pps
119 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
120 | | ${framesize}= | Set Variable | 9000
121 | | ${start_rate}= | Set Variable | 138580
122 | | ${step_rate}= | Set Variable | 5000
123 | | ${min_rate}= | Set Variable | 5000
124 | | ${max_rate}= | Set Variable | 138580
125 | | Given Setup '2' worker threads and rss '1' without HTT on all DUTs
126 | | AND   L2 bridge domain initialized in a 3-node circular topology
127 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
128 | | ...                                       | ${step_rate} | 3-node-bridge
129 | | ...                                       | ${min_rate} | ${max_rate}
130
131 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 64B frames through bridge domain in 3-node topology
132 | | [Documentation]
133 | | ... | Find throughput on 4 cores and rss 2 with non drop rate for 64B
134 | | ... | frames by using linear search starting at 9.8Mpps, stepping down
135 | | ... | with step of 0.1Mpps
136 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
137 | | ${framesize}= | Set Variable | 64
138 | | ${start_rate}= | Set Variable | 9800000
139 | | ${step_rate}= | Set Variable | 100000
140 | | ${min_rate}= | Set Variable | 100000
141 | | ${max_rate}= | Set Variable | 14880952
142 | | Given Setup '4' worker threads and rss '2' without HTT on all DUTs
143 | | AND   L2 bridge domain initialized in a 3-node circular topology
144 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
145 | | ...                                       | ${step_rate} | 3-node-bridge
146 | | ...                                       | ${min_rate} | ${max_rate}
147
148 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 1518B frames through bridge domain in 3-node topology
149 | | [Documentation]
150 | | ... | Find throughput on 4 cores and rss 2 with non drop rate for 1518B
151 | | ... | frames by using linear search starting at 812,743pps, stepping down
152 | | ... | with step of 10,000pps
153 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
154 | | ${framesize}= | Set Variable | 1518
155 | | ${start_rate}= | Set Variable | 812743
156 | | ${step_rate}= | Set Variable | 10000
157 | | ${min_rate}= | Set Variable | 10000
158 | | ${max_rate}= | Set Variable | 812743
159 | | Given Setup '4' worker threads and rss '2' without HTT on all DUTs
160 | | AND   L2 bridge domain initialized in a 3-node circular topology
161 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
162 | | ...                                       | ${step_rate} | 3-node-bridge
163 | | ...                                       | ${min_rate} | ${max_rate}
164
165 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 9000B frames through bridge domain in 3-node topology
166 | | [Documentation]
167 | | ... | Find throughput on 4 cores and rss 2 with non drop rate for 9000B
168 | | ... | frames by using linear search starting at 138,580pps, stepping
169 | | ... | down with step of 5,000pps
170 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
171 | | ${framesize}= | Set Variable | 9000
172 | | ${start_rate}= | Set Variable | 138580
173 | | ${step_rate}= | Set Variable | 5000
174 | | ${min_rate}= | Set Variable | 5000
175 | | ${max_rate}= | Set Variable | 138580
176 | | Given Setup '4' worker threads and rss '2' without HTT on all DUTs
177 | | AND   L2 bridge domain initialized in a 3-node circular topology
178 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
179 | | ...                                       | ${step_rate} | 3-node-bridge
180 | | ...                                       | ${min_rate} | ${max_rate}