afc39c4820ac7e5ce4ae5aee6e0020877ac027c6
[csit.git] / tests / dpdk / perf / 10ge2p1x520-ethip4-ip4base-l3fwd-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 | 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
21 | ...
22 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | MRR | 1NUMA
23 | ... | NIC_Intel-X520-DA2 | DPDK | IP4FWD | BASE | ETH
24 | ...
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
28 | ...
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\
42 | ... | interfaces.
43
44 *** Variables ***
45 # X520-DA2 bandwidth limit
46 | ${s_limit}= | ${10000000000}
47 # Traffic profile:
48 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst253_l3fwd
49
50 *** Keywords ***
51 | Check RR for ethip4-ip4base-l3fwd
52 | | [Documentation]
53 | | ... | [Cfg] DUT runs L3 IPv4 routing config with ${wt} thread(s), ${wt}\
54 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
55 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
56 | | ... | trial throughput test.
57 | | ...
58 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
59 | | ...
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
66 | | ...
67 | | Given Start L3FWD '${wt}' worker threads and '${rxq}' rxqueues with jumbo frames '${jumbo_frames}'
68 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
69 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
70
71 *** Test Cases ***
72 | tc01-64B-1t1c-ethip4-ip4base-l3fwd-mrr
73 | | [Documentation]
74 | | ... | [Cfg] DUT runs L3 IPv4 routing config with 1 thread, 1 phy core,\
75 | | ... | 1 receive queue per NIC port.
76 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single\
77 | | ... | trial throughput test.
78 | | ...
79 | | [Tags] | 64B | 1T1C | STHREAD
80 | | ...
81 | | [Template] | Check RR for ethip4-ip4base-l3fwd
82 | | framesize=${64} | wt=1 | rxq=1
83
84 | tc02-1518B-1t1c-ethip4-ip4base-l3fwd-mrr
85 | | [Documentation]
86 | | ... | [Cfg] DUT runs L3 IPv4 routing config with 1 thread, 1 phy core,\
87 | | ... | 1 receive queue per NIC port.
88 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
89 | | ... | trial throughput test.
90 | | ...
91 | | [Tags] | 1518B | 1T1C | STHREAD
92 | | ...
93 | | [Template] | Check RR for ethip4-ip4base-l3fwd
94 | | framesize=${1518} | wt=1 | rxq=1
95
96 | tc03-9000B-1t1c-ethip4-ip4base-l3fwd-mrr
97 | | [Documentation]
98 | | ... | [Cfg] DUT runs L3 IPv4 routing config with 1 thread, 1 phy core,\
99 | | ... | 1 receive queue per NIC port.
100 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
101 | | ... | trial throughput test.
102 | | ...
103 | | [Tags] | 9000B | 1T1C | STHREAD
104 | | ...
105 | | [Template] | Check RR for ethip4-ip4base-l3fwd
106 | | framesize=${9000} | wt=1 | rxq=1
107
108 | tc04-IMIX-1t1c-ethip4-ip4base-l3fwd-mrr
109 | | [Documentation]
110 | | ... | [Cfg] DUT runs L3 IPv4 routing config with 1 thread, 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)
115 | | ...
116 | | [Tags] | IMIX | 1T1C | STHREAD
117 | | ...
118 | | [Template] | Check RR for ethip4-ip4base-l3fwd
119 | | framesize=IMIX_v4_1 | wt=1 | rxq=1
120
121 | tc05-64B-2t2c-ethip4-ip4base-l3fwd-mrr
122 | | [Documentation]
123 | | ... | [Cfg] DUT runs L3 IPv4 routing config with 2 threads,\
124 | | ... | 2 phy cores, 1 receive queue per NIC port.
125 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single\
126 | | ... | trial throughput test.
127 | | ...
128 | | [Tags] | 64B | 2T2C | MTHREAD
129 | | ...
130 | | [Template] | Check RR for ethip4-ip4base-l3fwd
131 | | framesize=${64} | wt=2 | rxq=1
132
133 | tc06-1518B-2t2c-ethip4-ip4base-l3fwd-mrr
134 | | [Documentation]
135 | | ... | [Cfg] DUT runs L3 IPv4 routing config with 2 threads,\
136 | | ... | 2 phy cores, 1 receive queue per NIC port.
137 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
138 | | ... | trial throughput test.
139 | | ...
140 | | [Tags] | 1518B | 2T2C | MTHREAD
141 | | ...
142 | | [Template] | Check RR for ethip4-ip4base-l3fwd
143 | | framesize=${1518} | wt=2 | rxq=1
144
145 | tc07-9000B-2t2c-ethip4-ip4base-l3fwd-mrr
146 | | [Documentation]
147 | | ... | [Cfg] DUT runs L3 IPv4 routing config with 2 threads,\
148 | | ... | 2 phy cores, 1 receive queue per NIC port.
149 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
150 | | ... | trial throughput test.
151 | | ...
152 | | [Tags] | 9000B | 2T2C | MTHREAD
153 | | ...
154 | | [Template] | Check RR for ethip4-ip4base-l3fwd
155 | | framesize=${9000} | wt=2 | rxq=1
156
157 | tc08-IMIX-2t2c-ethip4-ip4base-l3fwd-mrr
158 | | [Documentation]
159 | | ... | [Cfg] DUT runs L3 IPv4 routing config with 2 threads,\
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)
164 | | ...
165 | | [Tags] | IMIX | 2T2C | MTHREAD
166 | | ...
167 | | [Template] | Check RR for ethip4-ip4base-l3fwd
168 | | framesize=IMIX_v4_1 | wt=2 | rxq=1
169
170 | tc09-64B-4t4c-ethip4-ip4base-l3fwd-mrr
171 | | [Documentation]
172 | | ... | [Cfg] DUT runs L3 IPv4 routing config with 4 threads,\
173 | | ... | 4 phy cores, 2 receive queue per NIC port.
174 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single\
175 | | ... | trial throughput test.
176 | | ...
177 | | [Tags] | 64B | 4T4C | MTHREAD
178 | | ...
179 | | [Template] | Check RR for ethip4-ip4base-l3fwd
180 | | framesize=${64} | wt=4 | rxq=2
181
182 | tc10-1518B-4t4c-ethip4-ip4base-l3fwd-mrr
183 | | [Documentation]
184 | | ... | [Cfg] DUT runs L3 IPv4 routing config with 4 threads,\
185 | | ... | 4 phy cores, 2 receive queue per NIC port.
186 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
187 | | ... | trial throughput test.
188 | | ...
189 | | [Tags] | 1518B | 4T4C | MTHREAD
190 | | ...
191 | | [Template] | Check RR for ethip4-ip4base-l3fwd
192 | | framesize=${1518} | wt=4 | rxq=2
193
194 | tc11-9000B-4t4c-ethip4-ip4base-l3fwd-mrr
195 | | [Documentation]
196 | | ... | [Cfg] DUT runs L3 IPv4 routing config with 4 threads,\
197 | | ... | 4 phy cores, 2 receive queue per NIC port.
198 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
199 | | ... | trial throughput test.
200 | | ...
201 | | [Tags] | 9000B | 4T4C | MTHREAD
202 | | ...
203 | | [Template] | Check RR for ethip4-ip4base-l3fwd
204 | | framesize=${9000} | wt=4 | rxq=2
205
206 | tc12-IMIX-4t4c-ethip4-ip4base-l3fwd-mrr
207 | | [Documentation]
208 | | ... | [Cfg] DUT runs L3 IPv4 routing config with 4 threads,\
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)
213 | | ...
214 | | [Tags] | IMIX | 4T4C | MTHREAD
215 | | ...
216 | | [Template] | Check RR for ethip4-ip4base-l3fwd
217 | | framesize=IMIX_v4_1 | wt=4 | rxq=2