41196e28e3f21e5380820ea82bdc84b97d8a1684
[csit.git] / tests / vpp / perf / l2 / 40ge2p1xl710-eth-l2xcbase-mrr.robot
1 # Copyright (c) 2018 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.InterfaceUtil
17 | Library | resources.libraries.python.NodePath
18 | ...
19 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | MRR
20 | ... | NIC_Intel-XL710 | ETH | L2XCFWD | BASE
21 | ...
22 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
23 | ... | L2 | Intel-XL710
24 | Suite Teardown | Tear down 3-node performance topology
25 | ...
26 | Test Setup | Set up performance test
27 | ...
28 | Test Teardown | Tear down performance mrr test
29 | ...
30 | Documentation | *Raw results 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:* In MaxReceivedRate tests TG sends traffic\
38 | ... | at line rate and reports total received/sent packets over trial period.
39 | ... | Test packets are generated by TG on
40 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
41 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
42 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
43 | ... | payload. MAC addresses are matching MAC addresses of the TG node
44 | ... | interfaces.
45 | ... | *[Ref] Applicable standard specifications:* RFC2544.
46
47 *** Variables ***
48 # XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
49 | ${s_24.5G} | ${24500000000}
50 # XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
51 | ${s_18.75Mpps} | ${18750000}
52 # Traffic profile:
53 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
54
55 *** Keywords ***
56 | Check RR for l2xcbase
57 | | [Documentation]
58 | | ... | [Cfg] DUT runs L2XC config with ${wt} thread(s),\
59 | | ... | ${wt} phy core(s), ${rxq} receive queue(s) per NIC port.
60 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
61 | | ... | trial throughput test.
62 | | ...
63 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
64 | | ...
65 | | # Test Variables required for test teardown
66 | | Set Test Variable | ${framesize}
67 | | ${get_framesize}= | Get Frame Size | ${framesize}
68 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${get_framesize}
69 | | ${max_rate}= | Set Variable If
70 | | ... | ${max_rate} > ${s_18.75Mpps} | ${s_18.75Mpps} | ${max_rate}
71 | | ...
72 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
73 | | And Add PCI devices to all DUTs
74 | | And Run Keyword If | ${get_framesize} < ${1522}
75 | | ... | Add no multi seg to all DUTs
76 | | And Add DPDK dev default RXD to all DUTs | 2048
77 | | And Add DPDK dev default TXD to all DUTs | 2048
78 | | And Apply startup configuration on all VPP DUTs
79 | | When Initialize L2 xconnect in 3-node circular topology
80 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
81 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
82
83
84 *** Test Cases ***
85 | tc01-64B-1t1c-eth-l2xcbase-mrr
86 | | [Documentation]
87 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core, \
88 | | ... | 1 receive queue per NIC port.
89 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
90 | | ... | throughput test.
91 | | ...
92 | | [Tags] | 64B | 1C
93 | | ...
94 | | [Template] | Check RR for l2xcbase
95 | | framesize=${64} | wt=1 | rxq=1
96
97 | tc02-1518B-1t1c-eth-l2xcbase-mrr
98 | | [Documentation]
99 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core, \
100 | | ... | 1 receive queue per NIC port.
101 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
102 | | ... | throughput test.
103 | | ...
104 | | [Tags] | 1518B | 1C
105 | | ...
106 | | [Template] | Check RR for l2xcbase
107 | | framesize=${1518} | wt=1 | rxq=1
108
109 | tc03-9000B-1t1c-eth-l2xcbase-mrr
110 | | [Documentation]
111 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core, \
112 | | ... | 1 receive queue per NIC port.
113 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
114 | | ... | throughput test.
115 | | ...
116 | | [Tags] | 9000B | 1C
117 | | ...
118 | | [Template] | Check RR for l2xcbase
119 | | framesize=${9000} | wt=1 | rxq=1
120
121 | tc04-IMIX-1t1c-eth-l2xcbase-mrr
122 | | [Documentation]
123 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core, \
124 | | ... | 1 receive queue per NIC port.
125 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
126 | | ... | throughput test.
127 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
128 | | ...
129 | | [Tags] | IMIX | 1C
130 | | ...
131 | | [Template] | Check RR for l2xcbase
132 | | framesize=IMIX_v4_1 | wt=1 | rxq=1
133
134 | tc05-64B-2t2c-eth-l2xcbase-mrr
135 | | [Documentation]
136 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy cores, \
137 | | ... | 1 receive queue per NIC port.
138 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
139 | | ... | throughput test.
140 | | ...
141 | | [Tags] | 64B | 2C
142 | | ...
143 | | [Template] | Check RR for l2xcbase
144 | | framesize=${64} | wt=2 | rxq=1
145
146 | tc06-1518B-2t2c-eth-l2xcbase-mrr
147 | | [Documentation]
148 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy cores, \
149 | | ... | 1 receive queue per NIC port.
150 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
151 | | ... | throughput test.
152 | | ...
153 | | [Tags] | 1518B | 2C
154 | | ...
155 | | [Template] | Check RR for l2xcbase
156 | | framesize=${1518} | wt=2 | rxq=1
157
158 | tc07-9000B-2t2c-eth-l2xcbase-mrr
159 | | [Documentation]
160 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy cores, \
161 | | ... | 1 receive queue per NIC port.
162 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
163 | | ... | throughput test.
164 | | ...
165 | | [Tags] | 9000B | 2C
166 | | ...
167 | | [Template] | Check RR for l2xcbase
168 | | framesize=${9000} | wt=2 | rxq=1
169
170 | tc08-IMIX-2t2c-eth-l2xcbase-mrr
171 | | [Documentation]
172 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy core, \
173 | | ... | 1 receive queue per NIC port..
174 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
175 | | ... | throughput test.
176 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
177 | | ...
178 | | [Tags] | IMIX | 2C
179 | | ...
180 | | [Template] | Check RR for l2xcbase
181 | | framesize=IMIX_v4_1 | wt=2 | rxq=1
182
183 | tc09-64B-4t4c-eth-l2xcbase-mrr
184 | | [Documentation]
185 | | ... | [Cfg] DUT runs L2XC switching config with 4 phy cores, \
186 | | ... | 2 receive queues per NIC port.
187 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
188 | | ... | throughput test.
189 | | ...
190 | | [Tags] | 64B | 4C
191 | | ...
192 | | [Template] | Check RR for l2xcbase
193 | | framesize=${64} | wt=4 | rxq=2
194
195 | tc10-1518B-4t4c-eth-l2xcbase-mrr
196 | | [Documentation]
197 | | ... | [Cfg] DUT runs L2XC switching config with 4 phy cores, \
198 | | ... | 2 receive queues per NIC port.
199 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
200 | | ... | throughput test.
201 | | ...
202 | | [Tags] | 1518B | 4C
203 | | ...
204 | | [Template] | Check RR for l2xcbase
205 | | framesize=${1518} | wt=4 | rxq=2
206
207 | tc11-9000B-4t4c-eth-l2xcbase-mrr
208 | | [Documentation]
209 | | ... | [Cfg] DUT runs L2XC switching config with 4 phy cores, \
210 | | ... | 2 receive queues per NIC port.
211 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
212 | | ... | throughput test.
213 | | ...
214 | | [Tags] | 9000B | 4C
215 | | ...
216 | | [Template] | Check RR for l2xcbase
217 | | framesize=${9000} | wt=4 | rxq=2
218
219 | tc12-IMIX-4t4c-eth-l2xcbase-mrr
220 | | [Documentation]
221 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core, \
222 | | ... | 2 receive queue per NIC port..
223 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
224 | | ... | throughput test.
225 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
226 | | ...
227 | | [Tags] | IMIX | 4C
228 | | ...
229 | | [Template] | Check RR for l2xcbase
230 | | framesize=IMIX_v4_1 | wt=4 | rxq=2