5ef42c5a8649efc83b5163dcd24229bcc5f0df5e
[csit.git] / tests / suites / performance / Short_IPv6_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 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PERFTEST_SHORT
18 | ...        | NIC_Intel-X520-DA2
19 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
20 | ... | L3 | Intel-X520-DA2
21 | Suite Teardown | 3-node Performance Suite Teardown
22 | Test Setup | Setup all DUTs before test
23 | Test Teardown | Run Keywords | Remove startup configuration of VPP from all DUTs
24 | ...           | AND          | Show vpp trace dump on all DUTs
25 | Documentation | *Reference NDR throughput IPv6 whitelist verify test cases*
26 | ...
27 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
28 | ... | with single links between nodes.
29 | ... | *[Enc] Packet Encapsulations:* Eth-IPv6 for IPv6 routing.
30 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv6
31 | ... | routing, two static IPv6 /64 routes and IPv6 COP security whitelist
32 | ... | ingress /24 filter entries applied on links TG - DUT1 and DUT2 - TG.
33 | ... | DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
34 | ... | *[Ver] TG verification:* In short performance tests, TG verifies
35 | ... | DUTs' throughput at ref-NDR (reference Non Drop Rate) with zero packet
36 | ... | loss tolerance. Ref-NDR value is periodically updated acording to
37 | ... | formula: ref-NDR = 0.9x NDR, where NDR is found in RFC2544 long
38 | ... | performance tests for the same DUT configuration. Test packets are
39 | ... | generated by TG on links to DUTs. TG traffic profile contains two L3
40 | ... | flow-groups (flow-group per direction, 253 flows per flow-group) with
41 | ... | all packets containing Ethernet header, IPv6 header and generated
42 | ... | payload. MAC addresses are matching MAC addresses of the TG node
43 | ... | interfaces.
44 | ... | *[Ref] Applicable standard specifications:* RFC2544.
45
46 *** Test Cases ***
47 | TC01: Verify 78B ref-NDR at 2x 2.8Mpps - DUT IPv6 whitelist - 1thread 1core 1rxq
48 | | [Documentation]
49 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
50 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
51 | | ... | ref-NDR for 78 Byte frames using single trial throughput test.
52 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
53 | | ${framesize}= | Set Variable | 78
54 | | ${duration}= | Set Variable | 10
55 | | ${rate}= | Set Variable | 2.8mpps
56 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
57 | | And   Add all PCI devices to all DUTs
58 | | And   Add No Multi Seg to all DUTs
59 | | And   Apply startup configuration on all VPP DUTs
60 | | When  IPv6 forwarding initialized in a 3-node circular topology
61 | | And   Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
62 | | And   Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
63 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
64 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
65 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
66 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
67 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
68 | | ...                                    | ${framesize} | 3-node-IPv6
69
70 | TC02: Verify 1518B ref-NDR at 2x 812.74kpps - DUT IPv6 whitelist - 1thread 1core 1rxq
71 | | [Documentation]
72 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
73 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
74 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test.
75 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
76 | | ${framesize}= | Set Variable | 1518
77 | | ${duration}= | Set Variable | 10
78 | | ${rate}= | Set Variable | 812743pps
79 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
80 | | And   Add all PCI devices to all DUTs
81 | | And   Add No Multi Seg to all DUTs
82 | | And   Apply startup configuration on all VPP DUTs
83 | | When  IPv6 forwarding initialized in a 3-node circular topology
84 | | And   Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
85 | | And   Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
86 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
87 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
88 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
89 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
90 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
91 | | ...                                    | ${framesize} | 3-node-IPv6
92
93 | TC03: Verify 9000B ref-NDR at 2x 138.580kpps - DUT IPv6 whitelist - 1thread 1core 1rxq
94 | | [Documentation]
95 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
96 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
97 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test.
98 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
99 | | ${framesize}= | Set Variable | 9000
100 | | ${duration}= | Set Variable | 10
101 | | ${rate}= | Set Variable | 138580pps
102 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
103 | | And   Add all PCI devices to all DUTs
104 | | And   Apply startup configuration on all VPP DUTs
105 | | When  IPv6 forwarding initialized in a 3-node circular topology
106 | | And   Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
107 | | And   Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
108 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
109 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
110 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
111 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
112 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
113 | | ...                                    | ${framesize} | 3-node-IPv6
114
115 | TC04: Verify 78B ref-NDR at 2x 4.9Mpps - DUT IPv6 whitelist - 2thread 2core 1rxq
116 | | [Documentation]
117 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
118 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
119 | | ... | ref-NDR for 78 Byte frames using single trial throughput test.
120 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
121 | | ${framesize}= | Set Variable | 78
122 | | ${duration}= | Set Variable | 10
123 | | ${rate}= | Set Variable | 4.9mpps
124 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
125 | | And   Add all PCI devices to all DUTs
126 | | And   Add No Multi Seg to all DUTs
127 | | And   Apply startup configuration on all VPP DUTs
128 | | When  IPv6 forwarding initialized in a 3-node circular topology
129 | | And   Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
130 | | And   Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
131 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
132 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
133 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
134 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
135 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
136 | | ...                                    | ${framesize} | 3-node-IPv6
137
138 | TC05: Verify 1518B ref-NDR at 2x 812.74kpps - DUT IPv6 whitelist - 2thread 2core 1rxq
139 | | [Documentation]
140 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
141 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
142 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test.
143 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
144 | | ${framesize}= | Set Variable | 1518
145 | | ${duration}= | Set Variable | 10
146 | | ${rate}= | Set Variable | 812743pps
147 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
148 | | And   Add all PCI devices to all DUTs
149 | | And   Add No Multi Seg to all DUTs
150 | | And   Apply startup configuration on all VPP DUTs
151 | | When  IPv6 forwarding initialized in a 3-node circular topology
152 | | And   Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
153 | | And   Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
154 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
155 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
156 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
157 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
158 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
159 | | ...                                    | ${framesize} | 3-node-IPv6
160
161 | TC06: Verify 9000B ref-NDR at 2x 138.58kpps - DUT IPv6 whitelist - 2thread 2core 1rxq
162 | | [Documentation]
163 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
164 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
165 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test.
166 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
167 | | ${framesize}= | Set Variable | 9000
168 | | ${duration}= | Set Variable | 10
169 | | ${rate}= | Set Variable | 138580pps
170 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
171 | | And   Add all PCI devices to all DUTs
172 | | And   Apply startup configuration on all VPP DUTs
173 | | When  IPv6 forwarding initialized in a 3-node circular topology
174 | | And   Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
175 | | And   Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
176 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
177 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
178 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
179 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
180 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
181 | | ...                                    | ${framesize} | 3-node-IPv6
182
183 | TC07: Verify 78B ref-NDR at 2x 10.1Mpps - DUT IPv6 whitelist - 4thread 4core 2rxq
184 | | [Documentation]
185 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
186 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
187 | | ... | ref-NDR for 78 Byte frames using single trial throughput test.
188 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
189 | | ${framesize}= | Set Variable | 78
190 | | ${duration}= | Set Variable | 10
191 | | ${rate}= | Set Variable | 10.1mpps
192 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
193 | | And   Add all PCI devices to all DUTs
194 | | And   Add No Multi Seg to all DUTs
195 | | And   Apply startup configuration on all VPP DUTs
196 | | When  IPv6 forwarding initialized in a 3-node circular topology
197 | | And   Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
198 | | And   Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
199 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
200 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 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 | ${duration} | ${rate}
204 | | ...                                    | ${framesize} | 3-node-IPv6
205
206 | TC08: Verify 1518B ref-NDR at 2x 812.74kpps - DUT IPv6 whitelist - 4thread 4core 2rxq
207 | | [Documentation]
208 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
209 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
210 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test.
211 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
212 | | ${framesize}= | Set Variable | 1518
213 | | ${duration}= | Set Variable | 10
214 | | ${rate}= | Set Variable | 812743pps
215 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
216 | | And   Add all PCI devices to all DUTs
217 | | And   Add No Multi Seg to all DUTs
218 | | And   Apply startup configuration on all VPP DUTs
219 | | When  IPv6 forwarding initialized in a 3-node circular topology
220 | | And   Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
221 | | And   Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
222 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
223 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
224 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
225 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
226 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
227 | | ...                                    | ${framesize} | 3-node-IPv6
228
229 | TC09: Verify 9000B ref-NDR at 2x 138.58kpps - DUT IPv6 whitelist - 4thread 4core 2rxq
230 | | [Documentation]
231 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
232 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
233 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test.
234 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
235 | | ${framesize}= | Set Variable | 9000
236 | | ${duration}= | Set Variable | 10
237 | | ${rate}= | Set Variable | 138580pps
238 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
239 | | And   Add all PCI devices to all DUTs
240 | | And   Apply startup configuration on all VPP DUTs
241 | | When  IPv6 forwarding initialized in a 3-node circular topology
242 | | And   Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
243 | | And   Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
244 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
245 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
246 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
247 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
248 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
249 | | ...                                    | ${framesize} | 3-node-IPv6