a1867827365c345e08e6f000ae5b20af3c83e254
[csit.git] / tests / perf / Short_IPv4_Cop_Intel-X520-DA2.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 | PERFTEST_SHORT
20 | ...        | NIC_Intel-X520-DA2
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: Verify 64B ref-NDR at 2x 3.5Mpps - DUT IPv4 whitelist - 1thread 1core 1rxq
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 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
55 | | ${framesize}= | Set Variable | 64
56 | | ${duration}= | Set Variable | 10
57 | | ${rate}= | Set Variable | 3.5mpps
58 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
59 | | And   Add PCI devices to DUTs from 3-node single link topology
60 | | And   Add No Multi Seg to all DUTs
61 | | And   Apply startup configuration on all VPP DUTs
62 | | When  IPv4 forwarding initialized in a 3-node circular topology
63 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
64 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
65 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
66 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
67 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
68 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
69 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
70 | | ...                                    | ${framesize} | 3-node-IPv4
71
72 | TC02: Verify 1518B ref-NDR at 2x 812.74kpps - DUT IPv4 whitelist - 1thread 1core 1rxq
73 | | [Documentation]
74 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
75 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
76 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test.
77 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
78 | | ${framesize}= | Set Variable | 1518
79 | | ${duration}= | Set Variable | 10
80 | | ${rate}= | Set Variable | 812743pps
81 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
82 | | And   Add PCI devices to DUTs from 3-node single link topology
83 | | And   Add No Multi Seg to all DUTs
84 | | And   Apply startup configuration on all VPP DUTs
85 | | When  IPv4 forwarding initialized in a 3-node circular topology
86 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
87 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
88 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
89 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
90 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
91 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
92 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
93 | | ...                                    | ${framesize} | 3-node-IPv4
94
95 | TC03: Verify 9000B ref-NDR at 2x 138.58kpps - DUT IPv4 whitelist - 1thread 1core 1rxq
96 | | [Documentation]
97 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
98 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
99 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test.
100 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
101 | | ${framesize}= | Set Variable | 9000
102 | | ${duration}= | Set Variable | 10
103 | | ${rate}= | Set Variable | 138580pps
104 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
105 | | And   Add PCI devices to DUTs from 3-node single link topology
106 | | And   Apply startup configuration on all VPP DUTs
107 | | When  IPv4 forwarding initialized in a 3-node circular topology
108 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
109 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
110 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
111 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
112 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
113 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
114 | | Then Traffic should pass with no loss | ${duration} | ${rate}
115 | | ...                                   | ${framesize} | 3-node-IPv4
116
117 | TC04: Verify 64B ref-NDR at 2x 6.6Mpps - DUT IPv4 whitelist - 2thread 2core 1rxq
118 | | [Documentation]
119 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
120 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
121 | | ... | ref-NDR for 64 Byte frames using single trial throughput test.
122 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
123 | | ${framesize}= | Set Variable | 64
124 | | ${duration}= | Set Variable | 10
125 | | ${rate}= | Set Variable | 6.6mpps
126 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
127 | | And   Add PCI devices to DUTs from 3-node single link topology
128 | | And   Add No Multi Seg to all DUTs
129 | | And   Apply startup configuration on all VPP DUTs
130 | | When  IPv4 forwarding initialized in a 3-node circular topology
131 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
132 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
133 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
134 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
135 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
136 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
137 | | Then Traffic should pass with no loss | ${duration} | ${rate}
138 | | ...                                   | ${framesize} | 3-node-IPv4
139
140 | TC05: Verify 1518B ref-NDR at 2x 812.74kpps - DUT IPv4 whitelist - 2thread 2core 1rxq
141 | | [Documentation]
142 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
143 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
144 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test.
145 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
146 | | ${framesize}= | Set Variable | 1518
147 | | ${duration}= | Set Variable | 10
148 | | ${rate}= | Set Variable | 812743pps
149 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
150 | | And   Add PCI devices to DUTs from 3-node single link topology
151 | | And   Add No Multi Seg to all DUTs
152 | | And   Apply startup configuration on all VPP DUTs
153 | | When  IPv4 forwarding initialized in a 3-node circular topology
154 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
155 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
156 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
157 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
158 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
159 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
160 | | Then Traffic should pass with no loss | ${duration} | ${rate}
161 | | ...                                   | ${framesize} | 3-node-IPv4
162
163 | TC06: Verify 9000B ref-NDR at 2x 138.58kpps - DUT IPv4 whitelist - 2thread 2core 1rxq
164 | | [Documentation]
165 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
166 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
167 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test.
168 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
169 | | ${framesize}= | Set Variable | 9000
170 | | ${duration}= | Set Variable | 10
171 | | ${rate}= | Set Variable | 138580pps
172 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
173 | | And   Add PCI devices to DUTs from 3-node single link topology
174 | | And   Apply startup configuration on all VPP DUTs
175 | | When  IPv4 forwarding initialized in a 3-node circular topology
176 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
177 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
178 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
179 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
180 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
181 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
182 | | Then Traffic should pass with no loss | ${duration} | ${rate}
183 | | ...                                   | ${framesize} | 3-node-IPv4
184
185 | TC07: Verify 64B ref-NDR at 2x 10.0Mpps - DUT IPv4 whitelist - 4threads 4cores 2rxq
186 | | [Documentation]
187 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
188 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
189 | | ... | ref-NDR for 64 Byte frames using single trial throughput test.
190 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
191 | | ${framesize}= | Set Variable | 64
192 | | ${duration}= | Set Variable | 10
193 | | ${rate}= | Set Variable | 10.0mpps
194 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
195 | | And   Add PCI devices to DUTs from 3-node single link topology
196 | | And   Add No Multi Seg to all DUTs
197 | | And   Apply startup configuration on all VPP DUTs
198 | | When  IPv4 forwarding initialized in a 3-node circular topology
199 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
200 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
201 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
202 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
203 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
204 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
205 | | Then Traffic should pass with no loss | ${duration} | ${rate}
206 | | ...                                   | ${framesize} | 3-node-IPv4
207
208 | TC08: Verify 1518B ref-NDR at 2x 812.74kpps - DUT IPv4 whitelist - 4threads 4cores 2rxq
209 | | [Documentation]
210 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
211 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
212 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test.
213 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
214 | | ${framesize}= | Set Variable | 1518
215 | | ${duration}= | Set Variable | 10
216 | | ${rate}= | Set Variable | 812743pps
217 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
218 | | And   Add PCI devices to DUTs from 3-node single link topology
219 | | And   Add No Multi Seg to all DUTs
220 | | And   Apply startup configuration on all VPP DUTs
221 | | When  IPv4 forwarding initialized in a 3-node circular topology
222 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
223 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
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 | ${duration} | ${rate}
229 | | ...                                   | ${framesize} | 3-node-IPv4
230
231 | TC09: Verify 9000B ref-NDR at 2x 138.58kpps - DUT IPv4 whitelist - 4threads 4cores 2rxq
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 9000 Byte frames using single trial throughput test.
236 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
237 | | ${framesize}= | Set Variable | 9000
238 | | ${duration}= | Set Variable | 10
239 | | ${rate}= | Set Variable | 138580pps
240 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
241 | | And   Add PCI devices to DUTs from 3-node single link topology
242 | | And   Apply startup configuration on all VPP DUTs
243 | | When  IPv4 forwarding initialized in a 3-node circular topology
244 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
245 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
246 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
247 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
248 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
249 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
250 | | Then Traffic should pass with no loss | ${duration} | ${rate}
251 | | ...                                   | ${framesize} | 3-node-IPv4