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