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 | PERFTEST | HW_ENV | MRR | 1NUMA
23 | ... | NIC_Intel-X520-DA2 | DPDK | IP4FWD | BASE | ETH
25 | Suite Setup | Set up DPDK 3-node performance topology with DUT's NIC model
26 | ... | L3 | Intel-X520-DA2
27 | Suite Teardown | Tear down DPDK 3-node performance topology
29 | Documentation | *Raw results IPv4 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 L3 IPv4 routing.
33 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 run the DPDK l3fwd application\
34 | ... | DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
35 | ... | *[Ver] TG verification:* In MaxReceivedRate test TG sends traffic\
36 | ... | at line rate and reports total received/sent packets over trial period.\
37 | ... | Test packets are generated by TG on\
38 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups\
39 | ... | (flow-group per direction, 253 flows per flow-group) with all packets\
40 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static\
41 | ... | payload. MAC addresses are matching MAC addresses of the TG node\
45 # X520-DA2 bandwidth limit
46 | ${s_limit}= | ${10000000000}
48 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst253_l3fwd
51 | Check RR for ethip4-ip4base-l3fwd
53 | | ... | [Cfg] DUT runs L3 IPv4 routing config with ${wt} phy core(s),\
54 | | ... | ${rxq} receive queue(s) per NIC port.
55 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
56 | | ... | trial throughput test.
58 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
60 | | # Test Variables required for test teardown
61 | | Set Test Variable | ${framesize}
62 | | ${get_framesize}= | Get Frame Size | ${framesize}
63 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
64 | | ${jumbo_frames}= | Set Variable If
65 | | ... | ${get_framesize} < ${1522} | no | yes
67 | | Given Start L3FWD on all DUTs | ${wt} | ${rxq} | ${jumbo_frames}
68 | | Then Traffic should pass with maximum rate
69 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
72 | tc01-64B-1t1c-ethip4-ip4base-l3fwd-mrr
74 | | ... | [Cfg] DUT runs L3 IPv4 routing config with 1 phy core,\
75 | | ... | 1 receive queue per NIC port.
76 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single\
77 | | ... | trial throughput test.
81 | | [Template] | Check RR for ethip4-ip4base-l3fwd
82 | | framesize=${64} | wt=1 | rxq=1
84 | tc02-1518B-1t1c-ethip4-ip4base-l3fwd-mrr
86 | | ... | [Cfg] DUT runs L3 IPv4 routing config with 1 phy core,\
87 | | ... | 1 receive queue per NIC port.
88 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
89 | | ... | trial throughput test.
91 | | [Tags] | 1518B | 1C
93 | | [Template] | Check RR for ethip4-ip4base-l3fwd
94 | | framesize=${1518} | wt=1 | rxq=1
96 | tc03-9000B-1t1c-ethip4-ip4base-l3fwd-mrr
98 | | ... | [Cfg] DUT runs L3 IPv4 routing config with 1 phy core,\
99 | | ... | 1 receive queue per NIC port.
100 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
101 | | ... | trial throughput test.
103 | | [Tags] | 9000B | 1C
105 | | [Template] | Check RR for ethip4-ip4base-l3fwd
106 | | framesize=${9000} | wt=1 | rxq=1
108 | tc04-IMIX-1t1c-ethip4-ip4base-l3fwd-mrr
110 | | ... | [Cfg] DUT runs L3 IPv4 routing config with 1 phy core,\
111 | | ... | 1 receive queue per NIC port.
112 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single\
113 | | ... | trial throughput test.
114 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
116 | | [Tags] | IMIX | 1C
118 | | [Template] | Check RR for ethip4-ip4base-l3fwd
119 | | framesize=IMIX_v4_1 | wt=1 | rxq=1
121 | tc05-64B-2t2c-ethip4-ip4base-l3fwd-mrr
123 | | ... | [Cfg] DUT runs L3 IPv4 routing config with \
124 | | ... | 2 phy cores, 1 receive queue per NIC port.
125 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single\
126 | | ... | trial throughput test.
128 | | [Tags] | 64B | 2C
130 | | [Template] | Check RR for ethip4-ip4base-l3fwd
131 | | framesize=${64} | wt=2 | rxq=1
133 | tc06-1518B-2t2c-ethip4-ip4base-l3fwd-mrr
135 | | ... | [Cfg] DUT runs L3 IPv4 routing config with \
136 | | ... | 2 phy cores, 1 receive queue per NIC port.
137 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
138 | | ... | trial throughput test.
140 | | [Tags] | 1518B | 2C
142 | | [Template] | Check RR for ethip4-ip4base-l3fwd
143 | | framesize=${1518} | wt=2 | rxq=1
145 | tc07-9000B-2t2c-ethip4-ip4base-l3fwd-mrr
147 | | ... | [Cfg] DUT runs L3 IPv4 routing config with \
148 | | ... | 2 phy cores, 1 receive queue per NIC port.
149 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
150 | | ... | trial throughput test.
152 | | [Tags] | 9000B | 2C
154 | | [Template] | Check RR for ethip4-ip4base-l3fwd
155 | | framesize=${9000} | wt=2 | rxq=1
157 | tc08-IMIX-2t2c-ethip4-ip4base-l3fwd-mrr
159 | | ... | [Cfg] DUT runs L3 IPv4 routing config with \
160 | | ... | 2 phy cores, 1 receive queue per NIC port.
161 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single\
162 | | ... | trial throughput test.
163 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
165 | | [Tags] | IMIX | 2C
167 | | [Template] | Check RR for ethip4-ip4base-l3fwd
168 | | framesize=IMIX_v4_1 | wt=2 | rxq=1
170 | tc09-64B-4t4c-ethip4-ip4base-l3fwd-mrr
172 | | ... | [Cfg] DUT runs L3 IPv4 routing config with \
173 | | ... | 4 phy cores, 2 receive queue per NIC port.
174 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single\
175 | | ... | trial throughput test.
177 | | [Tags] | 64B | 4C
179 | | [Template] | Check RR for ethip4-ip4base-l3fwd
180 | | framesize=${64} | wt=4 | rxq=2
182 | tc10-1518B-4t4c-ethip4-ip4base-l3fwd-mrr
184 | | ... | [Cfg] DUT runs L3 IPv4 routing config with \
185 | | ... | 4 phy cores, 2 receive queue per NIC port.
186 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
187 | | ... | trial throughput test.
189 | | [Tags] | 1518B | 4C
191 | | [Template] | Check RR for ethip4-ip4base-l3fwd
192 | | framesize=${1518} | wt=4 | rxq=2
194 | tc11-9000B-4t4c-ethip4-ip4base-l3fwd-mrr
196 | | ... | [Cfg] DUT runs L3 IPv4 routing config with \
197 | | ... | 4 phy cores, 2 receive queue per NIC port.
198 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
199 | | ... | trial throughput test.
201 | | [Tags] | 9000B | 4C
203 | | [Template] | Check RR for ethip4-ip4base-l3fwd
204 | | framesize=${9000} | wt=4 | rxq=2
206 | tc12-IMIX-4t4c-ethip4-ip4base-l3fwd-mrr
208 | | ... | [Cfg] DUT runs L3 IPv4 routing config with \
209 | | ... | 4 phy cores, 2 receive queue per NIC port.
210 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single\
211 | | ... | trial throughput test.
212 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
214 | | [Tags] | IMIX | 4C
216 | | [Template] | Check RR for ethip4-ip4base-l3fwd
217 | | framesize=IMIX_v4_1 | wt=4 | rxq=2