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