CSIT-768: Refactor Python container libraries
[csit.git] / tests / vpp / perf / l2 / 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/performance_setup.robot
16 | Resource | resources/libraries/robot/l2/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 | Set up 3-node performance topology with DUT's NIC model
22 | ... | L2 | Intel-X520-DA2
23 | Suite Teardown | Tear down 3-node performance topology
24 | ...
25 | Test Setup | Set up performance test
26 | Test Teardown | Tear down performance ndrchk test
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 # Traffic profile:
56 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
57
58 *** Test Cases ***
59 | tc01-64B-1t1c-dot1ad-l2xcbase-ndrchk
60 | | [Documentation]
61 | | ... | [Cfg] DUT runs L2XC with 802.1ad config with 1 thread, 1 phy core, \
62 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
63 | | ... | frames using single trial throughput test at 2x 4.0mpps.
64 | | [Tags] | 64B | 1T1C | STHREAD
65 | | ${framesize}= | Set Variable | ${64}
66 | | ${rate}= | Set Variable | 4.0mpps
67 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
68 | | And Add PCI devices to DUTs in 3-node single link topology
69 | | And Add no multi seg to all DUTs
70 | | And Apply startup configuration on all VPP DUTs
71 | | And Set interfaces in path in 3-node circular topology up
72 | | When Initialize VLAN sub-interfaces in 3-node circular topology
73 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
74 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
75 | | And Configure L2 tag rewrite method on interfaces
76 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
77 | | ... | ${tag_rewrite}
78 | | And Connect interfaces and VLAN sub-interfaces using L2XC
79 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
80 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
81 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
82 | | ... | ${framesize} | ${traffic_profile}
83
84 | tc02-1514B-1t1c-dot1ad-l2xcbase-ndrchk
85 | | [Documentation]
86 | | ... | [Cfg] DUT runs L2XC with 802.1ad config with 1 thread, 1 phy core, \
87 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1514 Byte
88 | | ... | frames using single trial throughput test at 2x 810635pps.
89 | | [Tags] | 1514B | 1T1C | STHREAD
90 | | ${framesize}= | Set Variable | ${1514}
91 | | ${rate}= | Set Variable | 810635pps
92 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
93 | | And Add PCI devices to DUTs in 3-node single link topology
94 | | And Add no multi seg to all DUTs
95 | | And Apply startup configuration on all VPP DUTs
96 | | And Set interfaces in path in 3-node circular topology up
97 | | When Initialize VLAN sub-interfaces in 3-node circular topology
98 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
99 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
100 | | And Configure L2 tag rewrite method on interfaces
101 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
102 | | ... | ${tag_rewrite}
103 | | And Connect interfaces and VLAN sub-interfaces using L2XC
104 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
105 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
106 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
107 | | ... | ${framesize} | ${traffic_profile}
108
109 | tc03-9000B-1t1c-dot1ad-l2xcbase-ndrchk
110 | | [Documentation]
111 | | ... | [Cfg] DUT runs L2XC with 802.1ad config with 1 thread, 1 phy core, \
112 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
113 | | ... | frames using single trial throughput test at 2x 138458pps.
114 | | [Tags] | 9000B | 1T1C | STHREAD
115 | | ${framesize}= | Set Variable | ${9000}
116 | | ${rate}= | Set Variable | 138458pps
117 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
118 | | And Add PCI devices to DUTs in 3-node single link topology
119 | | And Apply startup configuration on all VPP DUTs
120 | | And Set interfaces in path in 3-node circular topology up
121 | | When Initialize VLAN sub-interfaces in 3-node circular topology
122 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
123 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
124 | | And Configure L2 tag rewrite method on interfaces
125 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
126 | | ... | ${tag_rewrite}
127 | | And Connect interfaces and VLAN sub-interfaces using L2XC
128 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
129 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
130 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
131 | | ... | ${framesize} | ${traffic_profile}
132
133 | tc04-64B-2t2c-dot1ad-l2xcbase-ndrchk
134 | | [Documentation]
135 | | ... | [Cfg] DUT runs L2XC with 802.1ad config with 2 thread, 2 phy core, \
136 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
137 | | ... | frames using single trial throughput test at 2x 8.5mpps.
138 | | [Tags] | 64B | 2T2C | MTHREAD
139 | | ${framesize}= | Set Variable | ${64}
140 | | ${rate}= | Set Variable | 8.5mpps
141 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
142 | | And Add PCI devices to DUTs in 3-node single link topology
143 | | And Add no multi seg to all DUTs
144 | | And Apply startup configuration on all VPP DUTs
145 | | And Set interfaces in path in 3-node circular topology up
146 | | When Initialize VLAN sub-interfaces in 3-node circular topology
147 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
148 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
149 | | And Configure L2 tag rewrite method on interfaces
150 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
151 | | ... | ${tag_rewrite}
152 | | And Connect interfaces and VLAN sub-interfaces using L2XC
153 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
154 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
155 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
156 | | ... | ${framesize} | ${traffic_profile}
157
158 | tc05-1514B-2t2c-dot1ad-l2xcbase-ndrchk
159 | | [Documentation]
160 | | ... | [Cfg] DUT runs L2XC with 802.1ad config with 2 thread, 2 phy core, \
161 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1514 Byte
162 | | ... | frames using single trial throughput test at 2x 810635pps.
163 | | [Tags] | 1514B | 2T2C | MTHREAD
164 | | ${framesize}= | Set Variable | ${1514}
165 | | ${rate}= | Set Variable | 810635pps
166 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
167 | | And Add PCI devices to DUTs in 3-node single link topology
168 | | And Add no multi seg to all DUTs
169 | | And Apply startup configuration on all VPP DUTs
170 | | And Set interfaces in path in 3-node circular topology up
171 | | When Initialize VLAN sub-interfaces in 3-node circular topology
172 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
173 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
174 | | And Configure L2 tag rewrite method on interfaces
175 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
176 | | ... | ${tag_rewrite}
177 | | And Connect interfaces and VLAN sub-interfaces using L2XC
178 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
179 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
180 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
181 | | ... | ${framesize} | ${traffic_profile}
182
183 | tc06-9000B-2t2c-dot1ad-l2xcbase-ndrchk
184 | | [Documentation]
185 | | ... | [Cfg] DUT runs L2XC with 802.1ad config with 2 thread, 2 phy core, \
186 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
187 | | ... | frames using single trial throughput test at 2x 138458pps.
188 | | [Tags] | 9000B | 2T2C | MTHREAD
189 | | ${framesize}= | Set Variable | ${9000}
190 | | ${rate}= | Set Variable | 138458pps
191 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
192 | | And Add PCI devices to DUTs in 3-node single link topology
193 | | And Apply startup configuration on all VPP DUTs
194 | | And Set interfaces in path in 3-node circular topology up
195 | | When Initialize VLAN sub-interfaces in 3-node circular topology
196 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
197 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
198 | | And Configure L2 tag rewrite method on interfaces
199 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
200 | | ... | ${tag_rewrite}
201 | | And Connect interfaces and VLAN sub-interfaces using L2XC
202 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
203 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
204 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
205 | | ... | ${framesize} | ${traffic_profile}
206
207 | tc07-64B-4t4c-dot1ad-l2xcbase-ndrchk
208 | | [Documentation]
209 | | ... | [Cfg] DUT runs L2XC with 802.1ad config with 4 thread, 4 phy core, \
210 | | ... | 2 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
211 | | ... | frames using single trial throughput test at 2x 8.6mpps.
212 | | [Tags] | 64B | 4T4C | MTHREAD
213 | | ${framesize}= | Set Variable | ${64}
214 | | ${rate}= | Set Variable | 8.6mpps
215 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
216 | | And Add PCI devices to DUTs in 3-node single link topology
217 | | And Add no multi seg to all DUTs
218 | | And Apply startup configuration on all VPP DUTs
219 | | And Set interfaces in path in 3-node circular topology up
220 | | When Initialize VLAN sub-interfaces in 3-node circular topology
221 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
222 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
223 | | And Configure L2 tag rewrite method on interfaces
224 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
225 | | ... | ${tag_rewrite}
226 | | And Connect interfaces and VLAN sub-interfaces using L2XC
227 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
228 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
229 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
230 | | ... | ${framesize} | ${traffic_profile}
231
232 | tc08-1514B-4t4c-dot1ad-l2xcbase-ndrchk
233 | | [Documentation]
234 | | ... | [Cfg] DUT runs L2XC with 802.1ad config with 4 thread, 4 phy core, \
235 | | ... | 2 receive queue per NIC port. [Ver] Verify ref-NDR for 1514 Byte
236 | | ... | frames using single trial throughput test at 2x 810635pps.
237 | | [Tags] | 1514B | 4T4C | MTHREAD
238 | | ${framesize}= | Set Variable | ${1514}
239 | | ${rate}= | Set Variable | 810635pps
240 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
241 | | And Add PCI devices to DUTs in 3-node single link topology
242 | | And Add no multi seg to all DUTs
243 | | And Apply startup configuration on all VPP DUTs
244 | | And Set interfaces in path in 3-node circular topology up
245 | | When Initialize VLAN sub-interfaces in 3-node circular topology
246 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
247 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
248 | | And Configure L2 tag rewrite method on interfaces
249 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
250 | | ... | ${tag_rewrite}
251 | | And Connect interfaces and VLAN sub-interfaces using L2XC
252 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
253 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
254 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
255 | | ... | ${framesize} | ${traffic_profile}
256
257 | tc09-9000B-4t4c-dot1ad-l2xcbase-ndrchk
258 | | [Documentation]
259 | | ... | [Cfg] DUT runs L2XC with 802.1ad config with 4 thread, 4 phy core, \
260 | | ... | 2 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
261 | | ... | frames using single trial throughput test at 2x 138458pps.
262 | | [Tags] | 9000B | 4T4C | MTHREAD
263 | | ${framesize}= | Set Variable | ${9000}
264 | | ${rate}= | Set Variable | 138458pps
265 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
266 | | And Add PCI devices to DUTs in 3-node single link topology
267 | | And Apply startup configuration on all VPP DUTs
268 | | And Set interfaces in path in 3-node circular topology up
269 | | When Initialize VLAN sub-interfaces in 3-node circular topology
270 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
271 | | ... | ${outer_vlan_id} | ${inner_vlan_id} | ${type_subif}
272 | | And Configure L2 tag rewrite method on interfaces
273 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
274 | | ... | ${tag_rewrite}
275 | | And Connect interfaces and VLAN sub-interfaces using L2XC
276 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
277 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
278 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
279 | | ... | ${framesize} | ${traffic_profile}