6559ba1a82f58aafcf91dd803aad661cd6c058fb
[csit.git] / tests / suites / performance / Short_Xconnect_Dot1q_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 Keyword | Remove startup configuration of VPP from all DUTs
24 | Documentation | Minimal throughput acceptance test cases
25
26 *** Variables ***
27 | ${subid}= | 10
28 | ${tag_rewrite}= | pop-1
29
30 *** Test Cases ***
31 | 1core VPP passes 64B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect at 2x2.9Mpps in 3-node topology
32 | | [Documentation]
33 | | ... | VPP with 1 core should pass 64B frames through VLAN dot1q
34 | | ... | sub-interfaces inter-connected using L2 cross connect at 2x2.9Mpps in
35 | | ... | 3-node topology. Tagging is applied between DUTs inserting 4B VLAN ID
36 | | ... | into a packet header.
37 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
38 | | ${framesize}= | Set Variable | 64
39 | | ${duration}= | Set Variable | 10
40 | | ${rate}= | Set Variable | 2.9mpps
41 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
42 | | And   Add all PCI devices to all DUTs
43 | | And   Add No Multi Seg to all DUTs
44 | | And   Apply startup configuration on all VPP DUTs
45 | | And   VPP interfaces in path are up
46 | | When VLAN dot1q subinterfaces initialized on 3-node topology
47 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
48 | | And L2 tag rewrite method setup on interfaces
49 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
50 | | ... | ${tag_rewrite}
51 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
52 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
53 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
54 | | Then Traffic should pass with no loss | ${duration} | ${rate}
55 | | ...                                   | ${framesize} | 3-node-xconnect
56
57 | 1core VPP passes 1518B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect at 2x 720,000pps in 3-node topology
58 | | [Documentation]
59 | | ... | VPP with 1 core should pass 1518B frames through VLAN dot1q
60 | | ... | sub-interfaces inter-connected using L2 cross connect at
61 | | ... | 2x 720,000pps in 3-node topology. Tagging is applied between DUTs
62 | | ... | inserting 4B VLAN ID into a packet header.
63 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
64 | | ${framesize}= | Set Variable | 1518
65 | | ${duration}= | Set Variable | 10
66 | | ${rate}= | Set Variable | 720000pps
67 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
68 | | And   Add all PCI devices to all DUTs
69 | | And   Add No Multi Seg to all DUTs
70 | | And   Apply startup configuration on all VPP DUTs
71 | | And   VPP interfaces in path are up
72 | | When VLAN dot1q subinterfaces initialized on 3-node topology
73 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
74 | | And L2 tag rewrite method setup on interfaces
75 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
76 | | ... | ${tag_rewrite}
77 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
78 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
79 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
80 | | Then Traffic should pass with no loss | ${duration} | ${rate}
81 | | ...                                   | ${framesize} | 3-node-xconnect
82
83 | 1core VPP passes 9000B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect at 2x 120,000pps in 3-node topology
84 | | [Documentation]
85 | | ... | VPP with 1 core should pass 9000B frames through VLAN dot1q
86 | | ... | sub-interfaces inter-connected using L2 cross connect at
87 | | ... | 2x 120,000pps in 3-node topology. Tagging is applied between DUTs
88 | | ... | inserting 4B VLAN ID into a packet header.
89 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
90 | | ${framesize}= | Set Variable | 9000
91 | | ${duration}= | Set Variable | 10
92 | | ${rate}= | Set Variable | 120000pps
93 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
94 | | And   Add all PCI devices to all DUTs
95 | | And   Apply startup configuration on all VPP DUTs
96 | | And   VPP interfaces in path are up
97 | | When VLAN dot1q subinterfaces initialized on 3-node topology
98 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
99 | | And L2 tag rewrite method setup on interfaces
100 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
101 | | ... | ${tag_rewrite}
102 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
103 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
104 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
105 | | Then Traffic should pass with no loss | ${duration} | ${rate}
106 | | ...                                   | ${framesize} | 3-node-xconnect
107
108 | 2core VPP with rxqueues 1 passes 64B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect at 2x5.8Mpps in 3-node topology
109 | | [Documentation]
110 | | ... | VPP with 2 cores should pass 64B frames through VLAN dot1q
111 | | ... | sub-interfaces inter-connected using L2 cross connect at 2x5.8Mpps in
112 | | ... | 3-node topology. Tagging is applied between DUTs inserting 4B VLAN ID
113 | | ... | into a packet header.
114 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
115 | | ${framesize}= | Set Variable | 64
116 | | ${duration}= | Set Variable | 10
117 | | ${rate}= | Set Variable | 5.8mpps
118 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
119 | | And   Add all PCI devices to all DUTs
120 | | And   Add No Multi Seg to all DUTs
121 | | And   Apply startup configuration on all VPP DUTs
122 | | And   VPP interfaces in path are up
123 | | When VLAN dot1q subinterfaces initialized on 3-node topology
124 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
125 | | And L2 tag rewrite method setup on interfaces
126 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
127 | | ... | ${tag_rewrite}
128 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
129 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
130 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
131 | | Then Traffic should pass with no loss | ${duration} | ${rate}
132 | | ...                                   | ${framesize} | 3-node-xconnect
133
134 | 2core VPP with rxqueues 1 passes 1518B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect at 2x 720,000pps in 3-node topology
135 | | [Documentation]
136 | | ... | VPP with 2 core should pass 1518B frames through VLAN dot1q
137 | | ... | sub-interfaces inter-connected using L2 cross connect at
138 | | ... | 2x 720,000pps in 3-node topology. Tagging is applied between DUTs
139 | | ... | inserting 4B VLAN ID into a packet header.
140 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
141 | | ${framesize}= | Set Variable | 1518
142 | | ${duration}= | Set Variable | 10
143 | | ${rate}= | Set Variable | 720000pps
144 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
145 | | And   Add all PCI devices to all DUTs
146 | | And   Add No Multi Seg to all DUTs
147 | | And   Apply startup configuration on all VPP DUTs
148 | | And   VPP interfaces in path are up
149 | | When VLAN dot1q subinterfaces initialized on 3-node topology
150 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
151 | | And L2 tag rewrite method setup on interfaces
152 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
153 | | ... | ${tag_rewrite}
154 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
155 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
156 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
157 | | Then Traffic should pass with no loss | ${duration} | ${rate}
158 | | ...                                   | ${framesize} | 3-node-xconnect
159
160 | 2core VPP with rxqueues 1 passes 9000B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect at 2x 120,000pps in 3-node topology
161 | | [Documentation]
162 | | ... | VPP with 2 core should pass 9000B frames through VLAN dot1q
163 | | ... | sub-interfaces inter-connected using L2 cross connect at
164 | | ... | 2x 120,000pps in 3-node topology. Tagging is applied between DUTs
165 | | ... | inserting 4B VLAN ID into a packet header.
166 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
167 | | ${framesize}= | Set Variable | 9000
168 | | ${duration}= | Set Variable | 10
169 | | ${rate}= | Set Variable | 120000pps
170 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
171 | | And   Add all PCI devices to all DUTs
172 | | And   Apply startup configuration on all VPP DUTs
173 | | And   VPP interfaces in path are up
174 | | When VLAN dot1q subinterfaces initialized on 3-node topology
175 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
176 | | And L2 tag rewrite method setup on interfaces
177 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
178 | | ... | ${tag_rewrite}
179 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
180 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
181 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
182 | | Then Traffic should pass with no loss | ${duration} | ${rate}
183 | | ...                                   | ${framesize} | 3-node-xconnect
184
185 | 4core VPP with rxqueues 2 passes 64B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect at 2x9.0Mpps in 3-node topology
186 | | [Documentation]
187 | | ... | VPP with 4 cores and rxqueues 2 should pass 64B frames through VLAN dot1q
188 | | ... | sub-interfaces inter-connected using L2 cross connect at 2x9.0Mpps in
189 | | ... | 3-node topology. Tagging is applied between DUTs inserting 4B VLAN ID
190 | | ... | into a packet header.
191 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
192 | | ${framesize}= | Set Variable | 64
193 | | ${duration}= | Set Variable | 10
194 | | ${rate}= | Set Variable | 9.0mpps
195 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
196 | | And   Add all PCI devices to all DUTs
197 | | And   Add No Multi Seg to all DUTs
198 | | And   Apply startup configuration on all VPP DUTs
199 | | And   VPP interfaces in path are up
200 | | When VLAN dot1q subinterfaces initialized on 3-node topology
201 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
202 | | And L2 tag rewrite method setup on interfaces
203 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
204 | | ... | ${tag_rewrite}
205 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
206 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
207 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
208 | | Then Traffic should pass with no loss | ${duration} | ${rate}
209 | | ...                                   | ${framesize} | 3-node-xconnect
210
211 | 4core VPP with rxqueues 2 passes 1518B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect at 2x 720,000pps in 3-node topology
212 | | [Documentation]
213 | | ... | VPP with 4 cores and rxqueues 2 should pass 1518B frames through VLAN
214 | | ... | dot1q sub-interfaces inter-connected using L2 cross connect at
215 | | ... | 2x 720,000pps in 3-node topology. Tagging is applied between DUTs
216 | | ... | inserting 4B VLAN ID into a packet header.
217 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
218 | | ${framesize}= | Set Variable | 1518
219 | | ${duration}= | Set Variable | 10
220 | | ${rate}= | Set Variable | 720000pps
221 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
222 | | And   Add all PCI devices to all DUTs
223 | | And   Add No Multi Seg to all DUTs
224 | | And   Apply startup configuration on all VPP DUTs
225 | | And   VPP interfaces in path are up
226 | | When VLAN dot1q subinterfaces initialized on 3-node topology
227 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
228 | | And L2 tag rewrite method setup on interfaces
229 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
230 | | ... | ${tag_rewrite}
231 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
232 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
233 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
234 | | Then Traffic should pass with no loss | ${duration} | ${rate}
235 | | ...                                   | ${framesize} | 3-node-xconnect
236
237 | 4core VPP with rxqueues 2 passes 9000B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect at 2x 120,000pps in 3-node topology
238 | | [Documentation]
239 | | ... | VPP with 4 cores and rxqueues 2 should pass 9000B frames through VLAN
240 | | ... | dot1q sub-interfaces inter-connected using L2 cross connect at
241 | | ... | 2x 120,000pps in 3-node topology. Tagging is applied between DUTs
242 | | ... | inserting 4B VLAN ID into a packet header.
243 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
244 | | ${framesize}= | Set Variable | 9000
245 | | ${duration}= | Set Variable | 10
246 | | ${rate}= | Set Variable | 120000pps
247 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
248 | | And   Add all PCI devices to all DUTs
249 | | And   Apply startup configuration on all VPP DUTs
250 | | And   VPP interfaces in path are up
251 | | When VLAN dot1q subinterfaces initialized on 3-node topology
252 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
253 | | And L2 tag rewrite method setup on interfaces
254 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
255 | | ... | ${tag_rewrite}
256 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
257 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
258 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
259 | | Then Traffic should pass with no loss | ${duration} | ${rate}
260 | | ...                                   | ${framesize} | 3-node-xconnect