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