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