Renaming of all perf TCs.
[csit.git] / tests / perf / 10ge2p1x520-ethip4-ip4base-iacldstbase-ndrchk.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 | NDRCHK
20 | ...        | NIC_Intel-X520-DA2 | ETH | IP4FWD | FEATURE | IACLDST
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 static 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-64B-1t1c-ethip4-ip4base-iacldstbase-ndrchk
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 | | ... | at 2x 3.1mpps.
55 | | [Tags] | 1T1C | STHREAD
56 | | ${framesize}= | Set Variable | 64
57 | | ${duration}= | Set Variable | 10
58 | | ${rate}= | Set Variable | 3.1mpps
59 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
60 | | And   Add PCI devices to DUTs from 3-node single link topology
61 | | And   Add No Multi Seg to all DUTs
62 | | And   Apply startup configuration on all VPP DUTs
63 | | When  IPv4 forwarding initialized in a 3-node circular topology
64 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
65 | | ... | ${dut1} | ip4 | dst
66 | | And Vpp Configures Classify Session L3
67 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
68 | | ... | ip4 | dst | 20.20.20.2
69 | | And Vpp Enable Input Acl Interface
70 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
71 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
72 | | ... | ${dut2} | ip4 | dst
73 | | And Vpp Configures Classify Session L3
74 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
75 | | ... | ip4 | dst | 10.10.10.2
76 | | And Vpp Enable Input Acl Interface
77 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
78 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
79 | | ...                                    | ${framesize} | 3-node-IPv4
80
81 | tc02-1518B-1t1c-ethip4-ip4base-iacldstbase-ndrchk
82 | | [Documentation]
83 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
84 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
85 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
86 | | ... | at 2x 812743pps.
87 | | [Tags] | 1T1C | STHREAD
88 | | ${framesize}= | Set Variable | 1518
89 | | ${duration}= | Set Variable | 10
90 | | ${rate}= | Set Variable | 812743pps
91 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
92 | | And   Add PCI devices to DUTs from 3-node single link topology
93 | | And   Add No Multi Seg to all DUTs
94 | | And   Apply startup configuration on all VPP DUTs
95 | | When  IPv4 forwarding initialized in a 3-node circular topology
96 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
97 | | ... | ${dut1} | ip4 | dst
98 | | And Vpp Configures Classify Session L3
99 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
100 | | ... | ip4 | dst | 20.20.20.2
101 | | And Vpp Enable Input Acl Interface
102 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
103 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
104 | | ... | ${dut2} | ip4 | dst
105 | | And Vpp Configures Classify Session L3
106 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
107 | | ... | ip4 | dst | 10.10.10.2
108 | | And Vpp Enable Input Acl Interface
109 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
110 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
111 | | ...                                    | ${framesize} | 3-node-IPv4
112
113 | tc03-9000B-1t1c-ethip4-ip4base-iacldstbase-ndrchk
114 | | [Documentation]
115 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
116 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
117 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
118 | | ... | at 2x 138580pps.
119 | | [Tags] | 1T1C | STHREAD
120 | | ${framesize}= | Set Variable | 9000
121 | | ${duration}= | Set Variable | 10
122 | | ${rate}= | Set Variable | 138580pps
123 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
124 | | And   Add PCI devices to DUTs from 3-node single link topology
125 | | And   Apply startup configuration on all VPP DUTs
126 | | When  IPv4 forwarding initialized in a 3-node circular topology
127 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
128 | | ... | ${dut1} | ip4 | dst
129 | | And Vpp Configures Classify Session L3
130 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
131 | | ... | ip4 | dst | 20.20.20.2
132 | | And Vpp Enable Input Acl Interface
133 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
134 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
135 | | ... | ${dut2} | ip4 | dst
136 | | And Vpp Configures Classify Session L3
137 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
138 | | ... | ip4 | dst | 10.10.10.2
139 | | And Vpp Enable Input Acl Interface
140 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
141 | | Then Traffic should pass with no loss | ${duration} | ${rate}
142 | | ...                                   | ${framesize} | 3-node-IPv4
143
144 | tc04-64B-2t2c-ethip4-ip4base-iacldstbase-ndrchk
145 | | [Documentation]
146 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
147 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
148 | | ... | ref-NDR for 64 Byte frames using single trial throughput test
149 | | ... | at 2x 5.8mpps.
150 | | [Tags] | 2T2C | MTHREAD
151 | | ${framesize}= | Set Variable | 64
152 | | ${duration}= | Set Variable | 10
153 | | ${rate}= | Set Variable | 5.8mpps
154 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
155 | | And   Add PCI devices to DUTs from 3-node single link topology
156 | | And   Add No Multi Seg to all DUTs
157 | | And   Apply startup configuration on all VPP DUTs
158 | | When  IPv4 forwarding initialized in a 3-node circular topology
159 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
160 | | ... | ${dut1} | ip4 | dst
161 | | And Vpp Configures Classify Session L3
162 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
163 | | ... | ip4 | dst | 20.20.20.2
164 | | And Vpp Enable Input Acl Interface
165 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
166 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
167 | | ... | ${dut2} | ip4 | dst
168 | | And Vpp Configures Classify Session L3
169 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
170 | | ... | ip4 | dst | 10.10.10.2
171 | | And Vpp Enable Input Acl Interface
172 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
173 | | Then Traffic should pass with no loss | ${duration} | ${rate}
174 | | ...                                   | ${framesize} | 3-node-IPv4
175
176 | tc05-1518B-2t2c-ethip4-ip4base-iacldstbase-ndrchk
177 | | [Documentation]
178 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
179 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
180 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
181 | | ... | at 2x 812743pps.
182 | | [Tags] | 2T2C | MTHREAD
183 | | ${framesize}= | Set Variable | 1518
184 | | ${duration}= | Set Variable | 10
185 | | ${rate}= | Set Variable | 812743pps
186 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
187 | | And   Add PCI devices to DUTs from 3-node single link topology
188 | | And   Add No Multi Seg to all DUTs
189 | | And   Apply startup configuration on all VPP DUTs
190 | | When  IPv4 forwarding initialized in a 3-node circular topology
191 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
192 | | ... | ${dut1} | ip4 | dst
193 | | And Vpp Configures Classify Session L3
194 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
195 | | ... | ip4 | dst | 20.20.20.2
196 | | And Vpp Enable Input Acl Interface
197 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
198 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
199 | | ... | ${dut2} | ip4 | dst
200 | | And Vpp Configures Classify Session L3
201 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
202 | | ... | ip4 | dst | 10.10.10.2
203 | | And Vpp Enable Input Acl Interface
204 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
205 | | Then Traffic should pass with no loss | ${duration} | ${rate}
206 | | ...                                   | ${framesize} | 3-node-IPv4
207
208 | tc06-9000B-2t2c-ethip4-ip4base-iacldstbase-ndrchk
209 | | [Documentation]
210 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
211 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
212 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
213 | | ... | at 2x 138580pps.
214 | | [Tags] | 2T2C | MTHREAD
215 | | ${framesize}= | Set Variable | 9000
216 | | ${duration}= | Set Variable | 10
217 | | ${rate}= | Set Variable | 138580pps
218 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
219 | | And   Add PCI devices to DUTs from 3-node single link topology
220 | | And   Apply startup configuration on all VPP DUTs
221 | | When  IPv4 forwarding initialized in a 3-node circular topology
222 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
223 | | ... | ${dut1} | ip4 | dst
224 | | And Vpp Configures Classify Session L3
225 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
226 | | ... | ip4 | dst | 20.20.20.2
227 | | And Vpp Enable Input Acl Interface
228 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
229 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
230 | | ... | ${dut2} | ip4 | dst
231 | | And Vpp Configures Classify Session L3
232 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
233 | | ... | ip4 | dst | 10.10.10.2
234 | | And Vpp Enable Input Acl Interface
235 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
236 | | Then Traffic should pass with no loss | ${duration} | ${rate}
237 | | ...                                   | ${framesize} | 3-node-IPv4
238
239 | tc07-64B-4t4c-ethip4-ip4base-iacldstbase-ndrchk
240 | | [Documentation]
241 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
242 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
243 | | ... | ref-NDR for 64 Byte frames using single trial throughput test
244 | | ... | at 2x 7.8mpps.
245 | | [Tags] | 4T4C | MTHREAD
246 | | ${framesize}= | Set Variable | 64
247 | | ${duration}= | Set Variable | 10
248 | | ${rate}= | Set Variable | 7.8mpps
249 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
250 | | And   Add PCI devices to DUTs from 3-node single link topology
251 | | And   Add No Multi Seg to all DUTs
252 | | And   Apply startup configuration on all VPP DUTs
253 | | And   IPv4 forwarding initialized in a 3-node circular topology
254 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
255 | | ... | ${dut1} | ip4 | dst
256 | | And Vpp Configures Classify Session L3
257 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
258 | | ... | ip4 | dst | 20.20.20.2
259 | | And Vpp Enable Input Acl Interface
260 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
261 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
262 | | ... | ${dut2} | ip4 | dst
263 | | And Vpp Configures Classify Session L3
264 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
265 | | ... | ip4 | dst | 10.10.10.2
266 | | And Vpp Enable Input Acl Interface
267 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
268 | | Then Traffic should pass with no loss | ${duration} | ${rate}
269 | | ...                                   | ${framesize} | 3-node-IPv4
270
271 | tc08-1518B-4t4c-ethip4-ip4base-iacldstbase-ndrchk
272 | | [Documentation]
273 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
274 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
275 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
276 | | ... | at 2x 812743pps.
277 | | [Tags] | 4T4C | MTHREAD
278 | | ${framesize}= | Set Variable | 1518
279 | | ${duration}= | Set Variable | 10
280 | | ${rate}= | Set Variable | 812743pps
281 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
282 | | And   Add PCI devices to DUTs from 3-node single link topology
283 | | And   Add No Multi Seg to all DUTs
284 | | And   Apply startup configuration on all VPP DUTs
285 | | When  IPv4 forwarding initialized in a 3-node circular topology
286 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
287 | | ... | ${dut1} | ip4 | dst
288 | | And Vpp Configures Classify Session L3
289 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
290 | | ... | ip4 | dst | 20.20.20.2
291 | | And Vpp Enable Input Acl Interface
292 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
293 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
294 | | ... | ${dut2} | ip4 | dst
295 | | And Vpp Configures Classify Session L3
296 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
297 | | ... | ip4 | dst | 10.10.10.2
298 | | And Vpp Enable Input Acl Interface
299 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
300 | | Then Traffic should pass with no loss | ${duration} | ${rate}
301 | | ...                                   | ${framesize} | 3-node-IPv4
302
303 | tc09-9000B-4t4c-ethip4-ip4base-iacldstbase-ndrchk
304 | | [Documentation]
305 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
306 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
307 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
308 | | ... | at 2x 138580pps.
309 | | [Tags] | 4T4C | MTHREAD
310 | | ${framesize}= | Set Variable | 9000
311 | | ${duration}= | Set Variable | 10
312 | | ${rate}= | Set Variable | 138580pps
313 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
314 | | And   Add PCI devices to DUTs from 3-node single link topology
315 | | And   Apply startup configuration on all VPP DUTs
316 | | When  IPv4 forwarding initialized in a 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 | ${duration} | ${rate}
332 | | ...                                   | ${framesize} | 3-node-IPv4