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