CSIT-687: Directory structure reorganization
[csit.git] / tests / vpp / perf / ip6 / 10ge2p1x520-ethip6-ip6base-copwhtlistbase-ndrchk.robot
1 # Copyright (c) 2017 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/performance_setup.robot
16 | Library | resources.libraries.python.Cop
17 | ...
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRCHK
19 | ... | NIC_Intel-X520-DA2 | ETH | IP6FWD | FEATURE | COPWHLIST
20 | ...
21 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
22 | ... | L3 | Intel-X520-DA2
23 | Suite Teardown | Tear down 3-node performance topology
24 | ...
25 | Test Setup | Set up performance test
26 | Test Teardown | Tear down performance ndrchk test
27 | ...
28 | Documentation | *Reference NDR throughput IPv6 whitelist verify test cases*
29 | ...
30 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
31 | ... | with single links between nodes.
32 | ... | *[Enc] Packet Encapsulations:* Eth-IPv6 for IPv6 routing.
33 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv6
34 | ... | routing, two static IPv6 /64 routes and IPv6 COP security whitelist
35 | ... | ingress /24 filter entries applied on links TG - DUT1 and DUT2 - TG.
36 | ... | DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
37 | ... | *[Ver] TG verification:* In short performance tests, TG verifies
38 | ... | DUTs' throughput at ref-NDR (reference Non Drop Rate) with zero packet
39 | ... | loss tolerance. Ref-NDR value is periodically updated acording to
40 | ... | formula: ref-NDR = 0.9x NDR, where NDR is found in RFC2544 long
41 | ... | performance tests for the same DUT configuration. Test packets are
42 | ... | generated by TG on links to DUTs. TG traffic profile contains two L3
43 | ... | flow-groups (flow-group per direction, 253 flows per flow-group) with
44 | ... | all packets containing Ethernet header, IPv6 header and static
45 | ... | payload. MAC addresses are matching MAC addresses of the TG node
46 | ... | interfaces.
47 | ... | *[Ref] Applicable standard specifications:* RFC2544.
48
49 *** Variables ***
50 # Traffic profile:
51 | ${traffic_profile} | trex-sl-3n-ethip6-ip6src253
52
53 *** Test Cases ***
54 | tc01-78B-1t1c-ethip6-ip6base-copwhtlistbase-ndrchk
55 | | [Documentation]
56 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
57 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
58 | | ... | ref-NDR for 78 Byte frames using single trial throughput test
59 | | ... | at 2x 3.1mpps.
60 | | [Tags] | 78B | 1T1C | STHREAD
61 | | ${framesize}= | Set Variable | ${78}
62 | | ${rate}= | Set Variable | 3.1mpps
63 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
64 | | And Add PCI devices to DUTs in 3-node single link topology
65 | | And Add no multi seg to all DUTs
66 | | And Apply startup configuration on all VPP DUTs
67 | | When Initialize IPv6 forwarding in 3-node circular topology
68 | | And Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
69 | | And Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
70 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
71 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
72 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
73 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
74 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
75 | | ... | ${framesize} | ${traffic_profile}
76
77 | tc02-1518B-1t1c-ethip6-ip6base-copwhtlistbase-ndrchk
78 | | [Documentation]
79 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
80 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
81 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
82 | | ... | at 2x 812743pps.
83 | | [Tags] | 1518B | 1T1C | STHREAD
84 | | ${framesize}= | Set Variable | ${1518}
85 | | ${rate}= | Set Variable | 812743pps
86 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
87 | | And Add PCI devices to DUTs in 3-node single link topology
88 | | And Add no multi seg to all DUTs
89 | | And Apply startup configuration on all VPP DUTs
90 | | When Initialize IPv6 forwarding in 3-node circular topology
91 | | And Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
92 | | And Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
93 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
94 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
95 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
96 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
97 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
98 | | ... | ${framesize} | ${traffic_profile}
99
100 | tc03-9000B-1t1c-ethip6-ip6base-copwhtlistbase-ndrchk
101 | | [Documentation]
102 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
103 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
104 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
105 | | ... | at 2x 138580pps.
106 | | [Tags] | 9000B | 1T1C | STHREAD
107 | | ${framesize}= | Set Variable | ${9000}
108 | | ${rate}= | Set Variable | 138580pps
109 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
110 | | And Add PCI devices to DUTs in 3-node single link topology
111 | | And Apply startup configuration on all VPP DUTs
112 | | When Initialize IPv6 forwarding in 3-node circular topology
113 | | And Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
114 | | And Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
115 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
116 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
117 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
118 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
119 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
120 | | ... | ${framesize} | ${traffic_profile}
121
122 | tc04-78B-2t2c-ethip6-ip6base-copwhtlistbase-ndrchk
123 | | [Documentation]
124 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
125 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
126 | | ... | ref-NDR for 78 Byte frames using single trial throughput test
127 | | ... | at 2x 5.9mpps.
128 | | [Tags] | 78B | 2T2C | MTHREAD
129 | | ${framesize}= | Set Variable | ${78}
130 | | ${rate}= | Set Variable | 5.9mpps
131 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
132 | | And Add PCI devices to DUTs in 3-node single link topology
133 | | And Add no multi seg to all DUTs
134 | | And Apply startup configuration on all VPP DUTs
135 | | When Initialize IPv6 forwarding in 3-node circular topology
136 | | And Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
137 | | And Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
138 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
139 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
140 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
141 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
142 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
143 | | ... | ${framesize} | ${traffic_profile}
144
145 | tc05-1518B-2t2c-ethip6-ip6base-copwhtlistbase-ndrchk
146 | | [Documentation]
147 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
148 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
149 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
150 | | ... | at 2x 812743pps.
151 | | [Tags] | 1518B | 2T2C | MTHREAD
152 | | ${framesize}= | Set Variable | ${1518}
153 | | ${rate}= | Set Variable | 812743pps
154 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
155 | | And Add PCI devices to DUTs in 3-node single link topology
156 | | And Add no multi seg to all DUTs
157 | | And Apply startup configuration on all VPP DUTs
158 | | When Initialize IPv6 forwarding in 3-node circular topology
159 | | And Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
160 | | And Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
161 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
162 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
163 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
164 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
165 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
166 | | ... | ${framesize} | ${traffic_profile}
167
168 | tc06-9000B-2t2c-ethip6-ip6base-copwhtlistbase-ndrchk
169 | | [Documentation]
170 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
171 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
172 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
173 | | ... | at 2x 138580pps.
174 | | [Tags] | 9000B | 2T2C | MTHREAD
175 | | ${framesize}= | Set Variable | ${9000}
176 | | ${rate}= | Set Variable | 138580pps
177 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
178 | | And Add PCI devices to DUTs in 3-node single link topology
179 | | And Apply startup configuration on all VPP DUTs
180 | | When Initialize IPv6 forwarding in 3-node circular topology
181 | | And Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
182 | | And Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
183 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
184 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
185 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
186 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
187 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
188 | | ... | ${framesize} | ${traffic_profile}
189
190 | tc07-78B-4t4c-ethip6-ip6base-copwhtlistbase-ndrchk
191 | | [Documentation]
192 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
193 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Verify
194 | | ... | ref-NDR for 78 Byte frames using single trial throughput test
195 | | ... | at 2x 9.4mpps.
196 | | [Tags] | 78B | 4T4C | MTHREAD
197 | | ${framesize}= | Set Variable | ${78}
198 | | ${rate}= | Set Variable | 9.4mpps
199 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
200 | | And Add PCI devices to DUTs in 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 Initialize IPv6 forwarding in 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 | ${perf_trial_duration} | ${rate}
211 | | ... | ${framesize} | ${traffic_profile}
212
213 | tc08-1518B-4t4c-ethip6-ip6base-copwhtlistbase-ndrchk
214 | | [Documentation]
215 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
216 | | ... | 4 threads, 4 phy cores, 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] | 1518B | 4T4C | MTHREAD
220 | | ${framesize}= | Set Variable | ${1518}
221 | | ${rate}= | Set Variable | 812743pps
222 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
223 | | And Add PCI devices to DUTs in 3-node single link topology
224 | | And Add no multi seg to all DUTs
225 | | And Apply startup configuration on all VPP DUTs
226 | | When Initialize IPv6 forwarding in 3-node circular topology
227 | | And Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
228 | | And Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
229 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
230 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
231 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
232 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
233 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
234 | | ... | ${framesize} | ${traffic_profile}
235
236 | tc09-9000B-4t4c-ethip6-ip6base-copwhtlistbase-ndrchk
237 | | [Documentation]
238 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
239 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Verify
240 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
241 | | ... | at 2x 138580pps.
242 | | [Tags] | 9000B | 4T4C | MTHREAD
243 | | ${framesize}= | Set Variable | ${9000}
244 | | ${rate}= | Set Variable | 138580pps
245 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
246 | | And Add PCI devices to DUTs in 3-node single link topology
247 | | And Apply startup configuration on all VPP DUTs
248 | | When Initialize IPv6 forwarding in 3-node circular topology
249 | | And Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
250 | | And Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
251 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
252 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
253 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
254 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
255 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
256 | | ... | ${framesize} | ${traffic_profile}