Extend host topology with NIC type filtering
[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 Keywords | Show statistics on all DUTs
22 | ...           | AND          | Reset startup configuration of VPP on 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 L2 streams (1 stream per
27 | ... | direction). Packets contain Ethernet header, IPv4 header,
28 | ... | IP protocol=61 and random payload. Ethernet header MAC addresses are
29 | ... | matching MAC addresses of the TG node.
30
31 *** Test Cases ***
32 | Find NDR by using RFC2544 linear search and 64B frames through L2 cross connect in 3-node topology
33 | | [Documentation]
34 | | ... | Find throughput with non drop rate for 64B frames by using
35 | | ... | linear search starting at 5Mpps, stepping down with step of 0.1Mpps
36 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
37 | | ${framesize}= | Set Variable | 64
38 | | ${start_rate}= | Set Variable | 4800000
39 | | ${step_rate}= | Set Variable | 100000
40 | | ${min_rate}= | Set Variable | 100000
41 | | ${max_rate}= | Set Variable | 14880952
42 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
43 | | AND   L2 xconnect initialized in a 3-node circular topology
44 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
45 | | ...                                       | ${step_rate} | 3-node-xconnect
46 | | ...                                       | ${min_rate} | ${max_rate}
47
48 | Find NDR by using RFC2544 linear search and 1518B frames through L2 cross connect in 3-node topology
49 | | [Documentation]
50 | | ... | Find throughput with non drop rate for 1518B frames by using
51 | | ... | linear search starting at 812,743pps, stepping down with step of 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 xconnect initialized in a 3-node circular topology
60 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
61 | | ...                                       | ${step_rate} | 3-node-xconnect
62 | | ...                                       | ${min_rate} | ${max_rate}
63
64 | Find NDR by using RFC2544 linear search and 9000B frames through L2 cross connect 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 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 xconnect initialized in a 3-node circular topology
76 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
77 | | ...                                       | ${step_rate} | 3-node-xconnect
78 | | ...                                       | ${min_rate} | ${max_rate}
79
80 | Find NDR with 2 cores and rss 1 by using RFC2544 linear search and 64B frames through L2 cross connect 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 | 12000000
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 xconnect initialized in a 3-node circular topology
92 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
93 | | ...                                       | ${step_rate} | 3-node-xconnect
94 | | ...                                       | ${min_rate} | ${max_rate}
95
96 | Find NDR with 2 cores and rss 1 by using RFC2544 linear search and 1518B frames through L2 cross connect 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 xconnect initialized in a 3-node circular topology
109 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
110 | | ...                                       | ${step_rate} | 3-node-xconnect
111 | | ...                                       | ${min_rate} | ${max_rate}
112
113 | Find NDR with 2 cores and rss 1 by using RFC2544 linear search and 9000B frames through L2 cross connect 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 xconnect initialized in a 3-node circular topology
126 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
127 | | ...                                       | ${step_rate} | 3-node-xconnect
128 | | ...                                       | ${min_rate} | ${max_rate}
129
130 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 64B frames through L2 cross connect 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 12.2Mpps, 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 | 12200000
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 xconnect initialized in a 3-node circular topology
143 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
144 | | ...                                       | ${step_rate} | 3-node-xconnect
145 | | ...                                       | ${min_rate} | ${max_rate}
146
147 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 1518B frames through L2 cross connect 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 xconnect initialized in a 3-node circular topology
160 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
161 | | ...                                       | ${step_rate} | 3-node-xconnect
162 | | ...                                       | ${min_rate} | ${max_rate}
163
164 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 9000B frames through L2 cross connect in 3-node topology
165 | | [Documentation]
166 | | ... | Find throughput on 4 cores and rss 2 with non drop rate for 9000B frames by
167 | | ... | using linear search starting at 138,580pps, stepping down with step
168 | | ... | 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 xconnect initialized in a 3-node circular topology
177 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
178 | | ...                                       | ${step_rate} | 3-node-xconnect
179 | | ...                                       | ${min_rate} | ${max_rate}