cabff8943e0708945c1afbdb2814900355c09b31
[csit.git] / tests / vpp / perf / l2 / 10ge2p1x710-eth-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 | ...
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | MRR
18 | ... | NIC_Intel-X710 | ETH | L2XCFWD | BASE | L2XCBASE
19 | ...
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 | Test Setup | Set up performance test
25 | Test Teardown | Tear down performance mrr test
26 | ...
27 | Documentation | *Raw results L2XC test cases*
28 | ...
29 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
30 | ... | with single links between nodes.
31 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 cross connect.
32 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 cross-
33 | ... | connect. DUT1 and DUT2 tested with 2p10GE NIC X710 by Intel.
34 | ... | *[Ver] TG verification:* In MaxReceivedRate tests TG sends traffic
35 | ... | at line rate and reports total received/sent packets over trial period.
36 | ... | Test packets are generated by TG on links to DUTs. TG traffic profile
37 | ... | contains two L3 flow-groups (flow-group per direction, 253 flows per
38 | ... | flow-group) with all packets containing Ethernet header, IPv4 header
39 | ... | with IP protocol=61 and static payload. MAC addresses are matching MAC
40 | ... | addresses of the TG node interfaces.
41 | ... | *[Ref] Applicable standard specifications:* RFC2544.
42
43 *** Variables ***
44 # X710-DA2 bandwidth limit
45 | ${s_limit}= | ${10000000000}
46 # Traffic profile:
47 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
48
49 *** Keywords ***
50 | Check RR for l2xcbase
51 | | [Documentation]
52 | | ... | [Cfg] DUT runs L2XC config with ${wt} thread(s), ${wt}\
53 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
54 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
55 | | ... | trial throughput test.
56 | | ...
57 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
58 | | ...
59 | | # Test Variables required for test teardown
60 | | Set Test Variable | ${framesize}
61 | | ${get_framesize}= | Get Frame Size | ${framesize}
62 | | ${max_rate}= | Calculate pps | ${s_limit} | ${get_framesize}
63 | | ...
64 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
65 | | And Add PCI devices to all DUTs
66 | | And Run Keyword If | ${get_framesize} < ${1522}
67 | | ... | Add no multi seg to all DUTs
68 | | And Apply startup configuration on all VPP DUTs
69 | | And Initialize L2 xconnect in 3-node circular topology
70 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
71 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
72
73 *** Test Cases ***
74 | tc01-64B-1t1c-eth-l2xcbase-mrr
75 | | [Documentation]
76 | | ... | [Cfg] DUT runs L2XC config with 1 phy core,\
77 | | ... | 1 receive queue per NIC port.
78 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
79 | | ... | throughput test.
80 | | [Tags] | 64B | 1C
81 | | ...
82 | | [Template] | Check RR for l2xcbase
83 | | framesize=${64} | wt=1 | rxq=1
84
85 | tc02-1518B-1t1c-eth-l2xcbase-mrr
86 | | [Documentation]
87 | | ... | [Cfg] DUT runs L2XC 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 | | [Tags] | 1518B | 1C
92 | | ...
93 | | [Template] | Check RR for l2xcbase
94 | | framesize=${1518} | wt=1 | rxq=1
95
96 | tc03-9000B-1t1c-eth-l2xcbase-mrr
97 | | [Documentation]
98 | | ... | [Cfg] DUT runs L2XC 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.
102 | | [Tags] | 9000B | 1C
103 | | ...
104 | | [Template] | Check RR for l2xcbase
105 | | framesize=${9000} | wt=1 | rxq=1
106
107 | tc04-IMIX-1t1c-eth-l2xcbase-mrr
108 | | [Documentation]
109 | | ... | [Cfg] DUT runs L2XC config with 1 phy core,\
110 | | ... | 1 receive queue per NIC port.
111 | | ... | [Ver] Measure MaxReceivedRate for IMIX frames using single\
112 | | ... | trial throughput test.
113 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
114 | | [Tags] | IMIX | 1C
115 | | ...
116 | | [Template] | Check RR for l2xcbase
117 | | framesize=IMIX_v4_1 | wt=1 | rxq=1
118
119 | tc05-64B-2t2c-eth-l2xcbase-mrr
120 | | [Documentation]
121 | | ... | [Cfg] DUT runs L2XC config with 2 phy cores,\
122 | | ... | 1 receive queue per NIC port.
123 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
124 | | ... | throughput test.
125 | | [Tags] | 64B | 2C
126 | | ...
127 | | [Template] | Check RR for l2xcbase
128 | | framesize=${64} | wt=2 | rxq=1
129
130 | tc06-1518B-2t2c-eth-l2xcbase-mrr
131 | | [Documentation]
132 | | ... | [Cfg] DUT runs L2XC config with 2 phy cores,\
133 | | ... | 1 receive queue per NIC port.
134 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
135 | | ... | trial throughput test.
136 | | [Tags] | 1518B | 2C
137 | | ...
138 | | [Template] | Check RR for l2xcbase
139 | | framesize=${1518} | wt=2 | rxq=1
140
141 | tc07-9000B-2t2c-eth-l2xcbase-mrr
142 | | [Documentation]
143 | | ... | [Cfg] DUT runs L2XC config with 2 phy cores,\
144 | | ... | 1 receive queue per NIC port.
145 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
146 | | ... | trial throughput test.
147 | | [Tags] | 9000B | 2C
148 | | ...
149 | | [Template] | Check RR for l2xcbase
150 | | framesize=${9000} | wt=2 | rxq=1
151
152 | tc08-IMIX-2t2c-eth-l2xcbase-mrr
153 | | [Documentation]
154 | | ... | [Cfg] DUT runs L2XC config with 2 phy cores,\
155 | | ... | 1 receive queue per NIC port.
156 | | ... | [Ver] Measure MaxReceivedRate for IMIX frames using single\
157 | | ... | trial throughput test.
158 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
159 | | [Tags] | IMIX | 2C
160 | | ...
161 | | [Template] | Check RR for l2xcbase
162 | | framesize=IMIX_v4_1 | wt=2 | rxq=1
163
164 | tc09-64B-4t4c-eth-l2xcbase-mrr
165 | | [Documentation]
166 | | ... | [Cfg] DUT runs L2XC config with 4 phy cores,\
167 | | ... | 2 receive queues per NIC port.
168 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
169 | | ... | throughput test.
170 | | [Tags] | 64B | 4C
171 | | ...
172 | | [Template] | Check RR for l2xcbase
173 | | framesize=${64} | wt=4 | rxq=2
174
175 | tc10-1518B-4t4c-eth-l2xcbase-mrr
176 | | [Documentation]
177 | | ... | [Cfg] DUT runs L2XC config with 4 phy cores,\
178 | | ... | 2 receive queues per NIC port.
179 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
180 | | ... | trial throughput test.
181 | | [Tags] | 1518B | 4C
182 | | ...
183 | | [Template] | Check RR for l2xcbase
184 | | framesize=${1518} | wt=4 | rxq=2
185
186 | tc11-9000B-4t4c-eth-l2xcbase-mrr
187 | | [Documentation]
188 | | ... | [Cfg] DUT runs L2XC config with 4 phy cores,\
189 | | ... | 2 receive queues per NIC port.
190 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
191 | | ... | trial throughput test.
192 | | [Tags] | 9000B | 4C
193 | | ...
194 | | [Template] | Check RR for l2xcbase
195 | | framesize=${9000} | wt=4 | rxq=2
196
197 | tc12-IMIX-4t4c-eth-l2xcbase-mrr
198 | | [Documentation]
199 | | ... | [Cfg] DUT runs L2XC config with 4 phy cores,\
200 | | ... | 2 receive queues per NIC port.
201 | | ... | [Ver] Measure MaxReceivedRate for IMIX frames using single\
202 | | ... | trial throughput test.
203 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
204 | | [Tags] | IMIX | 4C
205 | | ...
206 | | [Template] | Check RR for l2xcbase
207 | | framesize=IMIX_v4_1 | wt=4 | rxq=2