CSIT-524: Traffic generator using python profiles
[csit.git] / tests / perf / 10ge2p1x520-ethip4udp-ip4scale10-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_10
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 # Traffic profile:
67 | ${traffic_profile} | trex-sl-3n-ethip4udp-10u15p
68
69 *** Test Cases ***
70 | tc01-64B-1t1c-ethip4udp-ip4scale10-udpsrcscale15-snat-ndrdisc
71 | | [Documentation]
72 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
73 | | ... | 1 receive queue per NIC port. SNAT is configured between DUTs -\
74 | | ... | 10 users and 15 ports (sessions) per user.
75 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
76 | | ... | linerate, step 100kpps.
77 | | ...
78 | | [Teardown] | Run keywords | Performance test teardown | ${min_rate}pps
79 | | ... | ${framesize} | ${traffic_profile}
80 | | ... | AND | Show SNAT verbose | ${dut1}
81 | | ... | AND | Show SNAT verbose | ${dut2}
82 | | ...
83 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
84 | | ...
85 | | ${framesize}= | Set Variable | ${64}
86 | | ${min_rate}= | Set Variable | ${100000}
87 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
88 | | ${binary_min}= | Set Variable | ${min_rate}
89 | | ${binary_max}= | Set Variable | ${max_rate}
90 | | ${threshold}= | Set Variable | ${min_rate}
91 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
92 | | And Add PCI devices to DUTs from 3-node single link topology
93 | | And Add No Multi Seg to all DUTs
94 | | And Add SNAT to all DUTs
95 | | And Apply startup configuration on all VPP DUTs
96 | | When SNAT is initialized in a 3-node circular topology
97 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
98 | | ... | ${binary_max} | ${traffic_profile}
99 | | ... | ${min_rate} | ${max_rate} | ${threshold}
100
101 | tc02-64B-1t1c-ethip4udp-ip4scale10-udpsrcscale15-snat-pdrdisc
102 | | [Documentation]
103 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
104 | | ... | 1 receive queue per NIC port. SNAT is configured between DUTs -\
105 | | ... | 10 users and 15 ports (sessions) per user.
106 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
107 | | ... | linerate, step 100kpps.
108 | | ...
109 | | [Teardown] | Performance test teardown | ${min_rate}pps | ${framesize}
110 | | ... | ${traffic_profile}
111 | | ...
112 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
113 | | ...
114 | | ${framesize}= | Set Variable | ${64}
115 | | ${min_rate}= | Set Variable | ${100000}
116 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
117 | | ${binary_min}= | Set Variable | ${min_rate}
118 | | ${binary_max}= | Set Variable | ${max_rate}
119 | | ${threshold}= | Set Variable | ${min_rate}
120 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
121 | | And Add PCI devices to DUTs from 3-node single link topology
122 | | And Add No Multi Seg to all DUTs
123 | | And Add SNAT to all DUTs
124 | | And Apply startup configuration on all VPP DUTs
125 | | When SNAT is initialized in a 3-node circular topology
126 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
127 | | ... | ${binary_max} | ${traffic_profile}
128 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
129 | | ... | ${perf_pdr_loss_acceptance_type}
130
131 | tc03-1518B-1t1c-ethip4udp-ip4scale10-udpsrcscale15-snat-ndrdisc
132 | | [Documentation]
133 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
134 | | ... | 1 receive queue per NIC port. SNAT is configured between DUTs -\
135 | | ... | 10 users and 15 ports (sessions) per user.
136 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
137 | | ... | linerate, step 100kpps.
138 | | ...
139 | | [Teardown] | Run keywords | Performance test teardown | ${min_rate}pps
140 | | ... | ${framesize} | ${traffic_profile}
141 | | ... | AND | Show SNAT verbose | ${dut1}
142 | | ... | AND | Show SNAT verbose | ${dut2}
143 | | ...
144 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
145 | | ...
146 | | ${framesize}= | Set Variable | ${1518}
147 | | ${min_rate}= | Set Variable | ${100000}
148 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
149 | | ${binary_min}= | Set Variable | ${min_rate}
150 | | ${binary_max}= | Set Variable | ${max_rate}
151 | | ${threshold}= | Set Variable | ${min_rate}
152 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
153 | | And Add PCI devices to DUTs from 3-node single link topology
154 | | And Add No Multi Seg to all DUTs
155 | | And Add SNAT to all DUTs
156 | | And Apply startup configuration on all VPP DUTs
157 | | When SNAT is initialized in a 3-node circular topology
158 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
159 | | ... | ${binary_max} | ${traffic_profile}
160 | | ... | ${min_rate} | ${max_rate} | ${threshold}
161
162 | tc04-1518B-1t1c-ethip4udp-ip4scale10-udpsrcscale15-snat-pdrdisc
163 | | [Documentation]
164 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
165 | | ... | 1 receive queue per NIC port. SNAT is configured between DUTs -\
166 | | ... | 10 users and 15 ports (sessions) per user.
167 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
168 | | ... | linerate, step 100kpps.
169 | | ...
170 | | [Teardown] | Performance test teardown | ${min_rate}pps | ${framesize}
171 | | ... | ${traffic_profile}
172 | | ...
173 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
174 | | ...
175 | | ${framesize}= | Set Variable | ${1518}
176 | | ${min_rate}= | Set Variable | ${100000}
177 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
178 | | ${binary_min}= | Set Variable | ${min_rate}
179 | | ${binary_max}= | Set Variable | ${max_rate}
180 | | ${threshold}= | Set Variable | ${min_rate}
181 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
182 | | And Add PCI devices to DUTs from 3-node single link topology
183 | | And Add No Multi Seg to all DUTs
184 | | And Add SNAT to all DUTs
185 | | And Apply startup configuration on all VPP DUTs
186 | | When SNAT is initialized in a 3-node circular topology
187 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
188 | | ... | ${binary_max} | ${traffic_profile}
189 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
190 | | ... | ${perf_pdr_loss_acceptance_type}
191
192 | tc05-IMIX-1t1c-ethip4udp-ip4scale10-udpsrcscale15-snat-ndrdisc
193 | | [Documentation]
194 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
195 | | ... | 1 receive queue per NIC port. SNAT is configured between DUTs -\
196 | | ... | 10 users and 15 ports (sessions) per user.
197 | | ... | [Ver] Find NDR for IMIX frames using binary search start at 10GE\
198 | | ... | linerate, step 100kpps.
199 | | ...
200 | | [Teardown] | Run keywords | Performance test teardown | ${min_rate}pps
201 | | ... | ${framesize} | ${traffic_profile}
202 | | ... | AND | Show SNAT verbose | ${dut1}
203 | | ... | AND | Show SNAT verbose | ${dut2}
204 | | ...
205 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
206 | | ...
207 | | ${framesize}= | Set Variable | IMIX_v4_1
208 | | ${min_rate}= | Set Variable | ${100000}
209 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
210 | | ${binary_min}= | Set Variable | ${min_rate}
211 | | ${binary_max}= | Set Variable | ${max_rate}
212 | | ${threshold}= | Set Variable | ${min_rate}
213 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
214 | | And Add PCI devices to DUTs from 3-node single link topology
215 | | And Add No Multi Seg to all DUTs
216 | | And Add SNAT to all DUTs
217 | | And Apply startup configuration on all VPP DUTs
218 | | When SNAT is initialized in a 3-node circular topology
219 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
220 | | ... | ${binary_max} | ${traffic_profile}
221 | | ... | ${min_rate} | ${max_rate} | ${threshold}
222
223 | tc06-IMIX-1t1c-ethip4udp-ip4scale10-udpsrcscale15-snat-pdrdisc
224 | | [Documentation]
225 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
226 | | ... | 1 receive queue per NIC port. SNAT is configured between DUTs -\
227 | | ... | 10 users and 15 ports (sessions) per user.
228 | | ... | [Ver] Find PDR for IMIX frames using binary search start at 10GE\
229 | | ... | linerate, step 100kpps.
230 | | ...
231 | | [Teardown] | Performance test teardown | ${min_rate}pps | ${framesize}
232 | | ... | ${traffic_profile}
233 | | ...
234 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
235 | | ...
236 | | ${framesize}= | Set Variable | IMIX_v4_1
237 | | ${min_rate}= | Set Variable | ${100000}
238 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
239 | | ${binary_min}= | Set Variable | ${min_rate}
240 | | ${binary_max}= | Set Variable | ${max_rate}
241 | | ${threshold}= | Set Variable | ${min_rate}
242 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
243 | | And Add PCI devices to DUTs from 3-node single link topology
244 | | And Add No Multi Seg to all DUTs
245 | | And Add SNAT to all DUTs
246 | | And Apply startup configuration on all VPP DUTs
247 | | When SNAT is initialized in a 3-node circular topology
248 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
249 | | ... | ${binary_max} | ${traffic_profile}
250 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
251 | | ... | ${perf_pdr_loss_acceptance_type}