3d1d83eeaba2f9ce0eb1b9b213b9a6cc8d8ff940
[csit.git] / tests / perf / 10ge2p1x520-ethip4-ip4base-copwhtlistbase-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.Cop
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 | COPWHLIST
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 COP 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-copwhtlistbase-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.5mpps.
55 | | [Tags] | 1T1C | STHREAD
56 | | ${framesize}= | Set Variable | 64
57 | | ${duration}= | Set Variable | 10
58 | | ${rate}= | Set Variable | 3.5mpps
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 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
65 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
66 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
67 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
68 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
69 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
70 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
71 | | ...                                    | ${framesize} | 3-node-IPv4
72
73 | tc02-1518B-1t1c-ethip4-ip4base-copwhtlistbase-ndrchk
74 | | [Documentation]
75 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
76 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
77 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
78 | | ... | at 2x 812743pps.
79 | | [Tags] | 1T1C | STHREAD
80 | | ${framesize}= | Set Variable | 1518
81 | | ${duration}= | Set Variable | 10
82 | | ${rate}= | Set Variable | 812743pps
83 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
84 | | And   Add PCI devices to DUTs from 3-node single link topology
85 | | And   Add No Multi Seg to all DUTs
86 | | And   Apply startup configuration on all VPP DUTs
87 | | When  IPv4 forwarding initialized in a 3-node circular topology
88 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
89 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
90 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
91 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
92 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
93 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
94 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
95 | | ...                                    | ${framesize} | 3-node-IPv4
96
97 | tc03-9000B-1t1c-ethip4-ip4base-copwhtlistbase-ndrchk
98 | | [Documentation]
99 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
100 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
101 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
102 | | ... | at 2x 138580pps.
103 | | [Tags] | 1T1C | STHREAD
104 | | ${framesize}= | Set Variable | 9000
105 | | ${duration}= | Set Variable | 10
106 | | ${rate}= | Set Variable | 138580pps
107 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
108 | | And   Add PCI devices to DUTs from 3-node single link topology
109 | | And   Apply startup configuration on all VPP DUTs
110 | | When  IPv4 forwarding initialized in a 3-node circular topology
111 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
112 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
113 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
114 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
115 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
116 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
117 | | Then Traffic should pass with no loss | ${duration} | ${rate}
118 | | ...                                   | ${framesize} | 3-node-IPv4
119
120 | tc04-64B-2t2c-ethip4-ip4base-copwhtlistbase-ndrchk
121 | | [Documentation]
122 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
123 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
124 | | ... | ref-NDR for 64 Byte frames using single trial throughput test
125 | | ... | at 2x 6.6mpps.
126 | | [Tags] | 2T2C | MTHREAD
127 | | ${framesize}= | Set Variable | 64
128 | | ${duration}= | Set Variable | 10
129 | | ${rate}= | Set Variable | 6.6mpps
130 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
131 | | And   Add PCI devices to DUTs from 3-node single link topology
132 | | And   Add No Multi Seg to all DUTs
133 | | And   Apply startup configuration on all VPP DUTs
134 | | When  IPv4 forwarding initialized in a 3-node circular topology
135 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
136 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
137 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
138 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
139 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
140 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
141 | | Then Traffic should pass with no loss | ${duration} | ${rate}
142 | | ...                                   | ${framesize} | 3-node-IPv4
143
144 | tc05-1518B-2t2c-ethip4-ip4base-copwhtlistbase-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 1518 Byte frames using single trial throughput test
149 | | ... | at 2x 812743pps.
150 | | [Tags] | 2T2C | MTHREAD
151 | | ${framesize}= | Set Variable | 1518
152 | | ${duration}= | Set Variable | 10
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 | ${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 | | ${duration}= | Set Variable | 10
177 | | ${rate}= | Set Variable | 138580pps
178 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
179 | | And   Add PCI devices to DUTs from 3-node single link topology
180 | | And   Apply startup configuration on all VPP DUTs
181 | | When  IPv4 forwarding initialized in a 3-node circular topology
182 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
183 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
184 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
185 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
186 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
187 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
188 | | Then Traffic should pass with no loss | ${duration} | ${rate}
189 | | ...                                   | ${framesize} | 3-node-IPv4
190
191 | tc07-64B-4t4c-ethip4-ip4base-copwhtlistbase-ndrchk
192 | | [Documentation]
193 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
194 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
195 | | ... | ref-NDR for 64 Byte frames using single trial throughput test
196 | | ... | at 2x 10.0mpps.
197 | | [Tags] | 4T4C | MTHREAD
198 | | ${framesize}= | Set Variable | 64
199 | | ${duration}= | Set Variable | 10
200 | | ${rate}= | Set Variable | 10.0mpps
201 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
202 | | And   Add PCI devices to DUTs from 3-node single link topology
203 | | And   Add No Multi Seg to all DUTs
204 | | And   Apply startup configuration on all VPP DUTs
205 | | When  IPv4 forwarding initialized in a 3-node circular topology
206 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
207 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
208 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
209 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
210 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
211 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
212 | | Then Traffic should pass with no loss | ${duration} | ${rate}
213 | | ...                                   | ${framesize} | 3-node-IPv4
214
215 | tc08-1518B-4t4c-ethip4-ip4base-copwhtlistbase-ndrchk
216 | | [Documentation]
217 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
218 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
219 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
220 | | ... | at 2x 812743pps.
221 | | [Tags] | 4T4C | MTHREAD
222 | | ${framesize}= | Set Variable | 1518
223 | | ${duration}= | Set Variable | 10
224 | | ${rate}= | Set Variable | 812743pps
225 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
226 | | And   Add PCI devices to DUTs from 3-node single link topology
227 | | And   Add No Multi Seg to all DUTs
228 | | And   Apply startup configuration on all VPP DUTs
229 | | When  IPv4 forwarding initialized in a 3-node circular topology
230 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
231 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
232 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
233 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
234 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
235 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
236 | | Then Traffic should pass with no loss | ${duration} | ${rate}
237 | | ...                                   | ${framesize} | 3-node-IPv4
238
239 | tc09-9000B-4t4c-ethip4-ip4base-copwhtlistbase-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 9000 Byte frames using single trial throughput test
244 | | ... | at 2x 138580pps.
245 | | [Tags] | 4T4C | MTHREAD
246 | | ${framesize}= | Set Variable | 9000
247 | | ${duration}= | Set Variable | 10
248 | | ${rate}= | Set Variable | 138580pps
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   Apply startup configuration on all VPP DUTs
252 | | When  IPv4 forwarding initialized in a 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 | ${duration} | ${rate}
260 | | ...                                   | ${framesize} | 3-node-IPv4