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