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