9f72b465e8a6ea7c7a8c11be6def50e73ab9d0ee
[csit.git] / tests / vpp / perf / ip4 / 10ge2p1x520-ethip4-ip4base-copwhtlistbase-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.Cop
17 | ...
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | MRR
19 | ... | NIC_Intel-X520-DA2 | ETH | IP4FWD | FEATURE | COPWHLIST
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 whitelist 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, two static IPv4 /24 routes and IPv4 COP security whitelist
36 | ... | ingress /24 filter entries applied on links TG - DUT1 and DUT2 - TG.
37 | ... | DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
38 | ... | *[Ver] TG verification:* In MaxReceivedRate test 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, IPv4 header
43 | ... | with IP protocol=61 and static payload. MAC addresses are matching MAC
44 | ... | addresses of the TG node interfaces.
45 | ... | *[Ref] Applicable standard specifications:* RFC2544.
46
47 *** Variables ***
48 # X520-DA2 bandwidth limit
49 | ${s_limit}= | ${10000000000}
50 # Traffic profile:
51 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src253
52
53 *** Keywords ***
54 | Check RR for ethip4-ip4base-copwhtlistbase
55 | | ...
56 | | [Documentation]
57 | | ... | [Cfg] DUT runs IPv4 routing config with ${wt} thread(s), ${wt}\
58 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
59 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
60 | | ... | trial throughput test.
61 | | ...
62 | | [Arguments] | ${wt} | ${rxq} | ${framesize}
63 | | ...
64 | | # Test Variables required for test execution and test teardown
65 | | Set Test Variable | ${framesize}
66 | | ${get_framesize}= | Get Frame Size | ${framesize}
67 | | ${max_rate}= | Calculate pps | ${s_limit} | ${get_framesize}
68 | | ...
69 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
70 | | And Add PCI devices to all DUTs
71 | | And Run Keyword If | ${get_framesize} < ${1522}
72 | | ... | Add no multi seg to all DUTs
73 | | And Apply startup configuration on all VPP DUTs
74 | | When Initialize IPv4 forwarding in 3-node circular topology
75 | | And Add Fib Table | ${dut1} | 1
76 | | And Vpp Route Add | ${dut1} | 10.10.10.0 | 24 | vrf=1 | local=${TRUE}
77 | | And Add Fib Table | ${dut2} | 1
78 | | And Vpp Route Add | ${dut2} | 20.20.20.0 | 24 | vrf=1 | local=${TRUE}
79 | | And COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
80 | | And COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
81 | | And COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
82 | | And COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
83 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
84 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
85
86 *** Test Cases ***
87 | tc01-64B-1t1c-ethip4-ip4base-copwhtlistbase-mrr
88 | | [Documentation]
89 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
90 | | ... | 1 phy core, 1 receive queue per NIC port.
91 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
92 | | ... | throughput test.
93 | | ...
94 | | [Tags] | 64B | 1C
95 | | ...
96 | | [Template] | Check RR for ethip4-ip4base-copwhtlistbase
97 | | wt=1 | rxq=1 | framesize=${64}
98
99 | tc02-1518B-1t1c-ethip4-ip4base-copwhtlistbase-mrr
100 | | [Documentation]
101 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
102 | | ... | 1 phy core, 1 receive queue per NIC port.
103 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
104 | | ... | throughput test.
105 | | ...
106 | | [Tags] | 1518B | 1C
107 | | ...
108 | | [Template] | Check RR for ethip4-ip4base-copwhtlistbase
109 | | wt=1 | rxq=1 | framesize=${1518}
110
111 | tc03-9000B-1t1c-ethip4-ip4base-copwhtlistbase-mrr
112 | | [Documentation]
113 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
114 | | ... | 1 phy core, 1 receive queue per NIC port.
115 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
116 | | ... | throughput test.
117 | | ...
118 | | [Tags] | 9000B | 1C
119 | | ...
120 | | [Template] | Check RR for ethip4-ip4base-copwhtlistbase
121 | | wt=1 | rxq=1 | framesize=${9000}
122
123 | tc04-IMIX-1t1c-ethip4-ip4base-copwhtlistbase-mrr
124 | | [Documentation]
125 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
126 | | ... | 1 phy core, 1 receive queue per NIC port.
127 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
128 | | ... | throughput test.
129 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
130 | | ...
131 | | [Tags] | IMIX | 1C
132 | | ...
133 | | [Template] | Check RR for ethip4-ip4base-copwhtlistbase
134 | | wt=1 | rxq=1 | framesize=IMIX_v4_1
135
136 | tc05-64B-2t2c-ethip4-ip4base-copwhtlistbase-mrr
137 | | [Documentation]
138 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
139 | | ... | 2 phy cores, 1 receive queue per NIC port.
140 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
141 | | ... | throughput test.
142 | | ...
143 | | [Tags] | 64B | 2C
144 | | ...
145 | | [Template] | Check RR for ethip4-ip4base-copwhtlistbase
146 | | wt=2 | rxq=1 | framesize=${64}
147
148 | tc06-1518B-2t2c-ethip4-ip4base-copwhtlistbase-mrr
149 | | [Documentation]
150 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
151 | | ... | 2 phy cores, 1 receive queue per NIC port.
152 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
153 | | ... | throughput test.
154 | | ...
155 | | [Tags] | 1518B | 2C
156 | | ...
157 | | [Template] | Check RR for ethip4-ip4base-copwhtlistbase
158 | | wt=2 | rxq=1 | framesize=${1518}
159
160 | tc07-9000B-2t2c-ethip4-ip4base-copwhtlistbase-mrr
161 | | [Documentation]
162 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
163 | | ... | 2 phy cores, 1 receive queue per NIC port.
164 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
165 | | ... | throughput test.
166 | | ...
167 | | [Tags] | 9000B | 2C
168 | | ...
169 | | [Template] | Check RR for ethip4-ip4base-copwhtlistbase
170 | | wt=2 | rxq=1 | framesize=${9000}
171
172 | tc08-IMIX-2t2c-ethip4-ip4base-copwhtlistbase-mrr
173 | | [Documentation]
174 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
175 | | ... | 2 phy cores, 1 receive queue per NIC port.
176 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
177 | | ... | throughput test.
178 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
179 | | ...
180 | | [Tags] | IMIX | 2C
181 | | ...
182 | | [Template] | Check RR for ethip4-ip4base-copwhtlistbase
183 | | wt=2 | rxq=1 | framesize=IMIX_v4_1
184
185 | tc09-64B-4t4c-ethip4-ip4base-copwhtlistbase-mrr
186 | | [Documentation]
187 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
188 | | ... | 4 phy cores, 2 receive queues per NIC port.
189 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
190 | | ... | throughput test.
191 | | ...
192 | | [Tags] | 64B | 4C
193 | | ...
194 | | [Template] | Check RR for ethip4-ip4base-copwhtlistbase
195 | | wt=4 | rxq=2 | framesize=${64}
196
197 | tc10-1518B-4t4c-ethip4-ip4base-copwhtlistbase-mrr
198 | | [Documentation]
199 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
200 | | ... | 4 phy cores, 2 receive queues per NIC port.
201 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
202 | | ... | throughput test.
203 | | ...
204 | | [Tags] | 1518B | 4C
205 | | ...
206 | | [Template] | Check RR for ethip4-ip4base-copwhtlistbase
207 | | wt=4 | rxq=2 | framesize=${1518}
208
209 | tc11-9000B-4t4c-ethip4-ip4base-copwhtlistbase-mrr
210 | | [Documentation]
211 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
212 | | ... | 4 phy cores, 2 receive queues per NIC port.
213 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
214 | | ... | throughput test.
215 | | ...
216 | | [Tags] | 9000B | 4C
217 | | ...
218 | | [Template] | Check RR for ethip4-ip4base-copwhtlistbase
219 | | wt=4 | rxq=2 | framesize=${9000}
220
221 | tc12-IMIX-4t4c-ethip4-ip4base-copwhtlistbase-mrr
222 | | [Documentation]
223 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
224 | | ... | 4 phy cores, 2 receive queues per NIC port.
225 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
226 | | ... | throughput test.
227 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
228 | | ...
229 | | [Tags] | IMIX | 4C
230 | | ...
231 | | [Template] | Check RR for ethip4-ip4base-copwhtlistbase
232 | | wt=4 | rxq=2 | framesize=IMIX_v4_1