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