Added Ethernet frame size tags for performance tests:
[csit.git] / tests / perf / 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.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 | 3-node Performance Suite Setup with DUT's NIC model
22 | ... | L3 | Intel-X520-DA2
23 | Suite Teardown | 3-node Performance Suite Teardown
24 | ...
25 | Test Setup | Performance test setup
26 | Test Teardown | Performance ndrchk test teardown
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 *** Test Cases ***
50 | tc01-78B-1t1c-ethip6-ip6base-copwhtlistbase-ndrchk
51 | | [Documentation]
52 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
53 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
54 | | ... | ref-NDR for 78 Byte frames using single trial throughput test
55 | | ... | at 2x 3.1mpps.
56 | | [Tags] | 78B | 1T1C | STHREAD
57 | | ${framesize}= | Set Variable | ${78}
58 | | ${rate}= | Set Variable | 3.1mpps
59 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
60 | | And Add PCI devices to DUTs from 3-node single link topology
61 | | And Add No Multi Seg to all DUTs
62 | | And Apply startup configuration on all VPP DUTs
63 | | When IPv6 forwarding initialized in a 3-node circular topology
64 | | And Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
65 | | And Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
66 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
67 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
68 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
69 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
70 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
71 | | ... | ${framesize} | 3-node-IPv6
72
73 | tc02-1518B-1t1c-ethip6-ip6base-copwhtlistbase-ndrchk
74 | | [Documentation]
75 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
76 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
77 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
78 | | ... | at 2x 812743pps.
79 | | [Tags] | 1518B | 1T1C | STHREAD
80 | | ${framesize}= | Set Variable | ${1518}
81 | | ${rate}= | Set Variable | 812743pps
82 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
83 | | And Add PCI devices to DUTs from 3-node single link topology
84 | | And Add No Multi Seg to all DUTs
85 | | And Apply startup configuration on all VPP DUTs
86 | | When IPv6 forwarding initialized in a 3-node circular topology
87 | | And Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
88 | | And Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
89 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
90 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
91 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
92 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
93 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
94 | | ... | ${framesize} | 3-node-IPv6
95
96 | tc03-9000B-1t1c-ethip6-ip6base-copwhtlistbase-ndrchk
97 | | [Documentation]
98 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
99 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
100 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
101 | | ... | at 2x 138580pps.
102 | | [Tags] | 9000B | 1T1C | STHREAD
103 | | ${framesize}= | Set Variable | ${9000}
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 | ${perf_trial_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 5.9mpps.
124 | | [Tags] | 78B | 2T2C | MTHREAD
125 | | ${framesize}= | Set Variable | ${78}
126 | | ${rate}= | Set Variable | 5.9mpps
127 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
128 | | And Add PCI devices to DUTs from 3-node single link topology
129 | | And Add No Multi Seg to all DUTs
130 | | And Apply startup configuration on all VPP DUTs
131 | | When IPv6 forwarding initialized in a 3-node circular topology
132 | | And Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
133 | | And Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
134 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
135 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
136 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
137 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
138 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
139 | | ... | ${framesize} | 3-node-IPv6
140
141 | tc05-1518B-2t2c-ethip6-ip6base-copwhtlistbase-ndrchk
142 | | [Documentation]
143 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
144 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
145 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
146 | | ... | at 2x 812743pps.
147 | | [Tags] | 1518B | 2T2C | MTHREAD
148 | | ${framesize}= | Set Variable | ${1518}
149 | | ${rate}= | Set Variable | 812743pps
150 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
151 | | And Add PCI devices to DUTs from 3-node single link topology
152 | | And Add No Multi Seg to all DUTs
153 | | And Apply startup configuration on all VPP DUTs
154 | | When IPv6 forwarding initialized in a 3-node circular topology
155 | | And Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
156 | | And Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
157 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
158 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
159 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
160 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
161 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
162 | | ... | ${framesize} | 3-node-IPv6
163
164 | tc06-9000B-2t2c-ethip6-ip6base-copwhtlistbase-ndrchk
165 | | [Documentation]
166 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
167 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
168 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
169 | | ... | at 2x 138580pps.
170 | | [Tags] | 9000B | 2T2C | MTHREAD
171 | | ${framesize}= | Set Variable | ${9000}
172 | | ${rate}= | Set Variable | 138580pps
173 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
174 | | And Add PCI devices to DUTs from 3-node single link topology
175 | | And Apply startup configuration on all VPP DUTs
176 | | When IPv6 forwarding initialized in a 3-node circular topology
177 | | And Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
178 | | And Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
179 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
180 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
181 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
182 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
183 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
184 | | ... | ${framesize} | 3-node-IPv6
185
186 | tc07-78B-4t4c-ethip6-ip6base-copwhtlistbase-ndrchk
187 | | [Documentation]
188 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
189 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Verify
190 | | ... | ref-NDR for 78 Byte frames using single trial throughput test
191 | | ... | at 2x 9.4mpps.
192 | | [Tags] | 78B | 4T4C | MTHREAD
193 | | ${framesize}= | Set Variable | ${78}
194 | | ${rate}= | Set Variable | 9.4mpps
195 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
196 | | And Add PCI devices to DUTs from 3-node single link topology
197 | | And Add No Multi Seg to all DUTs
198 | | And Apply startup configuration on all VPP DUTs
199 | | When IPv6 forwarding initialized in a 3-node circular topology
200 | | And Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
201 | | And Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
202 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
203 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
204 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
205 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
206 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
207 | | ... | ${framesize} | 3-node-IPv6
208
209 | tc08-1518B-4t4c-ethip6-ip6base-copwhtlistbase-ndrchk
210 | | [Documentation]
211 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
212 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Verify
213 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
214 | | ... | at 2x 812743pps.
215 | | [Tags] | 1518B | 4T4C | MTHREAD
216 | | ${framesize}= | Set Variable | ${1518}
217 | | ${rate}= | Set Variable | 812743pps
218 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
219 | | And Add PCI devices to DUTs from 3-node single link topology
220 | | And Add No Multi Seg to all DUTs
221 | | And Apply startup configuration on all VPP DUTs
222 | | When IPv6 forwarding initialized in a 3-node circular topology
223 | | And Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
224 | | And Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
225 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
226 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
227 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
228 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
229 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
230 | | ... | ${framesize} | 3-node-IPv6
231
232 | tc09-9000B-4t4c-ethip6-ip6base-copwhtlistbase-ndrchk
233 | | [Documentation]
234 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
235 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port. [Ver] Verify
236 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
237 | | ... | at 2x 138580pps.
238 | | [Tags] | 9000B | 4T4C | MTHREAD
239 | | ${framesize}= | Set Variable | ${9000}
240 | | ${rate}= | Set Variable | 138580pps
241 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
242 | | And Add PCI devices to DUTs from 3-node single link topology
243 | | And Apply startup configuration on all VPP DUTs
244 | | When IPv6 forwarding initialized in a 3-node circular topology
245 | | And Add fib table | ${dut1} | 2001:1:: | 64 | 1 | local
246 | | And Add fib table | ${dut2} | 2001:2:: | 64 | 1 | local
247 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip6 | 1
248 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip6 | 1
249 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
250 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
251 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
252 | | ... | ${framesize} | 3-node-IPv6