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
16 | Resource | resources/libraries/robot/ip/nat.robot
17 | Resource | resources/libraries/robot/shared/traffic.robot
19 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
20 | ... | NIC_Intel-X520-DA2 | ETH | IP4FWD | FEATURE | NAT44 | SRC_USER_4000
23 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
24 | ... | L3 | Intel-X520-DA2
25 | Suite Teardown | Tear down 3-node performance topology
27 | Test Setup | Set up performance test
29 | Test Teardown | Tear down performance discovery test with NAT
30 | ... | ${min_rate}pps | ${framesize} | ${traffic_profile}
32 | Documentation | *NAT44 performance test cases*
34 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
35 | ... | with single links between nodes.
36 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4-UDP for IPv4 routing.
37 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
38 | ... | routing and two static IPv4 /24 and IPv4/20 route entries. DUT1 and DUT2
39 | ... | tested with 2p10GE NIC X520 Niantic by Intel.
40 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
41 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
42 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
43 | ... | of packets transmitted. NDR and PDR are discovered for different
44 | ... | Ethernet L2 frame sizes using either binary search or linear search
45 | ... | algorithms with configured starting rate and final step that determines
46 | ... | throughput measurement resolution. Test packets are generated by TG on
47 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
48 | ... | (flow-group per direction, one flow per flow-group) with all packets
49 | ... | containing Ethernet header, IPv4 header with UDP header and static
50 | ... | payload. MAC addresses are matching MAC addresses of the TG node
52 | ... | *[Ref] Applicable standard specifications:* RFC2544.
55 # X520-DA2 bandwidth limit
56 | ${s_limit} | ${10000000000}
58 | ${traffic_profile} | trex-sl-3n-ethip4udp-4000u15p
61 | Discover NDR or PDR for IPv4 routing with NAT44
63 | | [Arguments] | ${wt} | ${rxq} | ${framesize} | ${min_rate} | ${search_type}
65 | | Set Test Variable | ${framesize}
66 | | Set Test Variable | ${min_rate}
67 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
68 | | ${binary_min}= | Set Variable | ${min_rate}
69 | | ${binary_max}= | Set Variable | ${max_rate}
70 | | ${threshold}= | Set Variable | ${min_rate}
71 | | ${get_framesize}= | Get Frame Size | ${framesize}
73 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
74 | | And Add PCI devices to DUTs in 3-node single link topology
75 | | And Run Keyword If | ${get_framesize} < ${1522}
76 | | ... | Add no multi seg to all DUTs
77 | | And Add NAT to all DUTs
78 | | And Apply startup configuration on all VPP DUTs
79 | | When Initialize NAT44 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-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
93 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
94 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
95 | | ... | 4000 users and 15 ports (sessions) per user.
96 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
97 | | ... | linerate, step 100kpps.
99 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
101 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
102 | | wt=1 | rxq=1 | framesize=${64} | min_rate=${100000} | search_type=NDR
104 | tc02-64B-1t1c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
106 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
107 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
108 | | ... | 4000 users and 15 ports (sessions) per user.
109 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
110 | | ... | linerate, step 100kpps.
112 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
114 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
115 | | wt=1 | rxq=1 | framesize=${64} | min_rate=${100000} | search_type=PDR
117 | tc03-1518B-1t1c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
119 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
120 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
121 | | ... | 4000 users and 15 ports (sessions) per user.
122 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
123 | | ... | linerate, step 100kpps.
125 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
127 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
128 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${100000} | search_type=NDR
130 | tc04-1518B-1t1c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
132 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
133 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
134 | | ... | 4000 users and 15 ports (sessions) per user.
135 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
136 | | ... | linerate, step 100kpps.
138 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
140 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
141 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${100000} | search_type=PDR
143 | tc05-IMIX-1t1c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
145 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
146 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
147 | | ... | 4000 users and 15 ports (sessions) per user.
148 | | ... | [Ver] Find NDR for IMIX frames using binary search start at 10GE\
149 | | ... | linerate, step 100kpps.
151 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
153 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
154 | | wt=1 | rxq=1 | framesize=IMIX_v4_1 | min_rate=${100000} | search_type=NDR
156 | tc06-IMIX-1t1c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
158 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
159 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
160 | | ... | 4000 users and 15 ports (sessions) per user.
161 | | ... | [Ver] Find PDR for IMIX frames using binary search start at 10GE\
162 | | ... | linerate, step 100kpps.
164 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
166 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
167 | | wt=1 | rxq=1 | framesize=IMIX_v4_1 | min_rate=${100000} | search_type=PDR
169 | tc07-64B-2t2c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
171 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores,\
172 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
173 | | ... | 4000 users and 15 ports (sessions) per user.
174 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
175 | | ... | linerate, step 100kpps.
177 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
179 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
180 | | wt=2 | rxq=1 | framesize=${64} | min_rate=${100000} | search_type=NDR
182 | tc08-64B-2t2c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
184 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores,\
185 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
186 | | ... | 4000 users and 15 ports (sessions) per user.
187 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
188 | | ... | linerate, step 100kpps.
190 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
192 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
193 | | wt=2 | rxq=1 | framesize=${64} | min_rate=${100000} | search_type=PDR
195 | tc09-1518B-2t2c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
197 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores,\
198 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
199 | | ... | 4000 users and 15 ports (sessions) per user.
200 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
201 | | ... | linerate, step 100kpps.
203 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC
205 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
206 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${100000} | search_type=NDR
208 | tc10-1518B-2t2c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
210 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores,\
211 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
212 | | ... | 4000 users and 15 ports (sessions) per user.
213 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
214 | | ... | linerate, step 100kpps.
216 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
218 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
219 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${100000} | search_type=PDR
221 | tc11-IMIX-2t2c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
223 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores,\
224 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
225 | | ... | 4000 users and 15 ports (sessions) per user.
226 | | ... | [Ver] Find NDR for IMIX frames using binary search start at 10GE\
227 | | ... | linerate, step 100kpps.
229 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC
231 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
232 | | wt=2 | rxq=1 | framesize=IMIX_v4_1 | min_rate=${100000} | search_type=NDR
234 | tc12-IMIX-2t2c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
236 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores,\
237 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
238 | | ... | 4000 users and 15 ports (sessions) per user.
239 | | ... | [Ver] Find PDR for IMIX frames using binary search start at 10GE\
240 | | ... | linerate, step 100kpps.
242 | | [Tags] | IMIX | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
244 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
245 | | wt=2 | rxq=1 | framesize=IMIX_v4_1 | min_rate=${100000} | search_type=PDR
247 | tc13-64B-4t4c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
249 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores,\
250 | | ... | 2 receive queues per NIC port. NAT44 is configured between DUTs -\
251 | | ... | 4000 users and 15 ports (sessions) per user.
252 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
253 | | ... | linerate, step 100kpps.
255 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
257 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
258 | | wt=4 | rxq=2 | framesize=${64} | min_rate=${100000} | search_type=NDR
260 | tc14-64B-4t4c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
262 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores,\
263 | | ... | 2 receive queues per NIC port. NAT44 is configured between DUTs -\
264 | | ... | 4000 users and 15 ports (sessions) per user.
265 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
266 | | ... | linerate, step 100kpps.
268 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
270 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
271 | | wt=4 | rxq=2 | framesize=${64} | min_rate=${100000} | search_type=PDR
273 | tc15-1518B-4t4c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
275 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores,\
276 | | ... | 2 receive queues per NIC port. NAT44 is configured between DUTs -\
277 | | ... | 4000 users and 15 ports (sessions) per user.
278 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
279 | | ... | linerate, step 100kpps.
281 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC
283 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
284 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${100000} | search_type=NDR
286 | tc16-1518B-4t4c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
288 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores,\
289 | | ... | 2 receive queues per NIC port. NAT44 is configured between DUTs -\
290 | | ... | 4000 users and 15 ports (sessions) per user.
291 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
292 | | ... | linerate, step 100kpps.
294 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
296 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
297 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${100000} | search_type=PDR
299 | tc17-IMIX-4t4c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
301 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores,\
302 | | ... | 2 receive queues per NIC port. NAT44 is configured between DUTs -\
303 | | ... | 4000 users and 15 ports (sessions) per user.
304 | | ... | [Ver] Find NDR for IMIX frames using binary search start at 10GE\
305 | | ... | linerate, step 100kpps.
307 | | [Tags] | IMIX | 4T4C | MTHREAD | NDRDISC
309 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
310 | | wt=4 | rxq=2 | framesize=IMIX_v4_1 | min_rate=${100000} | search_type=NDR
312 | tc18-IMIX-4t4c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
314 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores,\
315 | | ... | 2 receive queues per NIC port. NAT44 is configured between DUTs -\
316 | | ... | 4000 users and 15 ports (sessions) per user.
317 | | ... | [Ver] Find PDR for IMIX frames using binary search start at 10GE\
318 | | ... | linerate, step 100kpps.
320 | | [Tags] | IMIX | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
322 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
323 | | wt=4 | rxq=2 | framesize=IMIX_v4_1 | min_rate=${100000} | search_type=PDR