CSIT-664: Refactor setups and teardowns
[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 | 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 SNAT
30 | ... | ${min_rate}pps | ${framesize} | ${traffic_profile}
31 | ...
32 | Documentation | *SNAT performance test cases*
33 | ...
34 | ... | *High level description*
35 | ...
36 | ... | - NDR and PDR tests
37 | ... | - 3-node topology, TG-DUT1-DUT2-TG, SNAT is enabled between DUTs.
38 | ... | - Cores / threads: 1t1c and 2t2c
39 | ... | - Framesize: 64B, 1518B, IMIX
40 | ... | - Packet: ETH / IP(src, dst) / UDP(src_port, dst_port) / payload
41 | ... | - scale: src: 1 user, 10 users, 100 users, ..., 4000 up to the memory
42 | ... |   limit; 15 ports per user
43 | ...
44 | ... | *Low level description*
45 | ...
46 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
47 | ... | with single links between nodes.
48 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4-UDP for IPv4 routing.
49 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
50 | ... | routing and two static IPv4 /24 and IPv4/20 route entries. DUT1 and DUT2
51 | ... | tested with 2p10GE NIC X520 Niantic by Intel.
52 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
53 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
54 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
55 | ... | of packets transmitted. NDR and PDR are discovered for different
56 | ... | Ethernet L2 frame sizes using either binary search or linear search
57 | ... | algorithms with configured starting rate and final step that determines
58 | ... | throughput measurement resolution. Test packets are generated by TG on
59 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
60 | ... | (flow-group per direction, one flow per flow-group) with all packets
61 | ... | containing Ethernet header, IPv4 header with UDP header and static
62 | ... | payload. MAC addresses are matching MAC addresses of the TG node
63 | ... | interfaces.
64 | ... | *[Ref] Applicable standard specifications:* RFC2544.
65
66 *** Variables ***
67 # X520-DA2 bandwidth limit
68 | ${s_limit} | ${10000000000}
69 # Traffic profile:
70 | ${traffic_profile} | trex-sl-3n-ethip4udp-1000u15p
71
72 *** Test Cases ***
73 | tc01-64B-1t1c-ethip4udp-ip4scale1000-udpsrcscale15-snat-ndrdisc
74 | | [Documentation]
75 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
76 | | ... | 1 receive queue per NIC port. SNAT is configured between DUTs -\
77 | | ... | 1000 users and 15 ports (sessions) per user.
78 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
79 | | ... | linerate, step 100kpps.
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 '1' rxqueues in 3-node single-link circular topology
90 | | And Add PCI devices to DUTs in 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 Initialize SNAT in 3-node circular topology
95 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
96 | | ... | ${binary_max} | ${traffic_profile}
97 | | ... | ${min_rate} | ${max_rate} | ${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 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
108 | | ...
109 | | ${framesize}= | Set Variable | ${64}
110 | | ${min_rate}= | Set Variable | ${100000}
111 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
112 | | ${binary_min}= | Set Variable | ${min_rate}
113 | | ${binary_max}= | Set Variable | ${max_rate}
114 | | ${threshold}= | Set Variable | ${min_rate}
115 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
116 | | And Add PCI devices to DUTs in 3-node single link topology
117 | | And Add no multi seg to all DUTs
118 | | And Add SNAT to all DUTs
119 | | And Apply startup configuration on all VPP DUTs
120 | | When Initialize SNAT in 3-node circular topology
121 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
122 | | ... | ${binary_max} | ${traffic_profile}
123 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
124 | | ... | ${perf_pdr_loss_acceptance_type}
125
126 | tc03-1518B-1t1c-ethip4udp-ip4scale1000-udpsrcscale15-snat-ndrdisc
127 | | [Documentation]
128 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
129 | | ... | 1 receive queue per NIC port. SNAT is configured between DUTs -\
130 | | ... | 1000 users and 15 ports (sessions) per user.
131 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
132 | | ... | linerate, step 100kpps.
133 | | ...
134 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
135 | | ...
136 | | ${framesize}= | Set Variable | ${1518}
137 | | ${min_rate}= | Set Variable | ${100000}
138 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
139 | | ${binary_min}= | Set Variable | ${min_rate}
140 | | ${binary_max}= | Set Variable | ${max_rate}
141 | | ${threshold}= | Set Variable | ${min_rate}
142 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
143 | | And Add PCI devices to DUTs in 3-node single link topology
144 | | And Add no multi seg to all DUTs
145 | | And Add SNAT to all DUTs
146 | | And Apply startup configuration on all VPP DUTs
147 | | When Initialize SNAT in 3-node circular topology
148 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
149 | | ... | ${binary_max} | ${traffic_profile}
150 | | ... | ${min_rate} | ${max_rate} | ${threshold}
151
152 | tc04-1518B-1t1c-ethip4udp-ip4scale1000-udpsrcscale15-snat-pdrdisc
153 | | [Documentation]
154 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
155 | | ... | 1 receive queue per NIC port. SNAT is configured between DUTs -\
156 | | ... | 1000 users and 15 ports (sessions) per user.
157 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
158 | | ... | linerate, step 100kpps.
159 | | ...
160 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
161 | | ...
162 | | ${framesize}= | Set Variable | ${1518}
163 | | ${min_rate}= | Set Variable | ${100000}
164 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
165 | | ${binary_min}= | Set Variable | ${min_rate}
166 | | ${binary_max}= | Set Variable | ${max_rate}
167 | | ${threshold}= | Set Variable | ${min_rate}
168 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
169 | | And Add PCI devices to DUTs in 3-node single link topology
170 | | And Add no multi seg to all DUTs
171 | | And Add SNAT to all DUTs
172 | | And Apply startup configuration on all VPP DUTs
173 | | When Initialize SNAT in 3-node circular topology
174 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
175 | | ... | ${binary_max} | ${traffic_profile}
176 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
177 | | ... | ${perf_pdr_loss_acceptance_type}
178
179 | tc05-IMIX-1t1c-ethip4udp-ip4scale1000-udpsrcscale15-snat-ndrdisc
180 | | [Documentation]
181 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
182 | | ... | 1 receive queue per NIC port. SNAT is configured between DUTs -\
183 | | ... | 1000 users and 15 ports (sessions) per user.
184 | | ... | [Ver] Find NDR for IMIX frames using binary search start at 10GE\
185 | | ... | linerate, step 100kpps.
186 | | ...
187 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
188 | | ...
189 | | ${framesize}= | Set Variable | IMIX_v4_1
190 | | ${min_rate}= | Set Variable | ${100000}
191 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
192 | | ${binary_min}= | Set Variable | ${min_rate}
193 | | ${binary_max}= | Set Variable | ${max_rate}
194 | | ${threshold}= | Set Variable | ${min_rate}
195 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
196 | | And Add PCI devices to DUTs in 3-node single link topology
197 | | And Add no multi seg to all DUTs
198 | | And Add SNAT to all DUTs
199 | | And Apply startup configuration on all VPP DUTs
200 | | When Initialize SNAT in 3-node circular topology
201 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
202 | | ... | ${binary_max} | ${traffic_profile}
203 | | ... | ${min_rate} | ${max_rate} | ${threshold}
204
205 | tc06-IMIX-1t1c-ethip4udp-ip4scale1000-udpsrcscale15-snat-pdrdisc
206 | | [Documentation]
207 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
208 | | ... | 1 receive queue per NIC port. SNAT is configured between DUTs -\
209 | | ... | 1000 users and 15 ports (sessions) per user.
210 | | ... | [Ver] Find PDR for IMIX frames using binary search start at 10GE\
211 | | ... | linerate, step 100kpps.
212 | | ...
213 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
214 | | ...
215 | | ${framesize}= | Set Variable | IMIX_v4_1
216 | | ${min_rate}= | Set Variable | ${100000}
217 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
218 | | ${binary_min}= | Set Variable | ${min_rate}
219 | | ${binary_max}= | Set Variable | ${max_rate}
220 | | ${threshold}= | Set Variable | ${min_rate}
221 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
222 | | And Add PCI devices to DUTs in 3-node single link topology
223 | | And Add no multi seg to all DUTs
224 | | And Add SNAT to all DUTs
225 | | And Apply startup configuration on all VPP DUTs
226 | | When Initialize SNAT in 3-node circular topology
227 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
228 | | ... | ${binary_max} | ${traffic_profile}
229 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
230 | | ... | ${perf_pdr_loss_acceptance_type}