CSIT-562 HC Test: Persistence suite rework, part1
[csit.git] / tests / perf / 10ge2p1x520-dot1q-l2xcbase-ndrchk.robot
1 # Copyright (c) 2017 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 | ...
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRCHK
19 | ... | NIC_Intel-X520-DA2 | L2XCFWD | BASE | DOT1Q
20 | ...
21 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
22 | ... | L2 | Intel-X520-DA2
23 | Suite Teardown | 3-node Performance Suite Teardown
24 | ...
25 | Test Setup | Performance test setup
26 | Test Teardown | Performance ndrchk test teardown
27 | ...
28 | Documentation | *Reference NDR throughput L2XC with 802.1q verify test cases*
29 | ...
30 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
31 | ... | with single links between nodes.
32 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 cross connect. 802.1q
33 | ... | tagging is applied on link between DUT1 and DUT2.
34 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 cross-
35 | ... | connect. DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
36 | ... | *[Ver] TG verification:* In short performance tests, TG verifies
37 | ... | DUTs' throughput at ref-NDR (reference Non Drop Rate) with zero packet
38 | ... | loss tolerance. Ref-NDR value is periodically updated acording to
39 | ... | formula: ref-NDR = 0.9x NDR, where NDR is found in RFC2544 long
40 | ... | performance tests for the same DUT configuration. Test packets are
41 | ... | generated by TG on links to DUTs. TG traffic profile contains two L3
42 | ... | flow-groups (flow-group per direction, 253 flows per flow-group) with
43 | ... | all packets containing Ethernet header, IPv4 header with IP protocol=61
44 | ... | and static payload. MAC addresses are matching MAC addresses of the
45 | ... | TG node interfaces.
46 | ... | *[Ref] Applicable standard specifications:* RFC2544.
47
48 *** Variables ***
49 | ${subid}= | 10
50 | ${tag_rewrite}= | pop-1
51
52 *** Test Cases ***
53 | tc01-64B-1t1c-dot1q-l2xcbase-ndrchk
54 | | [Documentation]
55 | | ... | [Cfg] DUT runs L2XC config with 1 thread, 1 phy core, \
56 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
57 | | ... | frames using single trial throughput test at 2x 4.0mpps.
58 | | [Tags] | 64B | 1T1C | STHREAD
59 | | ${framesize}= | Set Variable | ${64}
60 | | ${rate}= | Set Variable | 4.0mpps
61 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
62 | | And Add PCI devices to DUTs from 3-node single link topology
63 | | And Add No Multi Seg to all DUTs
64 | | And Apply startup configuration on all VPP DUTs
65 | | And VPP interfaces in path are up in a 3-node circular topology
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 | ${perf_trial_duration} | ${rate}
75 | | ... | ${framesize} | 3-node-xconnect
76
77 | tc02-1518B-1t1c-dot1q-l2xcbase-ndrchk
78 | | [Documentation]
79 | | ... | [Cfg] DUT runs L2XC config with 1 thread, 1 phy core, \
80 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
81 | | ... | frames using single trial throughput test at 2x 720000pps.
82 | | [Tags] | 1518B | 1T1C | STHREAD
83 | | ${framesize}= | Set Variable | ${1518}
84 | | ${rate}= | Set Variable | 720000pps
85 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
86 | | And Add PCI devices to DUTs from 3-node single link topology
87 | | And Add No Multi Seg to all DUTs
88 | | And Apply startup configuration on all VPP DUTs
89 | | And VPP interfaces in path are up in a 3-node circular topology
90 | | When VLAN dot1q subinterfaces initialized on 3-node topology
91 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
92 | | And L2 tag rewrite method setup on interfaces
93 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
94 | | ... | ${tag_rewrite}
95 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
96 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
97 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
98 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
99 | | ... | ${framesize} | 3-node-xconnect
100
101 | tc03-9000B-1t1c-dot1q-l2xcbase-ndrchk
102 | | [Documentation]
103 | | ... | [Cfg] DUT runs L2XC config with 1 thread, 1 phy core, \
104 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
105 | | ... | frames using single trial throughput test at 2x 120000pps.
106 | | [Tags] | 9000B | 1T1C | STHREAD
107 | | ${framesize}= | Set Variable | ${9000}
108 | | ${rate}= | Set Variable | 120000pps
109 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
110 | | And Add PCI devices to DUTs from 3-node single link topology
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 | ${perf_trial_duration} | ${rate}
122 | | ... | ${framesize} | 3-node-xconnect
123
124 | tc04-64B-2t2c-dot1q-l2xcbase-ndrchk
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 at 2x 8.7mpps.
129 | | [Tags] | 64B | 2T2C | MTHREAD
130 | | ${framesize}= | Set Variable | ${64}
131 | | ${rate}= | Set Variable | 8.7mpps
132 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
133 | | And Add PCI devices to DUTs from 3-node single link topology
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 | ${perf_trial_duration} | ${rate}
146 | | ... | ${framesize} | 3-node-xconnect
147
148 | tc05-1518B-2t2c-dot1q-l2xcbase-ndrchk
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 at 2x 720000pps.
153 | | [Tags] | 1518B | 2T2C | MTHREAD
154 | | ${framesize}= | Set Variable | ${1518}
155 | | ${rate}= | Set Variable | 720000pps
156 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
157 | | And Add PCI devices to DUTs from 3-node single link topology
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 in a 3-node circular topology
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 | ${perf_trial_duration} | ${rate}
170 | | ... | ${framesize} | 3-node-xconnect
171
172 | tc06-9000B-2t2c-dot1q-l2xcbase-ndrchk
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 at 2x 120000pps.
177 | | [Tags] | 9000B | 2T2C | MTHREAD
178 | | ${framesize}= | Set Variable | ${9000}
179 | | ${rate}= | Set Variable | 120000pps
180 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
181 | | And Add PCI devices to DUTs from 3-node single link topology
182 | | And Apply startup configuration on all VPP DUTs
183 | | And VPP interfaces in path are up in a 3-node circular topology
184 | | When VLAN dot1q subinterfaces initialized on 3-node topology
185 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
186 | | And L2 tag rewrite method setup on interfaces
187 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
188 | | ... | ${tag_rewrite}
189 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
190 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
191 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
192 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
193 | | ... | ${framesize} | 3-node-xconnect
194
195 | tc07-64B-4t4c-dot1q-l2xcbase-ndrchk
196 | | [Documentation]
197 | | ... | [Cfg] DUT runs L2XC config with 4 threads, 4 phy cores, \
198 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 64 Byte
199 | | ... | frames using single trial throughput test at 2x 10.3mpps.
200 | | [Tags] | 64B | 4T4C | MTHREAD
201 | | ${framesize}= | Set Variable | ${64}
202 | | ${rate}= | Set Variable | 10.3mpps
203 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
204 | | And Add PCI devices to DUTs from 3-node single link topology
205 | | And Add No Multi Seg to all DUTs
206 | | And Apply startup configuration on all VPP DUTs
207 | | And VPP interfaces in path are up in a 3-node circular topology
208 | | When VLAN dot1q subinterfaces initialized on 3-node topology
209 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
210 | | And L2 tag rewrite method setup on interfaces
211 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
212 | | ... | ${tag_rewrite}
213 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
214 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
215 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
216 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
217 | | ... | ${framesize} | 3-node-xconnect
218
219 | tc08-1518B-4t4c-dot1q-l2xcbase-ndrchk
220 | | [Documentation]
221 | | ... | [Cfg] DUT runs L2XC config with 4 threads, 4 phy cores, \
222 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 1518 Byte
223 | | ... | frames using single trial throughput test at 2x 720000pps.
224 | | [Tags] | 1518B | 4T4C | MTHREAD
225 | | ${framesize}= | Set Variable | ${1518}
226 | | ${rate}= | Set Variable | 720000pps
227 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
228 | | And Add PCI devices to DUTs from 3-node single link topology
229 | | And Add No Multi Seg to all DUTs
230 | | And Apply startup configuration on all VPP DUTs
231 | | And VPP interfaces in path are up in a 3-node circular topology
232 | | When VLAN dot1q subinterfaces initialized on 3-node topology
233 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
234 | | And L2 tag rewrite method setup on interfaces
235 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
236 | | ... | ${tag_rewrite}
237 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
238 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
239 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
240 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
241 | | ... | ${framesize} | 3-node-xconnect
242
243 | tc09-9000B-4t4c-dot1q-l2xcbase-ndrchk
244 | | [Documentation]
245 | | ... | [Cfg] DUT runs L2XC config with 4 threads, 4 phy cores, \
246 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 9000 Byte
247 | | ... | frames using single trial throughput test at 2x 120000pps.
248 | | [Tags] | 9000B | 4T4C | MTHREAD
249 | | ${framesize}= | Set Variable | ${9000}
250 | | ${rate}= | Set Variable | 120000pps
251 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
252 | | And Add PCI devices to DUTs from 3-node single link topology
253 | | And Apply startup configuration on all VPP DUTs
254 | | And VPP interfaces in path are up in a 3-node circular topology
255 | | When VLAN dot1q subinterfaces initialized on 3-node topology
256 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
257 | | And L2 tag rewrite method setup on interfaces
258 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
259 | | ... | ${tag_rewrite}
260 | | And Interfaces and VLAN sub-interfaces inter-connected using L2-xconnect
261 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
262 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
263 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
264 | | ... | ${framesize} | 3-node-xconnect