CSIT-1142 2-node topology - keywords
[csit.git] / tests / vpp / perf / ip4 / 10ge2p1x520-ethip4udp-ip4scale4000-udpsrcscale15-nat44-ndrpdrdisc.robot
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:
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 | Resource | resources/libraries/robot/ip/nat.robot
17 | Resource | resources/libraries/robot/shared/traffic.robot
18 | ...
19 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
20 | ... | NIC_Intel-X520-DA2 | ETH | IP4FWD | FEATURE | NAT44 | SRC_USER_4000
21 | ... | SCALE
22 | ...
23 | Suite Setup | Run Keywords
24 | ... | Set up 3-node performance topology with DUT's NIC model | L3
25 | ... | Intel-X520-DA2
26 | ... | AND | Set up performance test suite with NAT
27 | Suite Teardown | Tear down 3-node performance topology
28 | ...
29 | Test Setup | Set up performance test
30 | ...
31 | Test Teardown | Tear down performance discovery test with NAT
32 | ... | ${min_rate}pps | ${framesize} | ${traffic_profile}
33 | ...
34 | Documentation | *NAT44 performance test cases*
35 | ...
36 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
37 | ... | with single links between nodes.
38 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4-UDP for IPv4 routing.
39 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
40 | ... | routing and two static IPv4 /24 and IPv4/20 route entries. DUT1 and DUT2
41 | ... | tested with 2p10GE NIC X520 Niantic by Intel.
42 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
43 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
44 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
45 | ... | of packets transmitted. NDR and PDR are discovered for different
46 | ... | Ethernet L2 frame sizes using either binary search or linear search
47 | ... | algorithms with configured starting rate and final step that determines
48 | ... | throughput measurement resolution. Test packets are generated by TG on
49 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
50 | ... | (flow-group per direction, one flow per flow-group) with all packets
51 | ... | containing Ethernet header, IPv4 header with UDP header and static
52 | ... | payload. MAC addresses are matching MAC addresses of the TG node
53 | ... | interfaces.
54 | ... | *[Ref] Applicable standard specifications:* RFC2544.
55
56 *** Variables ***
57 # X520-DA2 bandwidth limit
58 | ${s_limit} | ${10000000000}
59 # Traffic profile:
60 | ${traffic_profile} | trex-sl-3n-ethip4udp-4000u15p
61
62 *** Keywords ***
63 | Discover NDR or PDR for IPv4 routing with NAT44
64 | | ...
65 | | [Arguments] | ${wt} | ${rxq} | ${framesize} | ${min_rate} | ${search_type}
66 | | ...
67 | | Set Test Variable | ${framesize}
68 | | Set Test Variable | ${min_rate}
69 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
70 | | ${binary_min}= | Set Variable | ${min_rate}
71 | | ${binary_max}= | Set Variable | ${max_rate}
72 | | ${threshold}= | Set Variable | ${min_rate}
73 | | ${get_framesize}= | Get Frame Size | ${framesize}
74 | | ...
75 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
76 | | And Add PCI devices to all DUTs
77 | | And Run Keyword If | ${get_framesize} < ${1522}
78 | | ... | Add no multi seg to all DUTs
79 | | And Add NAT to all DUTs
80 | | And Apply startup configuration on all VPP DUTs
81 | | When Initialize NAT44 in 3-node circular topology
82 | | Then Run Keyword If | '${search_type}' == 'NDR'
83 | | ... | Find NDR using binary search and pps
84 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
85 | | ... | ${min_rate} | ${max_rate} | ${threshold}
86 | | ... | ELSE IF | '${search_type}' == 'PDR'
87 | | ... | Find PDR using binary search and pps
88 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
89 | | ... | ${min_rate} | ${max_rate} | ${threshold}
90 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
91
92 *** Test Cases ***
93 | tc01-64B-1t1c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
94 | | [Documentation]
95 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
96 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
97 | | ... | 4000 users and 15 ports (sessions) per user.
98 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
99 | | ... | linerate, step 50kpps.
100 | | ...
101 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
102 | | ...
103 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
104 | | wt=1 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=NDR
105
106 | tc02-64B-1t1c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
107 | | [Documentation]
108 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
109 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
110 | | ... | 4000 users and 15 ports (sessions) per user.
111 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
112 | | ... | linerate, step 50kpps.
113 | | ...
114 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
115 | | ...
116 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
117 | | wt=1 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=PDR
118
119 | tc03-1518B-1t1c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
120 | | [Documentation]
121 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
122 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
123 | | ... | 4000 users and 15 ports (sessions) per user.
124 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
125 | | ... | linerate, step 50kpps.
126 | | ...
127 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
128 | | ...
129 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
130 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=NDR
131
132 | tc04-1518B-1t1c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
133 | | [Documentation]
134 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
135 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
136 | | ... | 4000 users and 15 ports (sessions) per user.
137 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
138 | | ... | linerate, step 50kpps.
139 | | ...
140 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
141 | | ...
142 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
143 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=PDR
144
145 | tc05-IMIX-1t1c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
146 | | [Documentation]
147 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
148 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
149 | | ... | 4000 users and 15 ports (sessions) per user.
150 | | ... | [Ver] Find NDR for IMIX frames using binary search start at 10GE\
151 | | ... | linerate, step 50kpps.
152 | | ...
153 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
154 | | ...
155 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
156 | | wt=1 | rxq=1 | framesize=IMIX_v4_1 | min_rate=${50000} | search_type=NDR
157
158 | tc06-IMIX-1t1c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
159 | | [Documentation]
160 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
161 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
162 | | ... | 4000 users and 15 ports (sessions) per user.
163 | | ... | [Ver] Find PDR for IMIX frames using binary search start at 10GE\
164 | | ... | linerate, step 50kpps.
165 | | ...
166 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
167 | | ...
168 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
169 | | wt=1 | rxq=1 | framesize=IMIX_v4_1 | min_rate=${50000} | search_type=PDR
170
171 | tc07-64B-2t2c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
172 | | [Documentation]
173 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores,\
174 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
175 | | ... | 4000 users and 15 ports (sessions) per user.
176 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
177 | | ... | linerate, step 50kpps.
178 | | ...
179 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
180 | | ...
181 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
182 | | wt=2 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=NDR
183
184 | tc08-64B-2t2c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
185 | | [Documentation]
186 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores,\
187 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
188 | | ... | 4000 users and 15 ports (sessions) per user.
189 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
190 | | ... | linerate, step 50kpps.
191 | | ...
192 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
193 | | ...
194 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
195 | | wt=2 | rxq=1 | framesize=${64} | min_rate=${50000} | search_type=PDR
196
197 | tc09-1518B-2t2c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
198 | | [Documentation]
199 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores,\
200 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
201 | | ... | 4000 users and 15 ports (sessions) per user.
202 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
203 | | ... | linerate, step 50kpps.
204 | | ...
205 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC
206 | | ...
207 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
208 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=NDR
209
210 | tc10-1518B-2t2c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
211 | | [Documentation]
212 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores,\
213 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
214 | | ... | 4000 users and 15 ports (sessions) per user.
215 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
216 | | ... | linerate, step 50kpps.
217 | | ...
218 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
219 | | ...
220 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
221 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=PDR
222
223 | tc11-IMIX-2t2c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
224 | | [Documentation]
225 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores,\
226 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
227 | | ... | 4000 users and 15 ports (sessions) per user.
228 | | ... | [Ver] Find NDR for IMIX frames using binary search start at 10GE\
229 | | ... | linerate, step 50kpps.
230 | | ...
231 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC
232 | | ...
233 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
234 | | wt=2 | rxq=1 | framesize=IMIX_v4_1 | min_rate=${50000} | search_type=NDR
235
236 | tc12-IMIX-2t2c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
237 | | [Documentation]
238 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores,\
239 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
240 | | ... | 4000 users and 15 ports (sessions) per user.
241 | | ... | [Ver] Find PDR for IMIX frames using binary search start at 10GE\
242 | | ... | linerate, step 50kpps.
243 | | ...
244 | | [Tags] | IMIX | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
245 | | ...
246 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
247 | | wt=2 | rxq=1 | framesize=IMIX_v4_1 | min_rate=${50000} | search_type=PDR
248
249 | tc13-64B-4t4c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
250 | | [Documentation]
251 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores,\
252 | | ... | 2 receive queues per NIC port. NAT44 is configured between DUTs -\
253 | | ... | 4000 users and 15 ports (sessions) per user.
254 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
255 | | ... | linerate, step 50kpps.
256 | | ...
257 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
258 | | ...
259 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
260 | | wt=4 | rxq=2 | framesize=${64} | min_rate=${50000} | search_type=NDR
261
262 | tc14-64B-4t4c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
263 | | [Documentation]
264 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores,\
265 | | ... | 2 receive queues per NIC port. NAT44 is configured between DUTs -\
266 | | ... | 4000 users and 15 ports (sessions) per user.
267 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
268 | | ... | linerate, step 50kpps.
269 | | ...
270 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
271 | | ...
272 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
273 | | wt=4 | rxq=2 | framesize=${64} | min_rate=${50000} | search_type=PDR
274
275 | tc15-1518B-4t4c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
276 | | [Documentation]
277 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores,\
278 | | ... | 2 receive queues per NIC port. NAT44 is configured between DUTs -\
279 | | ... | 4000 users and 15 ports (sessions) per user.
280 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
281 | | ... | linerate, step 50kpps.
282 | | ...
283 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC
284 | | ...
285 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
286 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${50000} | search_type=NDR
287
288 | tc16-1518B-4t4c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
289 | | [Documentation]
290 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores,\
291 | | ... | 2 receive queues per NIC port. NAT44 is configured between DUTs -\
292 | | ... | 4000 users and 15 ports (sessions) per user.
293 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
294 | | ... | linerate, step 50kpps.
295 | | ...
296 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
297 | | ...
298 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
299 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${50000} | search_type=PDR
300
301 | tc17-IMIX-4t4c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
302 | | [Documentation]
303 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores,\
304 | | ... | 2 receive queues per NIC port. NAT44 is configured between DUTs -\
305 | | ... | 4000 users and 15 ports (sessions) per user.
306 | | ... | [Ver] Find NDR for IMIX frames using binary search start at 10GE\
307 | | ... | linerate, step 50kpps.
308 | | ...
309 | | [Tags] | IMIX | 4T4C | MTHREAD | NDRDISC
310 | | ...
311 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
312 | | wt=4 | rxq=2 | framesize=IMIX_v4_1 | min_rate=${50000} | search_type=NDR
313
314 | tc18-IMIX-4t4c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
315 | | [Documentation]
316 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores,\
317 | | ... | 2 receive queues per NIC port. NAT44 is configured between DUTs -\
318 | | ... | 4000 users and 15 ports (sessions) per user.
319 | | ... | [Ver] Find PDR for IMIX frames using binary search start at 10GE\
320 | | ... | linerate, step 50kpps.
321 | | ...
322 | | [Tags] | IMIX | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
323 | | ...
324 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
325 | | wt=4 | rxq=2 | framesize=IMIX_v4_1 | min_rate=${50000} | search_type=PDR