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