CSIT-562 HC Test: Persistence suite rework, part1
[csit.git] / tests / perf / 10ge2p1x520-ethip6-ip6base-iacldstbase-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.Classify.Classify
17 | ...
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRCHK
19 | ... | NIC_Intel-X520-DA2 | ETH | IP6FWD | FEATURE | IACLDST
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 iAcl security whitelist
35 | ... | ingress /64 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 confiiguration. 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 generated
45 | ... | payload.
46 | ... | *[Ref] Applicable standard specifications:* RFC2544.
47
48 *** Test Cases ***
49 | tc01-78B-1t1c-ethip6-ip6base-iacldstbase-ndrchk
50 | | [Documentation]
51 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
52 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
53 | | ... | ref-NDR for 78 Byte frames using single trial throughput test
54 | | ... | at 2x 3.2mpps.
55 | | [Tags] | 78B | 1T1C | STHREAD
56 | | ${framesize}= | Set Variable | ${78}
57 | | ${rate}= | Set Variable | 3.2mpps
58 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
59 | | And Add PCI devices to DUTs from 3-node single link topology
60 | | And Add No Multi Seg to all DUTs
61 | | And Apply startup configuration on all VPP DUTs
62 | | And IPv6 forwarding initialized in a 3-node circular topology
63 | | And IPv6 iAcl whitelist initialized in a 3-node circular topology
64 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
65 | | ... | ${framesize} | 3-node-IPv6
66
67 | tc02-1518B-1t1c-ethip6-ip6base-iacldstbase-ndrchk
68 | | [Documentation]
69 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
70 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
71 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
72 | | ... | at 2x 812743pps.
73 | | [Tags] | 1518B | 1T1C | STHREAD
74 | | ${framesize}= | Set Variable | ${1518}
75 | | ${rate}= | Set Variable | 812743pps
76 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
77 | | And Add PCI devices to DUTs from 3-node single link topology
78 | | And Add No Multi Seg to all DUTs
79 | | And Apply startup configuration on all VPP DUTs
80 | | And IPv6 forwarding initialized in a 3-node circular topology
81 | | And IPv6 iAcl whitelist initialized in a 3-node circular topology
82 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
83 | | ... | ${framesize} | 3-node-IPv6
84
85 | tc03-9000B-1t1c-ethip6-ip6base-iacldstbase-ndrchk
86 | | [Documentation]
87 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
88 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
89 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
90 | | ... | at 2x 138580pps.
91 | | [Tags] | 9000B | 1T1C | STHREAD
92 | | ${framesize}= | Set Variable | ${9000}
93 | | ${rate}= | Set Variable | 138580pps
94 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
95 | | And Add PCI devices to DUTs from 3-node single link topology
96 | | And Apply startup configuration on all VPP DUTs
97 | | And IPv6 forwarding initialized in a 3-node circular topology
98 | | And IPv6 iAcl whitelist initialized in a 3-node circular topology
99 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
100 | | ... | ${framesize} | 3-node-IPv6
101
102 | tc04-78B-2t2c-ethip6-ip6base-iacldstbase-ndrchk
103 | | [Documentation]
104 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
105 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
106 | | ... | ref-NDR for 78 Byte frames using single trial throughput test
107 | | ... | at 2x 5.7mpps.
108 | | [Tags] | 78B | 2T2C | MTHREAD
109 | | ${framesize}= | Set Variable | ${78}
110 | | ${rate}= | Set Variable | 5.7mpps
111 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
112 | | And Add PCI devices to DUTs from 3-node single link topology
113 | | And Add No Multi Seg to all DUTs
114 | | And Apply startup configuration on all VPP DUTs
115 | | And IPv6 forwarding initialized in a 3-node circular topology
116 | | And IPv6 iAcl whitelist initialized in a 3-node circular topology
117 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
118 | | ... | ${framesize} | 3-node-IPv6
119
120 | tc05-1518B-2t2c-ethip6-ip6base-iacldstbase-ndrchk
121 | | [Documentation]
122 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
123 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
124 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
125 | | ... | at 2x 812743pps.
126 | | [Tags] | 1518B | 2T2C | MTHREAD
127 | | ${framesize}= | Set Variable | ${1518}
128 | | ${rate}= | Set Variable | 812743pps
129 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
130 | | And Add PCI devices to DUTs from 3-node single link topology
131 | | And Add No Multi Seg to all DUTs
132 | | And Apply startup configuration on all VPP DUTs
133 | | And IPv6 forwarding initialized in a 3-node circular topology
134 | | And IPv6 iAcl whitelist initialized in a 3-node circular topology
135 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
136 | | ... | ${framesize} | 3-node-IPv6
137
138 | tc06-9000B-2t2c-ethip6-ip6base-iacldstbase-ndrchk
139 | | [Documentation]
140 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
141 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
142 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
143 | | ... | at 2x 138580pps.
144 | | [Tags] | 9000B | 2T2C | MTHREAD
145 | | ${framesize}= | Set Variable | ${9000}
146 | | ${rate}= | Set Variable | 138580pps
147 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
148 | | And Add PCI devices to DUTs from 3-node single link topology
149 | | And Apply startup configuration on all VPP DUTs
150 | | And IPv6 forwarding initialized in a 3-node circular topology
151 | | And IPv6 iAcl whitelist initialized in a 3-node circular topology
152 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
153 | | ... | ${framesize} | 3-node-IPv6
154
155 | tc07-78B-4t4c-ethip6-ip6base-iacldstbase-ndrchk
156 | | [Documentation]
157 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
158 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
159 | | ... | ref-NDR for 78 Byte frames using single trial throughput test
160 | | ... | at 2x 9.2mpps.
161 | | [Tags] | 78B | 4T4C | MTHREAD
162 | | ${framesize}= | Set Variable | ${78}
163 | | ${rate}= | Set Variable | 9.2mpps
164 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
165 | | And Add PCI devices to DUTs from 3-node single link topology
166 | | And Add No Multi Seg to all DUTs
167 | | And Apply startup configuration on all VPP DUTs
168 | | And IPv6 forwarding initialized in a 3-node circular topology
169 | | And IPv6 iAcl whitelist initialized in a 3-node circular topology
170 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
171 | | ... | ${framesize} | 3-node-IPv6
172
173 | tc08-1518B-4t4c-ethip6-ip6base-iacldstbase-ndrchk
174 | | [Documentation]
175 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
176 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
177 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
178 | | ... | at 2x 812743pps.
179 | | [Tags] | 1518B | 4T4C | MTHREAD
180 | | ${framesize}= | Set Variable | ${1518}
181 | | ${rate}= | Set Variable | 812743pps
182 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
183 | | And Add PCI devices to DUTs from 3-node single link topology
184 | | And Add No Multi Seg to all DUTs
185 | | And Apply startup configuration on all VPP DUTs
186 | | And IPv6 forwarding initialized in a 3-node circular topology
187 | | And IPv6 iAcl whitelist initialized in a 3-node circular topology
188 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
189 | | ... | ${framesize} | 3-node-IPv6
190
191 | tc09-9000B-4t4c-ethip6-ip6base-iacldstbase-ndrchk
192 | | [Documentation]
193 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
194 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
195 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
196 | | ... | at 2x 138580pps.
197 | | [Tags] | 9000B | 4T4C | MTHREAD
198 | | ${framesize}= | Set Variable | ${9000}
199 | | ${rate}= | Set Variable | 138580pps
200 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
201 | | And Add PCI devices to DUTs from 3-node single link topology
202 | | And Apply startup configuration on all VPP DUTs
203 | | And IPv6 forwarding initialized in a 3-node circular topology
204 | | And IPv6 iAcl whitelist initialized in a 3-node circular topology
205 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
206 | | ... | ${framesize} | 3-node-IPv6