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