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