d0ede20e932d58a070db14a6531049ce4b6b7aed
[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 | Show statistics on 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_RSS_1 | SINGLE_THREAD
38 | | ${framesize}= | Set Variable | 64
39 | | ${duration}= | Set Variable | 10
40 | | ${rate}= | Set Variable | 2.9mpps
41 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
42 | | And VPP interfaces in path are up
43 | | When VLAN dot1q subinterfaces initialized on 3-node topology
44 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
45 | | And L2 tag rewrite method setup on interfaces
46 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
47 | | ... | ${tag_rewrite}
48 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
49 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
50 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
51 | | Then Traffic should pass with no loss | ${duration} | ${rate}
52 | | ...                                   | ${framesize} | 3-node-xconnect
53
54 | 1core VPP passes 1518B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect at 2x 720,000pps in 3-node topology
55 | | [Documentation]
56 | | ... | VPP with 1 core should pass 1518B frames through VLAN dot1q
57 | | ... | sub-interfaces inter-connected using L2 cross connect at
58 | | ... | 2x 720,000pps in 3-node topology. Tagging is applied between DUTs
59 | | ... | inserting 4B VLAN ID into a packet header.
60 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
61 | | ${framesize}= | Set Variable | 1518
62 | | ${duration}= | Set Variable | 10
63 | | ${rate}= | Set Variable | 720000pps
64 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
65 | | And VPP interfaces in path are up
66 | | When VLAN dot1q subinterfaces initialized on 3-node topology
67 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
68 | | And L2 tag rewrite method setup on interfaces
69 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
70 | | ... | ${tag_rewrite}
71 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
72 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
73 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
74 | | Then Traffic should pass with no loss | ${duration} | ${rate}
75 | | ...                                   | ${framesize} | 3-node-xconnect
76
77 | 1core VPP passes 9000B frames through VLAN dot1q sub-interfaces inter-connected using L2 cross connect at 2x 120,000pps in 3-node topology
78 | | [Documentation]
79 | | ... | VPP with 1 core should pass 9000B frames through VLAN dot1q
80 | | ... | sub-interfaces inter-connected using L2 cross connect at
81 | | ... | 2x 120,000pps in 3-node topology. Tagging is applied between DUTs
82 | | ... | inserting 4B VLAN ID into a packet header.
83 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
84 | | ${framesize}= | Set Variable | 9000
85 | | ${duration}= | Set Variable | 10
86 | | ${rate}= | Set Variable | 120000pps
87 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
88 | | And VPP interfaces in path are up
89 | | When VLAN dot1q subinterfaces initialized on 3-node topology
90 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
91 | | And L2 tag rewrite method setup on interfaces
92 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
93 | | ... | ${tag_rewrite}
94 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
95 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
96 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
97 | | Then Traffic should pass with no loss | ${duration} | ${rate}
98 | | ...                                   | ${framesize} | 3-node-xconnect
99
100 | 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
101 | | [Documentation]
102 | | ... | VPP with 2 cores should pass 64B frames through VLAN dot1q
103 | | ... | sub-interfaces inter-connected using L2 cross connect at 2x5.8Mpps in
104 | | ... | 3-node topology. Tagging is applied between DUTs inserting 4B VLAN ID
105 | | ... | into a packet header.
106 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
107 | | ${framesize}= | Set Variable | 64
108 | | ${duration}= | Set Variable | 10
109 | | ${rate}= | Set Variable | 5.8mpps
110 | | Given Setup '2' worker threads and rss '1' without HTT on all DUTs
111 | | And VPP interfaces in path are up
112 | | When VLAN dot1q subinterfaces initialized on 3-node topology
113 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
114 | | And L2 tag rewrite method setup on interfaces
115 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
116 | | ... | ${tag_rewrite}
117 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
118 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
119 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
120 | | Then Traffic should pass with no loss | ${duration} | ${rate}
121 | | ...                                   | ${framesize} | 3-node-xconnect
122
123 | 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
124 | | [Documentation]
125 | | ... | VPP with 2 core should pass 1518B frames through VLAN dot1q
126 | | ... | sub-interfaces inter-connected using L2 cross connect at
127 | | ... | 2x 720,000pps in 3-node topology. Tagging is applied between DUTs
128 | | ... | inserting 4B VLAN ID into a packet header.
129 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
130 | | ${framesize}= | Set Variable | 1518
131 | | ${duration}= | Set Variable | 10
132 | | ${rate}= | Set Variable | 720000pps
133 | | Given Setup '2' worker threads and rss '1' without HTT on all DUTs
134 | | And VPP interfaces in path are up
135 | | When VLAN dot1q subinterfaces initialized on 3-node topology
136 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
137 | | And L2 tag rewrite method setup on interfaces
138 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
139 | | ... | ${tag_rewrite}
140 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
141 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
142 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
143 | | Then Traffic should pass with no loss | ${duration} | ${rate}
144 | | ...                                   | ${framesize} | 3-node-xconnect
145
146 | 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
147 | | [Documentation]
148 | | ... | VPP with 2 core should pass 9000B frames through VLAN dot1q
149 | | ... | sub-interfaces inter-connected using L2 cross connect at
150 | | ... | 2x 120,000pps in 3-node topology. Tagging is applied between DUTs
151 | | ... | inserting 4B VLAN ID into a packet header.
152 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
153 | | ${framesize}= | Set Variable | 9000
154 | | ${duration}= | Set Variable | 10
155 | | ${rate}= | Set Variable | 120000pps
156 | | Given Setup '2' worker threads and rss '1' without HTT on all DUTs
157 | | And VPP interfaces in path are up
158 | | When VLAN dot1q subinterfaces initialized on 3-node topology
159 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
160 | | And L2 tag rewrite method setup on interfaces
161 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
162 | | ... | ${tag_rewrite}
163 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
164 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
165 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
166 | | Then Traffic should pass with no loss | ${duration} | ${rate}
167 | | ...                                   | ${framesize} | 3-node-xconnect
168
169 | 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
170 | | [Documentation]
171 | | ... | VPP with 4 cores and rss 2 should pass 64B frames through VLAN dot1q
172 | | ... | sub-interfaces inter-connected using L2 cross connect at 2x9.0Mpps in
173 | | ... | 3-node topology. Tagging is applied between DUTs inserting 4B VLAN ID
174 | | ... | into a packet header.
175 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
176 | | ${framesize}= | Set Variable | 64
177 | | ${duration}= | Set Variable | 10
178 | | ${rate}= | Set Variable | 9.0mpps
179 | | Given Setup '4' worker threads and rss '2' without HTT on all DUTs
180 | | And VPP interfaces in path are up
181 | | When VLAN dot1q subinterfaces initialized on 3-node topology
182 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
183 | | And L2 tag rewrite method setup on interfaces
184 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
185 | | ... | ${tag_rewrite}
186 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
187 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
188 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
189 | | Then Traffic should pass with no loss | ${duration} | ${rate}
190 | | ...                                   | ${framesize} | 3-node-xconnect
191
192 | 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
193 | | [Documentation]
194 | | ... | VPP with 4 cores and rss 2 should pass 1518B frames through VLAN
195 | | ... | dot1q sub-interfaces inter-connected using L2 cross connect at
196 | | ... | 2x 720,000pps in 3-node topology. Tagging is applied between DUTs
197 | | ... | inserting 4B VLAN ID into a packet header.
198 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
199 | | ${framesize}= | Set Variable | 1518
200 | | ${duration}= | Set Variable | 10
201 | | ${rate}= | Set Variable | 720000pps
202 | | Given Setup '4' worker threads and rss '2' without HTT on all DUTs
203 | | And VPP interfaces in path are up
204 | | When VLAN dot1q subinterfaces initialized on 3-node topology
205 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
206 | | And L2 tag rewrite method setup on interfaces
207 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
208 | | ... | ${tag_rewrite}
209 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
210 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
211 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
212 | | Then Traffic should pass with no loss | ${duration} | ${rate}
213 | | ...                                   | ${framesize} | 3-node-xconnect
214
215 | 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
216 | | [Documentation]
217 | | ... | VPP with 4 cores and rss 2 should pass 9000B frames through VLAN
218 | | ... | dot1q sub-interfaces inter-connected using L2 cross connect at
219 | | ... | 2x 120,000pps in 3-node topology. Tagging is applied between DUTs
220 | | ... | inserting 4B VLAN ID into a packet header.
221 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
222 | | ${framesize}= | Set Variable | 9000
223 | | ${duration}= | Set Variable | 10
224 | | ${rate}= | Set Variable | 120000pps
225 | | Given Setup '4' worker threads and rss '2' without HTT on all 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