CSIT-1142 Change thread perf test TAGs
[csit.git] / tests / vpp / perf / ip4 / 10ge2p1x520-ethip4-ip4base-iacldstbase-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 | IP4FWD | FEATURE | IACLDST
19 | ...
20 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
21 | ... | L3 | Intel-X520-DA2
22 | Suite Teardown | Tear down 3-node performance topology
23 | ...
24 | Test Setup | Set up performance test
25 | ...
26 | Test Teardown | Tear down performance mrr test
27 | ...
28 | Documentation | *Raw results IPv4 iAcl whitelist 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 IPv4 routing.
33 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
34 | ... | routing, two static IPv4 /24 routes and IPv4 iAcl security whitelist
35 | ... | ingress /24 filter entries applied on links TG - DUT1 and DUT2 - TG.
36 | ... | DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
37 | ... | *[Ver] TG verification:* In MaxReceivedRate tests TG sends traffic\
38 | ... | at line rate and reports total received/sent packets over trial period.\
39 | ... | Test packets are generated by TG on links to DUTs. TG traffic profile
40 | ... | contains two L3 flow-groups (flow-group per direction, 253 flows per
41 | ... | flow-group) with all packets containing Ethernet header, IPv6 header
42 | ... | and generated payload. MAC addresses are matching MAC addresses
43 | ... | of the TG node interfaces.
44 | ... | *[Ref] Applicable standard specifications:* RFC2544.
45
46 *** Variables ***
47 # X520-DA2 bandwidth limit
48 | ${s_limit}= | ${10000000000}
49 # Traffic profile:
50 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src253
51
52 *** Keywords ***
53 | Check RR for ethip4-ip4base-iacldstbase
54 | | ...
55 | | [Documentation]
56 | | ... | [Cfg] DUT runs IPv4 routing config with ${wt} thread(s), ${wt}\
57 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
58 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
59 | | ... | trial throughput test.
60 | | ...
61 | | [Arguments] | ${wt} | ${rxq} | ${framesize}
62 | | ...
63 | | # Test Variables required for test execution and test teardown
64 | | Set Test Variable | ${framesize}
65 | | ${get_framesize}= | Get Frame Size | ${framesize}
66 | | ${max_rate}= | Calculate pps | ${s_limit} | ${get_framesize}
67 | | ...
68 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
69 | | And Add PCI devices to all DUTs
70 | | And Run Keyword If | ${get_framesize} < ${1522}
71 | | ... | Add no multi seg to all DUTs
72 | | And Apply startup configuration on all VPP DUTs
73 | | When Initialize IPv4 forwarding in 3-node circular topology
74 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
75 | | ... | ${dut1} | ip4 | dst
76 | | And Vpp Configures Classify Session L3
77 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
78 | | ... | ip4 | dst | 20.20.20.2
79 | | And Vpp Enable Input Acl Interface
80 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
81 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
82 | | ... | ${dut2} | ip4 | dst
83 | | And Vpp Configures Classify Session L3
84 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
85 | | ... | ip4 | dst | 10.10.10.2
86 | | And Vpp Enable Input Acl Interface
87 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
88 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
89 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
90
91 *** Test Cases ***
92 | tc01-64B-1t1c-ethip4-ip4base-iacldstbase-mrr
93 | | [Documentation]
94 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
95 | | ... | 1 phy core, 1 receive queue per NIC port.
96 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
97 | | ... | throughput test.
98 | | ...
99 | | [Tags] | 64B | 1C
100 | | ...
101 | | [Template] | Check RR for ethip4-ip4base-iacldstbase
102 | | wt=1 | rxq=1 | framesize=${64}
103
104 | tc02-1518B-1t1c-ethip4-ip4base-iacldstbase-mrr
105 | | [Documentation]
106 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
107 | | ... | 1 phy core, 1 receive queue per NIC port.
108 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
109 | | ... | throughput test.
110 | | ...
111 | | [Tags] | 1518B | 1C
112 | | ...
113 | | [Template] | Check RR for ethip4-ip4base-iacldstbase
114 | | wt=1 | rxq=1 | framesize=${1518}
115
116 | tc03-9000B-1t1c-ethip4-ip4base-iacldstbase-mrr
117 | | [Documentation]
118 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
119 | | ... | 1 phy core, 1 receive queue per NIC port.
120 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
121 | | ... | throughput test.
122 | | ...
123 | | [Tags] | 9000B | 1CC
124 | | ...
125 | | [Template] | Check RR for ethip4-ip4base-iacldstbase
126 | | wt=1 | rxq=1 | framesize=${9000}
127
128 | tc04-IMIX-1t1c-ethip4-ip4base-iacldstbase-mrr
129 | | [Documentation]
130 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
131 | | ... | 1 phy core, 1 receive queue per NIC port.
132 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
133 | | ... | throughput test.
134 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
135 | | ...
136 | | [Tags] | IMIX | 1C
137 | | ...
138 | | [Template] | Check RR for ethip4-ip4base-iacldstbase
139 | | wt=1 | rxq=1 | framesize=IMIX_v4_1
140
141 | tc05-64B-2t2c-ethip4-ip4base-iacldstbase-mrr
142 | | [Documentation]
143 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
144 | | ... | 2 phy cores, 1 receive queue per NIC port.
145 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
146 | | ... | throughput test.
147 | | ...
148 | | [Tags] | 64B | 2C
149 | | ...
150 | | [Template] | Check RR for ethip4-ip4base-iacldstbase
151 | | wt=2 | rxq=1 | framesize=${64}
152
153 | tc06-1518B-2t2c-ethip4-ip4base-iacldstbase-mrr
154 | | [Documentation]
155 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
156 | | ... | 2 phy cores, 1 receive queue per NIC port.
157 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
158 | | ... | throughput test.
159 | | ...
160 | | [Tags] | 1518B | 2C
161 | | ...
162 | | [Template] | Check RR for ethip4-ip4base-iacldstbase
163 | | wt=2 | rxq=1 | framesize=${1518}
164
165 | tc07-9000B-2t2c-ethip4-ip4base-iacldstbase-mrr
166 | | [Documentation]
167 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
168 | | ... | 2 phy cores, 1 receive queue per NIC port.
169 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
170 | | ... | throughput test.
171 | | ...
172 | | [Tags] | 9000B | 2C
173 | | ...
174 | | [Template] | Check RR for ethip4-ip4base-iacldstbase
175 | | wt=2 | rxq=1 | framesize=${9000}
176
177 | tc08-IMIX-2t2c-ethip4-ip4base-iacldstbase-mrr
178 | | [Documentation]
179 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
180 | | ... | 2 phy cores, 1 receive queue per NIC port.
181 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
182 | | ... | throughput test.
183 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
184 | | ...
185 | | [Tags] | IMIX | 2C
186 | | ...
187 | | [Template] | Check RR for ethip4-ip4base-iacldstbase
188 | | wt=2 | rxq=1 | framesize=IMIX_v4_1
189
190 | tc09-64B-4t4c-ethip4-ip4base-iacldstbase-mrr
191 | | [Documentation]
192 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
193 | | ... | 4 phy cores, 2 receive queues per NIC port.
194 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
195 | | ... | throughput test.
196 | | ...
197 | | [Tags] | 64B | 4C
198 | | ...
199 | | [Template] | Check RR for ethip4-ip4base-iacldstbase
200 | | wt=4 | rxq=2 | framesize=${64}
201
202 | tc10-1518B-4t4c-ethip4-ip4base-iacldstbase-mrr
203 | | [Documentation]
204 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
205 | | ... | 4 phy cores, 2 receive queues per NIC port.
206 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
207 | | ... | throughput test.
208 | | ...
209 | | [Tags] | 1518B | 4C
210 | | ...
211 | | [Template] | Check RR for ethip4-ip4base-iacldstbase
212 | | wt=4 | rxq=2 | framesize=${1518}
213
214 | tc11-9000B-4t4c-ethip4-ip4base-iacldstbase-mrr
215 | | [Documentation]
216 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
217 | | ... | 4 phy cores, 2 receive queues per NIC port.
218 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
219 | | ... | throughput test.
220 | | ...
221 | | [Tags] | 9000B | 4C
222 | | ...
223 | | [Template] | Check RR for ethip4-ip4base-iacldstbase
224 | | wt=4 | rxq=2 | framesize=${9000}
225
226 | tc12-IMIX-4t4c-ethip4-ip4base-iacldstbase-mrr
227 | | [Documentation]
228 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
229 | | ... | 4 phy cores, 2 receive queues per NIC port.
230 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
231 | | ... | throughput test.
232 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
233 | | ...
234 | | [Tags] | IMIX | 4C
235 | | ...
236 | | [Template] | Check RR for ethip4-ip4base-iacldstbase
237 | | wt=4 | rxq=2 | framesize=IMIX_v4_1