CSIT-687: Directory structure reorganization
[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 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT1']}
18 | ... | WITH NAME | dut1_v4
19 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT2']}
20 | ... | WITH NAME | dut2_v4
21 | ...
22 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
23 | ... | NIC_Intel-X520-DA2 | IP4FWD | BASE | DOT1Q
24 | ...
25 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
26 | ... | L3 | Intel-X520-DA2
27 | Suite Teardown | Tear down 3-node performance topology
28 | ...
29 | Test Setup | Set up performance test
30 | ...
31 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
32 | ... | ${framesize} | ${traffic_profile}
33 | ...
34 | Documentation | *RFC2544: Pkt throughput IPv4 policer test cases*
35 | ...
36 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
37 | ... | with single links between nodes.
38 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for IPv4 routing.
39 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
40 | ... | routing and two static IPv4 /24 route entries and policer with 2R3C
41 | ... | color-aware configuration. Policer is applied on links TG - DUT1 and
42 | ... | DUT2 - TG. DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
43 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
44 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
45 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
46 | ... | of packets transmitted. NDR and PDR are discovered for different
47 | ... | Ethernet L2 frame sizes using either binary search or linear search
48 | ... | algorithms with configured starting rate and final step that determines
49 | ... | throughput measurement resolution. Test packets are generated by TG on
50 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
51 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
52 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and
53 | ... | generated payload. MAC addresses are matching MAC addresses of the TG
54 | ... | node interfaces.
55 | ... | *[Ref] Applicable standard specifications:* RFC2544, RFC2698.
56
57 *** Variables ***
58 # X520-DA2 bandwidth limit
59 | ${s_limit} | ${10000000000}
60 | ${cir}= | ${100}
61 | ${eir}= | ${150}
62 # Traffic profile:
63 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src253
64
65 *** Test Cases ***
66 | tc01-64B-1t1c-ethip4-ip4base-ipolicemarkbase-ndrdisc
67 | | [Documentation]
68 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 1 thread, 1 \
69 | | ... | phy core, 1 receive queue per NIC port. [Ver] Find NDR for 64 \
70 | | ... | Byte frames using binary search start at 10GE linerate, step \
71 | | ... | 100kpps.
72 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
73 | | ${framesize}= | Set Variable | ${64}
74 | | ${min_rate}= | Set Variable | ${100000}
75 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
76 | | ${binary_min}= | Set Variable | ${min_rate}
77 | | ${binary_max}= | Set Variable | ${max_rate}
78 | | ${threshold}= | Set Variable | ${min_rate}
79 | | Set Test Variable | ${cb} | ${framesize}
80 | | Set Test Variable | ${eb} | ${framesize}
81 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
82 | | And Add PCI devices to DUTs in 3-node single link topology
83 | | And 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 Find NDR using binary search and pps | ${framesize} | ${binary_min}
88 | | ... | ${binary_max} | ${traffic_profile}
89 | | ... | ${min_rate} | ${max_rate} | ${threshold}
90
91 | tc02-64B-1t1c-ethip4-ip4base-ipolicemarkbase-pdrdisc
92 | | [Documentation]
93 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 1 thread, 1 \
94 | | ... | phy core, 1 receive queue per NIC port. [Ver] Find PDR for 64 \
95 | | ... | Byte frames using binary search start at 10GE linerate, step \
96 | | ... | 100kpps, LT=0.5%.
97 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
98 | | ${framesize}= | Set Variable | ${64}
99 | | ${min_rate}= | Set Variable | ${100000}
100 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
101 | | ${binary_min}= | Set Variable | ${min_rate}
102 | | ${binary_max}= | Set Variable | ${max_rate}
103 | | ${threshold}= | Set Variable | ${min_rate}
104 | | Set Test Variable | ${cb} | ${framesize}
105 | | Set Test Variable | ${eb} | ${framesize}
106 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
107 | | And Add PCI devices to DUTs in 3-node single link topology
108 | | And Add no multi seg to all DUTs
109 | | And Apply startup configuration on all VPP DUTs
110 | | When Initialize IPv4 forwarding in 3-node circular topology
111 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
112 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
113 | | ... | ${binary_max} | ${traffic_profile}
114 | | ... | ${min_rate} | ${max_rate} | ${threshold}
115 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
116
117 | tc03-1518B-1t1c-ethip4-ip4base-ipolicemarkbase-ndrdisc
118 | | [Documentation]
119 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 1 thread, 1 \
120 | | ... | phy core, 1 receive queue per NIC port. [Ver] Find NDR for 1518 \
121 | | ... | Byte frames using binary search start at 10GE linerate, step \
122 | | ... | 10kpps.
123 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
124 | | ${framesize}= | Set Variable | ${1518}
125 | | ${min_rate}= | Set Variable | ${10000}
126 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
127 | | ${binary_min}= | Set Variable | ${min_rate}
128 | | ${binary_max}= | Set Variable | ${max_rate}
129 | | ${threshold}= | Set Variable | ${min_rate}
130 | | Set Test Variable | ${cb} | ${framesize}
131 | | Set Test Variable | ${eb} | ${framesize}
132 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
133 | | And Add PCI devices to DUTs in 3-node single link topology
134 | | And Add no multi seg to all DUTs
135 | | And Apply startup configuration on all VPP DUTs
136 | | When Initialize IPv4 forwarding in 3-node circular topology
137 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
138 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
139 | | ... | ${binary_max} | ${traffic_profile}
140 | | ... | ${min_rate} | ${max_rate} | ${threshold}
141
142 | tc04-1518B-1t1c-ethip4-ip4base-ipolicemarkbase-pdrdisc
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 PDR for 1518 \
146 | | ... | Byte frames using binary search start at 10GE linerate, step \
147 | | ... | 10kpps, LT=0.5%.
148 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
149 | | ${framesize}= | Set Variable | ${1518}
150 | | ${min_rate}= | Set Variable | ${10000}
151 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
152 | | ${binary_min}= | Set Variable | ${min_rate}
153 | | ${binary_max}= | Set Variable | ${max_rate}
154 | | ${threshold}= | Set Variable | ${min_rate}
155 | | Set Test Variable | ${cb} | ${framesize}
156 | | Set Test Variable | ${eb} | ${framesize}
157 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
158 | | And Add PCI devices to DUTs in 3-node single link topology
159 | | And Add no multi seg to all DUTs
160 | | And Apply startup configuration on all VPP DUTs
161 | | When Initialize IPv4 forwarding in 3-node circular topology
162 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
163 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
164 | | ... | ${binary_max} | ${traffic_profile}
165 | | ... | ${min_rate} | ${max_rate} | ${threshold}
166 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
167
168 | tc05-9000B-1t1c-ethip4-ip4base-ipolicemarkbase-ndrdisc
169 | | [Documentation]
170 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 1 thread, 1 \
171 | | ... | phy core, 1 receive queue per NIC port. [Ver] Find NDR for 9000 \
172 | | ... | Byte frames using binary search start at 10GE linerate, step \
173 | | ... | 5kpps.
174 | | [Tags] | 9000B | 1T1C | STHREAD | NDRDISC
175 | | ${framesize}= | Set Variable | ${9000}
176 | | ${min_rate}= | Set Variable | ${10000}
177 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
178 | | ${binary_min}= | Set Variable | ${min_rate}
179 | | ${binary_max}= | Set Variable | ${max_rate}
180 | | ${threshold}= | Set Variable | ${min_rate}
181 | | Set Test Variable | ${cb} | ${framesize}
182 | | Set Test Variable | ${eb} | ${framesize}
183 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
184 | | And Add PCI devices to DUTs in 3-node single link topology
185 | | And Apply startup configuration on all VPP DUTs
186 | | When Initialize IPv4 forwarding in 3-node circular topology
187 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
188 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
189 | | ... | ${binary_max} | ${traffic_profile}
190 | | ... | ${min_rate} | ${max_rate} | ${threshold}
191
192 | tc06-9000B-1t1c-ethip4-ip4base-ipolicemarkbase-pdrdisc
193 | | [Documentation]
194 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 1 thread, 1 \
195 | | ... | phy core, 1 receive queue per NIC port. [Ver] Find PDR for 9000 \
196 | | ... | Byte frames using binary search start at 10GE linerate, step 5kpps, \
197 | | ... | LT=0.5%.
198 | | [Tags] | 9000B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
199 | | ${framesize}= | Set Variable | ${9000}
200 | | ${min_rate}= | Set Variable | ${10000}
201 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
202 | | ${binary_min}= | Set Variable | ${min_rate}
203 | | ${binary_max}= | Set Variable | ${max_rate}
204 | | ${threshold}= | Set Variable | ${min_rate}
205 | | Set Test Variable | ${cb} | ${framesize}
206 | | Set Test Variable | ${eb} | ${framesize}
207 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
208 | | And Add PCI devices to DUTs in 3-node single link topology
209 | | And Apply startup configuration on all VPP DUTs
210 | | When Initialize IPv4 forwarding in 3-node circular topology
211 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
212 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
213 | | ... | ${binary_max} | ${traffic_profile}
214 | | ... | ${min_rate} | ${max_rate} | ${threshold}
215 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
216
217 | tc07-64B-2t2c-ethip4-ip4base-ipolicemarkbase-ndrdisc
218 | | [Documentation]
219 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
220 | | ... | phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 64 \
221 | | ... | Byte frames using binary search start at 10GE linerate, step \
222 | | ... | 100kpps.
223 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
224 | | ${framesize}= | Set Variable | ${64}
225 | | ${min_rate}= | Set Variable | ${100000}
226 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
227 | | ${binary_min}= | Set Variable | ${min_rate}
228 | | ${binary_max}= | Set Variable | ${max_rate}
229 | | ${threshold}= | Set Variable | ${min_rate}
230 | | Set Test Variable | ${cb} | ${framesize}
231 | | Set Test Variable | ${eb} | ${framesize}
232 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
233 | | And Add PCI devices to DUTs in 3-node single link topology
234 | | And Add no multi seg to all DUTs
235 | | And Apply startup configuration on all VPP DUTs
236 | | When Initialize IPv4 forwarding in 3-node circular topology
237 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
238 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
239 | | ... | ${binary_max} | ${traffic_profile}
240 | | ... | ${min_rate} | ${max_rate} | ${threshold}
241
242 | tc08-64B-2t2c-ethip4-ip4base-ipolicemarkbase-pdrdisc
243 | | [Documentation]
244 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
245 | | ... | phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 64 \
246 | | ... | Byte frames using binary search start at 10GE linerate, step \
247 | | ... | 100kpps, LT=0.5%.
248 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
249 | | ${framesize}= | Set Variable | ${64}
250 | | ${min_rate}= | Set Variable | ${100000}
251 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
252 | | ${binary_min}= | Set Variable | ${min_rate}
253 | | ${binary_max}= | Set Variable | ${max_rate}
254 | | ${threshold}= | Set Variable | ${min_rate}
255 | | Set Test Variable | ${cb} | ${framesize}
256 | | Set Test Variable | ${eb} | ${framesize}
257 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
258 | | And Add PCI devices to DUTs in 3-node single link topology
259 | | And Add no multi seg to all DUTs
260 | | And Apply startup configuration on all VPP DUTs
261 | | When Initialize IPv4 forwarding in 3-node circular topology
262 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
263 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
264 | | ... | ${binary_max} | ${traffic_profile}
265 | | ... | ${min_rate} | ${max_rate} | ${threshold}
266 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
267
268 | tc09-1518B-2t2c-ethip4-ip4base-ipolicemarkbase-ndrdisc
269 | | [Documentation]
270 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
271 | | ... | phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 1518 \
272 | | ... | Byte frames using binary search start at 10GE linerate, step \
273 | | ... | 10kpps.
274 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
275 | | ${framesize}= | Set Variable | ${1518}
276 | | ${min_rate}= | Set Variable | ${10000}
277 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
278 | | ${binary_min}= | Set Variable | ${min_rate}
279 | | ${binary_max}= | Set Variable | ${max_rate}
280 | | ${threshold}= | Set Variable | ${min_rate}
281 | | Set Test Variable | ${cb} | ${framesize}
282 | | Set Test Variable | ${eb} | ${framesize}
283 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
284 | | And Add PCI devices to DUTs in 3-node single link topology
285 | | And Add no multi seg to all DUTs
286 | | And Apply startup configuration on all VPP DUTs
287 | | When Initialize IPv4 forwarding in 3-node circular topology
288 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
289 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
290 | | ... | ${binary_max} | ${traffic_profile}
291 | | ... | ${min_rate} | ${max_rate} | ${threshold}
292
293 | tc10-1518B-2t2c-ethip4-ip4base-ipolicemarkbase-pdrdisc
294 | | [Documentation]
295 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
296 | | ... | phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 1518 \
297 | | ... | Byte frames using binary search start at 10GE linerate, step \
298 | | ... | 10kpps, LT=0.5%.
299 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
300 | | ${framesize}= | Set Variable | ${1518}
301 | | ${min_rate}= | Set Variable | ${10000}
302 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
303 | | ${binary_min}= | Set Variable | ${min_rate}
304 | | ${binary_max}= | Set Variable | ${max_rate}
305 | | ${threshold}= | Set Variable | ${min_rate}
306 | | Set Test Variable | ${cb} | ${framesize}
307 | | Set Test Variable | ${eb} | ${framesize}
308 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
309 | | And Add PCI devices to DUTs in 3-node single link topology
310 | | And Add no multi seg to all DUTs
311 | | And Apply startup configuration on all VPP DUTs
312 | | When Initialize IPv4 forwarding in 3-node circular topology
313 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
314 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
315 | | ... | ${binary_max} | ${traffic_profile}
316 | | ... | ${min_rate} | ${max_rate} | ${threshold}
317 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
318
319 | tc11-9000B-2t2c-ethip4-ip4base-ipolicemarkbase-ndrdisc
320 | | [Documentation]
321 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
322 | | ... | phy cores, 1 receive queue per NIC port. [Ver] Find NDR for 9000 \
323 | | ... | Byte frames using binary search start at 10GE linerate, step \
324 | | ... | 5kpps.
325 | | [Tags] | 9000B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
326 | | ${framesize}= | Set Variable | ${9000}
327 | | ${min_rate}= | Set Variable | ${10000}
328 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
329 | | ${binary_min}= | Set Variable | ${min_rate}
330 | | ${binary_max}= | Set Variable | ${max_rate}
331 | | ${threshold}= | Set Variable | ${min_rate}
332 | | Set Test Variable | ${cb} | ${framesize}
333 | | Set Test Variable | ${eb} | ${framesize}
334 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
335 | | And Add PCI devices to DUTs in 3-node single link topology
336 | | And Apply startup configuration on all VPP DUTs
337 | | When Initialize IPv4 forwarding in 3-node circular topology
338 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
339 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
340 | | ... | ${binary_max} | ${traffic_profile}
341 | | ... | ${min_rate} | ${max_rate} | ${threshold}
342
343 | tc12-9000B-2t2c-ethip4-ip4base-ipolicemarkbase-pdrdisc
344 | | [Documentation]
345 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
346 | | ... | phy cores, 1 receive queue per NIC port. [Ver] Find PDR for 9000 \
347 | | ... | Byte frames using binary search start at 10GE linerate, step 5kpps, \
348 | | ... | LT=0.5%.
349 | | [Tags] | 9000B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
350 | | ${framesize}= | Set Variable | ${9000}
351 | | ${min_rate}= | Set Variable | ${10000}
352 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
353 | | ${binary_min}= | Set Variable | ${min_rate}
354 | | ${binary_max}= | Set Variable | ${max_rate}
355 | | ${threshold}= | Set Variable | ${min_rate}
356 | | Set Test Variable | ${cb} | ${framesize}
357 | | Set Test Variable | ${eb} | ${framesize}
358 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
359 | | And Add PCI devices to DUTs in 3-node single link topology
360 | | And Apply startup configuration on all VPP DUTs
361 | | When Initialize IPv4 forwarding in 3-node circular topology
362 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
363 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
364 | | ... | ${binary_max} | ${traffic_profile}
365 | | ... | ${min_rate} | ${max_rate} | ${threshold}
366 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
367
368 | tc13-64B-4t4c-ethip4-ip4base-ipolicemarkbase-ndrdisc
369 | | [Documentation]
370 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 threads, 4 \
371 | | ... | phy cores, 2 receive queue per NIC port. [Ver] Find NDR for 64 \
372 | | ... | Byte frames using binary search start at 10GE linerate, step \
373 | | ... | 100kpps.
374 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
375 | | ${framesize}= | Set Variable | ${64}
376 | | ${min_rate}= | Set Variable | ${100000}
377 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
378 | | ${binary_min}= | Set Variable | ${min_rate}
379 | | ${binary_max}= | Set Variable | ${max_rate}
380 | | ${threshold}= | Set Variable | ${min_rate}
381 | | Set Test Variable | ${cb} | ${framesize}
382 | | Set Test Variable | ${eb} | ${framesize}
383 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
384 | | And Add PCI devices to DUTs in 3-node single link topology
385 | | And Add no multi seg to all DUTs
386 | | And Apply startup configuration on all VPP DUTs
387 | | When Initialize IPv4 forwarding in 3-node circular topology
388 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
389 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
390 | | ... | ${binary_max} | ${traffic_profile}
391 | | ... | ${min_rate} | ${max_rate} | ${threshold}
392
393 | tc14-64B-4t4c-ethip4-ip4base-ipolicemarkbase-pdrdisc
394 | | [Documentation]
395 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 threads, 4 \
396 | | ... | phy cores, 2 receive queue per NIC port. [Ver] Find PDR for 64 \
397 | | ... | Byte frames using binary search start at 10GE linerate, step \
398 | | ... | 100kpps, LT=0.5%.
399 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
400 | | ${framesize}= | Set Variable | ${64}
401 | | ${min_rate}= | Set Variable | ${100000}
402 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
403 | | ${binary_min}= | Set Variable | ${min_rate}
404 | | ${binary_max}= | Set Variable | ${max_rate}
405 | | ${threshold}= | Set Variable | ${min_rate}
406 | | Set Test Variable | ${cb} | ${framesize}
407 | | Set Test Variable | ${eb} | ${framesize}
408 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
409 | | And Add PCI devices to DUTs in 3-node single link topology
410 | | And Add no multi seg to all DUTs
411 | | And Apply startup configuration on all VPP DUTs
412 | | When Initialize IPv4 forwarding in 3-node circular topology
413 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
414 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
415 | | ... | ${binary_max} | ${traffic_profile}
416 | | ... | ${min_rate} | ${max_rate} | ${threshold}
417 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
418
419 | tc15-1518B-4t4c-ethip4-ip4base-ipolicemarkbase-ndrdisc
420 | | [Documentation]
421 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 threads, 4 \
422 | | ... | phy cores, 2 receive queue per NIC port. [Ver] Find NDR for 1518 \
423 | | ... | Byte frames using binary search start at 10GE linerate, step \
424 | | ... | 10kpps.
425 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
426 | | ${framesize}= | Set Variable | ${1518}
427 | | ${min_rate}= | Set Variable | ${10000}
428 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
429 | | ${binary_min}= | Set Variable | ${min_rate}
430 | | ${binary_max}= | Set Variable | ${max_rate}
431 | | ${threshold}= | Set Variable | ${min_rate}
432 | | Set Test Variable | ${cb} | ${framesize}
433 | | Set Test Variable | ${eb} | ${framesize}
434 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
435 | | And Add PCI devices to DUTs in 3-node single link topology
436 | | And Add no multi seg to all DUTs
437 | | And Apply startup configuration on all VPP DUTs
438 | | When Initialize IPv4 forwarding in 3-node circular topology
439 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
440 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
441 | | ... | ${binary_max} | ${traffic_profile}
442 | | ... | ${min_rate} | ${max_rate} | ${threshold}
443
444 | tc16-1518B-4t4c-ethip4-ip4base-ipolicemarkbase-pdrdisc
445 | | [Documentation]
446 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 threads, 4 \
447 | | ... | phy cores, 2 receive queue per NIC port. [Ver] Find PDR for 1518 \
448 | | ... | Byte frames using binary search start at 10GE linerate, step \
449 | | ... | 10kpps, LT=0.5%.
450 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
451 | | ${framesize}= | Set Variable | ${1518}
452 | | ${min_rate}= | Set Variable | ${10000}
453 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
454 | | ${binary_min}= | Set Variable | ${min_rate}
455 | | ${binary_max}= | Set Variable | ${max_rate}
456 | | ${threshold}= | Set Variable | ${min_rate}
457 | | Set Test Variable | ${cb} | ${framesize}
458 | | Set Test Variable | ${eb} | ${framesize}
459 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
460 | | And Add PCI devices to DUTs in 3-node single link topology
461 | | And Add no multi seg to all DUTs
462 | | And Apply startup configuration on all VPP DUTs
463 | | When Initialize IPv4 forwarding in 3-node circular topology
464 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
465 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
466 | | ... | ${binary_max} | ${traffic_profile}
467 | | ... | ${min_rate} | ${max_rate} | ${threshold}
468 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
469
470 | tc17-9000B-4t4c-ethip4-ip4base-ipolicemarkbase-ndrdisc
471 | | [Documentation]
472 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 threads, 4 \
473 | | ... | phy cores, 2 receive queue per NIC port. [Ver] Find NDR for 9000 \
474 | | ... | Byte frames using binary search start at 10GE linerate, step \
475 | | ... | 5kpps.
476 | | [Tags] | 9000B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
477 | | ${framesize}= | Set Variable | ${9000}
478 | | ${min_rate}= | Set Variable | ${10000}
479 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
480 | | ${binary_min}= | Set Variable | ${min_rate}
481 | | ${binary_max}= | Set Variable | ${max_rate}
482 | | ${threshold}= | Set Variable | ${min_rate}
483 | | Set Test Variable | ${cb} | ${framesize}
484 | | Set Test Variable | ${eb} | ${framesize}
485 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
486 | | And Add PCI devices to DUTs in 3-node single link topology
487 | | And Apply startup configuration on all VPP DUTs
488 | | When Initialize IPv4 forwarding in 3-node circular topology
489 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
490 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
491 | | ... | ${binary_max} | ${traffic_profile}
492 | | ... | ${min_rate} | ${max_rate} | ${threshold}
493
494 | tc18-9000B-4t4c-ethip4-ip4base-ipolicemarkbase-pdrdisc
495 | | [Documentation]
496 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 threads, 4 \
497 | | ... | phy cores, 2 receive queue per NIC port. [Ver] Find PDR for 9000 \
498 | | ... | Byte frames using binary search start at 10GE linerate, step 5kpps, \
499 | | ... | LT=0.5%.
500 | | [Tags] | 9000B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
501 | | ${framesize}= | Set Variable | ${9000}
502 | | ${min_rate}= | Set Variable | ${10000}
503 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
504 | | ${binary_min}= | Set Variable | ${min_rate}
505 | | ${binary_max}= | Set Variable | ${max_rate}
506 | | ${threshold}= | Set Variable | ${min_rate}
507 | | Set Test Variable | ${cb} | ${framesize}
508 | | Set Test Variable | ${eb} | ${framesize}
509 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
510 | | And Add PCI devices to DUTs in 3-node single link topology
511 | | And Apply startup configuration on all VPP DUTs
512 | | When Initialize IPv4 forwarding in 3-node circular topology
513 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
514 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
515 | | ... | ${binary_max} | ${traffic_profile}
516 | | ... | ${min_rate} | ${max_rate} | ${threshold}
517 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}