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