CSIT-687: Directory structure reorganization
[csit.git] / tests / vpp / perf / ip6 / 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/performance_setup.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 | 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 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 *** Variables ***
49 # Traffic profile:
50 | ${traffic_profile} | trex-sl-3n-ethip6-ip6src253
51
52 *** Test Cases ***
53 | tc01-78B-1t1c-ethip6-ip6base-iacldstbase-ndrchk
54 | | [Documentation]
55 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
56 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
57 | | ... | ref-NDR for 78 Byte frames using single trial throughput test
58 | | ... | at 2x 3.2mpps.
59 | | [Tags] | 78B | 1T1C | STHREAD
60 | | ${framesize}= | Set Variable | ${78}
61 | | ${rate}= | Set Variable | 3.2mpps
62 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
63 | | And Add PCI devices to DUTs in 3-node single link topology
64 | | And Add no multi seg to all DUTs
65 | | And Apply startup configuration on all VPP DUTs
66 | | And Initialize IPv6 forwarding in 3-node circular topology
67 | | And Initialize IPv6 iAcl whitelist in 3-node circular topology
68 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
69 | | ... | ${framesize} | ${traffic_profile}
70
71 | tc02-1518B-1t1c-ethip6-ip6base-iacldstbase-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] | 1518B | 1T1C | STHREAD
78 | | ${framesize}= | Set Variable | ${1518}
79 | | ${rate}= | Set Variable | 812743pps
80 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
81 | | And Add PCI devices to DUTs in 3-node single link topology
82 | | And Add no multi seg to all DUTs
83 | | And Apply startup configuration on all VPP DUTs
84 | | And Initialize IPv6 forwarding in 3-node circular topology
85 | | And Initialize IPv6 iAcl whitelist in 3-node circular topology
86 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
87 | | ... | ${framesize} | ${traffic_profile}
88
89 | tc03-9000B-1t1c-ethip6-ip6base-iacldstbase-ndrchk
90 | | [Documentation]
91 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
92 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
93 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
94 | | ... | at 2x 138580pps.
95 | | [Tags] | 9000B | 1T1C | STHREAD
96 | | ${framesize}= | Set Variable | ${9000}
97 | | ${rate}= | Set Variable | 138580pps
98 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
99 | | And Add PCI devices to DUTs in 3-node single link topology
100 | | And Apply startup configuration on all VPP DUTs
101 | | And Initialize IPv6 forwarding in 3-node circular topology
102 | | And Initialize IPv6 iAcl whitelist in 3-node circular topology
103 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
104 | | ... | ${framesize} | ${traffic_profile}
105
106 | tc04-78B-2t2c-ethip6-ip6base-iacldstbase-ndrchk
107 | | [Documentation]
108 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
109 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
110 | | ... | ref-NDR for 78 Byte frames using single trial throughput test
111 | | ... | at 2x 5.7mpps.
112 | | [Tags] | 78B | 2T2C | MTHREAD
113 | | ${framesize}= | Set Variable | ${78}
114 | | ${rate}= | Set Variable | 5.7mpps
115 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
116 | | And Add PCI devices to DUTs in 3-node single link topology
117 | | And Add no multi seg to all DUTs
118 | | And Apply startup configuration on all VPP DUTs
119 | | And Initialize IPv6 forwarding in 3-node circular topology
120 | | And Initialize IPv6 iAcl whitelist in 3-node circular topology
121 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
122 | | ... | ${framesize} | ${traffic_profile}
123
124 | tc05-1518B-2t2c-ethip6-ip6base-iacldstbase-ndrchk
125 | | [Documentation]
126 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
127 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
128 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
129 | | ... | at 2x 812743pps.
130 | | [Tags] | 1518B | 2T2C | MTHREAD
131 | | ${framesize}= | Set Variable | ${1518}
132 | | ${rate}= | Set Variable | 812743pps
133 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
134 | | And Add PCI devices to DUTs in 3-node single link topology
135 | | And Add no multi seg to all DUTs
136 | | And Apply startup configuration on all VPP DUTs
137 | | And Initialize IPv6 forwarding in 3-node circular topology
138 | | And Initialize IPv6 iAcl whitelist in 3-node circular topology
139 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
140 | | ... | ${framesize} | ${traffic_profile}
141
142 | tc06-9000B-2t2c-ethip6-ip6base-iacldstbase-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 9000 Byte frames using single trial throughput test
147 | | ... | at 2x 138580pps.
148 | | [Tags] | 9000B | 2T2C | MTHREAD
149 | | ${framesize}= | Set Variable | ${9000}
150 | | ${rate}= | Set Variable | 138580pps
151 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
152 | | And Add PCI devices to DUTs in 3-node single link topology
153 | | And Apply startup configuration on all VPP DUTs
154 | | And Initialize IPv6 forwarding in 3-node circular topology
155 | | And Initialize IPv6 iAcl whitelist in 3-node circular topology
156 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
157 | | ... | ${framesize} | ${traffic_profile}
158
159 | tc07-78B-4t4c-ethip6-ip6base-iacldstbase-ndrchk
160 | | [Documentation]
161 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
162 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
163 | | ... | ref-NDR for 78 Byte frames using single trial throughput test
164 | | ... | at 2x 9.2mpps.
165 | | [Tags] | 78B | 4T4C | MTHREAD
166 | | ${framesize}= | Set Variable | ${78}
167 | | ${rate}= | Set Variable | 9.2mpps
168 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
169 | | And Add PCI devices to DUTs in 3-node single link topology
170 | | And Add no multi seg to all DUTs
171 | | And Apply startup configuration on all VPP DUTs
172 | | And Initialize IPv6 forwarding in 3-node circular topology
173 | | And Initialize IPv6 iAcl whitelist in 3-node circular topology
174 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
175 | | ... | ${framesize} | ${traffic_profile}
176
177 | tc08-1518B-4t4c-ethip6-ip6base-iacldstbase-ndrchk
178 | | [Documentation]
179 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
180 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
181 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
182 | | ... | at 2x 812743pps.
183 | | [Tags] | 1518B | 4T4C | MTHREAD
184 | | ${framesize}= | Set Variable | ${1518}
185 | | ${rate}= | Set Variable | 812743pps
186 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
187 | | And Add PCI devices to DUTs in 3-node single link topology
188 | | And Add no multi seg to all DUTs
189 | | And Apply startup configuration on all VPP DUTs
190 | | And Initialize IPv6 forwarding in 3-node circular topology
191 | | And Initialize IPv6 iAcl whitelist in 3-node circular topology
192 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
193 | | ... | ${framesize} | ${traffic_profile}
194
195 | tc09-9000B-4t4c-ethip6-ip6base-iacldstbase-ndrchk
196 | | [Documentation]
197 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
198 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
199 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
200 | | ... | at 2x 138580pps.
201 | | [Tags] | 9000B | 4T4C | MTHREAD
202 | | ${framesize}= | Set Variable | ${9000}
203 | | ${rate}= | Set Variable | 138580pps
204 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
205 | | And Add PCI devices to DUTs in 3-node single link topology
206 | | And Apply startup configuration on all VPP DUTs
207 | | And Initialize IPv6 forwarding in 3-node circular topology
208 | | And Initialize IPv6 iAcl whitelist in 3-node circular topology
209 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
210 | | ... | ${framesize} | ${traffic_profile}