18bee48997ff5245482c75c6b0b31493afe9680e
[csit.git] / tests / perf / 10ge2p1x520-dot1ad-l2xcbase-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 | Resource | resources/libraries/robot/tagging.robot
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRCHK
18 | ...        | NIC_Intel-X520-DA2 | L2XCFWD | BASE | DOT1AD
19 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
20 | ... | L2 | Intel-X520-DA2
21 | Suite Teardown | 3-node Performance Suite Teardown
22 | Test Setup | Setup all DUTs before test
23 | Test Teardown | Run Keywords | Remove startup configuration of VPP from all DUTs
24 | ...           | AND          | Show vpp trace dump on all DUTs
25 | Documentation | *Reference NDR throughput L2XC with 802.1ad verify test cases*
26 | ...
27 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
28 | ... | with single links between nodes.
29 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 xconnect.
30 | ... | 802.1ad tagging is applied on link between DUT1 and DUT2 with inner 4B
31 | ... | vlan tag (id=100) and outer 4B vlan tag (id=200).
32 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 cross-
33 | ... | connect. DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
34 | ... | *[Ver] TG verification:* In short performance tests, TG verifies
35 | ... | DUTs' throughput at ref-NDR (reference Non Drop Rate) with zero packet
36 | ... | loss tolerance. Ref-NDR value is periodically updated acording to
37 | ... | formula: ref-NDR = 0.9x NDR, where NDR is found in RFC2544 long
38 | ... | performance tests for the same DUT configuration. Test packets are
39 | ... | generated by TG on links to DUTs. TG traffic profile contains two L3
40 | ... | flow-groups (flow-group per direction, 253 flows per flow-group) with
41 | ... | all packets containing Ethernet header, IPv4 header with IP protocol=61
42 | ... | and static payload. MAC addresses are matching MAC addresses of the
43 | ... | TG node interfaces.
44 | ... | *[Ref] Applicable standard specifications:* RFC2544.
45
46 *** Variables ***
47 | ${subid}= | 10
48 | ${outer_vlan_id}= | 100
49 | ${inner_vlan_id}= | 200
50 | ${type_subif}= | two_tags
51 | ${tag_rewrite}= | pop-2
52
53 *** Test Cases ***
54 | TC01: Verify 64B ref-NDR at 2x 2.9Mpps - DUT L2XC with 802.1ad - 1thread 1core 1rxq
55 | | [Documentation]
56 | | ... | [Cfg] DUT runs L2XC with 802.1ad config with 1 thread, 1 phy core, \
57 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
58 | | ... | frames using single trial throughput test.
59 | | [Tags] | 1T1C | STHREAD
60 | | ${framesize}= | Set Variable | 64
61 | | ${duration}= | Set Variable | 10
62 | | ${rate}= | Set Variable | 2.9mpps
63 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
64 | | And   Add PCI devices to DUTs from 3-node single link topology
65 | | And   Add No Multi Seg to all DUTs
66 | | And   Apply startup configuration on all VPP DUTs
67 | | And   VPP interfaces in path are up in a 3-node circular topology
68 | | When VLAN subinterfaces initialized on 3-node topology
69 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
70 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
71 | | And L2 tag rewrite method setup on interfaces
72 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
73 | | ... | ${tag_rewrite}
74 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
75 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
76 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
77 | | Then Traffic should pass with no loss | ${duration} | ${rate}
78 | | ...                                   | ${framesize} | 3-node-xconnect
79
80 | TC02: Verify 1514B ref-NDR at 2x 810.635kpps - DUT L2XC with 802.1ad - 1thread 1core 1rxq
81 | | [Documentation]
82 | | ... | [Cfg] DUT runs L2XC with 802.1ad config with 1 thread, 1 phy core, \
83 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1514 Byte
84 | | ... | frames using single trial throughput test.
85 | | [Tags] | 1T1C | STHREAD
86 | | ${framesize}= | Set Variable | 1514
87 | | ${duration}= | Set Variable | 10
88 | | ${rate}= | Set Variable | 810635pps
89 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
90 | | And   Add PCI devices to DUTs from 3-node single link topology
91 | | And   Add No Multi Seg to all DUTs
92 | | And   Apply startup configuration on all VPP DUTs
93 | | And   VPP interfaces in path are up in a 3-node circular topology
94 | | When VLAN subinterfaces initialized on 3-node topology
95 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
96 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
97 | | And L2 tag rewrite method setup on interfaces
98 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
99 | | ... | ${tag_rewrite}
100 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
101 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
102 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
103 | | Then Traffic should pass with no loss | ${duration} | ${rate}
104 | | ...                                   | ${framesize} | 3-node-xconnect
105
106 | TC03: Verify 9000B ref-NDR at 2x 138.458kpps - DUT L2XC with 802.1ad - 1thread 1core 1rxq
107 | | [Documentation]
108 | | ... | [Cfg] DUT runs L2XC with 802.1ad config with 1 thread, 1 phy core, \
109 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
110 | | ... | frames using single trial throughput test.
111 | | [Tags] | 1T1C | STHREAD
112 | | ${framesize}= | Set Variable | 9000
113 | | ${duration}= | Set Variable | 10
114 | | ${rate}= | Set Variable | 138458pps
115 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
116 | | And   Add PCI devices to DUTs from 3-node single link topology
117 | | And   Apply startup configuration on all VPP DUTs
118 | | And   VPP interfaces in path are up in a 3-node circular topology
119 | | When VLAN subinterfaces initialized on 3-node topology
120 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
121 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
122 | | And L2 tag rewrite method setup on interfaces
123 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
124 | | ... | ${tag_rewrite}
125 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
126 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
127 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
128 | | Then Traffic should pass with no loss | ${duration} | ${rate}
129 | | ...                                   | ${framesize} | 3-node-xconnect
130
131 | TC04: Verify 64B ref-NDR at 2x 7Mpps - DUT L2XC with 802.1ad - 2thread 2core 1rxq
132 | | [Documentation]
133 | | ... | [Cfg] DUT runs L2XC with 802.1ad config with 2 thread, 2 phy core, \
134 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
135 | | ... | frames using single trial throughput test.
136 | | [Tags] | 2T2C | MTHREAD
137 | | ${framesize}= | Set Variable | 64
138 | | ${duration}= | Set Variable | 10
139 | | ${rate}= | Set Variable | 7.0mpps
140 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
141 | | And   Add PCI devices to DUTs from 3-node single link topology
142 | | And   Add No Multi Seg to all DUTs
143 | | And   Apply startup configuration on all VPP DUTs
144 | | And   VPP interfaces in path are up in a 3-node circular topology
145 | | When VLAN subinterfaces initialized on 3-node topology
146 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
147 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
148 | | And L2 tag rewrite method setup on interfaces
149 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
150 | | ... | ${tag_rewrite}
151 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
152 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
153 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
154 | | Then Traffic should pass with no loss | ${duration} | ${rate}
155 | | ...                                   | ${framesize} | 3-node-xconnect
156
157 | TC05: Verify 1514B ref-NDR at 2x 810.635kpps - DUT L2XC with 802.1ad - 2thread 2core 1rxq
158 | | [Documentation]
159 | | ... | [Cfg] DUT runs L2XC with 802.1ad config with 2 thread, 2 phy core, \
160 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1514 Byte
161 | | ... | frames using single trial throughput test.
162 | | [Tags] | 2T2C | MTHREAD
163 | | ${framesize}= | Set Variable | 1514
164 | | ${duration}= | Set Variable | 10
165 | | ${rate}= | Set Variable | 810635pps
166 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
167 | | And   Add PCI devices to DUTs from 3-node single link topology
168 | | And   Add No Multi Seg to all DUTs
169 | | And   Apply startup configuration on all VPP DUTs
170 | | And   VPP interfaces in path are up in a 3-node circular topology
171 | | When VLAN subinterfaces initialized on 3-node topology
172 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
173 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
174 | | And L2 tag rewrite method setup on interfaces
175 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
176 | | ... | ${tag_rewrite}
177 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
178 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
179 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
180 | | Then Traffic should pass with no loss | ${duration} | ${rate}
181 | | ...                                   | ${framesize} | 3-node-xconnect
182
183 | TC06: Verify 9000B ref-NDR at 2x 138.458kpps - DUT L2XC with 802.1ad - 2thread 2core 1rxq
184 | | [Documentation]
185 | | ... | [Cfg] DUT runs L2XC with 802.1ad config with 2 thread, 2 phy core, \
186 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
187 | | ... | frames using single trial throughput test.
188 | | [Tags] | 2T2C | MTHREAD
189 | | ${framesize}= | Set Variable | 9000
190 | | ${duration}= | Set Variable | 10
191 | | ${rate}= | Set Variable | 138458pps
192 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
193 | | And   Add PCI devices to DUTs from 3-node single link topology
194 | | And   Apply startup configuration on all VPP DUTs
195 | | And   VPP interfaces in path are up in a 3-node circular topology
196 | | When VLAN subinterfaces initialized on 3-node topology
197 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
198 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
199 | | And L2 tag rewrite method setup on interfaces
200 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
201 | | ... | ${tag_rewrite}
202 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
203 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
204 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
205 | | Then Traffic should pass with no loss | ${duration} | ${rate}
206 | | ...                                   | ${framesize} | 3-node-xconnect
207
208 | TC07: Verify 64B ref-NDR at 2x 8Mpps - DUT L2XC with 802.1ad - 4thread 4core 2rxq
209 | | [Documentation]
210 | | ... | [Cfg] DUT runs L2XC with 802.1ad config with 4 thread, 4 phy core, \
211 | | ... | 2 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
212 | | ... | frames using single trial throughput test.
213 | | [Tags] | 4T4C | MTHREAD
214 | | ${framesize}= | Set Variable | 64
215 | | ${duration}= | Set Variable | 10
216 | | ${rate}= | Set Variable | 8.0mpps
217 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
218 | | And   Add PCI devices to DUTs from 3-node single link topology
219 | | And   Add No Multi Seg to all DUTs
220 | | And   Apply startup configuration on all VPP DUTs
221 | | And   VPP interfaces in path are up in a 3-node circular topology
222 | | When VLAN subinterfaces initialized on 3-node topology
223 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
224 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
225 | | And L2 tag rewrite method setup on interfaces
226 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
227 | | ... | ${tag_rewrite}
228 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
229 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
230 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
231 | | Then Traffic should pass with no loss | ${duration} | ${rate}
232 | | ...                                   | ${framesize} | 3-node-xconnect
233
234 | TC08: Verify 1514B ref-NDR at 2x 810.635kpps - DUT L2XC with 802.1ad - 4thread 4core 2rxq
235 | | [Documentation]
236 | | ... | [Cfg] DUT runs L2XC with 802.1ad config with 4 thread, 4 phy core, \
237 | | ... | 2 receive queue per NIC port. [Ver] Verify ref-NDR for 1514 Byte
238 | | ... | frames using single trial throughput test.
239 | | [Tags] | 4T4C | MTHREAD
240 | | ${framesize}= | Set Variable | 1514
241 | | ${duration}= | Set Variable | 10
242 | | ${rate}= | Set Variable | 810635pps
243 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
244 | | And   Add PCI devices to DUTs from 3-node single link topology
245 | | And   Add No Multi Seg to all DUTs
246 | | And   Apply startup configuration on all VPP DUTs
247 | | And   VPP interfaces in path are up in a 3-node circular topology
248 | | When VLAN subinterfaces initialized on 3-node topology
249 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
250 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
251 | | And L2 tag rewrite method setup on interfaces
252 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
253 | | ... | ${tag_rewrite}
254 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
255 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
256 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
257 | | Then Traffic should pass with no loss | ${duration} | ${rate}
258 | | ...                                   | ${framesize} | 3-node-xconnect
259
260 | TC09: Verify 9000B ref-NDR at 2x 138.458kpps - DUT L2XC with 802.1ad - 4thread 4core 2rxq
261 | | [Documentation]
262 | | ... | [Cfg] DUT runs L2XC with 802.1ad config with 4 thread, 4 phy core, \
263 | | ... | 2 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
264 | | ... | frames using single trial throughput test.
265 | | [Tags] | 4T4C | MTHREAD
266 | | ${framesize}= | Set Variable | 9000
267 | | ${duration}= | Set Variable | 10
268 | | ${rate}= | Set Variable | 138458pps
269 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
270 | | And   Add PCI devices to DUTs from 3-node single link topology
271 | | And   Apply startup configuration on all VPP DUTs
272 | | And   VPP interfaces in path are up in a 3-node circular topology
273 | | When VLAN subinterfaces initialized on 3-node topology
274 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
275 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
276 | | And L2 tag rewrite method setup on interfaces
277 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
278 | | ... | ${tag_rewrite}
279 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
280 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
281 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
282 | | Then Traffic should pass with no loss | ${duration} | ${rate}
283 | | ...                                   | ${framesize} | 3-node-xconnect