CSIT-1142 2-node topology - keywords
[csit.git] / tests / vpp / perf / ip4 / 40ge2p1xl710-ethip4-ip4base-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/performance_setup.robot
16 | Library | resources.libraries.python.topology.Topology
17 | Library | resources.libraries.python.NodePath
18 | Library | resources.libraries.python.InterfaceUtil
19 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT1']}
20 | ... | WITH NAME | dut1_v4
21 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT2']}
22 | ... | WITH NAME | dut2_v4
23 | ...
24 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
25 | ... | NIC_Intel-XL710 | ETH | IP4FWD | BASE
26 | ...
27 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
28 | ... | L3 | Intel-XL710
29 | Suite Teardown | Tear down 3-node performance topology
30 | ...
31 | Test Setup | Set up performance test
32 | ...
33 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
34 | ... | ${framesize} | ${traffic_profile}
35 | ...
36 | Documentation | *RFC2544: Pkt throughput IPv4 routing test cases*
37 | ...
38 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
39 | ... | with single links between nodes.
40 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for IPv4 routing.
41 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
42 | ... | routing and two static IPv4 /24 route entries. DUT1 and DUT2 tested with
43 | ... | 2p40GE NIC XL710 by Intel.
44 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
45 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
46 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
47 | ... | of packets transmitted. NDR and PDR are discovered for different
48 | ... | Ethernet L2 frame sizes using either binary search or linear search
49 | ... | algorithms with configured starting rate and final step that determines
50 | ... | throughput measurement resolution. Test packets are generated by TG on
51 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
52 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
53 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
54 | ... | payload. MAC addresses are matching MAC addresses of the TG node
55 | ... | interfaces.
56 | ... | *[Ref] Applicable standard specifications:* RFC2544.
57
58 *** Variables ***
59 # XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
60 | ${s_24.5G} | ${24500000000}
61 # XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
62 | ${s_18.75Mpps} | ${18750000}
63 # Traffic profile:
64 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src253
65
66 *** Test Cases ***
67 | tc01-64B-1t1c-ethip4-ip4base-ndrdisc
68 | | [Documentation]
69 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
70 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
71 | | ... | using binary search start at 18.75Mpps rate, step 50kpps.
72 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
73 | | ${framesize}= | Set Variable | ${64}
74 | | ${min_rate}= | Set Variable | ${50000}
75 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
76 | | ${binary_min}= | Set Variable | ${min_rate}
77 | | ${binary_max}= | Set Variable | ${max_rate}
78 | | ${threshold}= | Set Variable | ${min_rate}
79 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
80 | | And Add PCI devices to all DUTs
81 | | And Add no multi seg to all DUTs
82 | | And Add DPDK dev default RXD to all DUTs | 2048
83 | | And Add DPDK dev default TXD to all DUTs | 2048
84 | | And Apply startup configuration on all VPP DUTs
85 | | And Initialize IPv4 forwarding in 3-node circular topology
86 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
87 | | ... | ${binary_max} | ${traffic_profile}
88 | | ... | ${min_rate} | ${max_rate} | ${threshold}
89
90 | tc03-1518B-1t1c-ethip4-ip4base-ndrdisc
91 | | [Documentation]
92 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
93 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
94 | | ... | using binary search start at 24.5G rate, step 10kpps.
95 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
96 | | ${framesize}= | Set Variable | ${1518}
97 | | ${min_rate}= | Set Variable | ${10000}
98 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
99 | | ${binary_min}= | Set Variable | ${min_rate}
100 | | ${binary_max}= | Set Variable | ${max_rate}
101 | | ${threshold}= | Set Variable | ${min_rate}
102 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
103 | | And Add PCI devices to all DUTs
104 | | And Add no multi seg to all DUTs
105 | | And Add DPDK dev default RXD to all DUTs | 2048
106 | | And Add DPDK dev default TXD to all DUTs | 2048
107 | | And Apply startup configuration on all VPP DUTs
108 | | And Initialize IPv4 forwarding in 3-node circular topology
109 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
110 | | ... | ${binary_max} | ${traffic_profile}
111 | | ... | ${min_rate} | ${max_rate} | ${threshold}
112
113 | tc07-64B-2t2c-ethip4-ip4base-ndrdisc
114 | | [Documentation]
115 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
116 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
117 | | ... | using binary search start at 18.75Mpps rate, step 50kpps.
118 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
119 | | ${framesize}= | Set Variable | ${64}
120 | | ${min_rate}= | Set Variable | ${50000}
121 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
122 | | ${binary_min}= | Set Variable | ${min_rate}
123 | | ${binary_max}= | Set Variable | ${max_rate}
124 | | ${threshold}= | Set Variable | ${min_rate}
125 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
126 | | And Add PCI devices to all DUTs
127 | | And Add no multi seg to all DUTs
128 | | And Add DPDK dev default RXD to all DUTs | 2048
129 | | And Add DPDK dev default TXD to all DUTs | 2048
130 | | And Apply startup configuration on all VPP DUTs
131 | | And Initialize IPv4 forwarding in 3-node circular topology
132 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
133 | | ... | ${binary_max} | ${traffic_profile}
134 | | ... | ${min_rate} | ${max_rate} | ${threshold}
135
136 | tc09-1518B-2t2c-ethip4-ip4base-ndrdisc
137 | | [Documentation]
138 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
139 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
140 | | ... | using binary search start at 24.5G rate, step 10kpps.
141 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
142 | | ${framesize}= | Set Variable | ${1518}
143 | | ${min_rate}= | Set Variable | ${10000}
144 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
145 | | ${binary_min}= | Set Variable | ${min_rate}
146 | | ${binary_max}= | Set Variable | ${max_rate}
147 | | ${threshold}= | Set Variable | ${min_rate}
148 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
149 | | And Add PCI devices to all DUTs
150 | | And Add no multi seg to all DUTs
151 | | And Add DPDK dev default RXD to all DUTs | 2048
152 | | And Add DPDK dev default TXD to all DUTs | 2048
153 | | And Apply startup configuration on all VPP DUTs
154 | | And Initialize IPv4 forwarding 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 | tc13-64B-4t4c-ethip4-ip4base-ndrdisc
160 | | [Documentation]
161 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
162 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames
163 | | ... | using binary search start at 18.75Mpps rate, step 50kpps.
164 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
165 | | ${framesize}= | Set Variable | ${64}
166 | | ${min_rate}= | Set Variable | ${50000}
167 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
168 | | ${binary_min}= | Set Variable | ${min_rate}
169 | | ${binary_max}= | Set Variable | ${max_rate}
170 | | ${threshold}= | Set Variable | ${min_rate}
171 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
172 | | And Add PCI devices to all DUTs
173 | | And Add no multi seg to all DUTs
174 | | And Add DPDK dev default RXD to all DUTs | 2048
175 | | And Add DPDK dev default TXD to all DUTs | 2048
176 | | And Apply startup configuration on all VPP DUTs
177 | | And Initialize IPv4 forwarding in 3-node circular topology
178 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
179 | | ... | ${binary_max} | ${traffic_profile}
180 | | ... | ${min_rate} | ${max_rate} | ${threshold}
181
182 | tc15-1518B-4t4c-ethip4-ip4base-ndrdisc
183 | | [Documentation]
184 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
185 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames
186 | | ... | using binary search start at 24.5G rate, step 10kpps.
187 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
188 | | ${framesize}= | Set Variable | ${1518}
189 | | ${min_rate}= | Set Variable | ${10000}
190 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
191 | | ${binary_min}= | Set Variable | ${min_rate}
192 | | ${binary_max}= | Set Variable | ${max_rate}
193 | | ${threshold}= | Set Variable | ${min_rate}
194 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
195 | | And Add PCI devices to all DUTs
196 | | And Add no multi seg to all DUTs
197 | | And Add DPDK dev default RXD to all DUTs | 2048
198 | | And Add DPDK dev default TXD to all DUTs | 2048
199 | | And Apply startup configuration on all VPP DUTs
200 | | And Initialize IPv4 forwarding 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 | tc19-IMIX-1t1c-ethip4-ip4base-ndrdisc
206 | | [Documentation]
207 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
208 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
209 | | ... | using binary search start at 24.5G rate, step 50kpps.
210 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
211 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
212 | | ${framesize}= | Set Variable | IMIX_v4_1
213 | | ${min_rate}= | Set Variable | ${50000}
214 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
215 | | ${binary_min}= | Set Variable | ${min_rate}
216 | | ${binary_max}= | Set Variable | ${max_rate}
217 | | ${threshold}= | Set Variable | ${min_rate}
218 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
219 | | And Add PCI devices to all DUTs
220 | | And Add no multi seg to all DUTs
221 | | And Add DPDK dev default RXD to all DUTs | 2048
222 | | And Add DPDK dev default TXD to all DUTs | 2048
223 | | And Apply startup configuration on all VPP DUTs
224 | | And Initialize IPv4 forwarding in 3-node circular topology
225 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
226 | | ... | ${binary_max} | ${traffic_profile}
227 | | ... | ${min_rate} | ${max_rate} | ${threshold}
228
229 | tc20-IMIX-2t2c-ethip4-ip4base-ndrdisc
230 | | [Documentation]
231 | | ... | [Cfg] DUT runs IPv4 routing config with 2 thread, 2 phy core, \
232 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
233 | | ... | using binary search start at 24.5G rate, step 50kpps.
234 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
235 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
236 | | ${framesize}= | Set Variable | IMIX_v4_1
237 | | ${min_rate}= | Set Variable | ${50000}
238 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
239 | | ${binary_min}= | Set Variable | ${min_rate}
240 | | ${binary_max}= | Set Variable | ${max_rate}
241 | | ${threshold}= | Set Variable | ${min_rate}
242 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
243 | | And Add PCI devices to all DUTs
244 | | And Add no multi seg to all DUTs
245 | | And Add DPDK dev default RXD to all DUTs | 2048
246 | | And Add DPDK dev default TXD to all DUTs | 2048
247 | | And Apply startup configuration on all VPP DUTs
248 | | And Initialize IPv4 forwarding in 3-node circular topology
249 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
250 | | ... | ${binary_max} | ${traffic_profile}
251 | | ... | ${min_rate} | ${max_rate} | ${threshold}
252
253 | tc21-IMIX-4t4c-ethip4-ip4base-ndrdisc
254 | | [Documentation]
255 | | ... | [Cfg] DUT runs IPv4 routing config with 4 thread, 4 phy core, \
256 | | ... | 2 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
257 | | ... | using binary search start at 24.5G rate, step 50kpps.
258 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
259 | | [Tags] | IMIX | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
260 | | ${framesize}= | Set Variable | IMIX_v4_1
261 | | ${min_rate}= | Set Variable | ${50000}
262 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
263 | | ${binary_min}= | Set Variable | ${min_rate}
264 | | ${binary_max}= | Set Variable | ${max_rate}
265 | | ${threshold}= | Set Variable | ${min_rate}
266 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
267 | | And Add PCI devices to all DUTs
268 | | And Add no multi seg to all DUTs
269 | | And Add DPDK dev default RXD to all DUTs | 2048
270 | | And Add DPDK dev default TXD to all DUTs | 2048
271 | | And Apply startup configuration on all VPP DUTs
272 | | And Initialize IPv4 forwarding in 3-node circular topology
273 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
274 | | ... | ${binary_max} | ${traffic_profile}
275 | | ... | ${min_rate} | ${max_rate} | ${threshold}