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