CSIT-1142 Change thread perf test TAGs
[csit.git] / tests / vpp / perf / l2 / 10ge2p1x520-eth-l2bdbasemaclrn-iacl50sf-10kflows-mrr.robot
1 # Copyright (c) 2018 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 | ...
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | MRR
18 | ... | NIC_Intel-X520-DA2 | ETH | L2BDMACLRN | FEATURE | ACL | ACL_STATEFUL
19 | ... | IACL | ACL50 | 10k_FLOWS
20 | ...
21 | Suite Setup | Run Keywords
22 | ... | Set up 3-node performance topology with DUT's NIC model | L2
23 | ... | Intel-X520-DA2
24 | ... | AND | Set up performance test suite with ACL
25 | Suite Teardown | Tear down 3-node performance topology
26 | ...
27 | Test Setup | Set up performance test
28 | ...
29 | Test Teardown | Tear down performance mrr test
30 | ...
31 | Documentation | *Raw results L2BD test cases with ACL*
32 | ...
33 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
34 | ... | with single links between nodes.
35 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4-UDP for L2 switching of IPv4.
36 | ... | *[Cfg] DUT configuration:* DUT1 is configured with L2 bridge domain\
37 | ... | and MAC learning enabled. DUT2 is configured with L2 cross-connects.\
38 | ... | Required ACL rules are applied to input paths of both DUT1 intefaces.\
39 | ... | DUT1 and DUT2 are tested with 2p10GE NIC X520 Niantic by Intel.\
40 | ... | *[Ver] TG verification:* In MaxReceivedRate tests TG sends traffic\
41 | ... | at line rate and reports total received/sent packets over trial period.\
42 | ... | Test packets are generated by TG on\
43 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups\
44 | ... | (flow-group per direction, ${flows_per_dir} flows per flow-group) with\
45 | ... | all packets containing Ethernet header, IPv4 header with UDP header and\
46 | ... | static payload. MAC addresses are matching MAC addresses of the TG node\
47 | ... | interfaces.
48 | ... | *[Ref] Applicable standard specifications:* RFC2544.
49
50 *** Variables ***
51 # X520-DA2 bandwidth limit
52 | ${s_limit}= | ${10000000000}
53
54 # ACL test setup
55 | ${acl_action}= | permit+reflect
56 | ${acl_apply_type}= | input
57 | ${no_hit_aces_number}= | 50
58 | ${flows_per_dir}= | 10k
59
60 # starting points for non-hitting ACLs
61 | ${src_ip_start}= | 30.30.30.1
62 | ${dst_ip_start}= | 40.40.40.1
63 | ${ip_step}= | ${1}
64 | ${sport_start}= | ${1000}
65 | ${dport_start}= | ${1000}
66 | ${port_step}= | ${1}
67 | ${trex_stream1_subnet}= | 10.10.10.0/24
68 | ${trex_stream2_subnet}= | 20.20.20.0/24
69
70 # Traffic profile:
71 | ${traffic_profile} | trex-sl-3n-ethip4udp-10u1000p-conc
72
73 *** Keywords ***
74 | Check RR for L2BD l2bdbasemaclrn-iacl50sf
75 | | [Documentation]
76 | | ... | [Cfg] DUT runs L2BD config with ACLs with ${wt} thread(s), ${wt}\
77 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
78 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
79 | | ... | trial throughput test.
80 | | ...
81 | | [Arguments] | ${wt} | ${rxq} | ${framesize}
82 | | ...
83 | | # Test Variables required for test teardown
84 | | Set Test Variable | ${framesize}
85 | | ${get_framesize}= | Get Frame Size | ${framesize}
86 | | ${max_rate}= | Calculate pps | ${s_limit} | ${get_framesize}
87 | | ...
88 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
89 | | And Add PCI devices to all DUTs
90 | | And Run Keyword If | ${get_framesize} < ${1522}
91 | | ... | Add no multi seg to all DUTs
92 | | And Apply startup configuration on all VPP DUTs
93 | | When Initialize L2 bridge domain with IPv4 ACLs on DUT1 in 3-node circular topology
94 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
95 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
96
97 *** Test Cases ***
98 | tc01-64B-1t1c-eth-l2bdbasemaclrn-iacl50-stateful-flows10k-mrr
99 | | [Documentation]
100 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
101 | | ... | 1 phy core, 1 receive queue per NIC port.
102 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
103 | | ... | throughput test.
104 | | ...
105 | | [Tags] | 64B | 1C
106 | | ...
107 | | [Template] | Check RR for L2BD l2bdbasemaclrn-iacl50sf
108 | | wt=1 | rxq=1 | framesize=${64}
109
110 | tc02-1518B-1t1c-eth-l2bdbasemaclrn-iacl50-stateful-flows10k-mrr
111 | | [Documentation]
112 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
113 | | ... | 1 phy core, 1 receive queue per NIC port.
114 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
115 | | ... | throughput test.
116 | | ...
117 | | [Tags] | 1518B | 1C
118 | | ...
119 | | [Template] | Check RR for L2BD l2bdbasemaclrn-iacl50sf
120 | | wt=1 | rxq=1 | framesize=${1518}
121
122 | tc03-9000B-1t1c-eth-l2bdbasemaclrn-iacl50-stateful-flows10k-mrr
123 | | [Documentation]
124 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
125 | | ... | 1 phy core, 1 receive queue per NIC port.
126 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
127 | | ... | throughput test.
128 | | ...
129 | | [Tags] | 9000B | 1C
130 | | ...
131 | | [Template] | Check RR for L2BD l2bdbasemaclrn-iacl50sf
132 | | wt=1 | rxq=1 | framesize=${9000}
133
134 | tc04-IMIX-1t1c-eth-l2bdbasemaclrn-iacl50-stateful-flows10k-mrr
135 | | [Documentation]
136 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
137 | | ... | 1 phy core, 1 receive queue per NIC port.
138 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
139 | | ... | throughput test.
140 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
141 | | ...
142 | | [Tags] | IMIX | 1C
143 | | ...
144 | | [Template] | Check RR for L2BD l2bdbasemaclrn-iacl50sf
145 | | wt=1 | rxq=1 | framesize=IMIX_v4_1
146
147 | tc05-64B-2t2c-eth-l2bdbasemaclrn-iacl50-stateful-flows10k-mrr
148 | | [Documentation]
149 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
150 | | ... | 2 phy cores, 1 receive queue per NIC port.
151 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
152 | | ... | throughput test.
153 | | ...
154 | | [Tags] | 64B | 2C
155 | | ...
156 | | [Template] | Check RR for L2BD l2bdbasemaclrn-iacl50sf
157 | | wt=2 | rxq=1 | framesize=${64}
158
159 | tc06-1518B-2t2c-eth-l2bdbasemaclrn-iacl50-stateful-flows10k-mrr
160 | | [Documentation]
161 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
162 | | ... | 2 phy cores, 1 receive queue per NIC port.
163 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
164 | | ... | throughput test.
165 | | ...
166 | | [Tags] | 1518B | 2C
167 | | ...
168 | | [Template] | Check RR for L2BD l2bdbasemaclrn-iacl50sf
169 | | wt=2 | rxq=1 | framesize=${1518}
170
171 | tc07-9000B-2t2c-eth-l2bdbasemaclrn-iacl50-stateful-flows10k-mrr
172 | | [Documentation]
173 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
174 | | ... | 2 phy cores, 1 receive queue per NIC port.
175 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
176 | | ... | throughput test.
177 | | ...
178 | | [Tags] | 9000B | 2C
179 | | ...
180 | | [Template] | Check RR for L2BD l2bdbasemaclrn-iacl50sf
181 | | wt=2 | rxq=1 | framesize=${9000}
182
183 | tc08-IMIX-2t2c-eth-l2bdbasemaclrn-iacl50-stateful-flows10k-mrr
184 | | [Documentation]
185 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
186 | | ... | 2 phy cores, 1 receive queue per NIC port.
187 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
188 | | ... | throughput test.
189 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
190 | | ...
191 | | [Tags] | IMIX | 2C
192 | | ...
193 | | [Template] | Check RR for L2BD l2bdbasemaclrn-iacl50sf
194 | | wt=2 | rxq=1 | framesize=IMIX_v4_1
195
196 | tc09-64B-4t4c-eth-l2bdbasemaclrn-iacl50-stateful-flows10k-mrr
197 | | [Documentation]
198 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
199 | | ... | 4 phy cores, 2 receive queues per NIC port.
200 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
201 | | ... | throughput test.
202 | | ...
203 | | [Tags] | 64B | 4C
204 | | ...
205 | | [Template] | Check RR for L2BD l2bdbasemaclrn-iacl50sf
206 | | wt=4 | rxq=2 | framesize=${64}
207
208 | tc10-1518B-4t4c-eth-l2bdbasemaclrn-iacl50-stateful-flows10k-mrr
209 | | [Documentation]
210 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
211 | | ... | 4 phy cores, 2 receive queues per NIC port.
212 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
213 | | ... | throughput test.
214 | | ...
215 | | [Tags] | 1518B | 4C
216 | | ...
217 | | [Template] | Check RR for L2BD l2bdbasemaclrn-iacl50sf
218 | | wt=4 | rxq=2 | framesize=${1518}
219
220 | tc11-9000B-4t4c-eth-l2bdbasemaclrn-iacl50-stateful-flows10k-mrr
221 | | [Documentation]
222 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
223 | | ... | 4 phy cores, 2 receive queues per NIC port.
224 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
225 | | ... | throughput test.
226 | | ...
227 | | [Tags] | 9000B | 4C
228 | | ...
229 | | [Template] | Check RR for L2BD l2bdbasemaclrn-iacl50sf
230 | | wt=4 | rxq=2 | framesize=${9000}
231
232 | tc12-IMIX-4t4c-eth-l2bdbasemaclrn-iacl50-stateful-flows10k-mrr
233 | | [Documentation]
234 | | ... | [Cfg] DUT runs L2BD switching config with ACL with\
235 | | ... | 4 phy cores, 2 receive queues per NIC port.
236 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
237 | | ... | throughput test.
238 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
239 | | ...
240 | | [Tags] | IMIX | 4C
241 | | ...
242 | | [Template] | Check RR for L2BD l2bdbasemaclrn-iacl50sf
243 | | wt=4 | rxq=2 | framesize=IMIX_v4_1