2-node topology keywords
[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 | Remove startup configuration of VPP from all DUTs
24 | ...           | AND          | Show vpp trace dump on all DUTs
25 | Documentation | *Reference NDR throughput L2XC 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 switching of IPv4. Dot1q
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 confiiguration. 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.
42 | ... | *[Ref] Applicable standard specifications:* RFC2544.
43
44 *** Variables ***
45 | ${subid}= | 10
46 | ${tag_rewrite}= | pop-1
47
48 *** Test Cases ***
49 | TC01: Verify 64B ref-NDR at 2x 2.9Mpps - DUT dot1q - 1thread 1core 1rxq
50 | | [Documentation]
51 | | ... | [Cfg] DUT runs L2XC config with 1 thread, 1 phy core, \
52 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
53 | | ... | frames using single trial throughput test.
54 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
55 | | ${framesize}= | Set Variable | 64
56 | | ${duration}= | Set Variable | 10
57 | | ${rate}= | Set Variable | 2.9mpps
58 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
59 | | And   Add all PCI devices to all DUTs
60 | | And   Add No Multi Seg to all DUTs
61 | | And   Apply startup configuration on all VPP DUTs
62 | | And   VPP interfaces in path are up in a 3-node circular topology
63 | | When VLAN dot1q subinterfaces initialized on 3-node topology
64 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
65 | | And L2 tag rewrite method setup on interfaces
66 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
67 | | ... | ${tag_rewrite}
68 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
69 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
70 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
71 | | Then Traffic should pass with no loss | ${duration} | ${rate}
72 | | ...                                   | ${framesize} | 3-node-xconnect
73
74 | TC02: Verify 1518B ref-NDR at 2x 720kpps - DUT dot1q - 1thread 1core 1rxq
75 | | [Documentation]
76 | | ... | [Cfg] DUT runs L2XC config with 1 thread, 1 phy core, \
77 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
78 | | ... | frames using single trial throughput test.
79 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
80 | | ${framesize}= | Set Variable | 1518
81 | | ${duration}= | Set Variable | 10
82 | | ${rate}= | Set Variable | 720000pps
83 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
84 | | And   Add all PCI devices to all DUTs
85 | | And   Add No Multi Seg to all DUTs
86 | | And   Apply startup configuration on all VPP DUTs
87 | | And   VPP interfaces in path are up in a 3-node circular topology
88 | | When VLAN dot1q subinterfaces initialized on 3-node topology
89 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
90 | | And L2 tag rewrite method setup on interfaces
91 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
92 | | ... | ${tag_rewrite}
93 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
94 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
95 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
96 | | Then Traffic should pass with no loss | ${duration} | ${rate}
97 | | ...                                   | ${framesize} | 3-node-xconnect
98
99 | TC03: Verify 9000B ref-NDR at 2x 120kpps - DUT dot1q - 1thread 1core 1rxq
100 | | [Documentation]
101 | | ... | [Cfg] DUT runs L2XC config with 1 thread, 1 phy core, \
102 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
103 | | ... | frames using single trial throughput test.
104 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
105 | | ${framesize}= | Set Variable | 9000
106 | | ${duration}= | Set Variable | 10
107 | | ${rate}= | Set Variable | 120000pps
108 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
109 | | And   Add all PCI devices to all DUTs
110 | | And   Apply startup configuration on all VPP DUTs
111 | | And   VPP interfaces in path are up in a 3-node circular topology
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 | TC04: Verify 64B ref-NDR at 2x 7Mpps - DUT dot1q - 2thread 2core 1rxq
124 | | [Documentation]
125 | | ... | [Cfg] DUT runs L2XC config with 2 threads, 2 phy cores, \
126 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
127 | | ... | frames using single trial throughput test.
128 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
129 | | ${framesize}= | Set Variable | 64
130 | | ${duration}= | Set Variable | 10
131 | | ${rate}= | Set Variable | 7.0mpps
132 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
133 | | And   Add all PCI devices to all DUTs
134 | | And   Add No Multi Seg to all DUTs
135 | | And   Apply startup configuration on all VPP DUTs
136 | | And   VPP interfaces in path are up in a 3-node circular topology
137 | | When VLAN dot1q subinterfaces initialized on 3-node topology
138 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
139 | | And L2 tag rewrite method setup on interfaces
140 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
141 | | ... | ${tag_rewrite}
142 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
143 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
144 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
145 | | Then Traffic should pass with no loss | ${duration} | ${rate}
146 | | ...                                   | ${framesize} | 3-node-xconnect
147
148 | TC05: Verify 1518B ref-NDR at 2x 720kpps - DUT dot1q - 2thread 2core 1rxq
149 | | [Documentation]
150 | | ... | [Cfg] DUT runs L2XC config with 2 threads, 2 phy cores, \
151 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
152 | | ... | frames using single trial throughput test.
153 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
154 | | ${framesize}= | Set Variable | 1518
155 | | ${duration}= | Set Variable | 10
156 | | ${rate}= | Set Variable | 720000pps
157 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
158 | | And   Add all PCI devices to all DUTs
159 | | And   Add No Multi Seg to all DUTs
160 | | And   Apply startup configuration on all VPP DUTs
161 | | And   VPP interfaces in path are up in a 3-node circular topology
162 | | When VLAN dot1q subinterfaces initialized on 3-node topology
163 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
164 | | And L2 tag rewrite method setup on interfaces
165 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
166 | | ... | ${tag_rewrite}
167 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
168 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
169 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
170 | | Then Traffic should pass with no loss | ${duration} | ${rate}
171 | | ...                                   | ${framesize} | 3-node-xconnect
172
173 | TC06: Verify 9000B ref-NDR at 2x 120kpps - DUT dot1q - 2thread 2core 1rxq
174 | | [Documentation]
175 | | ... | [Cfg] DUT runs L2XC config with 2 threads, 2 phy cores, \
176 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
177 | | ... | frames using single trial throughput test.
178 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
179 | | ${framesize}= | Set Variable | 9000
180 | | ${duration}= | Set Variable | 10
181 | | ${rate}= | Set Variable | 120000pps
182 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
183 | | And   Add all PCI devices to all DUTs
184 | | And   Apply startup configuration on all VPP DUTs
185 | | And   VPP interfaces in path are up in a 3-node circular topology
186 | | When VLAN dot1q subinterfaces initialized on 3-node topology
187 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
188 | | And L2 tag rewrite method setup on interfaces
189 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
190 | | ... | ${tag_rewrite}
191 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
192 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
193 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
194 | | Then Traffic should pass with no loss | ${duration} | ${rate}
195 | | ...                                   | ${framesize} | 3-node-xconnect
196
197 | TC07: Verify 64B ref-NDR at 2x 11Mpps - DUT dot1q - 4thread 4core 2rxq
198 | | [Documentation]
199 | | ... | [Cfg] DUT runs L2XC config with 4 threads, 4 phy cores, \
200 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 64 Byte
201 | | ... | frames using single trial throughput test.
202 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
203 | | ${framesize}= | Set Variable | 64
204 | | ${duration}= | Set Variable | 10
205 | | ${rate}= | Set Variable | 11.0mpps
206 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
207 | | And   Add all PCI devices to all DUTs
208 | | And   Add No Multi Seg to all DUTs
209 | | And   Apply startup configuration on all VPP DUTs
210 | | And   VPP interfaces in path are up in a 3-node circular topology
211 | | When VLAN dot1q subinterfaces initialized on 3-node topology
212 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
213 | | And L2 tag rewrite method setup on interfaces
214 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
215 | | ... | ${tag_rewrite}
216 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
217 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
218 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
219 | | Then Traffic should pass with no loss | ${duration} | ${rate}
220 | | ...                                   | ${framesize} | 3-node-xconnect
221
222 | TC08: Verify 1518B ref-NDR at 2x 720kpps - DUT dot1q - 4thread 4core 2rxq
223 | | [Documentation]
224 | | ... | [Cfg] DUT runs L2XC config with 4 threads, 4 phy cores, \
225 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 1518 Byte
226 | | ... | frames using single trial throughput test.
227 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
228 | | ${framesize}= | Set Variable | 1518
229 | | ${duration}= | Set Variable | 10
230 | | ${rate}= | Set Variable | 720000pps
231 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
232 | | And   Add all PCI devices to all DUTs
233 | | And   Add No Multi Seg to all DUTs
234 | | And   Apply startup configuration on all VPP DUTs
235 | | And   VPP interfaces in path are up in a 3-node circular topology
236 | | When VLAN dot1q subinterfaces initialized on 3-node topology
237 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
238 | | And L2 tag rewrite method setup on interfaces
239 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
240 | | ... | ${tag_rewrite}
241 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
242 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
243 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
244 | | Then Traffic should pass with no loss | ${duration} | ${rate}
245 | | ...                                   | ${framesize} | 3-node-xconnect
246
247 | TC09: Verify 9000B ref-NDR at 2x 120kpps - DUT dot1q - 4thread 4core 2rxq
248 | | [Documentation]
249 | | ... | [Cfg] DUT runs L2XC config with 4 threads, 4 phy cores, \
250 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 9000 Byte
251 | | ... | frames using single trial throughput test.
252 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
253 | | ${framesize}= | Set Variable | 9000
254 | | ${duration}= | Set Variable | 10
255 | | ${rate}= | Set Variable | 120000pps
256 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
257 | | And   Add all PCI devices to all DUTs
258 | | And   Apply startup configuration on all VPP DUTs
259 | | And   VPP interfaces in path are up in a 3-node circular topology
260 | | When VLAN dot1q subinterfaces initialized on 3-node topology
261 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
262 | | And L2 tag rewrite method setup on interfaces
263 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
264 | | ... | ${tag_rewrite}
265 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
266 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
267 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
268 | | Then Traffic should pass with no loss | ${duration} | ${rate}
269 | | ...                                   | ${framesize} | 3-node-xconnect