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