CSIT-662: KWI - KW renaming
[csit.git] / tests / perf / 10ge2p1x520-ethip4-ip4base-copwhtlistbase-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.robot
16 | Library | resources.libraries.python.Cop
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 | COPWHLIST
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 COP 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-copwhtlistbase-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 4.1mpps.
64 | | [Tags] | 64B | 1T1C | STHREAD
65 | | ${framesize}= | Set Variable | ${64}
66 | | ${rate}= | Set Variable | 4.1mpps
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 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
73 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
74 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
75 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
76 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
77 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
78 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
79 | | ... | ${framesize} | ${traffic_profile}
80
81 | tc02-1518B-1t1c-ethip4-ip4base-copwhtlistbase-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] | 1518B | 1T1C | STHREAD
88 | | ${framesize}= | Set Variable | ${1518}
89 | | ${rate}= | Set Variable | 812743pps
90 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
91 | | And Add PCI devices to DUTs in 3-node single link topology
92 | | And Add no multi seg to all DUTs
93 | | And Apply startup configuration on all VPP DUTs
94 | | When Initialize IPv4 forwarding in 3-node circular topology
95 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
96 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
97 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
98 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
99 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
100 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
101 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
102 | | ... | ${framesize} | ${traffic_profile}
103
104 | tc03-9000B-1t1c-ethip4-ip4base-copwhtlistbase-ndrchk
105 | | [Documentation]
106 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
107 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
108 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
109 | | ... | at 2x 138580pps.
110 | | [Tags] | 9000B | 1T1C | STHREAD
111 | | ${framesize}= | Set Variable | ${9000}
112 | | ${rate}= | Set Variable | 138580pps
113 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
114 | | And Add PCI devices to DUTs in 3-node single link topology
115 | | And Apply startup configuration on all VPP DUTs
116 | | When Initialize IPv4 forwarding in 3-node circular topology
117 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
118 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
119 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
120 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
121 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
122 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
123 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
124 | | ... | ${framesize} | ${traffic_profile}
125
126 | tc04-64B-2t2c-ethip4-ip4base-copwhtlistbase-ndrchk
127 | | [Documentation]
128 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
129 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
130 | | ... | ref-NDR for 64 Byte frames using single trial throughput test
131 | | ... | at 2x 7.2mpps.
132 | | [Tags] | 64B | 2T2C | MTHREAD
133 | | ${framesize}= | Set Variable | ${64}
134 | | ${rate}= | Set Variable | 7.2mpps
135 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
136 | | And Add PCI devices to DUTs in 3-node single link topology
137 | | And Add no multi seg to all DUTs
138 | | And Apply startup configuration on all VPP DUTs
139 | | When Initialize IPv4 forwarding in 3-node circular topology
140 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
141 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
142 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
143 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
144 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
145 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
146 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
147 | | ... | ${framesize} | ${traffic_profile}
148
149 | tc05-1518B-2t2c-ethip4-ip4base-copwhtlistbase-ndrchk
150 | | [Documentation]
151 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
152 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
153 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
154 | | ... | at 2x 812743pps.
155 | | [Tags] | 1518B | 2T2C | MTHREAD
156 | | ${framesize}= | Set Variable | ${1518}
157 | | ${rate}= | Set Variable | 812743pps
158 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
159 | | And Add PCI devices to DUTs in 3-node single link topology
160 | | And Add no multi seg to all DUTs
161 | | And Apply startup configuration on all VPP DUTs
162 | | When Initialize IPv4 forwarding in 3-node circular topology
163 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
164 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
165 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
166 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
167 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
168 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
169 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
170 | | ... | ${framesize} | ${traffic_profile}
171
172 | tc06-9000B-2t2c-ethip4-ip4base-copwhtlistbase-ndrchk
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 9000 Byte frames using single trial throughput test
177 | | ... | at 2x 138580pps.
178 | | [Tags] | 9000B | 2T2C | MTHREAD
179 | | ${framesize}= | Set Variable | ${9000}
180 | | ${rate}= | Set Variable | 138580pps
181 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
182 | | And Add PCI devices to DUTs in 3-node single link topology
183 | | And Apply startup configuration on all VPP DUTs
184 | | When Initialize IPv4 forwarding in 3-node circular topology
185 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
186 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
187 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
188 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
189 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
190 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
191 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
192 | | ... | ${framesize} | ${traffic_profile}
193
194 | tc07-64B-4t4c-ethip4-ip4base-copwhtlistbase-ndrchk
195 | | [Documentation]
196 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
197 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
198 | | ... | ref-NDR for 64 Byte frames using single trial throughput test
199 | | ... | at 2x 10.4mpps.
200 | | [Tags] | 64B | 4T4C | MTHREAD
201 | | ${framesize}= | Set Variable | ${64}
202 | | ${rate}= | Set Variable | 10.4mpps
203 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
204 | | And Add PCI devices to DUTs in 3-node single link topology
205 | | And Add no multi seg to all DUTs
206 | | And Apply startup configuration on all VPP DUTs
207 | | When Initialize IPv4 forwarding in 3-node circular topology
208 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
209 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
210 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
211 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
212 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
213 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
214 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
215 | | ... | ${framesize} | ${traffic_profile}
216
217 | tc08-1518B-4t4c-ethip4-ip4base-copwhtlistbase-ndrchk
218 | | [Documentation]
219 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
220 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
221 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
222 | | ... | at 2x 812743pps.
223 | | [Tags] | 1518B | 4T4C | MTHREAD
224 | | ${framesize}= | Set Variable | ${1518}
225 | | ${rate}= | Set Variable | 812743pps
226 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
227 | | And Add PCI devices to DUTs in 3-node single link topology
228 | | And Add no multi seg to all DUTs
229 | | And Apply startup configuration on all VPP DUTs
230 | | When Initialize IPv4 forwarding in 3-node circular topology
231 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
232 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
233 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
234 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
235 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
236 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
237 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
238 | | ... | ${framesize} | ${traffic_profile}
239
240 | tc09-9000B-4t4c-ethip4-ip4base-copwhtlistbase-ndrchk
241 | | [Documentation]
242 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
243 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
244 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
245 | | ... | at 2x 138580pps.
246 | | [Tags] | 9000B | 4T4C | MTHREAD
247 | | ${framesize}= | Set Variable | ${9000}
248 | | ${rate}= | Set Variable | 138580pps
249 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
250 | | And Add PCI devices to DUTs in 3-node single link topology
251 | | And Apply startup configuration on all VPP DUTs
252 | | When Initialize IPv4 forwarding in 3-node circular topology
253 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
254 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
255 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
256 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
257 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
258 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
259 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
260 | | ... | ${framesize} | ${traffic_profile}