Renaming of all perf TCs.
[csit.git] / tests / perf / 10ge2p1x520-ethip6-ip6base-copwhtlistbase-ndrchk.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 | NDRCHK
18 | ...        | NIC_Intel-X520-DA2 | ETH | IP6FWD | FEATURE | COPWHLIST
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 static
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-78B-1t1c-ethip6-ip6base-copwhtlistbase-ndrchk
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 | | ... | at 2x 2.8mpps.
53 | | [Tags] | 1T1C | STHREAD
54 | | ${framesize}= | Set Variable | 78
55 | | ${duration}= | Set Variable | 10
56 | | ${rate}= | Set Variable | 2.8mpps
57 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
58 | | And   Add PCI devices to DUTs from 3-node single link topology
59 | | And   Add No Multi Seg to all DUTs
60 | | And   Apply startup configuration on all VPP DUTs
61 | | When  IPv6 forwarding initialized in a 3-node circular topology
62 | | And   Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
63 | | And   Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
64 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
65 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 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-IPv6
70
71 | tc02-1518B-1t1c-ethip6-ip6base-copwhtlistbase-ndrchk
72 | | [Documentation]
73 | | ... | [Cfg] DUT runs IPv6 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 | | ... | at 2x 812743pps.
77 | | [Tags] | 1T1C | STHREAD
78 | | ${framesize}= | Set Variable | 1518
79 | | ${duration}= | Set Variable | 10
80 | | ${rate}= | Set Variable | 812743pps
81 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
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  IPv6 forwarding initialized in a 3-node circular topology
86 | | And   Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
87 | | And   Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
88 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
89 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 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-IPv6
94
95 | tc03-9000B-1t1c-ethip6-ip6base-copwhtlistbase-ndrchk
96 | | [Documentation]
97 | | ... | [Cfg] DUT runs IPv6 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 | | ... | at 2x 138580pps.
101 | | [Tags] | 1T1C | STHREAD
102 | | ${framesize}= | Set Variable | 9000
103 | | ${duration}= | Set Variable | 10
104 | | ${rate}= | Set Variable | 138580pps
105 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
106 | | And   Add PCI devices to DUTs from 3-node single link topology
107 | | And   Apply startup configuration on all VPP DUTs
108 | | When  IPv6 forwarding initialized in a 3-node circular topology
109 | | And   Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
110 | | And   Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
111 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
112 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
113 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
114 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
115 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
116 | | ...                                    | ${framesize} | 3-node-IPv6
117
118 | tc04-78B-2t2c-ethip6-ip6base-copwhtlistbase-ndrchk
119 | | [Documentation]
120 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
121 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
122 | | ... | ref-NDR for 78 Byte frames using single trial throughput test
123 | | ... | at 2x 4.9mpps.
124 | | [Tags] | 2T2C | MTHREAD
125 | | ${framesize}= | Set Variable | 78
126 | | ${duration}= | Set Variable | 10
127 | | ${rate}= | Set Variable | 4.9mpps
128 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
129 | | And   Add PCI devices to DUTs from 3-node single link topology
130 | | And   Add No Multi Seg to all DUTs
131 | | And   Apply startup configuration on all VPP DUTs
132 | | When  IPv6 forwarding initialized in a 3-node circular topology
133 | | And   Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
134 | | And   Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
135 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
136 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
137 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
138 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
139 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
140 | | ...                                    | ${framesize} | 3-node-IPv6
141
142 | tc05-1518B-2t2c-ethip6-ip6base-copwhtlistbase-ndrchk
143 | | [Documentation]
144 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
145 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
146 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
147 | | ... | at 2x 812743pps.
148 | | [Tags] | 2T2C | MTHREAD
149 | | ${framesize}= | Set Variable | 1518
150 | | ${duration}= | Set Variable | 10
151 | | ${rate}= | Set Variable | 812743pps
152 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
153 | | And   Add PCI devices to DUTs from 3-node single link topology
154 | | And   Add No Multi Seg to all DUTs
155 | | And   Apply startup configuration on all VPP DUTs
156 | | When  IPv6 forwarding initialized in a 3-node circular topology
157 | | And   Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
158 | | And   Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
159 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
160 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
161 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
162 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
163 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
164 | | ...                                    | ${framesize} | 3-node-IPv6
165
166 | tc06-9000B-2t2c-ethip6-ip6base-copwhtlistbase-ndrchk
167 | | [Documentation]
168 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
169 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
170 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
171 | | ... | at 2x 138580pps.
172 | | [Tags] | 2T2C | MTHREAD
173 | | ${framesize}= | Set Variable | 9000
174 | | ${duration}= | Set Variable | 10
175 | | ${rate}= | Set Variable | 138580pps
176 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
177 | | And   Add PCI devices to DUTs from 3-node single link topology
178 | | And   Apply startup configuration on all VPP DUTs
179 | | When  IPv6 forwarding initialized in a 3-node circular topology
180 | | And   Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
181 | | And   Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
182 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
183 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
184 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
185 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
186 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
187 | | ...                                    | ${framesize} | 3-node-IPv6
188
189 | tc07-78B-4t4c-ethip6-ip6base-copwhtlistbase-ndrchk
190 | | [Documentation]
191 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
192 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
193 | | ... | ref-NDR for 78 Byte frames using single trial throughput test
194 | | ... | at 2x 10.1mpps.
195 | | [Tags] | 4T4C | MTHREAD
196 | | ${framesize}= | Set Variable | 78
197 | | ${duration}= | Set Variable | 10
198 | | ${rate}= | Set Variable | 10.1mpps
199 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
200 | | And   Add PCI devices to DUTs from 3-node single link topology
201 | | And   Add No Multi Seg to all DUTs
202 | | And   Apply startup configuration on all VPP DUTs
203 | | When  IPv6 forwarding initialized in a 3-node circular topology
204 | | And   Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
205 | | And   Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
206 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
207 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
208 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
209 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
210 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
211 | | ...                                    | ${framesize} | 3-node-IPv6
212
213 | tc08-1518B-4t4c-ethip6-ip6base-copwhtlistbase-ndrchk
214 | | [Documentation]
215 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
216 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
217 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
218 | | ... | at 2x 812743pps.
219 | | [Tags] | 4T4C | MTHREAD
220 | | ${framesize}= | Set Variable | 1518
221 | | ${duration}= | Set Variable | 10
222 | | ${rate}= | Set Variable | 812743pps
223 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
224 | | And   Add PCI devices to DUTs from 3-node single link topology
225 | | And   Add No Multi Seg to all DUTs
226 | | And   Apply startup configuration on all VPP DUTs
227 | | When  IPv6 forwarding initialized in a 3-node circular topology
228 | | And   Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
229 | | And   Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
230 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
231 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
232 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
233 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
234 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
235 | | ...                                    | ${framesize} | 3-node-IPv6
236
237 | tc09-9000B-4t4c-ethip6-ip6base-copwhtlistbase-ndrchk
238 | | [Documentation]
239 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
240 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
241 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
242 | | ... | at 2x 138580pps.
243 | | [Tags] | 4T4C | MTHREAD
244 | | ${framesize}= | Set Variable | 9000
245 | | ${duration}= | Set Variable | 10
246 | | ${rate}= | Set Variable | 138580pps
247 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
248 | | And   Add PCI devices to DUTs from 3-node single link topology
249 | | And   Apply startup configuration on all VPP DUTs
250 | | When  IPv6 forwarding initialized in a 3-node circular topology
251 | | And   Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
252 | | And   Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
253 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
254 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
255 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
256 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
257 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
258 | | ...                                    | ${framesize} | 3-node-IPv6