CSIT-562 HC Test: Persistence suite rework, part1
[csit.git] / tests / perf / 10ge2p1x520-ethip4udp-ip4scale1000-udpsrcscale15-snat-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.robot
16 | Resource | resources/libraries/robot/snat.robot
17 | Resource | resources/libraries/robot/traffic.robot
18 | ...
19 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
20 | ... | NIC_Intel-X520-DA2 | ETH | IP4FWD | FEATURE | SNAT | SRC_USER_1000
21 | ... | SCALE
22 | ...
23 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
24 | ... | L3 | Intel-X520-DA2
25 | Suite Teardown | 3-node Performance Suite Teardown
26 | ...
27 | Test Setup | Performance test setup
28 | ...
29 | Documentation | *SNAT performance test cases*
30 | ...
31 | ... | *High level description*
32 | ...
33 | ... | - NDR and PDR tests
34 | ... | - 3-node topology, TG-DUT1-DUT2-TG, SNAT is enabled between DUTs.
35 | ... | - Cores / threads: 1t1c and 2t2c
36 | ... | - Framesize: 64B, 1518B, IMIX
37 | ... | - Packet: ETH / IP(src, dst) / UDP(src_port, dst_port) / payload
38 | ... | - scale: src: 1 user, 10 users, 100 users, ..., 4000 up to the memory
39 | ... |   limit; 15 ports per user
40 | ...
41 | ... | *Low level description*
42 | ...
43 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
44 | ... | with single links between nodes.
45 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4-UDP for IPv4 routing.
46 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
47 | ... | routing and two static IPv4 /24 and IPv4/20 route entries. DUT1 and DUT2
48 | ... | tested with 2p10GE NIC X520 Niantic by Intel.
49 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
50 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
51 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
52 | ... | of packets transmitted. NDR and PDR are discovered for different
53 | ... | Ethernet L2 frame sizes using either binary search or linear search
54 | ... | algorithms with configured starting rate and final step that determines
55 | ... | throughput measurement resolution. Test packets are generated by TG on
56 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
57 | ... | (flow-group per direction, one flow per flow-group) with all packets
58 | ... | containing Ethernet header, IPv4 header with UDP header and static
59 | ... | payload. MAC addresses are matching MAC addresses of the TG node
60 | ... | interfaces.
61 | ... | *[Ref] Applicable standard specifications:* RFC2544.
62
63 *** Variables ***
64 # X520-DA2 bandwidth limit
65 | ${s_limit} | ${10000000000}
66
67 *** Test Cases ***
68 | tc01-64B-1t1c-ethip4udp-ip4scale1000-udpsrcscale15-snat-ndrdisc
69 | | [Documentation]
70 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
71 | | ... | 1 receive queue per NIC port. SNAT is configured between DUTs -\
72 | | ... | 1000 users and 15 ports (sessions) per user.
73 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
74 | | ... | linerate, step 100kpps.
75 | | ...
76 | | [Teardown] | Run keywords | Performance test teardown | ${min_rate}pps
77 | | ... | ${framesize} | 3-node-IPv4-SNAT-1000u-15p
78 | | ... | AND | Show SNAT verbose | ${dut1}
79 | | ... | AND | Show SNAT verbose | ${dut2}
80 | | ...
81 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
82 | | ...
83 | | ${framesize}= | Set Variable | ${64}
84 | | ${min_rate}= | Set Variable | ${100000}
85 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
86 | | ${binary_min}= | Set Variable | ${min_rate}
87 | | ${binary_max}= | Set Variable | ${max_rate}
88 | | ${threshold}= | Set Variable | ${min_rate}
89 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
90 | | And Add PCI devices to DUTs from 3-node single link topology
91 | | And Add No Multi Seg to all DUTs
92 | | And Add SNAT to all DUTs
93 | | And Apply startup configuration on all VPP DUTs
94 | | When SNAT is initialized in a 3-node circular topology
95 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
96 | | ... | ${binary_max} | 3-node-IPv4-SNAT-1000u-15p | ${min_rate} | ${max_rate}
97 | | ... | ${threshold}
98
99 | tc02-64B-1t1c-ethip4udp-ip4scale1000-udpsrcscale15-snat-pdrdisc
100 | | [Documentation]
101 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
102 | | ... | 1 receive queue per NIC port. SNAT is configured between DUTs -\
103 | | ... | 1000 users and 15 ports (sessions) per user.
104 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
105 | | ... | linerate, step 100kpps.
106 | | ...
107 | | [Teardown] | Performance test teardown | ${min_rate}pps | ${framesize}
108 | | ... | 3-node-IPv4-SNAT-1000u-15p
109 | | ...
110 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
111 | | ...
112 | | ${framesize}= | Set Variable | ${64}
113 | | ${min_rate}= | Set Variable | ${100000}
114 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
115 | | ${binary_min}= | Set Variable | ${min_rate}
116 | | ${binary_max}= | Set Variable | ${max_rate}
117 | | ${threshold}= | Set Variable | ${min_rate}
118 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
119 | | And Add PCI devices to DUTs from 3-node single link topology
120 | | And Add No Multi Seg to all DUTs
121 | | And Add SNAT to all DUTs
122 | | And Apply startup configuration on all VPP DUTs
123 | | When SNAT is initialized in a 3-node circular topology
124 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
125 | | ... | ${binary_max} | 3-node-IPv4-SNAT-1000u-15p | ${min_rate} | ${max_rate}
126 | | ... | ${threshold} | ${perf_pdr_loss_acceptance}
127 | | ... | ${perf_pdr_loss_acceptance_type}
128
129 | tc03-1518B-1t1c-ethip4udp-ip4scale1000-udpsrcscale15-snat-ndrdisc
130 | | [Documentation]
131 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
132 | | ... | 1 receive queue per NIC port. SNAT is configured between DUTs -\
133 | | ... | 1000 users and 15 ports (sessions) per user.
134 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
135 | | ... | linerate, step 100kpps.
136 | | ...
137 | | [Teardown] | Run keywords | Performance test teardown | ${min_rate}pps
138 | | ... | ${framesize} | 3-node-IPv4-SNAT-1000u-15p
139 | | ... | AND | Show SNAT verbose | ${dut1}
140 | | ... | AND | Show SNAT verbose | ${dut2}
141 | | ...
142 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
143 | | ...
144 | | ${framesize}= | Set Variable | ${1518}
145 | | ${min_rate}= | Set Variable | ${100000}
146 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
147 | | ${binary_min}= | Set Variable | ${min_rate}
148 | | ${binary_max}= | Set Variable | ${max_rate}
149 | | ${threshold}= | Set Variable | ${min_rate}
150 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
151 | | And Add PCI devices to DUTs from 3-node single link topology
152 | | And Add No Multi Seg to all DUTs
153 | | And Add SNAT to all DUTs
154 | | And Apply startup configuration on all VPP DUTs
155 | | When SNAT is initialized in a 3-node circular topology
156 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
157 | | ... | ${binary_max} | 3-node-IPv4-SNAT-1000u-15p | ${min_rate} | ${max_rate}
158 | | ... | ${threshold}
159
160 | tc04-1518B-1t1c-ethip4udp-ip4scale1000-udpsrcscale15-snat-pdrdisc
161 | | [Documentation]
162 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
163 | | ... | 1 receive queue per NIC port. SNAT is configured between DUTs -\
164 | | ... | 1000 users and 15 ports (sessions) per user.
165 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
166 | | ... | linerate, step 100kpps.
167 | | ...
168 | | [Teardown] | Performance test teardown | ${min_rate}pps | ${framesize}
169 | | ... | 3-node-IPv4-SNAT-1000u-15p
170 | | ...
171 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
172 | | ...
173 | | ${framesize}= | Set Variable | ${1518}
174 | | ${min_rate}= | Set Variable | ${100000}
175 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
176 | | ${binary_min}= | Set Variable | ${min_rate}
177 | | ${binary_max}= | Set Variable | ${max_rate}
178 | | ${threshold}= | Set Variable | ${min_rate}
179 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
180 | | And Add PCI devices to DUTs from 3-node single link topology
181 | | And Add No Multi Seg to all DUTs
182 | | And Add SNAT to all DUTs
183 | | And Apply startup configuration on all VPP DUTs
184 | | When SNAT is initialized in a 3-node circular topology
185 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
186 | | ... | ${binary_max} | 3-node-IPv4-SNAT-1000u-15p | ${min_rate} | ${max_rate}
187 | | ... | ${threshold} | ${perf_pdr_loss_acceptance}
188 | | ... | ${perf_pdr_loss_acceptance_type}
189
190 | tc05-IMIX-1t1c-ethip4udp-ip4scale1000-udpsrcscale15-snat-ndrdisc
191 | | [Documentation]
192 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
193 | | ... | 1 receive queue per NIC port. SNAT is configured between DUTs -\
194 | | ... | 1000 users and 15 ports (sessions) per user.
195 | | ... | [Ver] Find NDR for IMIX frames using binary search start at 10GE\
196 | | ... | linerate, step 100kpps.
197 | | ...
198 | | [Teardown] | Run keywords | Performance test teardown | ${min_rate}pps
199 | | ... | ${framesize} | 3-node-IPv4-SNAT-1000u-15p
200 | | ... | AND | Show SNAT verbose | ${dut1}
201 | | ... | AND | Show SNAT verbose | ${dut2}
202 | | ...
203 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
204 | | ...
205 | | ${framesize}= | Set Variable | IMIX_v4_1
206 | | ${min_rate}= | Set Variable | ${100000}
207 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
208 | | ${binary_min}= | Set Variable | ${min_rate}
209 | | ${binary_max}= | Set Variable | ${max_rate}
210 | | ${threshold}= | Set Variable | ${min_rate}
211 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
212 | | And Add PCI devices to DUTs from 3-node single link topology
213 | | And Add No Multi Seg to all DUTs
214 | | And Add SNAT to all DUTs
215 | | And Apply startup configuration on all VPP DUTs
216 | | When SNAT is initialized in a 3-node circular topology
217 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
218 | | ... | ${binary_max} | 3-node-IPv4-SNAT-1000u-15p | ${min_rate} | ${max_rate}
219 | | ... | ${threshold}
220
221 | tc06-IMIX-1t1c-ethip4udp-ip4scale1000-udpsrcscale15-snat-pdrdisc
222 | | [Documentation]
223 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
224 | | ... | 1 receive queue per NIC port. SNAT is configured between DUTs -\
225 | | ... | 1000 users and 15 ports (sessions) per user.
226 | | ... | [Ver] Find PDR for IMIX frames using binary search start at 10GE\
227 | | ... | linerate, step 100kpps.
228 | | ...
229 | | [Teardown] | Performance test teardown | ${min_rate}pps | ${framesize}
230 | | ... | 3-node-IPv4-SNAT-1000u-15p
231 | | ...
232 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
233 | | ...
234 | | ${framesize}= | Set Variable | IMIX_v4_1
235 | | ${min_rate}= | Set Variable | ${100000}
236 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
237 | | ${binary_min}= | Set Variable | ${min_rate}
238 | | ${binary_max}= | Set Variable | ${max_rate}
239 | | ${threshold}= | Set Variable | ${min_rate}
240 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
241 | | And Add PCI devices to DUTs from 3-node single link topology
242 | | And Add No Multi Seg to all DUTs
243 | | And Add SNAT to all DUTs
244 | | And Apply startup configuration on all VPP DUTs
245 | | When SNAT is initialized in a 3-node circular topology
246 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
247 | | ... | ${binary_max} | 3-node-IPv4-SNAT-1000u-15p | ${min_rate} | ${max_rate}
248 | | ... | ${threshold} | ${perf_pdr_loss_acceptance}
249 | | ... | ${perf_pdr_loss_acceptance_type}