0caf123dd36d6b3ad909c9d59cfb0a32c66c8a9f
[csit.git] / tests / perf / 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.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 100kpps.
72 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
73 | | ${framesize}= | Set Variable | ${64}
74 | | ${min_rate}= | Set Variable | ${100000}
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 DUTs in 3-node single link topology
81 | | And Add no multi seg to all DUTs
82 | | And Apply startup configuration on all VPP DUTs
83 | | And Initialize IPv4 forwarding in 3-node circular topology
84 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
85 | | ... | ${binary_max} | ${traffic_profile}
86 | | ... | ${min_rate} | ${max_rate} | ${threshold}
87
88 | tc03-1518B-1t1c-ethip4-ip4base-ndrdisc
89 | | [Documentation]
90 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
91 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
92 | | ... | using binary search start at 24.5G rate, step 10kpps.
93 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
94 | | ${framesize}= | Set Variable | ${1518}
95 | | ${min_rate}= | Set Variable | ${10000}
96 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
97 | | ${binary_min}= | Set Variable | ${min_rate}
98 | | ${binary_max}= | Set Variable | ${max_rate}
99 | | ${threshold}= | Set Variable | ${min_rate}
100 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
101 | | And Add PCI devices to DUTs in 3-node single link topology
102 | | And Add no multi seg to all DUTs
103 | | And Apply startup configuration on all VPP DUTs
104 | | And Initialize IPv4 forwarding in 3-node circular topology
105 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
106 | | ... | ${binary_max} | ${traffic_profile}
107 | | ... | ${min_rate} | ${max_rate} | ${threshold}
108
109 | tc07-64B-2t2c-ethip4-ip4base-ndrdisc
110 | | [Documentation]
111 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
112 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
113 | | ... | using binary search start at 18.75Mpps rate, step 100kpps.
114 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
115 | | ${framesize}= | Set Variable | ${64}
116 | | ${min_rate}= | Set Variable | ${100000}
117 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
118 | | ${binary_min}= | Set Variable | ${min_rate}
119 | | ${binary_max}= | Set Variable | ${max_rate}
120 | | ${threshold}= | Set Variable | ${min_rate}
121 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
122 | | And Add PCI devices to DUTs in 3-node single link topology
123 | | And Add no multi seg to all DUTs
124 | | And Apply startup configuration on all VPP DUTs
125 | | And Initialize IPv4 forwarding in 3-node circular topology
126 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
127 | | ... | ${binary_max} | ${traffic_profile}
128 | | ... | ${min_rate} | ${max_rate} | ${threshold}
129
130 | tc09-1518B-2t2c-ethip4-ip4base-ndrdisc
131 | | [Documentation]
132 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
133 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
134 | | ... | using binary search start at 24.5G rate, step 10kpps.
135 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
136 | | ${framesize}= | Set Variable | ${1518}
137 | | ${min_rate}= | Set Variable | ${10000}
138 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
139 | | ${binary_min}= | Set Variable | ${min_rate}
140 | | ${binary_max}= | Set Variable | ${max_rate}
141 | | ${threshold}= | Set Variable | ${min_rate}
142 | | Given Add '2' 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 Apply startup configuration on all VPP DUTs
146 | | And Initialize IPv4 forwarding in 3-node circular topology
147 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
148 | | ... | ${binary_max} | ${traffic_profile}
149 | | ... | ${min_rate} | ${max_rate} | ${threshold}
150
151 | tc13-64B-4t4c-ethip4-ip4base-ndrdisc
152 | | [Documentation]
153 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
154 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames
155 | | ... | using binary search start at 18.75Mpps rate, step 100kpps.
156 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
157 | | ${framesize}= | Set Variable | ${64}
158 | | ${min_rate}= | Set Variable | ${100000}
159 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
160 | | ${binary_min}= | Set Variable | ${min_rate}
161 | | ${binary_max}= | Set Variable | ${max_rate}
162 | | ${threshold}= | Set Variable | ${min_rate}
163 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
164 | | And Add PCI devices to DUTs in 3-node single link topology
165 | | And Add no multi seg to all DUTs
166 | | And Apply startup configuration on all VPP DUTs
167 | | And Initialize IPv4 forwarding in 3-node circular topology
168 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
169 | | ... | ${binary_max} | ${traffic_profile}
170 | | ... | ${min_rate} | ${max_rate} | ${threshold}
171
172 | tc15-1518B-4t4c-ethip4-ip4base-ndrdisc
173 | | [Documentation]
174 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
175 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames
176 | | ... | using binary search start at 24.5G rate, step 10kpps.
177 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
178 | | ${framesize}= | Set Variable | ${1518}
179 | | ${min_rate}= | Set Variable | ${10000}
180 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
181 | | ${binary_min}= | Set Variable | ${min_rate}
182 | | ${binary_max}= | Set Variable | ${max_rate}
183 | | ${threshold}= | Set Variable | ${min_rate}
184 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
185 | | And Add PCI devices to DUTs in 3-node single link topology
186 | | And Add no multi seg to all DUTs
187 | | And Apply startup configuration on all VPP DUTs
188 | | And Initialize IPv4 forwarding in 3-node circular topology
189 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
190 | | ... | ${binary_max} | ${traffic_profile}
191 | | ... | ${min_rate} | ${max_rate} | ${threshold}
192
193 | tc19-IMIX-1t1c-ethip4-ip4base-ndrdisc
194 | | [Documentation]
195 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
196 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
197 | | ... | using binary search start at 24.5G rate, step 100kpps.
198 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
199 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
200 | | ${framesize}= | Set Variable | IMIX_v4_1
201 | | ${min_rate}= | Set Variable | ${100000}
202 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
203 | | ${binary_min}= | Set Variable | ${min_rate}
204 | | ${binary_max}= | Set Variable | ${max_rate}
205 | | ${threshold}= | Set Variable | ${min_rate}
206 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
207 | | And Add all PCI devices to all DUTs
208 | | And Add no multi seg to all DUTs
209 | | And Apply startup configuration on all VPP DUTs
210 | | And Initialize IPv4 forwarding in 3-node circular topology
211 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
212 | | ... | ${binary_max} | ${traffic_profile}
213 | | ... | ${min_rate} | ${max_rate} | ${threshold}
214
215 | tc20-IMIX-2t2c-ethip4-ip4base-ndrdisc
216 | | [Documentation]
217 | | ... | [Cfg] DUT runs IPv4 routing config with 2 thread, 2 phy core, \
218 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
219 | | ... | using binary search start at 24.5G rate, step 100kpps.
220 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
221 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
222 | | ${framesize}= | Set Variable | IMIX_v4_1
223 | | ${min_rate}= | Set Variable | ${100000}
224 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
225 | | ${binary_min}= | Set Variable | ${min_rate}
226 | | ${binary_max}= | Set Variable | ${max_rate}
227 | | ${threshold}= | Set Variable | ${min_rate}
228 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
229 | | And Add all PCI devices to all DUTs
230 | | And Add no multi seg to all DUTs
231 | | And Apply startup configuration on all VPP DUTs
232 | | And Initialize IPv4 forwarding in 3-node circular topology
233 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
234 | | ... | ${binary_max} | ${traffic_profile}
235 | | ... | ${min_rate} | ${max_rate} | ${threshold}
236
237 | tc21-IMIX-4t4c-ethip4-ip4base-ndrdisc
238 | | [Documentation]
239 | | ... | [Cfg] DUT runs IPv4 routing config with 4 thread, 4 phy core, \
240 | | ... | 2 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
241 | | ... | using binary search start at 24.5G rate, step 100kpps.
242 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
243 | | [Tags] | IMIX | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
244 | | ${framesize}= | Set Variable | IMIX_v4_1
245 | | ${min_rate}= | Set Variable | ${100000}
246 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
247 | | ${binary_min}= | Set Variable | ${min_rate}
248 | | ${binary_max}= | Set Variable | ${max_rate}
249 | | ${threshold}= | Set Variable | ${min_rate}
250 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
251 | | And Add all PCI devices to all DUTs
252 | | And Add no multi seg to all DUTs
253 | | And Apply startup configuration on all VPP DUTs
254 | | And Initialize IPv4 forwarding in 3-node circular topology
255 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
256 | | ... | ${binary_max} | ${traffic_profile}
257 | | ... | ${min_rate} | ${max_rate} | ${threshold}