cdb9ef9f0381e588164023221e7d11841623dc33
[csit.git] / tests / vpp / perf / l2 / 10ge2p1x710-dot1q-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 | Resource | resources/libraries/robot/l2/tagging.robot
17 | ...
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | MRR
19 | ... | NIC_Intel-X710 | L2XCFWD | BASE | DOT1Q
20 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
21 | ... | L2 | Intel-X710
22 | Suite Teardown | Tear down 3-node performance topology
23 | ...
24 | ...
25 | Test Setup | Set up performance test
26 | ...
27 | Test Teardown | Tear down performance mrr test
28 | ...
29 | Documentation | *Raw results L2XC with 802.1q test cases*
30 | ...
31 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
32 | ... | with single links between nodes.
33 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 cross connect. 802.1q\
34 | ... | tagging is applied on link between DUT1 and DUT2.
35 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 cross-\
36 | ... | connect. DUT1 and DUT2 tested with 2p10GE NIC X710 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 | ${subid}= | 10
49 | ${tag_rewrite}= | pop-1
50 # X710-DA2 bandwidth limit
51 | ${s_limit}= | ${10000000000}
52 # Traffic profile:
53 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
54
55 *** Keywords ***
56 | Check RR for L2XC dot1q-l2xcbase
57 | | [Documentation]
58 | | ... | [Cfg] DUT runs L2XC config with VLAN dot1q 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_limit} | ${get_framesize}
69 | | ...
70 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
71 | | And Add PCI devices to all DUTs
72 | | And Run Keyword If | ${get_framesize} < ${1522}
73 | | ... | Add no multi seg to all DUTs
74 | | And Apply startup configuration on all VPP DUTs
75 | | And Set interfaces in path in 3-node circular topology up
76 | | When Initialize VLAN dot1q sub-interfaces in 3-node circular topology
77 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
78 | | And Configure L2 tag rewrite method on interfaces
79 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
80 | | ... | ${tag_rewrite}
81 | | And Connect interfaces and VLAN sub-interfaces using L2XC
82 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
83 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
84 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
85 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
86
87 *** Test Cases ***
88 | tc01-64B-1t1c-dot1q-l2xcbase-mrr
89 | | [Documentation]
90 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core, \
91 | | ... | 1 receive queue per NIC port.
92 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
93 | | ... | throughput test.
94 | | ...
95 | | [Tags] | 64B | 1C
96 | | ...
97 | | [Template] | Check RR for L2XC dot1q-l2xcbase
98 | | wt=1 | rxq=1 | framesize=${64}
99
100 | tc02-1518B-1t1c-dot1q-l2xcbase-mrr
101 | | [Documentation]
102 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core, \
103 | | ... | 1 receive queue per NIC port.
104 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
105 | | ... | throughput test.
106 | | ...
107 | | [Tags] | 1518B | 1C
108 | | ...
109 | | [Template] | Check RR for L2XC dot1q-l2xcbase
110 | | wt=1 | rxq=1 | framesize=${1518}
111
112 | tc03-9000B-1t1c-dot1q-l2xcbase-mrr
113 | | [Documentation]
114 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core, \
115 | | ... | 1 receive queue per NIC port.
116 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
117 | | ... | throughput test.
118 | | ...
119 | | [Tags] | 9000B | 1C
120 | | ...
121 | | [Template] | Check RR for L2XC dot1q-l2xcbase
122 | | wt=1 | rxq=1 | framesize=${9000}
123
124 | tc04-IMIX-1t1c-dot1q-l2xcbase-mrr
125 | | [Documentation]
126 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core, \
127 | | ... | 1 receive queue per NIC port.
128 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
129 | | ... | throughput test.
130 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
131 | | ...
132 | | [Tags] | IMIX | 1C
133 | | ...
134 | | [Template] | Check RR for L2XC dot1q-l2xcbase
135 | | wt=1 | rxq=1 | framesize=IMIX_v4_1
136
137 | tc05-64B-2t2c-dot1q-l2xcbase-mrr
138 | | [Documentation]
139 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy cores, \
140 | | ... | 1 receive queue per NIC port.
141 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
142 | | ... | throughput test.
143 | | ...
144 | | [Tags] | 64B | 2C
145 | | ...
146 | | [Template] | Check RR for L2XC dot1q-l2xcbase
147 | | wt=2 | rxq=1 | framesize=${64}
148
149 | tc06-1518B-2t2c-dot1q-l2xcbase-mrr
150 | | [Documentation]
151 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy cores, \
152 | | ... | 1 receive queue per NIC port.
153 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
154 | | ... | throughput test.
155 | | ...
156 | | [Tags] | 1518B | 2C
157 | | ...
158 | | [Template] | Check RR for L2XC dot1q-l2xcbase
159 | | wt=2 | rxq=1 | framesize=${1518}
160
161 | tc07-9000B-2t2c-dot1q-l2xcbase-mrr
162 | | [Documentation]
163 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy cores, \
164 | | ... | 1 receive queue per NIC port.
165 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
166 | | ... | throughput test.
167 | | ...
168 | | [Tags] | 9000B | 2C
169 | | ...
170 | | [Template] | Check RR for L2XC dot1q-l2xcbase
171 | | wt=2 | rxq=1 | framesize=${9000}
172
173 | tc08-IMIX-2t2c-dot1q-l2xcbase-mrr
174 | | [Documentation]
175 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy cores, \
176 | | ... | 1 receive queue per NIC port.
177 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
178 | | ... | throughput test.
179 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
180 | | ...
181 | | [Tags] | IMIX | 2C
182 | | ...
183 | | [Template] | Check RR for L2XC dot1q-l2xcbase
184 | | wt=2 | rxq=1 | framesize=IMIX_v4_1
185
186 | tc09-64B-4t4c-dot1q-l2xcbase-mrr
187 | | [Documentation]
188 | | ... | [Cfg] DUT runs L2XC switching config with 4 phy cores, \
189 | | ... | 2 receive queues per NIC port.
190 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
191 | | ... | throughput test.
192 | | ...
193 | | [Tags] | 64B | 4C
194 | | ...
195 | | [Template] | Check RR for L2XC dot1q-l2xcbase
196 | | wt=4 | rxq=2 | framesize=${64}
197
198 | tc10-1518B-4t4c-dot1q-l2xcbase-mrr
199 | | [Documentation]
200 | | ... | [Cfg] DUT runs L2XC switching config with 4 phy cores, \
201 | | ... | 2 receive queues per NIC port.
202 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
203 | | ... | throughput test.
204 | | ...
205 | | [Tags] | 1518B | 4C
206 | | ...
207 | | [Template] | Check RR for L2XC dot1q-l2xcbase
208 | | wt=4 | rxq=2 | framesize=${1518}
209
210 | tc11-9000B-4t4c-dot1q-l2xcbase-mrr
211 | | [Documentation]
212 | | ... | [Cfg] DUT runs L2XC switching config with 4 phy cores, \
213 | | ... | 2 receive queues per NIC port.
214 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
215 | | ... | throughput test.
216 | | ...
217 | | [Tags] | 9000B | 4C
218 | | ...
219 | | [Template] | Check RR for L2XC dot1q-l2xcbase
220 | | wt=4 | rxq=2 | framesize=${9000}
221
222 | tc12-IMIX-4t4c-dot1q-l2xcbase-mrr
223 | | [Documentation]
224 | | ... | [Cfg] DUT runs L2XC switching config with 4 phy cores, \
225 | | ... | 2 receive queues per NIC port.
226 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
227 | | ... | throughput test.
228 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
229 | | ...
230 | | [Tags] | IMIX | 4C
231 | | ...
232 | | [Template] | Check RR for L2XC dot1q-l2xcbase
233 | | wt=4 | rxq=2 | framesize=IMIX_v4_1