CSIT-1178: Prepare for bursty MRR
[csit.git] / tests / dpdk / perf / 10ge2p1x520-eth-l2xcbase-testpmd-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 | HW_ENV | PERFTEST | MRR | 1NUMA
23 | ... | NIC_Intel-X520-DA2 | DPDK | ETH | L2XCFWD | BASE
24 | ...
25 | Suite Setup | Set up DPDK 3-node performance topology with DUT's NIC model
26 | ... | L2 | Intel-X520-DA2
27 | Suite Teardown | Tear down DPDK 3-node performance topology
28 | ...
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 | ... | 2p10GE NIC X520 Niantic 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\
43 | ... | interfaces.
44
45 *** Variables ***
46 # X520-DA2 bandwidth limit
47 | ${s_limit}= | ${10000000000}
48 # Traffic profile:
49 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
50
51 *** Keywords ***
52 | Check RR for eth-l2xcbase-testpmd
53 | | [Documentation]
54 | | ... | [Cfg] DUT runs L2 frame forwarding config with ${wt} phy core(s),\
55 | | ... | ${rxq} receive queue(s) per NIC port.
56 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
57 | | ... | trial throughput test.
58 | | ...
59 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
60 | | ...
61 | | # Test Variables required for test teardown
62 | | Set Test Variable | ${framesize}
63 | | ${get_framesize}= | Get Frame Size | ${framesize}
64 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
65 | | ${jumbo_frames}= | Set Variable If
66 | | ... | ${get_framesize} < ${1522} | no | yes
67 | | ...
68 | | Given Start L2FWD on all DUTs | ${wt} | ${rxq} | ${jumbo_frames}
69 | | Then Traffic should pass with maximum rate
70 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
71
72 *** Test Cases ***
73 | tc01-64B-1t1c-eth-l2xcbase-testpmd-mrr
74 | | [Documentation]
75 | | ... | [Cfg] DUT runs L2 frame forwarding config with 1 phy core,\
76 | | ... | 1 receive queue per NIC port.
77 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single\
78 | | ... | trial throughput test.
79 | | ...
80 | | [Tags] | 64B | 1C
81 | | ...
82 | | [Template] | Check RR for eth-l2xcbase-testpmd
83 | | framesize=${64} | wt=1 | rxq=1
84
85 | tc02-1518B-1t1c-eth-l2xcbase-testpmd-mrr
86 | | [Documentation]
87 | | ... | [Cfg] DUT runs L2 frame forwarding config with 1 phy core,\
88 | | ... | 1 receive queue per NIC port.
89 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
90 | | ... | trial throughput test.
91 | | ...
92 | | [Tags] | 1518B | 1C
93 | | ...
94 | | [Template] | Check RR for eth-l2xcbase-testpmd
95 | | framesize=${1518} | wt=1 | rxq=1
96
97 | tc03-9000B-1t1c-eth-l2xcbase-testpmd-mrr
98 | | [Documentation]
99 | | ... | [Cfg] DUT runs L2 frame forwarding config with 1 phy core,\
100 | | ... | 1 receive queue per NIC port.
101 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
102 | | ... | trial throughput test.
103 | | ...
104 | | [Tags] | 9000B | 1C
105 | | ...
106 | | [Template] | Check RR for eth-l2xcbase-testpmd
107 | | framesize=${9000} | wt=1 | rxq=1
108
109 | tc04-IMIX-1t1c-eth-l2xcbase-testpmd-mrr
110 | | [Documentation]
111 | | ... | [Cfg] DUT runs L2 frame forwarding config with 1 phy core,\
112 | | ... | 1 receive queue per NIC port.
113 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single\
114 | | ... | trial throughput test.
115 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
116 | | ...
117 | | [Tags] | IMIX | 1C
118 | | ...
119 | | [Template] | Check RR for eth-l2xcbase-testpmd
120 | | framesize=IMIX_v4_1 | wt=1 | rxq=1
121
122 | tc05-64B-2t2c-eth-l2xcbase-testpmd-mrr
123 | | [Documentation]
124 | | ... | [Cfg] DUT runs L2 frame forwarding config with \
125 | | ... | 2 phy cores, 1 receive queue per NIC port.
126 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single\
127 | | ... | trial throughput test.
128 | | ...
129 | | [Tags] | 64B | 2C
130 | | ...
131 | | [Template] | Check RR for eth-l2xcbase-testpmd
132 | | framesize=${64} | wt=2 | rxq=1
133
134 | tc06-1518B-2t2c-eth-l2xcbase-testpmd-mrr
135 | | [Documentation]
136 | | ... | [Cfg] DUT runs L2 frame forwarding config with \
137 | | ... | 2 phy cores, 1 receive queue per NIC port.
138 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
139 | | ... | trial throughput test.
140 | | ...
141 | | [Tags] | 1518B | 2C
142 | | ...
143 | | [Template] | Check RR for eth-l2xcbase-testpmd
144 | | framesize=${1518} | wt=2 | rxq=1
145
146 | tc07-9000B-2t2c-eth-l2xcbase-testpmd-mrr
147 | | [Documentation]
148 | | ... | [Cfg] DUT runs L2 frame forwarding config with \
149 | | ... | 2 phy cores, 1 receive queue per NIC port.
150 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
151 | | ... | trial throughput test.
152 | | ...
153 | | [Tags] | 9000B | 2C
154 | | ...
155 | | [Template] | Check RR for eth-l2xcbase-testpmd
156 | | framesize=${9000} | wt=2 | rxq=1
157
158 | tc08-IMIX-2t2c-eth-l2xcbase-testpmd-mrr
159 | | [Documentation]
160 | | ... | [Cfg] DUT runs L2 frame forwarding config with \
161 | | ... | 2 phy cores, 1 receive queue per NIC port.
162 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single\
163 | | ... | trial throughput test.
164 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
165 | | ...
166 | | [Tags] | IMIX | 2C
167 | | ...
168 | | [Template] | Check RR for eth-l2xcbase-testpmd
169 | | framesize=IMIX_v4_1 | wt=2 | rxq=1
170
171 | tc09-64B-4t4c-eth-l2xcbase-testpmd-mrr
172 | | [Documentation]
173 | | ... | [Cfg] DUT runs L2 frame forwarding config with \
174 | | ... | 4 phy cores, 2 receive queue per NIC port.
175 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single\
176 | | ... | trial throughput test.
177 | | ...
178 | | [Tags] | 64B | 4C
179 | | ...
180 | | [Template] | Check RR for eth-l2xcbase-testpmd
181 | | framesize=${64} | wt=4 | rxq=2
182
183 | tc10-1518B-4t4c-eth-l2xcbase-testpmd-mrr
184 | | [Documentation]
185 | | ... | [Cfg] DUT runs L2 frame forwarding config with \
186 | | ... | 4 phy cores, 2 receive queue per NIC port.
187 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
188 | | ... | trial throughput test.
189 | | ...
190 | | [Tags] | 1518B | 4C
191 | | ...
192 | | [Template] | Check RR for eth-l2xcbase-testpmd
193 | | framesize=${1518} | wt=4 | rxq=2
194
195 | tc11-9000B-4t4c-eth-l2xcbase-testpmd-mrr
196 | | [Documentation]
197 | | ... | [Cfg] DUT runs L2 frame forwarding config with \
198 | | ... | 4 phy cores, 2 receive queue per NIC port.
199 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
200 | | ... | trial throughput test.
201 | | ...
202 | | [Tags] | 9000B | 4C
203 | | ...
204 | | [Template] | Check RR for eth-l2xcbase-testpmd
205 | | framesize=${9000} | wt=4 | rxq=2
206
207 | tc12-IMIX-4t4c-eth-l2xcbase-testpmd-mrr
208 | | [Documentation]
209 | | ... | [Cfg] DUT runs L2 frame forwarding config with \
210 | | ... | 4 phy cores, 2 receive queue per NIC port.
211 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single\
212 | | ... | trial throughput test.
213 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
214 | | ...
215 | | [Tags] | IMIX | 4C
216 | | ...
217 | | [Template] | Check RR for eth-l2xcbase-testpmd
218 | | framesize=IMIX_v4_1 | wt=4 | rxq=2