Patch: Detection of running t-rex instance before initializing
[csit.git] / tests / suites / performance / long_xconnect.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.InterfaceUtil
16 | Library | resources.libraries.python.NodePath
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PERFTEST_LONG
18 | Suite Setup | 3-node Performance Suite Setup | L2
19 | Suite Teardown | 3-node Performance Suite Teardown
20 | Test Setup | Setup all DUTs before test
21 | Test Teardown | Run Keyword | Show statistics 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 L2 cross connect in 3-node topology
32 | | [Documentation]
33 | | ... | Find throughput with non drop rate for 64B frames by using
34 | | ... | linear search starting at 5Mpps, 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 | 4800000
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 xconnect initialized in a 3-node circular topology
43 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
44 | | ...                                       | ${step_rate} | 3-node-xconnect
45 | | ...                                       | ${min_rate} | ${max_rate}
46
47 | Find NDR by using RFC2544 linear search and 1518B frames through L2 cross connect 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 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 xconnect initialized in a 3-node circular topology
59 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
60 | | ...                                       | ${step_rate} | 3-node-xconnect
61 | | ...                                       | ${min_rate} | ${max_rate}
62
63 | Find NDR by using RFC2544 linear search and 9000B frames through L2 cross connect 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 5,000pps
67 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
68 | | ${framesize}= | Set Variable | 9000
69 | | ${start_rate}= | Set Variable | 138580
70 | | ${step_rate}= | Set Variable | 5000
71 | | ${min_rate}= | Set Variable | 5000
72 | | ${max_rate}= | Set Variable | 138580
73 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
74 | | AND   L2 xconnect initialized in a 3-node circular topology
75 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
76 | | ...                                       | ${step_rate} | 3-node-xconnect
77 | | ...                                       | ${min_rate} | ${max_rate}
78
79 | Find NDR with 2 cores and rss 1 by using RFC2544 linear search and 64B frames through L2 cross connect in 3-node topology
80 | | [Documentation]
81 | | ... | Find throughput on 2 cores with non drop rate for 64B frames by using
82 | | ... | linear search starting at 8.2Mpps, stepping down with step of 0.1Mpps
83 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
84 | | ${framesize}= | Set Variable | 64
85 | | ${start_rate}= | Set Variable | 12000000
86 | | ${step_rate}= | Set Variable | 100000
87 | | ${min_rate}= | Set Variable | 100000
88 | | ${max_rate}= | Set Variable | 14880952
89 | | Given Setup '2' worker threads and rss '1' without HTT on all DUTs
90 | | AND   L2 xconnect initialized in a 3-node circular topology
91 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
92 | | ...                                       | ${step_rate} | 3-node-xconnect
93 | | ...                                       | ${min_rate} | ${max_rate}
94
95 | Find NDR with 2 cores and rss 1 by using RFC2544 linear search and 1518B frames through L2 cross connect in 3-node topology
96 | | [Documentation]
97 | | ... | Find throughput on 2 cores with non drop rate for 1518B frames by
98 | | ... | using linear search starting at 812,743pps, stepping down with step
99 | | ... | of 10,000pps
100 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
101 | | ${framesize}= | Set Variable | 1518
102 | | ${start_rate}= | Set Variable | 812743
103 | | ${step_rate}= | Set Variable | 10000
104 | | ${min_rate}= | Set Variable | 10000
105 | | ${max_rate}= | Set Variable | 812743
106 | | Given Setup '2' worker threads and rss '1' without HTT on all DUTs
107 | | AND   L2 xconnect initialized in a 3-node circular topology
108 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
109 | | ...                                       | ${step_rate} | 3-node-xconnect
110 | | ...                                       | ${min_rate} | ${max_rate}
111
112 | Find NDR with 2 cores and rss 1 by using RFC2544 linear search and 9000B frames through L2 cross connect in 3-node topology
113 | | [Documentation]
114 | | ... | Find throughput on 2 cores with non drop rate for 9000B frames by
115 | | ... | using linear search starting at 138,580pps, stepping down with step
116 | | ... | of 5,000pps
117 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
118 | | ${framesize}= | Set Variable | 9000
119 | | ${start_rate}= | Set Variable | 138580
120 | | ${step_rate}= | Set Variable | 5000
121 | | ${min_rate}= | Set Variable | 5000
122 | | ${max_rate}= | Set Variable | 138580
123 | | Given Setup '2' worker threads and rss '1' without HTT on all DUTs
124 | | AND   L2 xconnect initialized in a 3-node circular topology
125 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
126 | | ...                                       | ${step_rate} | 3-node-xconnect
127 | | ...                                       | ${min_rate} | ${max_rate}
128
129 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 64B frames through L2 cross connect in 3-node topology
130 | | [Documentation]
131 | | ... | Find throughput on 4 cores and rss 2 with non drop rate for 64B
132 | | ... | frames by using linear search starting at 12.2Mpps, stepping down
133 | | ... | with step of 0.1Mpps
134 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
135 | | ${framesize}= | Set Variable | 64
136 | | ${start_rate}= | Set Variable | 12200000
137 | | ${step_rate}= | Set Variable | 100000
138 | | ${min_rate}= | Set Variable | 100000
139 | | ${max_rate}= | Set Variable | 14880952
140 | | Given Setup '4' worker threads and rss '2' without HTT on all DUTs
141 | | AND   L2 xconnect initialized in a 3-node circular topology
142 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
143 | | ...                                       | ${step_rate} | 3-node-xconnect
144 | | ...                                       | ${min_rate} | ${max_rate}
145
146 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 1518B frames through L2 cross connect in 3-node topology
147 | | [Documentation]
148 | | ... | Find throughput on 4 cores and rss 2 with non drop rate for 1518B
149 | | ... | frames by using linear search starting at 812,743pps, stepping down
150 | | ... | with step of 10,000pps
151 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
152 | | ${framesize}= | Set Variable | 1518
153 | | ${start_rate}= | Set Variable | 812743
154 | | ${step_rate}= | Set Variable | 10000
155 | | ${min_rate}= | Set Variable | 10000
156 | | ${max_rate}= | Set Variable | 812743
157 | | Given Setup '4' worker threads and rss '2' without HTT on all DUTs
158 | | AND   L2 xconnect initialized in a 3-node circular topology
159 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
160 | | ...                                       | ${step_rate} | 3-node-xconnect
161 | | ...                                       | ${min_rate} | ${max_rate}
162
163 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 9000B frames through L2 cross connect in 3-node topology
164 | | [Documentation]
165 | | ... | Find throughput on 4 cores and rss 2 with non drop rate for 9000B frames by
166 | | ... | using linear search starting at 138,580pps, stepping down with step
167 | | ... | of 5,000pps
168 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
169 | | ${framesize}= | Set Variable | 9000
170 | | ${start_rate}= | Set Variable | 138580
171 | | ${step_rate}= | Set Variable | 5000
172 | | ${min_rate}= | Set Variable | 5000
173 | | ${max_rate}= | Set Variable | 138580
174 | | Given Setup '4' worker threads and rss '2' without HTT on all DUTs
175 | | AND   L2 xconnect initialized in a 3-node circular topology
176 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
177 | | ...                                       | ${step_rate} | 3-node-xconnect
178 | | ...                                       | ${min_rate} | ${max_rate}