ea4a0871d1a2976bef595b8975d932b57eb460c3
[csit.git] / tests / suites / performance / Short_IPv4_iAcl_Intel-X520-DA2.robot
1 # Copyright (c) 2016 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.Classify.Classify
17 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT1']} | WITH NAME | dut1_v4
18 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT2']} | WITH NAME | dut2_v4
19 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PERFTEST_SHORT
20 | ...        | NIC_Intel-X520-DA2
21 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
22 | ... | L3 | Intel-X520-DA2
23 | Suite Teardown | 3-node Performance Suite Teardown
24 | Test Setup | Setup all DUTs before test
25 | Test Teardown | Run Keywords | Remove startup configuration of VPP from all DUTs
26 | ...           | AND          | Show vpp trace dump on all DUTs
27 | Documentation | *Reference NDR throughput IPv4 whitelist verify test cases*
28 | ...
29 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
30 | ... | with single links between nodes.
31 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for IPv4 routing.
32 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
33 | ... | routing, two static IPv4 /24 routes and IPv4 iAcl security whitelist
34 | ... | ingress /24 filter entries applied on links TG - DUT1 and DUT2 - TG.
35 | ... | DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
36 | ... | *[Ver] TG verification:* In short performance tests, TG verifies
37 | ... | DUTs' throughput at ref-NDR (reference Non Drop Rate) with zero packet
38 | ... | loss tolerance. Ref-NDR value is periodically updated acording to
39 | ... | formula: ref-NDR = 0.9x NDR, where NDR is found in RFC2544 long
40 | ... | performance tests for the same DUT configuration. Test packets are
41 | ... | generated by TG on links to DUTs. TG traffic profile contains two L3
42 | ... | flow-groups (flow-group per direction, 253 flows per flow-group) with
43 | ... | all packets containing Ethernet header, IPv4 header with IP protocol=61
44 | ... | and generated payload. MAC addresses are matching MAC addresses of the
45 | ... | TG node interfaces.
46 | ... | *[Ref] Applicable standard specifications:* RFC2544.
47
48 *** Test Cases ***
49 | TC01: Verify 64B ref-NDR at 2x 3.1Mpps - DUT IPv4 iAcl whitelist - 1thread 1core 1rxq
50 | | [Documentation]
51 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
52 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
53 | | ... | ref-NDR for 64 Byte frames using single trial throughput test.
54 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
55 | | ${framesize}= | Set Variable | 64
56 | | ${duration}= | Set Variable | 10
57 | | ${rate}= | Set Variable | 3.1mpps
58 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
59 | | And   Add all PCI devices to all DUTs
60 | | And   Add No Multi Seg to all DUTs
61 | | And   Apply startup configuration on all VPP DUTs
62 | | When  IPv4 forwarding initialized in a 3-node circular topology
63 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
64 | | ... | ${dut1} | ip4 | dst
65 | | And Vpp Configures Classify Session L3
66 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
67 | | ... | ip4 | dst | 20.20.20.2
68 | | And Vpp Enable Input Acl Interface
69 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
70 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
71 | | ... | ${dut2} | ip4 | dst
72 | | And Vpp Configures Classify Session L3
73 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
74 | | ... | ip4 | dst | 10.10.10.2
75 | | And Vpp Enable Input Acl Interface
76 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
77 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
78 | | ...                                    | ${framesize} | 3-node-IPv4
79
80 | TC02: Verify 1518B ref-NDR at 2x 812.74kpps - DUT IPv4 iAcl whitelist - 1thread 1core 1rxq
81 | | [Documentation]
82 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
83 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
84 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test.
85 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
86 | | ${framesize}= | Set Variable | 1518
87 | | ${duration}= | Set Variable | 10
88 | | ${rate}= | Set Variable | 812743pps
89 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
90 | | And   Add all PCI devices to all DUTs
91 | | And   Add No Multi Seg to all DUTs
92 | | And   Apply startup configuration on all VPP DUTs
93 | | When  IPv4 forwarding initialized in a 3-node circular topology
94 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
95 | | ... | ${dut1} | ip4 | dst
96 | | And Vpp Configures Classify Session L3
97 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
98 | | ... | ip4 | dst | 20.20.20.2
99 | | And Vpp Enable Input Acl Interface
100 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
101 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
102 | | ... | ${dut2} | ip4 | dst
103 | | And Vpp Configures Classify Session L3
104 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
105 | | ... | ip4 | dst | 10.10.10.2
106 | | And Vpp Enable Input Acl Interface
107 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
108 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
109 | | ...                                    | ${framesize} | 3-node-IPv4
110
111 | TC03: Verify 9000B ref-NDR at 2x 138.58kpps - DUT IPv4 iAcl whitelist - 1thread 1core 1rxq
112 | | [Documentation]
113 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
114 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
115 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test.
116 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
117 | | ${framesize}= | Set Variable | 9000
118 | | ${duration}= | Set Variable | 10
119 | | ${rate}= | Set Variable | 138580pps
120 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
121 | | And   Add all PCI devices to all DUTs
122 | | And   Apply startup configuration on all VPP DUTs
123 | | When  IPv4 forwarding initialized in a 3-node circular topology
124 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
125 | | ... | ${dut1} | ip4 | dst
126 | | And Vpp Configures Classify Session L3
127 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
128 | | ... | ip4 | dst | 20.20.20.2
129 | | And Vpp Enable Input Acl Interface
130 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
131 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
132 | | ... | ${dut2} | ip4 | dst
133 | | And Vpp Configures Classify Session L3
134 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
135 | | ... | ip4 | dst | 10.10.10.2
136 | | And Vpp Enable Input Acl Interface
137 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
138 | | Then Traffic should pass with no loss | ${duration} | ${rate}
139 | | ...                                   | ${framesize} | 3-node-IPv4
140
141 | TC04: Verify 64B ref-NDR at 2x 5.8Mpps - DUT IPv4 iAcl whitelist - 2thread 2core 1rxq
142 | | [Documentation]
143 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
144 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
145 | | ... | ref-NDR for 64 Byte frames using single trial throughput test.
146 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
147 | | ${framesize}= | Set Variable | 64
148 | | ${duration}= | Set Variable | 10
149 | | ${rate}= | Set Variable | 5.8mpps
150 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
151 | | And   Add all PCI devices to all DUTs
152 | | And   Add No Multi Seg to all DUTs
153 | | And   Apply startup configuration on all VPP DUTs
154 | | When  IPv4 forwarding initialized in a 3-node circular topology
155 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
156 | | ... | ${dut1} | ip4 | dst
157 | | And Vpp Configures Classify Session L3
158 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
159 | | ... | ip4 | dst | 20.20.20.2
160 | | And Vpp Enable Input Acl Interface
161 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
162 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
163 | | ... | ${dut2} | ip4 | dst
164 | | And Vpp Configures Classify Session L3
165 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
166 | | ... | ip4 | dst | 10.10.10.2
167 | | And Vpp Enable Input Acl Interface
168 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
169 | | Then Traffic should pass with no loss | ${duration} | ${rate}
170 | | ...                                   | ${framesize} | 3-node-IPv4
171
172 | TC05: Verify 1518B ref-NDR at 2x 812.74kpps - DUT IPv4 iAcl whitelist - 2thread 2core 1rxq
173 | | [Documentation]
174 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
175 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
176 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test.
177 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
178 | | ${framesize}= | Set Variable | 1518
179 | | ${duration}= | Set Variable | 10
180 | | ${rate}= | Set Variable | 812743pps
181 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
182 | | And   Add all PCI devices to all DUTs
183 | | And   Add No Multi Seg to all DUTs
184 | | And   Apply startup configuration on all VPP DUTs
185 | | When  IPv4 forwarding initialized in a 3-node circular topology
186 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
187 | | ... | ${dut1} | ip4 | dst
188 | | And Vpp Configures Classify Session L3
189 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
190 | | ... | ip4 | dst | 20.20.20.2
191 | | And Vpp Enable Input Acl Interface
192 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
193 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
194 | | ... | ${dut2} | ip4 | dst
195 | | And Vpp Configures Classify Session L3
196 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
197 | | ... | ip4 | dst | 10.10.10.2
198 | | And Vpp Enable Input Acl Interface
199 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
200 | | Then Traffic should pass with no loss | ${duration} | ${rate}
201 | | ...                                   | ${framesize} | 3-node-IPv4
202
203 | TC06: Verify 9000B ref-NDR at 2x 138.58kpps - DUT IPv4 iAcl whitelist - 2thread 2core 1rxq
204 | | [Documentation]
205 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
206 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
207 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test.
208 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
209 | | ${framesize}= | Set Variable | 9000
210 | | ${duration}= | Set Variable | 10
211 | | ${rate}= | Set Variable | 138580pps
212 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
213 | | And   Add all PCI devices to all DUTs
214 | | And   Apply startup configuration on all VPP DUTs
215 | | When  IPv4 forwarding initialized in a 3-node circular topology
216 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
217 | | ... | ${dut1} | ip4 | dst
218 | | And Vpp Configures Classify Session L3
219 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
220 | | ... | ip4 | dst | 20.20.20.2
221 | | And Vpp Enable Input Acl Interface
222 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
223 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
224 | | ... | ${dut2} | ip4 | dst
225 | | And Vpp Configures Classify Session L3
226 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
227 | | ... | ip4 | dst | 10.10.10.2
228 | | And Vpp Enable Input Acl Interface
229 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
230 | | Then Traffic should pass with no loss | ${duration} | ${rate}
231 | | ...                                   | ${framesize} | 3-node-IPv4
232
233 | TC07: Verify 64B ref-NDR at 2x 7.8Mpps - DUT IPv4 iAcl whitelist - 4threads 4cores 2rxq
234 | | [Documentation]
235 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
236 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
237 | | ... | ref-NDR for 64 Byte frames using single trial throughput test.
238 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
239 | | ${framesize}= | Set Variable | 64
240 | | ${duration}= | Set Variable | 10
241 | | ${rate}= | Set Variable | 7.8mpps
242 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
243 | | And   Add all PCI devices to all DUTs
244 | | And   Add No Multi Seg to all DUTs
245 | | And   Apply startup configuration on all VPP DUTs
246 | | And   IPv4 forwarding initialized in a 3-node circular topology
247 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
248 | | ... | ${dut1} | ip4 | dst
249 | | And Vpp Configures Classify Session L3
250 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
251 | | ... | ip4 | dst | 20.20.20.2
252 | | And Vpp Enable Input Acl Interface
253 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
254 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
255 | | ... | ${dut2} | ip4 | dst
256 | | And Vpp Configures Classify Session L3
257 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
258 | | ... | ip4 | dst | 10.10.10.2
259 | | And Vpp Enable Input Acl Interface
260 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
261 | | Then Traffic should pass with no loss | ${duration} | ${rate}
262 | | ...                                   | ${framesize} | 3-node-IPv4
263
264 | TC08: Verify 1518B ref-NDR at 2x 812.74kpps - DUT IPv4 iAcl whitelist - 4threads 4cores 2rxq
265 | | [Documentation]
266 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
267 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
268 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test.
269 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
270 | | ${framesize}= | Set Variable | 1518
271 | | ${duration}= | Set Variable | 10
272 | | ${rate}= | Set Variable | 812743pps
273 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
274 | | And   Add all PCI devices to all DUTs
275 | | And   Add No Multi Seg to all DUTs
276 | | And   Apply startup configuration on all VPP DUTs
277 | | When  IPv4 forwarding initialized in a 3-node circular topology
278 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
279 | | ... | ${dut1} | ip4 | dst
280 | | And Vpp Configures Classify Session L3
281 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
282 | | ... | ip4 | dst | 20.20.20.2
283 | | And Vpp Enable Input Acl Interface
284 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
285 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
286 | | ... | ${dut2} | ip4 | dst
287 | | And Vpp Configures Classify Session L3
288 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
289 | | ... | ip4 | dst | 10.10.10.2
290 | | And Vpp Enable Input Acl Interface
291 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
292 | | Then Traffic should pass with no loss | ${duration} | ${rate}
293 | | ...                                   | ${framesize} | 3-node-IPv4
294
295 | TC09: Verify 9000B ref-NDR at 2x 138.58kpps - DUT IPv4 iAcl whitelist - 4threads 4cores 2rxq
296 | | [Documentation]
297 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
298 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
299 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test.
300 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
301 | | ${framesize}= | Set Variable | 9000
302 | | ${duration}= | Set Variable | 10
303 | | ${rate}= | Set Variable | 138580pps
304 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
305 | | And   Add all PCI devices to all DUTs
306 | | And   Apply startup configuration on all VPP DUTs
307 | | When  IPv4 forwarding initialized in a 3-node circular topology
308 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
309 | | ... | ${dut1} | ip4 | dst
310 | | And Vpp Configures Classify Session L3
311 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
312 | | ... | ip4 | dst | 20.20.20.2
313 | | And Vpp Enable Input Acl Interface
314 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
315 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
316 | | ... | ${dut2} | ip4 | dst
317 | | And Vpp Configures Classify Session L3
318 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
319 | | ... | ip4 | dst | 10.10.10.2
320 | | And Vpp Enable Input Acl Interface
321 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
322 | | Then Traffic should pass with no loss | ${duration} | ${rate}
323 | | ...                                   | ${framesize} | 3-node-IPv4