7f72008ab3a9019254134ec4fce413fb60ec6f96
[csit.git] / tests / vpp / perf / ip4 / 10ge2p1x520-ethip4-ip4base-copwhtlistbase-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.Cop
17 | ...
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
19 | ... | NIC_Intel-X520-DA2 | ETH | IP4FWD | FEATURE | COPWHLIST
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 whitelist 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, two static IPv4 /24 routes and IPv4 COP security whitelist
37 | ... | ingress /24 filter entries applied on links TG - DUT1 and DUT2 - TG.
38 | ... | 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 static
49 | ... | payload. MAC addresses are matching MAC addresses of the TG node
50 | ... | interfaces.
51 | ... | *[Ref] Applicable standard specifications:* RFC2544.
52
53 *** Variables ***
54 # X520-DA2 bandwidth limit
55 | ${s_limit} | ${10000000000}
56 # Traffic profile:
57 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src253
58
59 *** Keywords ***
60 | Discover NDR or PDR for ethip4-ip4base-copwhtlistbase
61 | | [Documentation]
62 | | ... | [Cfg] DUT runs IPv4 routing config with ${wt} thread(s), ${wt}\
63 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
64 | | ... | [Ver] Find NDR or PDR for ${framesize} frames using binary search\
65 | | ... | start at 10GE linerate.
66 | | ...
67 | | [Arguments] | ${wt} | ${rxq} | ${framesize} | ${min_rate} | ${search_type}
68 | | ...
69 | | Set Test Variable | ${framesize}
70 | | Set Test Variable | ${min_rate}
71 | | ${get_framesize}= | Get Frame Size | ${framesize}
72 | | ${max_rate}= | Calculate pps | ${s_limit} | ${get_framesize}
73 | | ${binary_min}= | Set Variable | ${min_rate}
74 | | ${binary_max}= | Set Variable | ${max_rate}
75 | | ${threshold}= | Set Variable | ${min_rate}
76 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
77 | | And Add PCI devices to DUTs in 3-node single link topology
78 | | And Run Keyword If | ${get_framesize} < ${1522}
79 | | ... | Add no multi seg to all DUTs
80 | | And Apply startup configuration on all VPP DUTs
81 | | When Initialize IPv4 forwarding in 3-node circular topology
82 | | And Add Fib Table | ${dut1} | 1
83 | | And Vpp Route Add | ${dut1} | 10.10.10.0 | 24 | vrf=1 | local=${TRUE}
84 | | And Add Fib Table | ${dut2} | 1
85 | | And Vpp Route Add | ${dut2} | 20.20.20.0 | 24 | vrf=1 | local=${TRUE}
86 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
87 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
88 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
89 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
90 | | Then Run Keyword If | '${search_type}' == 'NDR'
91 | | ... | Find NDR using binary search and pps
92 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
93 | | ... | ${min_rate} | ${max_rate} | ${threshold}
94 | | ... | ELSE IF | '${search_type}' == 'PDR'
95 | | ... | Find PDR using binary search and pps
96 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
97 | | ... | ${min_rate} | ${max_rate} | ${threshold}
98 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
99
100 *** Test Cases ***
101 | tc01-64B-1t1c-ethip4-ip4base-copwhtlistbase-ndrdisc
102 | | [Documentation]
103 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
104 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR
105 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
106 | | ... | step 50kpps.
107 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
108 | | ...
109 | | [Template] | Discover NDR or PDR for ethip4-ip4base-copwhtlistbase
110 | | wt=1 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=NDR
111
112 | tc02-64B-1t1c-ethip4-ip4base-copwhtlistbase-pdrdisc
113 | | [Documentation]
114 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
115 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR
116 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
117 | | ... | step 50kpps, LT=0.5%.
118 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
119 | | ...
120 | | [Template] | Discover NDR or PDR for ethip4-ip4base-copwhtlistbase
121 | | wt=1 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=PDR
122
123 | tc03-1518B-1t1c-ethip4-ip4base-copwhtlistbase-ndrdisc
124 | | [Documentation]
125 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
126 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR
127 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
128 | | ... | step 50kpps.
129 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
130 | | ...
131 | | [Template] | Discover NDR or PDR for ethip4-ip4base-copwhtlistbase
132 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=NDR
133
134 | tc04-1518B-1t1c-ethip4-ip4base-copwhtlistbase-pdrdisc
135 | | [Documentation]
136 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
137 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR
138 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
139 | | ... | step 50kpps, LT=0.5%.
140 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
141 | | ...
142 | | [Template] | Discover NDR or PDR for ethip4-ip4base-copwhtlistbase
143 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=PDR
144
145 | tc05-9000B-1t1c-ethip4-ip4base-copwhtlistbase-ndrdisc
146 | | [Documentation]
147 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
148 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find NDR
149 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
150 | | ... | step 10kpps.
151 | | [Tags] | 9000B | 1T1C | STHREAD | NDRDISC
152 | | ...
153 | | [Template] | Discover NDR or PDR for ethip4-ip4base-copwhtlistbase
154 | | wt=1 | rxq=1 | framesize=${9000} | min_rate=${10000} | search_type=NDR
155
156 | tc06-9000B-1t1c-ethip4-ip4base-copwhtlistbase-pdrdisc
157 | | [Documentation]
158 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
159 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Find PDR
160 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
161 | | ... | step 10kpps, LT=0.5%.
162 | | [Tags] | 9000B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
163 | | ...
164 | | [Template] | Discover NDR or PDR for ethip4-ip4base-copwhtlistbase
165 | | wt=1 | rxq=1 | framesize=${9000} | min_rate=${10000} | search_type=PDR
166
167 | tc07-64B-2t2c-ethip4-ip4base-copwhtlistbase-ndrdisc
168 | | [Documentation]
169 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
170 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR
171 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
172 | | ... | step 50kpps.
173 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
174 | | ...
175 | | [Template] | Discover NDR or PDR for ethip4-ip4base-copwhtlistbase
176 | | wt=2 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=NDR
177
178 | tc08-64B-2t2c-ethip4-ip4base-copwhtlistbase-pdrdisc
179 | | [Documentation]
180 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
181 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR
182 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
183 | | ... | step 50kpps, LT=0.5%.
184 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
185 | | ...
186 | | [Template] | Discover NDR or PDR for ethip4-ip4base-copwhtlistbase
187 | | wt=2 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=PDR
188
189 | tc09-1518B-2t2c-ethip4-ip4base-copwhtlistbase-ndrdisc
190 | | [Documentation]
191 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
192 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR
193 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
194 | | ... | step 50kpps.
195 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
196 | | ...
197 | | [Template] | Discover NDR or PDR for ethip4-ip4base-copwhtlistbase
198 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=NDR
199
200 | tc10-1518B-2t2c-ethip4-ip4base-copwhtlistbase-pdrdisc
201 | | [Documentation]
202 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
203 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR
204 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
205 | | ... | step 50kpps, LT=0.5%.
206 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
207 | | ...
208 | | [Template] | Discover NDR or PDR for ethip4-ip4base-copwhtlistbase
209 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=PDR
210
211 | tc11-9000B-2t2c-ethip4-ip4base-copwhtlistbase-ndrdisc
212 | | [Documentation]
213 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
214 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find NDR
215 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
216 | | ... | step 10kpps.
217 | | [Tags] | 9000B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
218 | | ...
219 | | [Template] | Discover NDR or PDR for ethip4-ip4base-copwhtlistbase
220 | | wt=2 | rxq=1 | framesize=${9000} | min_rate=${10000} | search_type=NDR
221
222 | tc12-9000B-2t2c-ethip4-ip4base-copwhtlistbase-pdrdisc
223 | | [Documentation]
224 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
225 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Find PDR
226 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
227 | | ... | step 10kpps, LT=0.5%.
228 | | [Tags] | 9000B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
229 | | ...
230 | | [Template] | Discover NDR or PDR for ethip4-ip4base-copwhtlistbase
231 | | wt=2 | rxq=1 | framesize=${9000} | min_rate=${10000} | search_type=PDR
232
233 | tc13-64B-4t4c-ethip4-ip4base-copwhtlistbase-ndrdisc
234 | | [Documentation]
235 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
236 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find NDR
237 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
238 | | ... | step 50kpps.
239 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
240 | | ...
241 | | [Template] | Discover NDR or PDR for ethip4-ip4base-copwhtlistbase
242 | | wt=4 | rxq=2 | framesize=${64} | min_rate=${50000} | search_type=NDR
243
244 | tc14-64B-4t4c-ethip4-ip4base-copwhtlistbase-pdrdisc
245 | | [Documentation]
246 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
247 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find PDR
248 | | ... | for 64 Byte frames using binary search start at 10GE linerate,
249 | | ... | step 50kpps, LT=0.5%.
250 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
251 | | ...
252 | | [Template] | Discover NDR or PDR for ethip4-ip4base-copwhtlistbase
253 | | wt=4 | rxq=2 | framesize=${64} | min_rate=${50000} | search_type=PDR
254
255 | tc15-1518B-4t4c-ethip4-ip4base-copwhtlistbase-ndrdisc
256 | | [Documentation]
257 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
258 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find NDR
259 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
260 | | ... | step 50kpps.
261 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
262 | | ...
263 | | [Template] | Discover NDR or PDR for ethip4-ip4base-copwhtlistbase
264 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${50000} | search_type=NDR
265
266 | tc16-1518B-4t4c-ethip4-ip4base-copwhtlistbase-pdrdisc
267 | | [Documentation]
268 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
269 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find PDR
270 | | ... | for 1518 Byte frames using binary search start at 10GE linerate,
271 | | ... | step 50kpps, LT=0.5%.
272 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
273 | | ...
274 | | [Template] | Discover NDR or PDR for ethip4-ip4base-copwhtlistbase
275 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${50000} | search_type=PDR
276
277 | tc17-9000B-4t4c-ethip4-ip4base-copwhtlistbase-ndrdisc
278 | | [Documentation]
279 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
280 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find NDR
281 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
282 | | ... | step 10kpps.
283 | | [Tags] | 9000B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
284 | | ...
285 | | [Template] | Discover NDR or PDR for ethip4-ip4base-copwhtlistbase
286 | | wt=4 | rxq=2 | framesize=${9000} | min_rate=${10000} | search_type=NDR
287
288 | tc18-9000B-4t4c-ethip4-ip4base-copwhtlistbase-pdrdisc
289 | | [Documentation]
290 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
291 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Find PDR
292 | | ... | for 9000 Byte frames using binary search start at 10GE linerate,
293 | | ... | step 10kpps, LT=0.5%.
294 | | [Tags] | 9000B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
295 | | ...
296 | | [Template] | Discover NDR or PDR for ethip4-ip4base-copwhtlistbase
297 | | wt=4 | rxq=2 | framesize=${9000} | min_rate=${10000} | search_type=PDR