Patch: Detection of running t-rex instance before initializing
[csit.git] / tests / suites / performance / Long_Xconnect_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 *** 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 | ...        | NIC_Intel-X520-DA2
19 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
20 | ... | L2 | Intel-X520-DA2
21 | Suite Teardown | 3-node Performance Suite Teardown
22 | Test Setup | Setup all DUTs before test
23 | Test Teardown | Run Keyword | Show statistics on 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 L2 streams (1 stream per
28 | ... | direction). Packets contain Ethernet header, IPv4 header,
29 | ... | IP protocol=61 and random payload. Ethernet header MAC addresses are
30 | ... | matching MAC addresses of the TG node.
31
32 *** Test Cases ***
33 | Find NDR by using RFC2544 linear search and 64B frames through L2 cross connect in 3-node topology
34 | | [Documentation]
35 | | ... | Find throughput with non drop rate for 64B frames by using
36 | | ... | linear search starting at 5Mpps, stepping down with step of 0.1Mpps
37 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
38 | | ${framesize}= | Set Variable | 64
39 | | ${start_rate}= | Set Variable | 4800000
40 | | ${step_rate}= | Set Variable | 100000
41 | | ${min_rate}= | Set Variable | 100000
42 | | ${max_rate}= | Set Variable | 14880952
43 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
44 | | AND   L2 xconnect initialized in a 3-node circular topology
45 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
46 | | ...                                       | ${step_rate} | 3-node-xconnect
47 | | ...                                       | ${min_rate} | ${max_rate}
48
49 | Find NDR by using RFC2544 linear search and 1518B frames through L2 cross connect in 3-node topology
50 | | [Documentation]
51 | | ... | Find throughput with non drop rate for 1518B frames by using
52 | | ... | linear search starting at 812,743pps, stepping down with step of 10,000pps
53 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
54 | | ${framesize}= | Set Variable | 1518
55 | | ${start_rate}= | Set Variable | 812743
56 | | ${step_rate}= | Set Variable | 10000
57 | | ${min_rate}= | Set Variable | 10000
58 | | ${max_rate}= | Set Variable | 812743
59 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
60 | | AND   L2 xconnect initialized in a 3-node circular topology
61 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
62 | | ...                                       | ${step_rate} | 3-node-xconnect
63 | | ...                                       | ${min_rate} | ${max_rate}
64
65 | Find NDR by using RFC2544 linear search and 9000B frames through L2 cross connect in 3-node topology
66 | | [Documentation]
67 | | ... | Find throughput with non drop rate for 9000B frames by using
68 | | ... | linear search starting at 138,580pps, stepping down with step 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 xconnect initialized in a 3-node circular topology
77 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
78 | | ...                                       | ${step_rate} | 3-node-xconnect
79 | | ...                                       | ${min_rate} | ${max_rate}
80
81 | Find NDR with 2 cores and rss 1 by using RFC2544 linear search and 64B frames through L2 cross connect 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 | 12000000
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 xconnect initialized in a 3-node circular topology
93 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
94 | | ...                                       | ${step_rate} | 3-node-xconnect
95 | | ...                                       | ${min_rate} | ${max_rate}
96
97 | Find NDR with 2 cores and rss 1 by using RFC2544 linear search and 1518B frames through L2 cross connect 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 xconnect initialized in a 3-node circular topology
110 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
111 | | ...                                       | ${step_rate} | 3-node-xconnect
112 | | ...                                       | ${min_rate} | ${max_rate}
113
114 | Find NDR with 2 cores and rss 1 by using RFC2544 linear search and 9000B frames through L2 cross connect 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 xconnect initialized in a 3-node circular topology
127 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
128 | | ...                                       | ${step_rate} | 3-node-xconnect
129 | | ...                                       | ${min_rate} | ${max_rate}
130
131 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 64B frames through L2 cross connect 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 12.2Mpps, 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 | 12200000
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 xconnect initialized in a 3-node circular topology
144 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
145 | | ...                                       | ${step_rate} | 3-node-xconnect
146 | | ...                                       | ${min_rate} | ${max_rate}
147
148 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 1518B frames through L2 cross connect 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 xconnect initialized in a 3-node circular topology
161 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
162 | | ...                                       | ${step_rate} | 3-node-xconnect
163 | | ...                                       | ${min_rate} | ${max_rate}
164
165 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 9000B frames through L2 cross connect in 3-node topology
166 | | [Documentation]
167 | | ... | Find throughput on 4 cores and rss 2 with non drop rate for 9000B frames by
168 | | ... | using linear search starting at 138,580pps, stepping down with step
169 | | ... | 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 xconnect initialized in a 3-node circular topology
178 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
179 | | ...                                       | ${step_rate} | 3-node-xconnect
180 | | ...                                       | ${min_rate} | ${max_rate}