CSIT-1020: MRR Day 2 - x710
[csit.git] / tests / vpp / perf / ip4 / 10ge2p1x710-ethip4udp-ip4base-iacl1sl-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-X710 | ETH | IP4FWD | FEATURE | ACL | ACL_STATELESS
19 | ... | IACL | ACL1 | 10k_FLOWS
20 | ...
21 | Suite Setup | Run Keywords
22 | ... | Set up 3-node performance topology with DUT's NIC model | L3
23 | ... | Intel-X710
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 IPv4 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 X710 by Intel.\
40 | ... | *[Ver] TG verification:* In MaxReceivedRate test TG sends traffic
41 | ... | at line rate and reports total received/sent packets over trial period.
42 | ... | Test packets are generated by TG on links to DUTs. TG traffic profile
43 | ... | contains two L3 flow-groups (flow-group per direction, 253 flows per
44 | ... | flow-group) with all packets containing Ethernet header, IPv4 header
45 | ... | with IP protocol=61 and static payload. MAC addresses are matching MAC
46 | ... | addresses of the TG node interfaces.
47 | ... | *[Ref] Applicable standard specifications:* RFC2544.
48
49 *** Variables ***
50 # X710 bandwidth limit
51 | ${s_limit}= | ${10000000000}
52
53 # ACL test setup
54 | ${acl_action}= | permit
55 | ${acl_apply_type}= | input
56 | ${no_hit_aces_number}= | 1
57 | ${flows_per_dir}= | 10k
58
59 # starting points for non-hitting ACLs
60 | ${src_ip_start}= | 30.30.30.1
61 | ${dst_ip_start}= | 40.40.40.1
62 | ${ip_step}= | ${1}
63 | ${sport_start}= | ${1000}
64 | ${dport_start}= | ${1000}
65 | ${port_step}= | ${1}
66 | ${trex_stream1_subnet}= | 10.10.10.0/24
67 | ${trex_stream2_subnet}= | 20.20.20.0/24
68
69 *** Keywords ***
70 | Check RR for IPv4 routing with ACLs
71 | | ...
72 | | [Documentation]
73 | | ... | [Cfg] DUT runs IPv4 routing config with ACL with ${wt} thread(s),\
74 | | ... | ${wt} phy core(s), ${rxq} receive queue(s) per NIC port.
75 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
76 | | ... | trial throughput test.
77 | | ...
78 | | [Arguments] | ${wt} | ${rxq} | ${framesize}
79 | | ...
80 | | # Test Variables required for test execution and test teardown
81 | | Set Test Variable | ${framesize}
82 | | ${get_framesize}= | Get Frame Size | ${framesize}
83 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
84 | | ...
85 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
86 | | And Add PCI devices to DUTs in 3-node single link topology
87 | | And Run Keyword If | ${get_framesize} < ${1522}
88 | | ... | Add no multi seg to all DUTs
89 | | And Apply startup configuration on all VPP DUTs
90 | | ${ip_nr}= | Set Variable | 10
91 | | When Initialize IPv4 routing for '${ip_nr}' addresses with IPv4 ACLs on DUT1 in 3-node circular topology
92 | | ${traffic_profile}= | Set Variable | trex-sl-3n-ethip4udp-10u1000p-conc
93 | | Set Test Variable | ${traffic_profile}
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-ethip4udp-ip4base-iacl1-stateless-flows10k-mrr
99 | | [Documentation]
100 | | ... | [Cfg] DUT runs IPv4 routing config with ACL with\
101 | | ... | 1 thread, 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 | 1T1C | STHREAD
106 | | ...
107 | | [Template] | Check RR for IPv4 routing with ACLs
108 | | wt=1 | rxq=1 | framesize=${64}
109
110 | tc02-1518B-1t1c-ethip4udp-ip4base-iacl1-stateless-flows10k-mrr
111 | | [Documentation]
112 | | ... | [Cfg] DUT runs IPv4 routing config with ACL with\
113 | | ... | 1 thread, 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 | 1T1C | STHREAD
118 | | ...
119 | | [Template] | Check RR for IPv4 routing with ACLs
120 | | wt=1 | rxq=1 | framesize=${1518}
121
122 | tc03-9000B-1t1c-ethip4udp-ip4base-iacl1-stateless-flows10k-mrr
123 | | [Documentation]
124 | | ... | [Cfg] DUT runs IPv4 routing config with ACL with\
125 | | ... | 1 thread, 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 | 1T1C | STHREAD
130 | | ...
131 | | [Template] | Check RR for IPv4 routing with ACLs
132 | | wt=1 | rxq=1 | framesize=${9000}
133
134 | tc04-IMIX-1t1c-ethip4udp-ip4base-iacl1-stateless-flows10k-mrr
135 | | [Documentation]
136 | | ... | [Cfg] DUT runs IPv4 routing config with ACL with\
137 | | ... | 1 thread, 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 | 1T1C | STHREAD
143 | | ...
144 | | [Template] | Check RR for IPv4 routing with ACLs
145 | | wt=1 | rxq=1 | framesize=IMIX_v4_1
146
147 | tc05-64B-2t2c-ethip4udp-ip4base-iacl1-stateless-flows10k-mrr
148 | | [Documentation]
149 | | ... | [Cfg] DUT runs IPv4 routing config with ACL with\
150 | | ... | 2 threads, 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 | 2T2C | MTHREAD
155 | | ...
156 | | [Template] | Check RR for IPv4 routing with ACLs
157 | | wt=2 | rxq=1 | framesize=${64}
158
159 | tc06-1518B-2t2c-ethip4udp-ip4base-iacl1-stateless-flows10k-mrr
160 | | [Documentation]
161 | | ... | [Cfg] DUT runs IPv4 routing config with ACL with\
162 | | ... | 2 threads, 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 | 2T2C | MTHREAD
167 | | ...
168 | | [Template] | Check RR for IPv4 routing with ACLs
169 | | wt=2 | rxq=1 | framesize=${1518}
170
171 | tc07-9000B-2t2c-ethip4udp-ip4base-iacl1-stateless-flows10k-mrr
172 | | [Documentation]
173 | | ... | [Cfg] DUT runs IPv4 routing config with ACL with\
174 | | ... | 2 threads, 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 | 2T2C | MTHREAD
179 | | ...
180 | | [Template] | Check RR for IPv4 routing with ACLs
181 | | wt=2 | rxq=1 | framesize=${9000}
182
183 | tc08-IMIX-2t2c-ethip4udp-ip4base-iacl1-stateless-flows10k-mrr
184 | | [Documentation]
185 | | ... | [Cfg] DUT runs IPv4 routing config with ACL with\
186 | | ... | 2 threads, 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 | 2T2C | MTHREAD
192 | | ...
193 | | [Template] | Check RR for IPv4 routing with ACLs
194 | | wt=2 | rxq=1 | framesize=IMIX_v4_1
195
196 | tc09-64B-4t4c-ethip4udp-ip4base-iacl1-stateless-flows10k-mrr
197 | | [Documentation]
198 | | ... | [Cfg] DUT runs IPv4 routing config with ACL with\
199 | | ... | 4 threads, 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 | 4T4C | MTHREAD
204 | | ...
205 | | [Template] | Check RR for IPv4 routing with ACLs
206 | | wt=4 | rxq=2 | framesize=${64}
207
208 | tc10-1518B-4t4c-ethip4udp-ip4base-iacl1-stateless-flows10k-mrr
209 | | [Documentation]
210 | | ... | [Cfg] DUT runs IPv4 routing config with ACL with\
211 | | ... | 4 threads, 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 | 4T4C | MTHREAD
216 | | ...
217 | | [Template] | Check RR for IPv4 routing with ACLs
218 | | wt=4 | rxq=2 | framesize=${1518}
219
220 | tc11-9000B-4t4c-ethip4udp-ip4base-iacl1-stateless-flows10k-mrr
221 | | [Documentation]
222 | | ... | [Cfg] DUT runs IPv4 routing config with ACL with\
223 | | ... | 4 threads, 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 | 4T4C | MTHREAD
228 | | ...
229 | | [Template] | Check RR for IPv4 routing with ACLs
230 | | wt=4 | rxq=2 | framesize=${9000}
231
232 | tc12-IMIX-4t4c-ethip4udp-ip4base-iacl1-stateless-flows10k-mrr
233 | | [Documentation]
234 | | ... | [Cfg] DUT runs IPv4 routing config with ACL with\
235 | | ... | 4 threads, 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 | 4T4C | MTHREAD
241 | | ...
242 | | [Template] | Check RR for IPv4 routing with ACLs
243 | | wt=4 | rxq=2 | framesize=IMIX_v4_1