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