f87d21a0e03d3c997c1fd1c281e44fff30ff48e5
[csit.git] / tests / perf / 10ge2p1x520-ethip6-ip6base-iacldstbase-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.Classify.Classify
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRCHK
18 | ...        | NIC_Intel-X520-DA2 | ETH | IP6FWD | FEATURE | IACLDST
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
24 | ...           | Remove startup configuration of VPP from all DUTs
25 | ...           | AND          | Show vpp trace dump on all DUTs
26 | Documentation | *Reference NDR throughput IPv6 whitelist verify test cases*
27 | ...
28 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
29 | ... | with single links between nodes.
30 | ... | *[Enc] Packet Encapsulations:* Eth-IPv6 for IPv6 routing.
31 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv6
32 | ... | routing, two static IPv6 /64 routes and IPv6 iAcl security whitelist
33 | ... | ingress /64 filter entries applied on links TG - DUT1 and DUT2 - TG.
34 | ... | DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
35 | ... | *[Ver] TG verification:* In short performance tests, TG verifies
36 | ... | DUTs' throughput at ref-NDR (reference Non Drop Rate) with zero packet
37 | ... | loss tolerance. Ref-NDR value is periodically updated acording to
38 | ... | formula: ref-NDR = 0.9x NDR, where NDR is found in RFC2544 long
39 | ... | performance tests for the same DUT confiiguration. Test packets are
40 | ... | generated by TG on links to DUTs. TG traffic profile contains two L3
41 | ... | flow-groups (flow-group per direction, 253 flows per flow-group) with
42 | ... | all packets containing Ethernet header, IPv6 header and generated
43 | ... | payload.
44 | ... | *[Ref] Applicable standard specifications:* RFC2544.
45
46 *** Test Cases ***
47 | tc01-78B-1t1c-ethip6-ip6base-iacldstbase-ndrchk
48 | | [Documentation]
49 | | ... | [Cfg] DUT runs IPv4 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.9mpps.
53 | | [Tags] | 1T1C | STHREAD
54 | | ${framesize}= | Set Variable | 78
55 | | ${duration}= | Set Variable | 10
56 | | ${rate}= | Set Variable | 2.9mpps
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 | | And   IPv6 forwarding initialized in a 3-node circular topology
62 | | And   IPv6 iAcl whitelist initialized in a 3-node circular topology
63 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
64 | | ...                                    | ${framesize} | 3-node-IPv6
65
66 | tc02-1518B-1t1c-ethip6-ip6base-iacldstbase-ndrchk
67 | | [Documentation]
68 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
69 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
70 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
71 | | ... | at 2x 812743pps.
72 | | [Tags] | 1T1C | STHREAD
73 | | ${framesize}= | Set Variable | 1518
74 | | ${duration}= | Set Variable | 10
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 | ${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] | 1T1C | STHREAD
92 | | ${framesize}= | Set Variable | 9000
93 | | ${duration}= | Set Variable | 10
94 | | ${rate}= | Set Variable | 138580pps
95 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
96 | | And   Add PCI devices to DUTs from 3-node single link topology
97 | | And   Apply startup configuration on all VPP DUTs
98 | | And   IPv6 forwarding initialized in a 3-node circular topology
99 | | And   IPv6 iAcl whitelist initialized in a 3-node circular topology
100 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
101 | | ...                                    | ${framesize} | 3-node-IPv6
102
103 | tc04-78B-2t2c-ethip6-ip6base-iacldstbase-ndrchk
104 | | [Documentation]
105 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
106 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
107 | | ... | ref-NDR for 78 Byte frames using single trial throughput test
108 | | ... | at 2x 5.4mpps.
109 | | [Tags] | 2T2C | MTHREAD
110 | | ${framesize}= | Set Variable | 78
111 | | ${duration}= | Set Variable | 10
112 | | ${rate}= | Set Variable | 5.4mpps
113 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
114 | | And   Add PCI devices to DUTs from 3-node single link topology
115 | | And   Add No Multi Seg to all DUTs
116 | | And   Apply startup configuration on all VPP DUTs
117 | | And   IPv6 forwarding initialized in a 3-node circular topology
118 | | And   IPv6 iAcl whitelist initialized in a 3-node circular topology
119 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
120 | | ...                                    | ${framesize} | 3-node-IPv6
121
122 | tc05-1518B-2t2c-ethip6-ip6base-iacldstbase-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 1518 Byte frames using single trial throughput test
127 | | ... | at 2x 812743pps.
128 | | [Tags] | 2T2C | MTHREAD
129 | | ${framesize}= | Set Variable | 1518
130 | | ${duration}= | Set Variable | 10
131 | | ${rate}= | Set Variable | 812743pps
132 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
133 | | And   Add PCI devices to DUTs from 3-node single link topology
134 | | And   Add No Multi Seg to all DUTs
135 | | And   Apply startup configuration on all VPP DUTs
136 | | And   IPv6 forwarding initialized in a 3-node circular topology
137 | | And   IPv6 iAcl whitelist initialized in a 3-node circular topology
138 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
139 | | ...                                    | ${framesize} | 3-node-IPv6
140
141 | tc06-9000B-2t2c-ethip6-ip6base-iacldstbase-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 9000 Byte frames using single trial throughput test
146 | | ... | at 2x 138580pps.
147 | | [Tags] | 2T2C | MTHREAD
148 | | ${framesize}= | Set Variable | 9000
149 | | ${duration}= | Set Variable | 10
150 | | ${rate}= | Set Variable | 138580pps
151 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
152 | | And   Add PCI devices to DUTs from 3-node single link topology
153 | | And   Apply startup configuration on all VPP DUTs
154 | | And   IPv6 forwarding initialized in a 3-node circular topology
155 | | And   IPv6 iAcl whitelist initialized in a 3-node circular topology
156 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
157 | | ...                                    | ${framesize} | 3-node-IPv6
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.5mpps.
165 | | [Tags] | 4T4C | MTHREAD
166 | | ${framesize}= | Set Variable | 78
167 | | ${duration}= | Set Variable | 10
168 | | ${rate}= | Set Variable | 9.5mpps
169 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
170 | | And   Add PCI devices to DUTs from 3-node single link topology
171 | | And   Add No Multi Seg to all DUTs
172 | | And   Apply startup configuration on all VPP DUTs
173 | | And   IPv6 forwarding initialized in a 3-node circular topology
174 | | And   IPv6 iAcl whitelist initialized in a 3-node circular topology
175 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
176 | | ...                                    | ${framesize} | 3-node-IPv6
177
178 | tc08-1518B-4t4c-ethip6-ip6base-iacldstbase-ndrchk
179 | | [Documentation]
180 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
181 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
182 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
183 | | ... | at 2x 812743pps.
184 | | [Tags] | 4T4C | MTHREAD
185 | | ${framesize}= | Set Variable | 1518
186 | | ${duration}= | Set Variable | 10
187 | | ${rate}= | Set Variable | 812743pps
188 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
189 | | And   Add PCI devices to DUTs from 3-node single link topology
190 | | And   Add No Multi Seg to all DUTs
191 | | And   Apply startup configuration on all VPP DUTs
192 | | And   IPv6 forwarding initialized in a 3-node circular topology
193 | | And   IPv6 iAcl whitelist initialized in a 3-node circular topology
194 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
195 | | ...                                    | ${framesize} | 3-node-IPv6
196
197 | tc09-9000B-4t4c-ethip6-ip6base-iacldstbase-ndrchk
198 | | [Documentation]
199 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
200 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
201 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
202 | | ... | at 2x 138580pps.
203 | | [Tags] | 4T4C | MTHREAD
204 | | ${framesize}= | Set Variable | 9000
205 | | ${duration}= | Set Variable | 10
206 | | ${rate}= | Set Variable | 138580pps
207 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
208 | | And   Add PCI devices to DUTs from 3-node single link topology
209 | | And   Apply startup configuration on all VPP DUTs
210 | | And   IPv6 forwarding initialized in a 3-node circular topology
211 | | And   IPv6 iAcl whitelist initialized in a 3-node circular topology
212 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
213 | | ...                                    | ${framesize} | 3-node-IPv6