CSIT-1142 Change thread perf test TAGs
[csit.git] / tests / vpp / perf / ip4 / 10ge2p1x520-ethip4-ip4base-ndrpdrdisc.robot
1 # Copyright (c) 2017 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
14 *** Settings ***
15 | Resource | resources/libraries/robot/performance/performance_setup.robot
16 | ...
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
18 | ... | NIC_Intel-X520-DA2 | ETH | IP4FWD | BASE | IP4BASE
19 | ...
20 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
21 | ... | L3 | Intel-X520-DA2
22 | Suite Teardown | Tear down 3-node performance topology
23 | ...
24 | Test Setup | Set up performance test
25 | ...
26 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
27 | ... | ${framesize} | ${traffic_profile}
28 | ...
29 | Documentation | *RFC2544: Pkt throughput IPv4 routing test cases*
30 | ...
31 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
32 | ... | with single links between nodes.
33 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for IPv4 routing.
34 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
35 | ... | routing and two static IPv4 /24 route entries. DUT1 and DUT2 tested with
36 | ... | 2p10GE NIC X520 Niantic by Intel.
37 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
38 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
39 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
40 | ... | of packets transmitted. NDR and PDR are discovered for different
41 | ... | Ethernet L2 frame sizes using either binary search or linear search
42 | ... | algorithms with configured starting rate and final step that determines
43 | ... | throughput measurement resolution. Test packets are generated by TG on
44 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
45 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
46 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
47 | ... | payload. MAC addresses are matching MAC addresses of the TG node
48 | ... | interfaces.
49 | ... | *[Ref] Applicable standard specifications:* RFC2544.
50
51 *** Variables ***
52 # X520-DA2 bandwidth limit
53 | ${s_limit} | ${10000000000}
54 # Traffic profile:
55 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src253
56
57 *** Keywords ***
58 | Discover NDR or PDR for ethip4-ip4base
59 | | [Documentation]
60 | | ... | [Cfg] DUT runs IPv4 routing config with ${wt} thread(s), ${wt}\
61 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
62 | | ... | [Ver] Find NDR or PDR for ${framesize} frames using binary search\
63 | | ... | start at 10GE linerate.
64 | | ...
65 | | [Arguments] | ${wt} | ${rxq} | ${framesize} | ${min_rate} | ${search_type}
66 | | ...
67 | | Set Test Variable | ${framesize}
68 | | Set Test Variable | ${min_rate}
69 | | ${get_framesize}= | Get Frame Size | ${framesize}
70 | | ${max_rate}= | Calculate pps | ${s_limit} | ${get_framesize}
71 | | ${binary_min}= | Set Variable | ${min_rate}
72 | | ${binary_max}= | Set Variable | ${max_rate}
73 | | ${threshold}= | Set Variable | ${min_rate}
74 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
75 | | And Add PCI devices to all DUTs
76 | | And Run Keyword If | ${get_framesize} < ${1522}
77 | | ... | Add no multi seg to all DUTs
78 | | And Apply startup configuration on all VPP DUTs
79 | | And Initialize IPv4 forwarding in 3-node circular topology
80 | | Then Run Keyword If | '${search_type}' == 'NDR'
81 | | ... | Find NDR using binary search and pps
82 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
83 | | ... | ${min_rate} | ${max_rate} | ${threshold}
84 | | ... | ELSE IF | '${search_type}' == 'PDR'
85 | | ... | Find PDR using binary search and pps
86 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
87 | | ... | ${min_rate} | ${max_rate} | ${threshold}
88 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
89
90 *** Test Cases ***
91 | tc01-64B-1t1c-ethip4-ip4base-ndrdisc
92 | | [Documentation]
93 | | ... | [Cfg] DUT runs IPv4 routing config with 1 phy core, \
94 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
95 | | ... | using binary search start at 10GE linerate, step 50kpps.
96 | | [Tags] | 64B | 1C | NDRDISC
97 | | ...
98 | | [Template] | Discover NDR or PDR for ethip4-ip4base
99 | | wt=1 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=NDR
100
101 | tc02-64B-1t1c-ethip4-ip4base-pdrdisc
102 | | [Documentation]
103 | | ... | [Cfg] DUT runs IPv4 routing config with 1 phy core, \
104 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames
105 | | ... | using binary search start at 10GE linerate, step 50kpps, LT=0.5%.
106 | | [Tags] | 64B | 1C | PDRDISC | SKIP_PATCH
107 | | ...
108 | | [Template] | Discover NDR or PDR for ethip4-ip4base
109 | | wt=1 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=PDR
110
111 | tc03-1518B-1t1c-ethip4-ip4base-ndrdisc
112 | | [Documentation]
113 | | ... | [Cfg] DUT runs IPv4 routing config with 1 phy core, \
114 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
115 | | ... | using binary search start at 10GE linerate, step 50kpps.
116 | | [Tags] | 1518B | 1C | NDRDISC
117 | | ...
118 | | [Template] | Discover NDR or PDR for ethip4-ip4base
119 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=NDR
120
121 | tc04-1518B-1t1c-ethip4-ip4base-pdrdisc
122 | | [Documentation]
123 | | ... | [Cfg] DUT runs IPv4 routing config with 1 phy core, \
124 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames
125 | | ... | using binary search start at 10GE linerate, step 50kpps, LT=0.5%.
126 | | [Tags] | 1518B | 1C | PDRDISC | SKIP_PATCH
127 | | ...
128 | | [Template] | Discover NDR or PDR for ethip4-ip4base
129 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=PDR
130
131 | tc05-9000B-1t1c-ethip4-ip4base-ndrdisc
132 | | [Documentation]
133 | | ... | [Cfg] DUT runs IPv4 routing config with 1 phy core, \
134 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames
135 | | ... | using binary search start at 10GE linerate, step 10kpps.
136 | | [Tags] | 9000B | 1C | NDRDISC
137 | | ...
138 | | [Template] | Discover NDR or PDR for ethip4-ip4base
139 | | wt=1 | rxq=1 | framesize=${9000} | min_rate=${10000} | search_type=NDR
140
141 | tc06-9000B-1t1c-ethip4-ip4base-pdrdisc
142 | | [Documentation]
143 | | ... | [Cfg] DUT runs IPv4 routing config with 1 phy core, \
144 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames
145 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
146 | | [Tags] | 9000B | 1C | PDRDISC | SKIP_PATCH
147 | | ...
148 | | [Template] | Discover NDR or PDR for ethip4-ip4base
149 | | wt=1 | rxq=1 | framesize=${9000} | min_rate=${10000} | search_type=PDR
150
151 | tc07-64B-2t2c-ethip4-ip4base-ndrdisc
152 | | [Documentation]
153 | | ... | [Cfg] DUT runs IPv4 routing config with 2 phy cores, \
154 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
155 | | ... | using binary search start at 10GE linerate, step 50kpps.
156 | | [Tags] | 64B | 2C | NDRDISC
157 | | ...
158 | | [Template] | Discover NDR or PDR for ethip4-ip4base
159 | | wt=2 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=NDR
160
161 | tc08-64B-2t2c-ethip4-ip4base-pdrdisc
162 | | [Documentation]
163 | | ... | [Cfg] DUT runs IPv4 routing config with 2 phy cores, \
164 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames
165 | | ... | using binary search start at 10GE linerate, step 50kpps, LT=0.5%.
166 | | [Tags] | 64B | 2C | PDRDISC | SKIP_PATCH
167 | | ...
168 | | [Template] | Discover NDR or PDR for ethip4-ip4base
169 | | wt=2 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=PDR
170
171 | tc09-1518B-2t2c-ethip4-ip4base-ndrdisc
172 | | [Documentation]
173 | | ... | [Cfg] DUT runs IPv4 routing config with 2 phy cores, \
174 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
175 | | ... | using binary search start at 10GE linerate, step 50kpps.
176 | | [Tags] | 1518B | 2C | NDRDISC | SKIP_PATCH
177 | | ...
178 | | [Template] | Discover NDR or PDR for ethip4-ip4base
179 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=NDR
180
181 | tc10-1518B-2t2c-ethip4-ip4base-pdrdisc
182 | | [Documentation]
183 | | ... | [Cfg] DUT runs IPv4 routing config with 2 phy cores, \
184 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames
185 | | ... | using binary search start at 10GE linerate, step 50kpps, LT=0.5%.
186 | | [Tags] | 1518B | 2C | PDRDISC | SKIP_PATCH
187 | | ...
188 | | [Template] | Discover NDR or PDR for ethip4-ip4base
189 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=PDR
190
191 | tc11-9000B-2t2c-ethip4-ip4base-ndrdisc
192 | | [Documentation]
193 | | ... | [Cfg] DUT runs IPv4 routing config with 2 phy cores, \
194 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames
195 | | ... | using binary search start at 10GE linerate, step 10kpps.
196 | | [Tags] | 9000B | 2C | NDRDISC | SKIP_PATCH
197 | | ...
198 | | [Template] | Discover NDR or PDR for ethip4-ip4base
199 | | wt=2 | rxq=1 | framesize=${9000} | min_rate=${10000} | search_type=NDR
200
201 | tc12-9000B-2t2c-ethip4-ip4base-pdrdisc
202 | | [Documentation]
203 | | ... | [Cfg] DUT runs IPv4 routing config with 2 phy cores, \
204 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames
205 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
206 | | [Tags] | 9000B | 2C | PDRDISC | SKIP_PATCH
207 | | ...
208 | | [Template] | Discover NDR or PDR for ethip4-ip4base
209 | | wt=2 | rxq=1 | framesize=${9000} | min_rate=${10000} | search_type=PDR
210
211 | tc13-64B-4t4c-ethip4-ip4base-ndrdisc
212 | | [Documentation]
213 | | ... | [Cfg] DUT runs IPv4 routing config with 4 phy cores, \
214 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames
215 | | ... | using binary search start at 10GE linerate, step 50kpps.
216 | | [Tags] | 64B | 4C | NDRDISC
217 | | ...
218 | | [Template] | Discover NDR or PDR for ethip4-ip4base
219 | | wt=4 | rxq=2 | framesize=${64} | min_rate=${50000} | search_type=NDR
220
221 | tc14-64B-4t4c-ethip4-ip4base-pdrdisc
222 | | [Documentation]
223 | | ... | [Cfg] DUT runs IPv4 routing config with 4 phy cores, \
224 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames
225 | | ... | using binary search start at 10GE linerate, step 50kpps, LT=0.5%.
226 | | [Tags] | 64B | 4C | PDRDISC | SKIP_PATCH
227 | | ...
228 | | [Template] | Discover NDR or PDR for ethip4-ip4base
229 | | wt=4 | rxq=2 | framesize=${64} | min_rate=${50000} | search_type=PDR
230
231 | tc15-1518B-4t4c-ethip4-ip4base-ndrdisc
232 | | [Documentation]
233 | | ... | [Cfg] DUT runs IPv4 routing config with 4 phy cores, \
234 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames
235 | | ... | using binary search start at 10GE linerate, step 50kpps.
236 | | [Tags] | 1518B | 4C | NDRDISC | SKIP_PATCH
237 | | ...
238 | | [Template] | Discover NDR or PDR for ethip4-ip4base
239 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${50000} | search_type=NDR
240
241 | tc16-1518B-4t4c-ethip4-ip4base-pdrdisc
242 | | [Documentation]
243 | | ... | [Cfg] DUT runs IPv4 routing config with 4 phy cores, \
244 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames
245 | | ... | using binary search start at 10GE linerate, step 50kpps, LT=0.5%.
246 | | [Tags] | 1518B | 4C | PDRDISC | SKIP_PATCH
247 | | ...
248 | | [Template] | Discover NDR or PDR for ethip4-ip4base
249 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${50000} | search_type=PDR
250
251 | tc17-9000B-4t4c-ethip4-ip4base-ndrdisc
252 | | [Documentation]
253 | | ... | [Cfg] DUT runs IPv4 routing config with 4 phy cores, \
254 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 9000 Byte frames
255 | | ... | using binary search start at 10GE linerate, step 10kpps.
256 | | [Tags] | 9000B | 4C | NDRDISC | SKIP_PATCH
257 | | ...
258 | | [Template] | Discover NDR or PDR for ethip4-ip4base
259 | | wt=4 | rxq=2 | framesize=${9000} | min_rate=${10000} | search_type=NDR
260
261 | tc18-9000B-4t4c-ethip4-ip4base-pdrdisc
262 | | [Documentation]
263 | | ... | [Cfg] DUT runs IPv4 routing config with 4 phy cores, \
264 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 9000 Byte frames
265 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
266 | | [Tags] | 9000B | 4C | PDRDISC | SKIP_PATCH
267 | | ...
268 | | [Template] | Discover NDR or PDR for ethip4-ip4base
269 | | wt=4 | rxq=2 | framesize=${9000} | min_rate=${10000} | search_type=PDR