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