5d1a4e23e0500763f3d3fe55d463af2f11d7c1fd
[csit.git] / tests / perf / Short_IPv6_iAcl_Intel-X520-DA2.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 | PERFTEST_SHORT
18 | ...        | NIC_Intel-X520-DA2
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: Verify 78B ref-NDR at 2x 2.9Mpps - DUT IPv6 iAcl whitelist - 1thread 1core 1rxq
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 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
53 | | ${framesize}= | Set Variable | 78
54 | | ${duration}= | Set Variable | 10
55 | | ${rate}= | Set Variable | 2.9mpps
56 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
57 | | And   Add PCI devices to DUTs from 3-node single link topology
58 | | And   Add No Multi Seg to all DUTs
59 | | And   Apply startup configuration on all VPP DUTs
60 | | And   IPv6 forwarding initialized in a 3-node circular topology
61 | | And   IPv6 iAcl whitelist initialized in a 3-node circular topology
62 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
63 | | ...                                    | ${framesize} | 3-node-IPv6
64
65 | TC02: Verify 1518B ref-NDR at 2x 812.74kpps - DUT IPv6 iAcl whitelist - 1thread 1core 1rxq
66 | | [Documentation]
67 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
68 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
69 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test.
70 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
71 | | ${framesize}= | Set Variable | 1518
72 | | ${duration}= | Set Variable | 10
73 | | ${rate}= | Set Variable | 812743pps
74 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
75 | | And   Add PCI devices to DUTs from 3-node single link topology
76 | | And   Add No Multi Seg to all DUTs
77 | | And   Apply startup configuration on all VPP DUTs
78 | | And   IPv6 forwarding initialized in a 3-node circular topology
79 | | And   IPv6 iAcl whitelist initialized in a 3-node circular topology
80 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
81 | | ...                                    | ${framesize} | 3-node-IPv6
82
83 | TC03: Verify 9000B ref-NDR at 2x 138.58kpps - DUT IPv6 iAcl whitelist - 1thread 1core 1rxq
84 | | [Documentation]
85 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
86 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
87 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test.
88 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
89 | | ${framesize}= | Set Variable | 9000
90 | | ${duration}= | Set Variable | 10
91 | | ${rate}= | Set Variable | 138580pps
92 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
93 | | And   Add PCI devices to DUTs from 3-node single link topology
94 | | And   Apply startup configuration on all VPP DUTs
95 | | And   IPv6 forwarding initialized in a 3-node circular topology
96 | | And   IPv6 iAcl whitelist initialized in a 3-node circular topology
97 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
98 | | ...                                    | ${framesize} | 3-node-IPv6
99
100 | TC04: Verify 78B ref-NDR at 2x 5.4Mpps - DUT IPv6 iAcl whitelist - 2thread 2core 1rxq
101 | | [Documentation]
102 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
103 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
104 | | ... | ref-NDR for 78 Byte frames using single trial throughput test.
105 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
106 | | ${framesize}= | Set Variable | 78
107 | | ${duration}= | Set Variable | 10
108 | | ${rate}= | Set Variable | 5.4mpps
109 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
110 | | And   Add PCI devices to DUTs from 3-node single link topology
111 | | And   Add No Multi Seg to all DUTs
112 | | And   Apply startup configuration on all VPP DUTs
113 | | And   IPv6 forwarding initialized in a 3-node circular topology
114 | | And   IPv6 iAcl whitelist initialized in a 3-node circular topology
115 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
116 | | ...                                    | ${framesize} | 3-node-IPv6
117
118 | TC05: Verify 1518B ref-NDR at 2x 812.74kpps - DUT IPv6 iAcl whitelist - 2thread 2core 1rxq
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 1518 Byte frames using single trial throughput test.
123 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
124 | | ${framesize}= | Set Variable | 1518
125 | | ${duration}= | Set Variable | 10
126 | | ${rate}= | Set Variable | 812743pps
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 | | And   IPv6 forwarding initialized in a 3-node circular topology
132 | | And   IPv6 iAcl whitelist initialized in a 3-node circular topology
133 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
134 | | ...                                    | ${framesize} | 3-node-IPv6
135
136 | TC06: Verify 9000B ref-NDR at 2x 138.58kpps - DUT IPv6 iAcl whitelist - 2thread 2core 1rxq
137 | | [Documentation]
138 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
139 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
140 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test.
141 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
142 | | ${framesize}= | Set Variable | 9000
143 | | ${duration}= | Set Variable | 10
144 | | ${rate}= | Set Variable | 138580pps
145 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
146 | | And   Add PCI devices to DUTs from 3-node single link topology
147 | | And   Apply startup configuration on all VPP DUTs
148 | | And   IPv6 forwarding initialized in a 3-node circular topology
149 | | And   IPv6 iAcl whitelist initialized in a 3-node circular topology
150 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
151 | | ...                                    | ${framesize} | 3-node-IPv6
152
153 | TC07: Verify 78B ref-NDR at 2x 9.5Mpps - DUT IPv6 iAcl whitelist - 4threads 4cores 2rxq
154 | | [Documentation]
155 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
156 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
157 | | ... | ref-NDR for 78 Byte frames using single trial throughput test.
158 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
159 | | ${framesize}= | Set Variable | 78
160 | | ${duration}= | Set Variable | 10
161 | | ${rate}= | Set Variable | 9.5mpps
162 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
163 | | And   Add PCI devices to DUTs from 3-node single link topology
164 | | And   Add No Multi Seg to all DUTs
165 | | And   Apply startup configuration on all VPP DUTs
166 | | And   IPv6 forwarding initialized in a 3-node circular topology
167 | | And   IPv6 iAcl whitelist initialized in a 3-node circular topology
168 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
169 | | ...                                    | ${framesize} | 3-node-IPv6
170
171 | TC08: Verify 1518B ref-NDR at 2x 812.74kpps - DUT IPv6 iAcl whitelist - 4threads 4cores 2rxq
172 | | [Documentation]
173 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
174 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
175 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test.
176 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
177 | | ${framesize}= | Set Variable | 1518
178 | | ${duration}= | Set Variable | 10
179 | | ${rate}= | Set Variable | 812743pps
180 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
181 | | And   Add PCI devices to DUTs from 3-node single link topology
182 | | And   Add No Multi Seg to all DUTs
183 | | And   Apply startup configuration on all VPP DUTs
184 | | And   IPv6 forwarding initialized in a 3-node circular topology
185 | | And   IPv6 iAcl whitelist initialized in a 3-node circular topology
186 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
187 | | ...                                    | ${framesize} | 3-node-IPv6
188
189 | TC09: Verify 9000B ref-NDR at 2x 138.58kpps - DUT IPv6 iAcl whitelist - 4threads 4cores 2rxq
190 | | [Documentation]
191 | | ... | [Cfg] DUT runs IPv6 routing and whitelist filters config with \
192 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
193 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test.
194 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
195 | | ${framesize}= | Set Variable | 9000
196 | | ${duration}= | Set Variable | 10
197 | | ${rate}= | Set Variable | 138580pps
198 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
199 | | And   Add PCI devices to DUTs from 3-node single link topology
200 | | And   Apply startup configuration on all VPP DUTs
201 | | And   IPv6 forwarding initialized in a 3-node circular topology
202 | | And   IPv6 iAcl whitelist initialized in a 3-node circular topology
203 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
204 | | ...                                    | ${framesize} | 3-node-IPv6