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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 | Resource | resources/libraries/robot/performance/performance_setup.robot
16 | Resource | resources/libraries/robot/dpdk/default.robot
17 | Library | resources.libraries.python.topology.Topology
18 | Library | resources.libraries.python.NodePath
19 | Library | resources.libraries.python.InterfaceUtil
20 | Library | resources.libraries.python.DPDK.DPDKTools
22 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | HW_ENV | PERFTEST | MRR | 1NUMA
23 | ... | NIC_Intel-XL710 | DPDK | ETH | L2XCFWD | BASE
25 | Suite Setup | Set up DPDK 3-node performance topology with DUT's NIC model
26 | ... | L2 | Intel-XL710
27 | Suite Teardown | Tear down DPDK 3-node performance topology
29 | Documentation | *Raw results L2 routing test cases*
30 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
31 | ... | with single links between nodes.
32 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 frame forwarding.
33 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 run the DPDK testpmd\
34 | ... | application and use the io forwarding mode. DUT1 and DUT2 tested with\
35 | ... | 2p40GE NIC XL710 by Intel.
36 | ... | *[Ver] TG verification:* In MaxReceivedRate test TG sends traffic\
37 | ... | at line rate and reports total received/sent packets over trial period.\
38 | ... | Test packets are generated by TG on\
39 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups\
40 | ... | (flow-group per direction, 253 flows per flow-group) with all packets\
41 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static\
42 | ... | payload. MAC addresses are matching MAC addresses of the TG node\
46 # XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
47 | ${s_24.5G}= | ${24500000000}
48 # XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
49 | ${s_18.75Mpps}= | ${18750000}
51 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
54 | Check RR for eth-l2xcbase-testpmd
56 | | ... | [Cfg] DUT runs L2 frame forwarding config with ${wt} thread(s), ${wt}\
57 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
58 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
59 | | ... | trial throughput test.
61 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
63 | | # Test Variables required for test teardown
64 | | Set Test Variable | ${framesize}
65 | | ${get_framesize}= | Get Frame Size | ${framesize}
66 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${get_framesize}
67 | | ${max_rate}= | Set Variable If
68 | | ... | ${max_rate} > ${s_18.75Mpps} | ${s_18.75Mpps} | ${max_rate}
69 | | ${jumbo_frames}= | Set Variable If
70 | | ... | ${get_framesize} < ${1522} | no | yes
72 | | Given Start L2FWD '${wt}' worker threads and '${rxq}' rxqueues with jumbo frames '${jumbo_frames}'
73 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
74 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
77 | tc01-64B-1t1c-eth-l2xcbase-testpmd-mrr
79 | | ... | [Cfg] DUT runs L2 frame forwarding config with 1 phy core,\
80 | | ... | 1 receive queue per NIC port.
81 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single\
82 | | ... | trial throughput test.
86 | | [Template] | Check RR for eth-l2xcbase-testpmd
87 | | framesize=${64} | wt=1 | rxq=1
89 | tc02-1518B-1t1c-eth-l2xcbase-testpmd-mrr
91 | | ... | [Cfg] DUT runs L2 frame forwarding config with 1 phy core,\
92 | | ... | 1 receive queue per NIC port.
93 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
94 | | ... | trial throughput test.
96 | | [Tags] | 1518B | 1C
98 | | [Template] | Check RR for eth-l2xcbase-testpmd
99 | | framesize=${1518} | wt=1 | rxq=1
101 | tc03-9000B-1t1c-eth-l2xcbase-testpmd-mrr
103 | | ... | [Cfg] DUT runs L2 frame forwarding config with 1 phy core,\
104 | | ... | 1 receive queue per NIC port.
105 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
106 | | ... | trial throughput test.
108 | | [Tags] | 9000B | 1C
110 | | [Template] | Check RR for eth-l2xcbase-testpmd
111 | | framesize=${9000} | wt=1 | rxq=1
113 | tc04-IMIX-1t1c-eth-l2xcbase-testpmd-mrr
115 | | ... | [Cfg] DUT runs L2 frame forwarding config with 1 phy core,\
116 | | ... | 1 receive queue per NIC port.
117 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single\
118 | | ... | trial throughput test.
119 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
121 | | [Tags] | IMIX | 1C
123 | | [Template] | Check RR for eth-l2xcbase-testpmd
124 | | framesize=IMIX_v4_1 | wt=1 | rxq=1
126 | tc05-64B-2t2c-eth-l2xcbase-testpmd-mrr
128 | | ... | [Cfg] DUT runs L2 frame forwarding config with 2 threads,\
129 | | ... | 2 phy cores, 1 receive queue per NIC port.
130 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single\
131 | | ... | trial throughput test.
133 | | [Tags] | 64B | 2C
135 | | [Template] | Check RR for eth-l2xcbase-testpmd
136 | | framesize=${64} | wt=2 | rxq=1
138 | tc06-1518B-2t2c-eth-l2xcbase-testpmd-mrr
140 | | ... | [Cfg] DUT runs L2 frame forwarding config with 2 threads,\
141 | | ... | 2 phy cores, 1 receive queue per NIC port.
142 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
143 | | ... | trial throughput test.
145 | | [Tags] | 1518B | 2C
147 | | [Template] | Check RR for eth-l2xcbase-testpmd
148 | | framesize=${1518} | wt=2 | rxq=1
150 | tc07-9000B-2t2c-eth-l2xcbase-testpmd-mrr
152 | | ... | [Cfg] DUT runs L2 frame forwarding config with 2 threads,\
153 | | ... | 2 phy cores, 1 receive queue per NIC port.
154 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
155 | | ... | trial throughput test.
157 | | [Tags] | 9000B | 2C
159 | | [Template] | Check RR for eth-l2xcbase-testpmd
160 | | framesize=${9000} | wt=2 | rxq=1
162 | tc08-IMIX-2t2c-eth-l2xcbase-testpmd-mrr
164 | | ... | [Cfg] DUT runs L2 frame forwarding config with 2 threads,\
165 | | ... | 2 phy cores, 1 receive queue per NIC port.
166 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single\
167 | | ... | trial throughput test.
168 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
170 | | [Tags] | IMIX | 2C
172 | | [Template] | Check RR for eth-l2xcbase-testpmd
173 | | framesize=IMIX_v4_1 | wt=2 | rxq=1
175 | tc09-64B-4t4c-eth-l2xcbase-testpmd-mrr
177 | | ... | [Cfg] DUT runs L2 frame forwarding config with 4 threads,\
178 | | ... | 4 phy cores, 2 receive queue per NIC port.
179 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single\
180 | | ... | trial throughput test.
182 | | [Tags] | 64B | 4C
184 | | [Template] | Check RR for eth-l2xcbase-testpmd
185 | | framesize=${64} | wt=4 | rxq=2
187 | tc10-1518B-4t4c-eth-l2xcbase-testpmd-mrr
189 | | ... | [Cfg] DUT runs L2 frame forwarding config with 4 threads,\
190 | | ... | 4 phy cores, 2 receive queue per NIC port.
191 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
192 | | ... | trial throughput test.
194 | | [Tags] | 1518B | 4C
196 | | [Template] | Check RR for eth-l2xcbase-testpmd
197 | | framesize=${1518} | wt=4 | rxq=2
199 | tc11-9000B-4t4c-eth-l2xcbase-testpmd-mrr
201 | | ... | [Cfg] DUT runs L2 frame forwarding config with 4 threads,\
202 | | ... | 4 phy cores, 2 receive queue per NIC port.
203 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
204 | | ... | trial throughput test.
206 | | [Tags] | 9000B | 4C
208 | | [Template] | Check RR for eth-l2xcbase-testpmd
209 | | framesize=${9000} | wt=4 | rxq=2
211 | tc12-IMIX-4t4c-eth-l2xcbase-testpmd-mrr
213 | | ... | [Cfg] DUT runs L2 frame forwarding config with 4 threads,\
214 | | ... | 4 phy cores, 2 receive queue per NIC port.
215 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single\
216 | | ... | trial throughput test.
217 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
219 | | [Tags] | IMIX | 4C
221 | | [Template] | Check RR for eth-l2xcbase-testpmd
222 | | framesize=IMIX_v4_1 | wt=4 | rxq=2