Fix doc in NAT44 tests.
[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 | 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
26 | ...
27 | Test Setup | Set up performance test
28 | ...
29 | Test Teardown | Tear down performance discovery test with NAT
30 | ... | ${min_rate}pps | ${framesize} | ${traffic_profile}
31 | ...
32 | Documentation | *NAT44 performance test cases*
33 | ...
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
51 | ... | interfaces.
52 | ... | *[Ref] Applicable standard specifications:* RFC2544.
53
54 *** Variables ***
55 # X520-DA2 bandwidth limit
56 | ${s_limit} | ${10000000000}
57 # Traffic profile:
58 | ${traffic_profile} | trex-sl-3n-ethip4udp-4000u15p
59
60 *** Keywords ***
61 | Discover NDR or PDR for IPv4 routing with NAT44
62 | | ...
63 | | [Arguments] | ${wt} | ${rxq} | ${framesize} | ${min_rate} | ${search_type}
64 | | ...
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}
72 | | ...
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}
89
90 *** Test Cases ***
91 | tc01-64B-1t1c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
92 | | [Documentation]
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.
98 | | ...
99 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
100 | | ...
101 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
102 | | wt=1 | rxq=1 | framesize=${64} | min_rate=${100000} | search_type=NDR
103
104 | tc02-64B-1t1c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
105 | | [Documentation]
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.
111 | | ...
112 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
113 | | ...
114 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
115 | | wt=1 | rxq=1 | framesize=${64} | min_rate=${100000} | search_type=PDR
116
117 | tc03-1518B-1t1c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
118 | | [Documentation]
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.
124 | | ...
125 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
126 | | ...
127 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
128 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${100000} | search_type=NDR
129
130 | tc04-1518B-1t1c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
131 | | [Documentation]
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.
137 | | ...
138 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
139 | | ...
140 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
141 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${100000} | search_type=PDR
142
143 | tc05-IMIX-1t1c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
144 | | [Documentation]
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.
150 | | ...
151 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
152 | | ...
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
155
156 | tc06-IMIX-1t1c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
157 | | [Documentation]
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.
163 | | ...
164 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
165 | | ...
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
168
169 | tc07-64B-2t2c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
170 | | [Documentation]
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.
176 | | ...
177 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
178 | | ...
179 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
180 | | wt=2 | rxq=1 | framesize=${64} | min_rate=${100000} | search_type=NDR
181
182 | tc08-64B-2t2c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
183 | | [Documentation]
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.
189 | | ...
190 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
191 | | ...
192 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
193 | | wt=2 | rxq=1 | framesize=${64} | min_rate=${100000} | search_type=PDR
194
195 | tc09-1518B-2t2c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
196 | | [Documentation]
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.
202 | | ...
203 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC
204 | | ...
205 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
206 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${100000} | search_type=NDR
207
208 | tc10-1518B-2t2c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
209 | | [Documentation]
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.
215 | | ...
216 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
217 | | ...
218 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
219 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${100000} | search_type=PDR
220
221 | tc11-IMIX-2t2c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
222 | | [Documentation]
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.
228 | | ...
229 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC
230 | | ...
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
233
234 | tc12-IMIX-2t2c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
235 | | [Documentation]
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.
241 | | ...
242 | | [Tags] | IMIX | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
243 | | ...
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
246
247 | tc13-64B-4t4c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
248 | | [Documentation]
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.
254 | | ...
255 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
256 | | ...
257 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
258 | | wt=4 | rxq=2 | framesize=${64} | min_rate=${100000} | search_type=NDR
259
260 | tc14-64B-4t4c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
261 | | [Documentation]
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.
267 | | ...
268 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
269 | | ...
270 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
271 | | wt=4 | rxq=2 | framesize=${64} | min_rate=${100000} | search_type=PDR
272
273 | tc15-1518B-4t4c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
274 | | [Documentation]
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.
280 | | ...
281 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC
282 | | ...
283 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
284 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${100000} | search_type=NDR
285
286 | tc16-1518B-4t4c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
287 | | [Documentation]
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.
293 | | ...
294 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
295 | | ...
296 | | [Template] | Discover NDR or PDR for IPv4 routing with NAT44
297 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${100000} | search_type=PDR
298
299 | tc17-IMIX-4t4c-ethip4udp-ip4scale4000-udpsrcscale15-snat-ndrdisc
300 | | [Documentation]
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.
306 | | ...
307 | | [Tags] | IMIX | 4T4C | MTHREAD | NDRDISC
308 | | ...
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
311
312 | tc18-IMIX-4t4c-ethip4udp-ip4scale4000-udpsrcscale15-snat-pdrdisc
313 | | [Documentation]
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.
319 | | ...
320 | | [Tags] | IMIX | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
321 | | ...
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