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