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 | Library | resources.libraries.python.Policer
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | MRR
19 | ... | NIC_Intel-X520-DA2 | IP4FWD | BASE | DOT1Q
21 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
22 | ... | L3 | Intel-X520-DA2
23 | Suite Teardown | Tear down 3-node performance topology
25 | Test Setup | Set up performance test
27 | Test Teardown | Tear down performance mrr test
29 | Documentation | *Raw results IPv4 policer test cases*
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 IPv4 routing.
34 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
35 | ... | routing and two static IPv4 /24 route entries and policer with 2R3C
36 | ... | color-aware configuration. Policer is applied on links TG - DUT1 and
37 | ... | DUT2 - TG. DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
38 | ... | *[Ver] TG verification:* In MaxReceivedRate tests TG sends traffic\
39 | ... | at line rate and reports total received/sent packets over trial period.\
40 | ... | Test packets are generated by TG on links to DUTs. TG traffic profile
41 | ... | contains two L3 flow-groups (flow-group per direction, 253 flows per
42 | ... | flow-group) with all packets containing Ethernet header, IPv6 header
43 | ... | and generated payload. MAC addresses are matching MAC addresses
44 | ... | of the TG node interfaces.
45 | ... | *[Ref] Applicable standard specifications:* RFC2544, RFC2698.
48 # X520-DA2 bandwidth limit
49 | ${s_limit}= | ${10000000000}
53 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src253
56 | Check RR for ethip4-ip4base-ipolicemarkbase
59 | | ... | [Cfg] DUT runs IPv4 routing config with ${wt} thread(s), ${wt}\
60 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
61 | | ... | [Ver] Find NDR or PDR for ${framesize} frames using binary search\
62 | | ... | start at 10GE linerate.
64 | | [Arguments] | ${wt} | ${rxq} | ${framesize}
66 | | # Test Variables required for test execution and test teardown
67 | | Set Test Variable | ${framesize}
68 | | ${cb}= | Set Variable If
69 | | ... | '${framesize}' == 'IMIX_v4_1' | ${1518} | ${framesize}
70 | | Set Test Variable | ${cb}
71 | | ${eb}= | Set Variable If
72 | | ... | '${framesize}' == 'IMIX_v4_1' | ${1518} | ${framesize}
73 | | Set Test Variable | ${eb}
74 | | ${get_framesize}= | Get Frame Size | ${framesize}
75 | | ${max_rate}= | Calculate pps | ${s_limit} | ${get_framesize}
77 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
78 | | And Add PCI devices to DUTs in 3-node single link topology
79 | | And Run Keyword If | ${get_framesize} < ${1522}
80 | | ... | Add no multi seg to all DUTs
81 | | And Apply startup configuration on all VPP DUTs
82 | | When Initialize IPv4 forwarding in 3-node circular topology
83 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
84 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
85 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
88 | tc01-64B-1t1c-ethip4-ip4base-ipolicemarkbase-mrr
90 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 1 thread, 1 \
91 | | ... | phy core, 1 receive queue per NIC port.
92 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
93 | | ... | throughput test.
95 | | [Tags] | 64B | 1T1C | STHREAD
97 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
98 | | wt=1 | rxq=1 | framesize=${64}
100 | tc02-1518B-1t1c-ethip4-ip4base-ipolicemarkbase-mrr
102 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 1 thread, 1 \
103 | | ... | phy core, 1 receive queue per NIC port.
104 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
105 | | ... | throughput test.
107 | | [Tags] | 1518B | 1T1C | STHREAD
109 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
110 | | wt=1 | rxq=1 | framesize=${1518}
112 | tc03-9000B-1t1c-ethip4-ip4base-ipolicemarkbase-mrr
114 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 1 thread, 1 \
115 | | ... | phy core, 1 receive queue per NIC port.
116 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
117 | | ... | throughput test.
119 | | [Tags] | 9000B | 1T1C | STHREAD
121 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
122 | | wt=1 | rxq=1 | framesize=${9000}
124 | tc04-IMIX-1t1c-ethip4-ip4base-ipolicemarkbase-mrr
126 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 1 thread, 1 \
127 | | ... | phy core, 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)
132 | | [Tags] | IMIX | 1T1C | STHREAD
134 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
135 | | wt=1 | rxq=1 | framesize=IMIX_v4_1
137 | tc05-64B-2t2c-ethip4-ip4base-ipolicemarkbase-mrr
139 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
140 | | ... | phy cores, 1 receive queue per NIC port.
141 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
142 | | ... | throughput test.
144 | | [Tags] | 64B | 2T2C | MTHREAD
146 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
147 | | wt=2 | rxq=1 | framesize=${64}
149 | tc06-1518B-2t2c-ethip4-ip4base-ipolicemarkbase-mrr
151 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
152 | | ... | phy cores, 1 receive queue per NIC port.
153 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
154 | | ... | throughput test.
156 | | [Tags] | 1518B | 2T2C | MTHREAD
158 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
159 | | wt=2 | rxq=1 | framesize=${1518}
161 | tc07-9000B-2t2c-ethip4-ip4base-ipolicemarkbase-mrr
163 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
164 | | ... | phy cores, 1 receive queue per NIC port.
165 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
166 | | ... | throughput test.
168 | | [Tags] | 9000B | 2T2C | MTHREAD
170 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
171 | | wt=2 | rxq=1 | framesize=${9000}
173 | tc08-IMIX-2t2c-ethip4-ip4base-ipolicemarkbase-mrr
175 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threada, 2 \
176 | | ... | phy cores, 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)
181 | | [Tags] | IMIX | 2T2C | MTHREAD
183 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
184 | | wt=2 | rxq=1 | framesize=IMIX_v4_1
186 | tc09-64B-4t4c-ethip4-ip4base-ipolicemarkbase-mrr
188 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 threads, 4 \
189 | | ... | phy cores, 2 receive queues per NIC port.
190 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
191 | | ... | throughput test.
193 | | [Tags] | 64B | 4T4C | MTHREAD
195 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
196 | | wt=4 | rxq=2 | framesize=${64}
198 | tc10-1518B-4t4c-ethip4-ip4base-ipolicemarkbase-mrr
200 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 threads, 4 \
201 | | ... | phy cores, 2 receive queues per NIC port.
202 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
203 | | ... | throughput test.
205 | | [Tags] | 1518B | 4T4C | MTHREAD
207 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
208 | | wt=4 | rxq=2 | framesize=${1518}
210 | tc11-9000B-4t4c-ethip4-ip4base-ipolicemarkbase-mrr
212 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 threads, 4 \
213 | | ... | phy cores, 2 receive queues per NIC port.
214 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
215 | | ... | throughput test.
217 | | [Tags] | 9000B | 4T4C | MTHREAD
219 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
220 | | wt=4 | rxq=2 | framesize=${9000}
222 | tc12-IMIX-4t4c-ethip4-ip4base-ipolicemarkbase-mrr
224 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 threada, 4 \
225 | | ... | phy cores, 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)
230 | | [Tags] | IMIX | 4T4C | MTHREAD
232 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
233 | | wt=4 | rxq=2 | framesize=IMIX_v4_1