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