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