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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 | Resource | resources/libraries/robot/performance/performance_setup.robot
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
18 | ... | NIC_Intel-X520-DA2 | ETH | IP4FWD | BASE | IP4BASE
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
24 | Test Setup | Set up performance test
26 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
27 | ... | ${framesize} | ${traffic_profile}
29 | Documentation | *RFC2544: Pkt throughput IPv4 routing test cases*
31 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
32 | ... | with single links between nodes.
33 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for IPv4 routing.
34 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
35 | ... | routing and two static IPv4 /24 route entries. DUT1 and DUT2 tested with
36 | ... | 2p10GE NIC X520 Niantic by Intel.
37 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
38 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
39 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
40 | ... | of packets transmitted. NDR and PDR are discovered for different
41 | ... | Ethernet L2 frame sizes using either binary search or linear search
42 | ... | algorithms with configured starting rate and final step that determines
43 | ... | throughput measurement resolution. Test packets are generated by TG on
44 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
45 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
46 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
47 | ... | payload. MAC addresses are matching MAC addresses of the TG node
49 | ... | *[Ref] Applicable standard specifications:* RFC2544.
52 # X520-DA2 bandwidth limit
53 | ${s_limit} | ${10000000000}
55 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src253
58 | Discover NDR or PDR for ethip4-ip4base
60 | | ... | [Cfg] DUT runs IPv4 routing config with ${wt} thread(s), ${wt}\
61 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
62 | | ... | [Ver] Find NDR or PDR for ${framesize} frames using binary search\
63 | | ... | start at 10GE linerate.
65 | | [Arguments] | ${wt} | ${rxq} | ${framesize} | ${min_rate} | ${search_type}
67 | | Set Test Variable | ${framesize}
68 | | Set Test Variable | ${min_rate}
69 | | ${get_framesize}= | Get Frame Size | ${framesize}
70 | | ${max_rate}= | Calculate pps | ${s_limit} | ${get_framesize}
71 | | ${binary_min}= | Set Variable | ${min_rate}
72 | | ${binary_max}= | Set Variable | ${max_rate}
73 | | ${threshold}= | Set Variable | ${min_rate}
74 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
75 | | And Add PCI devices to DUTs in 3-node single link topology
76 | | And Run Keyword If | ${get_framesize} < ${1522}
77 | | ... | Add no multi seg to all DUTs
78 | | And Apply startup configuration on all VPP DUTs
79 | | And Initialize IPv4 forwarding in 3-node circular topology
80 | | Then Run Keyword If | '${search_type}' == 'NDR'
81 | | ... | Find NDR using binary search and pps
82 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
83 | | ... | ${min_rate} | ${max_rate} | ${threshold}
84 | | ... | ELSE IF | '${search_type}' == 'PDR'
85 | | ... | Find PDR using binary search and pps
86 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
87 | | ... | ${min_rate} | ${max_rate} | ${threshold}
88 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
91 | tc01-64B-1t1c-ethip4-ip4base-ndrdisc
93 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
94 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
95 | | ... | using binary search start at 10GE linerate, step 50kpps.
96 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
98 | | [Template] | Discover NDR or PDR for ethip4-ip4base
99 | | wt=1 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=NDR
101 | tc02-64B-1t1c-ethip4-ip4base-pdrdisc
103 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
104 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames
105 | | ... | using binary search start at 10GE linerate, step 50kpps, LT=0.5%.
106 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
108 | | [Template] | Discover NDR or PDR for ethip4-ip4base
109 | | wt=1 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=PDR
111 | tc03-1518B-1t1c-ethip4-ip4base-ndrdisc
113 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
114 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
115 | | ... | using binary search start at 10GE linerate, step 50kpps.
116 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
118 | | [Template] | Discover NDR or PDR for ethip4-ip4base
119 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=NDR
121 | tc04-1518B-1t1c-ethip4-ip4base-pdrdisc
123 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
124 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames
125 | | ... | using binary search start at 10GE linerate, step 50kpps, LT=0.5%.
126 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
128 | | [Template] | Discover NDR or PDR for ethip4-ip4base
129 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=PDR
131 | tc05-9000B-1t1c-ethip4-ip4base-ndrdisc
133 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
134 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames
135 | | ... | using binary search start at 10GE linerate, step 10kpps.
136 | | [Tags] | 9000B | 1T1C | STHREAD | NDRDISC
138 | | [Template] | Discover NDR or PDR for ethip4-ip4base
139 | | wt=1 | rxq=1 | framesize=${9000} | min_rate=${10000} | search_type=NDR
141 | tc06-9000B-1t1c-ethip4-ip4base-pdrdisc
143 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
144 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames
145 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
146 | | [Tags] | 9000B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
148 | | [Template] | Discover NDR or PDR for ethip4-ip4base
149 | | wt=1 | rxq=1 | framesize=${9000} | min_rate=${10000} | search_type=PDR
151 | tc07-64B-2t2c-ethip4-ip4base-ndrdisc
153 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
154 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
155 | | ... | using binary search start at 10GE linerate, step 50kpps.
156 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
158 | | [Template] | Discover NDR or PDR for ethip4-ip4base
159 | | wt=2 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=NDR
161 | tc08-64B-2t2c-ethip4-ip4base-pdrdisc
163 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
164 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames
165 | | ... | using binary search start at 10GE linerate, step 50kpps, LT=0.5%.
166 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
168 | | [Template] | Discover NDR or PDR for ethip4-ip4base
169 | | wt=2 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=PDR
171 | tc09-1518B-2t2c-ethip4-ip4base-ndrdisc
173 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
174 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
175 | | ... | using binary search start at 10GE linerate, step 50kpps.
176 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
178 | | [Template] | Discover NDR or PDR for ethip4-ip4base
179 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=NDR
181 | tc10-1518B-2t2c-ethip4-ip4base-pdrdisc
183 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
184 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames
185 | | ... | using binary search start at 10GE linerate, step 50kpps, LT=0.5%.
186 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
188 | | [Template] | Discover NDR or PDR for ethip4-ip4base
189 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=PDR
191 | tc11-9000B-2t2c-ethip4-ip4base-ndrdisc
193 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
194 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 9000 Byte frames
195 | | ... | using binary search start at 10GE linerate, step 10kpps.
196 | | [Tags] | 9000B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
198 | | [Template] | Discover NDR or PDR for ethip4-ip4base
199 | | wt=2 | rxq=1 | framesize=${9000} | min_rate=${10000} | search_type=NDR
201 | tc12-9000B-2t2c-ethip4-ip4base-pdrdisc
203 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
204 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 9000 Byte frames
205 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
206 | | [Tags] | 9000B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
208 | | [Template] | Discover NDR or PDR for ethip4-ip4base
209 | | wt=2 | rxq=1 | framesize=${9000} | min_rate=${10000} | search_type=PDR
211 | tc13-64B-4t4c-ethip4-ip4base-ndrdisc
213 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
214 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames
215 | | ... | using binary search start at 10GE linerate, step 50kpps.
216 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
218 | | [Template] | Discover NDR or PDR for ethip4-ip4base
219 | | wt=4 | rxq=2 | framesize=${64} | min_rate=${50000} | search_type=NDR
221 | tc14-64B-4t4c-ethip4-ip4base-pdrdisc
223 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
224 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames
225 | | ... | using binary search start at 10GE linerate, step 50kpps, LT=0.5%.
226 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
228 | | [Template] | Discover NDR or PDR for ethip4-ip4base
229 | | wt=4 | rxq=2 | framesize=${64} | min_rate=${50000} | search_type=PDR
231 | tc15-1518B-4t4c-ethip4-ip4base-ndrdisc
233 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
234 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames
235 | | ... | using binary search start at 10GE linerate, step 50kpps.
236 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
238 | | [Template] | Discover NDR or PDR for ethip4-ip4base
239 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${50000} | search_type=NDR
241 | tc16-1518B-4t4c-ethip4-ip4base-pdrdisc
243 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
244 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames
245 | | ... | using binary search start at 10GE linerate, step 50kpps, LT=0.5%.
246 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
248 | | [Template] | Discover NDR or PDR for ethip4-ip4base
249 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${50000} | search_type=PDR
251 | tc17-9000B-4t4c-ethip4-ip4base-ndrdisc
253 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
254 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 9000 Byte frames
255 | | ... | using binary search start at 10GE linerate, step 10kpps.
256 | | [Tags] | 9000B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
258 | | [Template] | Discover NDR or PDR for ethip4-ip4base
259 | | wt=4 | rxq=2 | framesize=${9000} | min_rate=${10000} | search_type=NDR
261 | tc18-9000B-4t4c-ethip4-ip4base-pdrdisc
263 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
264 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 9000 Byte frames
265 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
266 | | [Tags] | 9000B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
268 | | [Template] | Discover NDR or PDR for ethip4-ip4base
269 | | wt=4 | rxq=2 | framesize=${9000} | min_rate=${10000} | search_type=PDR