CSIT-604: Bootstrap file for vpp-csit-verify-master-centos7-nightly
[csit.git] / tests / vpp / perf / ip4 / 10ge2p1x520-ethip4-ip4base-iacldstbase-ndrchk.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.Classify.Classify
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 | NDRCHK
23 | ... | NIC_Intel-X520-DA2 | ETH | IP4FWD | FEATURE | IACLDST
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 ndrchk test
31 | ...
32 | Documentation | *Reference NDR throughput IPv4 whitelist verify test cases*
33 | ...
34 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
35 | ... | with single links between nodes.
36 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for IPv4 routing.
37 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
38 | ... | routing, two static IPv4 /24 routes and IPv4 iAcl security whitelist
39 | ... | ingress /24 filter entries applied on links TG - DUT1 and DUT2 - TG.
40 | ... | DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
41 | ... | *[Ver] TG verification:* In short performance tests, TG verifies
42 | ... | DUTs' throughput at ref-NDR (reference Non Drop Rate) with zero packet
43 | ... | loss tolerance. Ref-NDR value is periodically updated acording to
44 | ... | formula: ref-NDR = 0.9x NDR, where NDR is found in RFC2544 long
45 | ... | performance tests for the same DUT configuration. Test packets are
46 | ... | generated by TG on links to DUTs. TG traffic profile contains two L3
47 | ... | flow-groups (flow-group per direction, 253 flows per flow-group) with
48 | ... | all packets containing Ethernet header, IPv4 header with IP protocol=61
49 | ... | and static payload. MAC addresses are matching MAC addresses of the
50 | ... | TG node interfaces.
51 | ... | *[Ref] Applicable standard specifications:* RFC2544.
52
53 *** Variables ***
54 # Traffic profile:
55 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src253
56
57 *** Test Cases ***
58 | tc01-64B-1t1c-ethip4-ip4base-iacldstbase-ndrchk
59 | | [Documentation]
60 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
61 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
62 | | ... | ref-NDR for 64 Byte frames using single trial throughput test
63 | | ... | at 2x 3.6mpps.
64 | | [Tags] | 64B | 1T1C | STHREAD
65 | | ${framesize}= | Set Variable | ${64}
66 | | ${rate}= | Set Variable | 3.6mpps
67 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
68 | | And Add PCI devices to DUTs in 3-node single link topology
69 | | And Add no multi seg to all DUTs
70 | | And Apply startup configuration on all VPP DUTs
71 | | When Initialize IPv4 forwarding in 3-node circular topology
72 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
73 | | ... | ${dut1} | ip4 | dst
74 | | And Vpp Configures Classify Session L3
75 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
76 | | ... | ip4 | dst | 20.20.20.2
77 | | And Vpp Enable Input Acl Interface
78 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
79 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
80 | | ... | ${dut2} | ip4 | dst
81 | | And Vpp Configures Classify Session L3
82 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
83 | | ... | ip4 | dst | 10.10.10.2
84 | | And Vpp Enable Input Acl Interface
85 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
86 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
87 | | ... | ${framesize} | ${traffic_profile}
88
89 | tc02-1518B-1t1c-ethip4-ip4base-iacldstbase-ndrchk
90 | | [Documentation]
91 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
92 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
93 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
94 | | ... | at 2x 812743pps.
95 | | [Tags] | 1518B | 1T1C | STHREAD
96 | | ${framesize}= | Set Variable | ${1518}
97 | | ${rate}= | Set Variable | 812743pps
98 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
99 | | And Add PCI devices to DUTs in 3-node single link topology
100 | | And Add no multi seg to all DUTs
101 | | And Apply startup configuration on all VPP DUTs
102 | | When Initialize IPv4 forwarding in 3-node circular topology
103 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
104 | | ... | ${dut1} | ip4 | dst
105 | | And Vpp Configures Classify Session L3
106 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
107 | | ... | ip4 | dst | 20.20.20.2
108 | | And Vpp Enable Input Acl Interface
109 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
110 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
111 | | ... | ${dut2} | ip4 | dst
112 | | And Vpp Configures Classify Session L3
113 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
114 | | ... | ip4 | dst | 10.10.10.2
115 | | And Vpp Enable Input Acl Interface
116 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
117 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
118 | | ... | ${framesize} | ${traffic_profile}
119
120 | tc03-9000B-1t1c-ethip4-ip4base-iacldstbase-ndrchk
121 | | [Documentation]
122 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
123 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
124 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
125 | | ... | at 2x 138580pps.
126 | | [Tags] | 9000B | 1T1C | STHREAD
127 | | ${framesize}= | Set Variable | ${9000}
128 | | ${rate}= | Set Variable | 138580pps
129 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
130 | | And Add PCI devices to DUTs in 3-node single link topology
131 | | And Apply startup configuration on all VPP DUTs
132 | | When Initialize IPv4 forwarding in 3-node circular topology
133 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
134 | | ... | ${dut1} | ip4 | dst
135 | | And Vpp Configures Classify Session L3
136 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
137 | | ... | ip4 | dst | 20.20.20.2
138 | | And Vpp Enable Input Acl Interface
139 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
140 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
141 | | ... | ${dut2} | ip4 | dst
142 | | And Vpp Configures Classify Session L3
143 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
144 | | ... | ip4 | dst | 10.10.10.2
145 | | And Vpp Enable Input Acl Interface
146 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
147 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
148 | | ... | ${framesize} | ${traffic_profile}
149
150 | tc04-64B-2t2c-ethip4-ip4base-iacldstbase-ndrchk
151 | | [Documentation]
152 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
153 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
154 | | ... | ref-NDR for 64 Byte frames using single trial throughput test
155 | | ... | at 2x 6.3mpps.
156 | | [Tags] | 64B | 2T2C | MTHREAD
157 | | ${framesize}= | Set Variable | ${64}
158 | | ${rate}= | Set Variable | 6.3mpps
159 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
160 | | And Add PCI devices to DUTs in 3-node single link topology
161 | | And Add no multi seg to all DUTs
162 | | And Apply startup configuration on all VPP DUTs
163 | | When Initialize IPv4 forwarding in 3-node circular topology
164 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
165 | | ... | ${dut1} | ip4 | dst
166 | | And Vpp Configures Classify Session L3
167 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
168 | | ... | ip4 | dst | 20.20.20.2
169 | | And Vpp Enable Input Acl Interface
170 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
171 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
172 | | ... | ${dut2} | ip4 | dst
173 | | And Vpp Configures Classify Session L3
174 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
175 | | ... | ip4 | dst | 10.10.10.2
176 | | And Vpp Enable Input Acl Interface
177 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
178 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
179 | | ... | ${framesize} | ${traffic_profile}
180
181 | tc05-1518B-2t2c-ethip4-ip4base-iacldstbase-ndrchk
182 | | [Documentation]
183 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
184 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
185 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
186 | | ... | at 2x 812743pps.
187 | | [Tags] | 1518B | 2T2C | MTHREAD
188 | | ${framesize}= | Set Variable | ${1518}
189 | | ${rate}= | Set Variable | 812743pps
190 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
191 | | And Add PCI devices to DUTs in 3-node single link topology
192 | | And Add no multi seg to all DUTs
193 | | And Apply startup configuration on all VPP DUTs
194 | | When Initialize IPv4 forwarding in 3-node circular topology
195 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
196 | | ... | ${dut1} | ip4 | dst
197 | | And Vpp Configures Classify Session L3
198 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
199 | | ... | ip4 | dst | 20.20.20.2
200 | | And Vpp Enable Input Acl Interface
201 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
202 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
203 | | ... | ${dut2} | ip4 | dst
204 | | And Vpp Configures Classify Session L3
205 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
206 | | ... | ip4 | dst | 10.10.10.2
207 | | And Vpp Enable Input Acl Interface
208 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
209 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
210 | | ... | ${framesize} | ${traffic_profile}
211
212 | tc06-9000B-2t2c-ethip4-ip4base-iacldstbase-ndrchk
213 | | [Documentation]
214 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
215 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
216 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
217 | | ... | at 2x 138580pps.
218 | | [Tags] | 9000B | 2T2C | MTHREAD
219 | | ${framesize}= | Set Variable | ${9000}
220 | | ${rate}= | Set Variable | 138580pps
221 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
222 | | And Add PCI devices to DUTs in 3-node single link topology
223 | | And Apply startup configuration on all VPP DUTs
224 | | When Initialize IPv4 forwarding in 3-node circular topology
225 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
226 | | ... | ${dut1} | ip4 | dst
227 | | And Vpp Configures Classify Session L3
228 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
229 | | ... | ip4 | dst | 20.20.20.2
230 | | And Vpp Enable Input Acl Interface
231 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
232 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
233 | | ... | ${dut2} | ip4 | dst
234 | | And Vpp Configures Classify Session L3
235 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
236 | | ... | ip4 | dst | 10.10.10.2
237 | | And Vpp Enable Input Acl Interface
238 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
239 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
240 | | ... | ${framesize} | ${traffic_profile}
241
242 | tc07-64B-4t4c-ethip4-ip4base-iacldstbase-ndrchk
243 | | [Documentation]
244 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
245 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
246 | | ... | ref-NDR for 64 Byte frames using single trial throughput test
247 | | ... | at 2x 9.7mpps.
248 | | [Tags] | 64B | 4T4C | MTHREAD
249 | | ${framesize}= | Set Variable | ${64}
250 | | ${rate}= | Set Variable | 9.7mpps
251 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
252 | | And Add PCI devices to DUTs in 3-node single link topology
253 | | And Add no multi seg to all DUTs
254 | | And Apply startup configuration on all VPP DUTs
255 | | And Initialize IPv4 forwarding in 3-node circular topology
256 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
257 | | ... | ${dut1} | ip4 | dst
258 | | And Vpp Configures Classify Session L3
259 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
260 | | ... | ip4 | dst | 20.20.20.2
261 | | And Vpp Enable Input Acl Interface
262 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
263 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
264 | | ... | ${dut2} | ip4 | dst
265 | | And Vpp Configures Classify Session L3
266 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
267 | | ... | ip4 | dst | 10.10.10.2
268 | | And Vpp Enable Input Acl Interface
269 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
270 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
271 | | ... | ${framesize} | ${traffic_profile}
272
273 | tc08-1518B-4t4c-ethip4-ip4base-iacldstbase-ndrchk
274 | | [Documentation]
275 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
276 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
277 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
278 | | ... | at 2x 812743pps.
279 | | [Tags] | 1518B | 4T4C | MTHREAD
280 | | ${framesize}= | Set Variable | ${1518}
281 | | ${rate}= | Set Variable | 812743pps
282 | | Given Add '4' worker threads and '2' 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 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
288 | | ... | ${dut1} | ip4 | dst
289 | | And Vpp Configures Classify Session L3
290 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
291 | | ... | ip4 | dst | 20.20.20.2
292 | | And Vpp Enable Input Acl Interface
293 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
294 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
295 | | ... | ${dut2} | ip4 | dst
296 | | And Vpp Configures Classify Session L3
297 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
298 | | ... | ip4 | dst | 10.10.10.2
299 | | And Vpp Enable Input Acl Interface
300 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
301 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
302 | | ... | ${framesize} | ${traffic_profile}
303
304 | tc09-9000B-4t4c-ethip4-ip4base-iacldstbase-ndrchk
305 | | [Documentation]
306 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
307 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
308 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
309 | | ... | at 2x 138580pps.
310 | | [Tags] | 9000B | 4T4C | MTHREAD
311 | | ${framesize}= | Set Variable | ${9000}
312 | | ${rate}= | Set Variable | 138580pps
313 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
314 | | And Add PCI devices to DUTs in 3-node single link topology
315 | | And Apply startup configuration on all VPP DUTs
316 | | When Initialize IPv4 forwarding in 3-node circular topology
317 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
318 | | ... | ${dut1} | ip4 | dst
319 | | And Vpp Configures Classify Session L3
320 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
321 | | ... | ip4 | dst | 20.20.20.2
322 | | And Vpp Enable Input Acl Interface
323 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
324 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
325 | | ... | ${dut2} | ip4 | dst
326 | | And Vpp Configures Classify Session L3
327 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
328 | | ... | ip4 | dst | 10.10.10.2
329 | | And Vpp Enable Input Acl Interface
330 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
331 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
332 | | ... | ${framesize} | ${traffic_profile}