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