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