Update: NDRCHK rate values and typos
[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 | 3-node Performance Suite Setup with DUT's NIC model
26 | ... | L3 | Intel-X520-DA2
27 | Suite Teardown | 3-node Performance Suite Teardown
28 | ...
29 | Test Setup | Performance test setup
30 | Test Teardown | Performance ndrchk test teardown
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 *** Test Cases ***
54 | tc01-64B-1t1c-ethip4-ip4base-copwhtlistbase-ndrchk
55 | | [Documentation]
56 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
57 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
58 | | ... | ref-NDR for 64 Byte frames using single trial throughput test
59 | | ... | at 2x 4.1mpps.
60 | | [Tags] | 1T1C | STHREAD
61 | | ${framesize}= | Set Variable | ${64}
62 | | ${rate}= | Set Variable | 4.1mpps
63 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
64 | | And Add PCI devices to DUTs from 3-node single link topology
65 | | And Add No Multi Seg to all DUTs
66 | | And Apply startup configuration on all VPP DUTs
67 | | When IPv4 forwarding initialized in a 3-node circular topology
68 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
69 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
70 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
71 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
72 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
73 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
74 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
75 | | ... | ${framesize} | 3-node-IPv4
76
77 | tc02-1518B-1t1c-ethip4-ip4base-copwhtlistbase-ndrchk
78 | | [Documentation]
79 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
80 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
81 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
82 | | ... | at 2x 812743pps.
83 | | [Tags] | 1T1C | STHREAD
84 | | ${framesize}= | Set Variable | ${1518}
85 | | ${rate}= | Set Variable | 812743pps
86 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
87 | | And Add PCI devices to DUTs from 3-node single link topology
88 | | And Add No Multi Seg to all DUTs
89 | | And Apply startup configuration on all VPP DUTs
90 | | When IPv4 forwarding initialized in a 3-node circular topology
91 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
92 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
93 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
94 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
95 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
96 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
97 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
98 | | ... | ${framesize} | 3-node-IPv4
99
100 | tc03-9000B-1t1c-ethip4-ip4base-copwhtlistbase-ndrchk
101 | | [Documentation]
102 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
103 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
104 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
105 | | ... | at 2x 138580pps.
106 | | [Tags] | 1T1C | STHREAD
107 | | ${framesize}= | Set Variable | ${9000}
108 | | ${rate}= | Set Variable | 138580pps
109 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
110 | | And Add PCI devices to DUTs from 3-node single link topology
111 | | And Apply startup configuration on all VPP DUTs
112 | | When IPv4 forwarding initialized in a 3-node circular topology
113 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
114 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
115 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
116 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
117 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
118 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
119 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
120 | | ... | ${framesize} | 3-node-IPv4
121
122 | tc04-64B-2t2c-ethip4-ip4base-copwhtlistbase-ndrchk
123 | | [Documentation]
124 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
125 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
126 | | ... | ref-NDR for 64 Byte frames using single trial throughput test
127 | | ... | at 2x 7.2mpps.
128 | | [Tags] | 2T2C | MTHREAD
129 | | ${framesize}= | Set Variable | ${64}
130 | | ${rate}= | Set Variable | 7.2mpps
131 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
132 | | And Add PCI devices to DUTs from 3-node single link topology
133 | | And Add No Multi Seg to all DUTs
134 | | And Apply startup configuration on all VPP DUTs
135 | | When IPv4 forwarding initialized in a 3-node circular topology
136 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
137 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
138 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
139 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
140 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
141 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
142 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
143 | | ... | ${framesize} | 3-node-IPv4
144
145 | tc05-1518B-2t2c-ethip4-ip4base-copwhtlistbase-ndrchk
146 | | [Documentation]
147 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
148 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
149 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
150 | | ... | at 2x 812743pps.
151 | | [Tags] | 2T2C | MTHREAD
152 | | ${framesize}= | Set Variable | ${1518}
153 | | ${rate}= | Set Variable | 812743pps
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 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
160 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
161 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
162 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
163 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
164 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
165 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
166 | | ... | ${framesize} | 3-node-IPv4
167
168 | tc06-9000B-2t2c-ethip4-ip4base-copwhtlistbase-ndrchk
169 | | [Documentation]
170 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
171 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
172 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
173 | | ... | at 2x 138580pps.
174 | | [Tags] | 2T2C | MTHREAD
175 | | ${framesize}= | Set Variable | ${9000}
176 | | ${rate}= | Set Variable | 138580pps
177 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
178 | | And Add PCI devices to DUTs from 3-node single link topology
179 | | And Apply startup configuration on all VPP DUTs
180 | | When IPv4 forwarding initialized in a 3-node circular topology
181 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
182 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
183 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
184 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
185 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
186 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
187 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
188 | | ... | ${framesize} | 3-node-IPv4
189
190 | tc07-64B-4t4c-ethip4-ip4base-copwhtlistbase-ndrchk
191 | | [Documentation]
192 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
193 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
194 | | ... | ref-NDR for 64 Byte frames using single trial throughput test
195 | | ... | at 2x 10.4mpps.
196 | | [Tags] | 4T4C | MTHREAD
197 | | ${framesize}= | Set Variable | ${64}
198 | | ${rate}= | Set Variable | 10.4mpps
199 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
200 | | And Add PCI devices to DUTs from 3-node single link topology
201 | | And Add No Multi Seg to all DUTs
202 | | And Apply startup configuration on all VPP DUTs
203 | | When IPv4 forwarding initialized in a 3-node circular topology
204 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
205 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
206 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
207 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
208 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
209 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
210 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
211 | | ... | ${framesize} | 3-node-IPv4
212
213 | tc08-1518B-4t4c-ethip4-ip4base-copwhtlistbase-ndrchk
214 | | [Documentation]
215 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
216 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
217 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
218 | | ... | at 2x 812743pps.
219 | | [Tags] | 4T4C | MTHREAD
220 | | ${framesize}= | Set Variable | ${1518}
221 | | ${rate}= | Set Variable | 812743pps
222 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
223 | | And Add PCI devices to DUTs from 3-node single link topology
224 | | And Add No Multi Seg to all DUTs
225 | | And Apply startup configuration on all VPP DUTs
226 | | When IPv4 forwarding initialized in a 3-node circular topology
227 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
228 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
229 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
230 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
231 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
232 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
233 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
234 | | ... | ${framesize} | 3-node-IPv4
235
236 | tc09-9000B-4t4c-ethip4-ip4base-copwhtlistbase-ndrchk
237 | | [Documentation]
238 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
239 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
240 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
241 | | ... | at 2x 138580pps.
242 | | [Tags] | 4T4C | MTHREAD
243 | | ${framesize}= | Set Variable | ${9000}
244 | | ${rate}= | Set Variable | 138580pps
245 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
246 | | And Add PCI devices to DUTs from 3-node single link topology
247 | | And Apply startup configuration on all VPP DUTs
248 | | When IPv4 forwarding initialized in a 3-node circular topology
249 | | And Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
250 | | And Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
251 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
252 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
253 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
254 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
255 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
256 | | ... | ${framesize} | 3-node-IPv4