028eb1bbc25524e6c3d1416f3f14095c162f3a31
[csit.git] / tests / suites / performance / Short_Xconnect_Dot1ad_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 | Resource | resources/libraries/robot/tagging.robot
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 | ... | 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 dot1ad 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 switching of IPv4.
30 | ... | Dot1ad 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 confiiguration. 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 generated payload.
43 | ... | *[Ref] Applicable standard specifications:* RFC2544.
44
45 *** Variables ***
46 | ${subid}= | 10
47 | ${outer_vlan_id}= | 100
48 | ${inner_vlan_id}= | 200
49 | ${type_subif}= | two_tags
50 | ${tag_rewrite}= | pop-2
51
52 *** Test Cases ***
53 | TC01: Verify 64B ref-NDR at 2x 2.9Mpps - DUT L2XC with dot1ad - 1thread 1core 1rxq
54 | | [Documentation]
55 | | ... | [Cfg] DUT runs L2XC config with 1 thread, 1 phy core, \
56 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
57 | | ... | frames using single trial throughput test.
58 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
59 | | ${framesize}= | Set Variable | 64
60 | | ${duration}= | Set Variable | 10
61 | | ${rate}= | Set Variable | 2.9mpps
62 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
63 | | And   Add all PCI devices to all DUTs
64 | | And   Add No Multi Seg to all DUTs
65 | | And   Apply startup configuration on all VPP DUTs
66 | | And   VPP interfaces in path are up in a 3-node circular topology
67 | | When VLAN subinterfaces initialized on 3-node topology
68 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
69 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
70 | | And L2 tag rewrite method setup on interfaces
71 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
72 | | ... | ${tag_rewrite}
73 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
74 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
75 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
76 | | Then Traffic should pass with no loss | ${duration} | ${rate}
77 | | ...                                   | ${framesize} | 3-node-xconnect
78
79 | TC02: Verify 1514B ref-NDR at 2x 810.635kpps - DUT L2XC with dot1ad - 1thread 1core 1rxq
80 | | [Documentation]
81 | | ... | [Cfg] DUT runs L2XC config with 1 thread, 1 phy core, \
82 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1514 Byte
83 | | ... | frames using single trial throughput test.
84 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
85 | | ${framesize}= | Set Variable | 1514
86 | | ${duration}= | Set Variable | 10
87 | | ${rate}= | Set Variable | 810635pps
88 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
89 | | And   Add all PCI devices to all DUTs
90 | | And   Add No Multi Seg to all DUTs
91 | | And   Apply startup configuration on all VPP DUTs
92 | | And   VPP interfaces in path are up in a 3-node circular topology
93 | | When VLAN subinterfaces initialized on 3-node topology
94 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
95 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
96 | | And L2 tag rewrite method setup on interfaces
97 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
98 | | ... | ${tag_rewrite}
99 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
100 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
101 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
102 | | Then Traffic should pass with no loss | ${duration} | ${rate}
103 | | ...                                   | ${framesize} | 3-node-xconnect
104
105 | TC03: Verify 9000B ref-NDR at 2x 138.458kpps - DUT L2XC with dot1ad - 1thread 1core 1rxq
106 | | [Documentation]
107 | | ... | [Cfg] DUT runs L2XC config with 1 thread, 1 phy core, \
108 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
109 | | ... | frames using single trial throughput test.
110 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
111 | | ${framesize}= | Set Variable | 9000
112 | | ${duration}= | Set Variable | 10
113 | | ${rate}= | Set Variable | 138458pps
114 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
115 | | And   Add all PCI devices to all DUTs
116 | | And   Apply startup configuration on all VPP DUTs
117 | | And   VPP interfaces in path are up in a 3-node circular topology
118 | | When VLAN subinterfaces initialized on 3-node topology
119 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
120 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
121 | | And L2 tag rewrite method setup on interfaces
122 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
123 | | ... | ${tag_rewrite}
124 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
125 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
126 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
127 | | Then Traffic should pass with no loss | ${duration} | ${rate}
128 | | ...                                   | ${framesize} | 3-node-xconnect
129
130 | TC04: Verify 64B ref-NDR at 2x 7Mpps - DUT L2XC with dot1ad - 2thread 2core 1rxq
131 | | [Documentation]
132 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 2 phy core, \
133 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames
134 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
135 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
136 | | ${framesize}= | Set Variable | 64
137 | | ${duration}= | Set Variable | 10
138 | | ${rate}= | Set Variable | 7.0mpps
139 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
140 | | And   Add all PCI devices to all DUTs
141 | | And   Add No Multi Seg to all DUTs
142 | | And   Apply startup configuration on all VPP DUTs
143 | | And   VPP interfaces in path are up in a 3-node circular topology
144 | | When VLAN subinterfaces initialized on 3-node topology
145 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
146 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
147 | | And L2 tag rewrite method setup on interfaces
148 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
149 | | ... | ${tag_rewrite}
150 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
151 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
152 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
153 | | Then Traffic should pass with no loss | ${duration} | ${rate}
154 | | ...                                   | ${framesize} | 3-node-xconnect
155
156 | TC05: Verify 1514B ref-NDR at 2x 810.635kpps - DUT L2XC with dot1ad - 2thread 2core 1rxq
157 | | [Documentation]
158 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 2 phy core, \
159 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1514 Byte frames
160 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
161 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
162 | | ${framesize}= | Set Variable | 1514
163 | | ${duration}= | Set Variable | 10
164 | | ${rate}= | Set Variable | 810635pps
165 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
166 | | And   Add all PCI devices to all DUTs
167 | | And   Add No Multi Seg to all DUTs
168 | | And   Apply startup configuration on all VPP DUTs
169 | | And   VPP interfaces in path are up in a 3-node circular topology
170 | | When VLAN subinterfaces initialized on 3-node topology
171 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
172 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
173 | | And L2 tag rewrite method setup on interfaces
174 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
175 | | ... | ${tag_rewrite}
176 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
177 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
178 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
179 | | Then Traffic should pass with no loss | ${duration} | ${rate}
180 | | ...                                   | ${framesize} | 3-node-xconnect
181
182 | TC06: Verify 9000B ref-NDR at 2x 138.458kpps - DUT L2XC with dot1ad - 2thread 2core 1rxq
183 | | [Documentation]
184 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 2 phy core, \
185 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames
186 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
187 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
188 | | ${framesize}= | Set Variable | 9000
189 | | ${duration}= | Set Variable | 10
190 | | ${rate}= | Set Variable | 138458pps
191 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
192 | | And   Add all PCI devices to all DUTs
193 | | And   Apply startup configuration on all VPP DUTs
194 | | And   VPP interfaces in path are up in a 3-node circular topology
195 | | When VLAN subinterfaces initialized on 3-node topology
196 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
197 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
198 | | And L2 tag rewrite method setup on interfaces
199 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
200 | | ... | ${tag_rewrite}
201 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
202 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
203 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
204 | | Then Traffic should pass with no loss | ${duration} | ${rate}
205 | | ...                                   | ${framesize} | 3-node-xconnect
206
207 | TC07: Verify 64B ref-NDR at 2x 8Mpps - DUT L2XC with dot1ad - 4thread 4core 2rxq
208 | | [Documentation]
209 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core, \
210 | | ... | 2 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames
211 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
212 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
213 | | ${framesize}= | Set Variable | 64
214 | | ${duration}= | Set Variable | 10
215 | | ${rate}= | Set Variable | 8.0mpps
216 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
217 | | And   Add all PCI devices to all DUTs
218 | | And   Add No Multi Seg to all DUTs
219 | | And   Apply startup configuration on all VPP DUTs
220 | | And   VPP interfaces in path are up in a 3-node circular topology
221 | | When VLAN subinterfaces initialized on 3-node topology
222 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
223 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
224 | | And L2 tag rewrite method setup on interfaces
225 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
226 | | ... | ${tag_rewrite}
227 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
228 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
229 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
230 | | Then Traffic should pass with no loss | ${duration} | ${rate}
231 | | ...                                   | ${framesize} | 3-node-xconnect
232
233 | TC08: Verify 1514B ref-NDR at 2x 810.635kpps - DUT L2XC with dot1ad - 4thread 4core 2rxq
234 | | [Documentation]
235 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core, \
236 | | ... | 2 receive queue per NIC port. [Ver] Find PDR for 1514 Byte frames
237 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
238 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
239 | | ${framesize}= | Set Variable | 1514
240 | | ${duration}= | Set Variable | 10
241 | | ${rate}= | Set Variable | 810635pps
242 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
243 | | And   Add all PCI devices to all DUTs
244 | | And   Add No Multi Seg to all DUTs
245 | | And   Apply startup configuration on all VPP DUTs
246 | | And   VPP interfaces in path are up in a 3-node circular topology
247 | | When VLAN subinterfaces initialized on 3-node topology
248 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
249 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
250 | | And L2 tag rewrite method setup on interfaces
251 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
252 | | ... | ${tag_rewrite}
253 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
254 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
255 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
256 | | Then Traffic should pass with no loss | ${duration} | ${rate}
257 | | ...                                   | ${framesize} | 3-node-xconnect
258
259 | TC09: Verify 9000B ref-NDR at 2x 138.458kpps - DUT L2XC with dot1ad - 4thread 4core 2rxq
260 | | [Documentation]
261 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core, \
262 | | ... | 2 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames
263 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
264 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
265 | | ${framesize}= | Set Variable | 9000
266 | | ${duration}= | Set Variable | 10
267 | | ${rate}= | Set Variable | 138458pps
268 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
269 | | And   Add all PCI devices to all DUTs
270 | | And   Apply startup configuration on all VPP DUTs
271 | | And   VPP interfaces in path are up in a 3-node circular topology
272 | | When VLAN subinterfaces initialized on 3-node topology
273 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
274 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
275 | | And L2 tag rewrite method setup on interfaces
276 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
277 | | ... | ${tag_rewrite}
278 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
279 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
280 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
281 | | Then Traffic should pass with no loss | ${duration} | ${rate}
282 | | ...                                   | ${framesize} | 3-node-xconnect