CSIT-1178: Prepare for bursty MRR
[csit.git] / tests / vpp / perf / ip6 / 10ge2p1x520-ethip6-ip6scale200k-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 | IP6FWD | SCALE | FIB_200K
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 | ...
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 2x100k static IPv6 /64 route entries. DUT1 and DUT2 tested
35 | ... | with 2p10GE NIC X520 Niantic by Intel.
36 | ... | *[Ver] TG verification:* In MaxReceivedRate tests 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, 100k flows per flow-group) with all packets
41 | ... | containing Ethernet header, IPv6 header withq IP and static payload.
42 | ... | MAC addresses are matching MAC addresses of the TG node interfaces.
43 | ... | Incrementing of IP.dst (IPv6 destination address) field is applied to
44 | ... | both streams.
45 | ... | *[Ref] Applicable standard specifications:* RFC2544.
46
47 *** Variables ***
48 # X520-DA2 bandwidth limit
49 | ${s_limit} | ${10000000000}
50 | ${rts_per_flow}= | ${100000}
51 # Traffic profile:
52 | ${traffic_profile} | trex-sl-3n-ethip6-ip6dst${rts_per_flow}
53
54 *** Keywords ***
55 | Check RR for ip6base-ip6scale
56 | | [Documentation]
57 | | ... | [Cfg] DUT runs IPv6 routing config with ${wt} \
58 | | ... | thread(s), ${wt} 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] | ${framesize} | ${wt} | ${rxq}
63 | | ...
64 | | # Test Variables required for 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 IPv6 forwarding with scaling in 3-node circular topology
75 | | ... | ${rts_per_flow}
76 | | Then Traffic should pass with maximum rate
77 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
78
79 *** Test Cases ***
80 | tc01-78B-1t1c-ethip6-ip6base-ip6scale200k-mrr
81 | | [Documentation]
82 | | ... | [Cfg] DUT runs IPv6 routing config with \
83 | | ... | 1 phy core, 1 receive queue per NIC port.
84 | | ... | [Ver] Measure MaxReceivedRate for 78B frames using single trial\
85 | | ... | throughput test.
86 | | ...
87 | | [Tags] | 78B | 1C
88 | | ...
89 | | [Template] | Check RR for ip6base-ip6scale
90 | | wt=1 | rxq=1 | framesize=${78}
91
92 | tc02-1518B-1t1c-ethip6-ip6base-ip6scale200k-mrr
93 | | [Documentation]
94 | | ... | [Cfg] DUT runs IPv6 routing config with \
95 | | ... | 1 phy core, 1 receive queue per NIC port.
96 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
97 | | ... | throughput test.
98 | | ...
99 | | [Tags] | 1518B | 1C
100 | | ...
101 | | [Template] | Check RR for ip6base-ip6scale
102 | | wt=1 | rxq=1 | framesize=${1518}
103
104 | tc03-9000B-1t1c-ethip6-ip6base-ip6scale200k-mrr
105 | | [Documentation]
106 | | ... | [Cfg] DUT runs IPv6 routing config with \
107 | | ... | 1 phy core, 1 receive queue per NIC port.
108 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
109 | | ... | throughput test.
110 | | ...
111 | | [Tags] | 9000B | 1C
112 | | ...
113 | | [Template] | Check RR for ip6base-ip6scale
114 | | wt=1 | rxq=1 | framesize=${9000}
115
116 | tc04-IMIX-1t1c-ethip6-ip6base-ip6scale200k-mrr
117 | | [Documentation]
118 | | ... | [Cfg] DUT runs IPv6 routing config with \
119 | | ... | 1 phy core, 1 receive queue per NIC port.
120 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
121 | | ... | throughput test.
122 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
123 | | ...
124 | | [Tags] | IMIX | 1C
125 | | ...
126 | | [Template] | Check RR for ip6base-ip6scale
127 | | wt=1 | rxq=1 | framesize=IMIX_v4_1
128
129 | tc05-78B-2t2c-ethip6-ip6base-ip6scale200k-mrr
130 | | [Documentation]
131 | | ... | [Cfg] DUT runs IPv6 routing config with \
132 | | ... | 2 phy cores, 1 receive queue per NIC port.
133 | | ... | [Ver] Measure MaxReceivedRate for 78B frames using single trial\
134 | | ... | throughput test.
135 | | ...
136 | | [Tags] | 78B | 2C
137 | | ...
138 | | [Template] | Check RR for ip6base-ip6scale
139 | | wt=2 | rxq=1 | framesize=${78}
140
141 | tc06-1518B-2t2c-ethip6-ip6base-ip6scale200k-mrr
142 | | [Documentation]
143 | | ... | [Cfg] DUT runs IPv6 routing config with \
144 | | ... | 2 phy cores, 1 receive queue per NIC port.
145 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
146 | | ... | throughput test.
147 | | ...
148 | | [Tags] | 1518B | 2C
149 | | ...
150 | | [Template] | Check RR for ip6base-ip6scale
151 | | wt=2 | rxq=1 | framesize=${1518}
152
153 | tc07-9000B-2t2c-ethip6-ip6base-ip6scale200k-mrr
154 | | [Documentation]
155 | | ... | [Cfg] DUT runs IPv6 routing config with \
156 | | ... | 2 phy cores, 1 receive queue per NIC port.
157 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
158 | | ... | throughput test.
159 | | ...
160 | | [Tags] | 9000B | 2C
161 | | ...
162 | | [Template] | Check RR for ip6base-ip6scale
163 | | wt=2 | rxq=1 | framesize=${9000}
164
165 | tc08-IMIX-2t2c-ethip6-ip6base-ip6scale200k-mrr
166 | | [Documentation]
167 | | ... | [Cfg] DUT runs IPv6 routing config with \
168 | | ... | 2 phy cores, 1 receive queue per NIC port.
169 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
170 | | ... | throughput test.
171 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
172 | | ...
173 | | [Tags] | IMIX | 2C
174 | | ...
175 | | [Template] | Check RR for ip6base-ip6scale
176 | | wt=2 | rxq=1 | framesize=IMIX_v4_1
177
178 | tc09-78B-4t4c-ethip6-ip6base-ip6scale200k-mrr
179 | | [Documentation]
180 | | ... | [Cfg] DUT runs IPv6 routing config with \
181 | | ... | 4 phy cores, 2 receive queue per NIC port.
182 | | ... | [Ver] Measure MaxReceivedRate for 78B frames using single trial\
183 | | ... | throughput test.
184 | | ...
185 | | [Tags] | 78B | 4C
186 | | ...
187 | | [Template] | Check RR for ip6base-ip6scale
188 | | wt=4 | rxq=2 | framesize=${78}
189
190 | tc10-1518B-4t4c-ethip6-ip6base-ip6scale200k-mrr
191 | | [Documentation]
192 | | ... | [Cfg] DUT runs IPv6 routing config with \
193 | | ... | 4 phy cores, 2 receive queue per NIC port.
194 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
195 | | ... | throughput test.
196 | | ...
197 | | [Tags] | 1518B | 4C
198 | | ...
199 | | [Template] | Check RR for ip6base-ip6scale
200 | | wt=4 | rxq=2 | framesize=${1518}
201
202 | tc11-9000B-4t4c-ethip6-ip6base-ip6scale200k-mrr
203 | | [Documentation]
204 | | ... | [Cfg] DUT runs IPv6 routing config with \
205 | | ... | 4 phy cores, 2 receive queue per NIC port.
206 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
207 | | ... | throughput test.
208 | | ...
209 | | [Tags] | 9000B | 4C
210 | | ...
211 | | [Template] | Check RR for ip6base-ip6scale
212 | | wt=4 | rxq=2 | framesize=${9000}
213
214 | tc12-IMIX-4t4c-ethip6-ip6base-ip6scale200k-mrr
215 | | [Documentation]
216 | | ... | [Cfg] DUT runs IPv6 routing config with \
217 | | ... | 4 phy cores, 2 receive queue per NIC port.
218 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
219 | | ... | throughput test.
220 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
221 | | ...
222 | | [Tags] | IMIX | 4C
223 | | ...
224 | | [Template] | Check RR for ip6base-ip6scale
225 | | wt=4 | rxq=2 | framesize=IMIX_v4_1