FIX: TAG processing
[csit.git] / tests / vpp / perf / ip4 / 10ge2p1x520-ethip4-ip4base-ipolicemarkbase-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 | Library | resources.libraries.python.Policer
17 | ...
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | MRR
19 | ... | NIC_Intel-X520-DA2 | IP4FWD | BASE | POLICE_MARK
20 | ...
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
24 | ...
25 | Test Setup | Set up performance test
26 | ...
27 | Test Teardown | Tear down performance mrr test
28 | ...
29 | Documentation | *Raw results IPv4 policer 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 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.
46
47 *** Variables ***
48 # X520-DA2 bandwidth limit
49 | ${s_limit}= | ${10000000000}
50 | ${cir}= | ${100}
51 | ${eir}= | ${150}
52 # Traffic profile:
53 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src253
54
55 *** Keywords ***
56 | Check RR for ethip4-ip4base-ipolicemarkbase
57 | | ...
58 | | [Documentation]
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.
63 | | ...
64 | | [Arguments] | ${wt} | ${rxq} | ${framesize}
65 | | ...
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}
76 | | ...
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}
86
87 *** Test Cases ***
88 | tc01-64B-1t1c-ethip4-ip4base-ipolicemarkbase-mrr
89 | | [Documentation]
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.
94 | | ...
95 | | [Tags] | 64B | 1T1C | STHREAD
96 | | ...
97 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
98 | | wt=1 | rxq=1 | framesize=${64}
99
100 | tc02-1518B-1t1c-ethip4-ip4base-ipolicemarkbase-mrr
101 | | [Documentation]
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.
106 | | ...
107 | | [Tags] | 1518B | 1T1C | STHREAD
108 | | ...
109 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
110 | | wt=1 | rxq=1 | framesize=${1518}
111
112 | tc03-9000B-1t1c-ethip4-ip4base-ipolicemarkbase-mrr
113 | | [Documentation]
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.
118 | | ...
119 | | [Tags] | 9000B | 1T1C | STHREAD
120 | | ...
121 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
122 | | wt=1 | rxq=1 | framesize=${9000}
123
124 | tc04-IMIX-1t1c-ethip4-ip4base-ipolicemarkbase-mrr
125 | | [Documentation]
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)
131 | | ...
132 | | [Tags] | IMIX | 1T1C | STHREAD
133 | | ...
134 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
135 | | wt=1 | rxq=1 | framesize=IMIX_v4_1
136
137 | tc05-64B-2t2c-ethip4-ip4base-ipolicemarkbase-mrr
138 | | [Documentation]
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.
143 | | ...
144 | | [Tags] | 64B | 2T2C | MTHREAD
145 | | ...
146 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
147 | | wt=2 | rxq=1 | framesize=${64}
148
149 | tc06-1518B-2t2c-ethip4-ip4base-ipolicemarkbase-mrr
150 | | [Documentation]
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.
155 | | ...
156 | | [Tags] | 1518B | 2T2C | MTHREAD
157 | | ...
158 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
159 | | wt=2 | rxq=1 | framesize=${1518}
160
161 | tc07-9000B-2t2c-ethip4-ip4base-ipolicemarkbase-mrr
162 | | [Documentation]
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.
167 | | ...
168 | | [Tags] | 9000B | 2T2C | MTHREAD
169 | | ...
170 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
171 | | wt=2 | rxq=1 | framesize=${9000}
172
173 | tc08-IMIX-2t2c-ethip4-ip4base-ipolicemarkbase-mrr
174 | | [Documentation]
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)
180 | | ...
181 | | [Tags] | IMIX | 2T2C | MTHREAD
182 | | ...
183 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
184 | | wt=2 | rxq=1 | framesize=IMIX_v4_1
185
186 | tc09-64B-4t4c-ethip4-ip4base-ipolicemarkbase-mrr
187 | | [Documentation]
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.
192 | | ...
193 | | [Tags] | 64B | 4T4C | MTHREAD
194 | | ...
195 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
196 | | wt=4 | rxq=2 | framesize=${64}
197
198 | tc10-1518B-4t4c-ethip4-ip4base-ipolicemarkbase-mrr
199 | | [Documentation]
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.
204 | | ...
205 | | [Tags] | 1518B | 4T4C | MTHREAD
206 | | ...
207 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
208 | | wt=4 | rxq=2 | framesize=${1518}
209
210 | tc11-9000B-4t4c-ethip4-ip4base-ipolicemarkbase-mrr
211 | | [Documentation]
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.
216 | | ...
217 | | [Tags] | 9000B | 4T4C | MTHREAD
218 | | ...
219 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
220 | | wt=4 | rxq=2 | framesize=${9000}
221
222 | tc12-IMIX-4t4c-ethip4-ip4base-ipolicemarkbase-mrr
223 | | [Documentation]
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)
229 | | ...
230 | | [Tags] | IMIX | 4T4C | MTHREAD
231 | | ...
232 | | [Template] | Check RR for ethip4-ip4base-ipolicemarkbase
233 | | wt=4 | rxq=2 | framesize=IMIX_v4_1