CSIT-998: MRR tests
[csit.git] / tests / vpp / perf / ip6 / 10ge2p1x520-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-X520-DA2 | ETH | IP6FWD | BASE | IP6BASE
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 IPv6 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-IPv6 for IPv6 routing.
32 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv6
33 | ... | routing and two static IPv6 /64 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, IPv6 header and
40 | ... | static payload. MAC addresses are matching MAC addresses of the TG node
41 | ... | 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-ethip6-ip6src253
49
50 *** Keywords ***
51 | Check RR for ethip6-ip6base
52 | | [Documentation]
53 | | ... | [Cfg] DUT runs IPv6 routing config with ${wt} thread(s), ${wt}\
54 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
55 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
56 | | ... | trial throughput test.
57 | | ...
58 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
59 | | ...
60 | | # Test Variables required for test teardown
61 | | Set Test Variable | ${framesize}
62 | | ${get_framesize}= | Get Frame Size | ${framesize}
63 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
64 | | ...
65 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
66 | | And Add PCI devices to DUTs in 3-node single link topology
67 | | And Run Keyword If | ${get_framesize} < ${1522}
68 | | ... | Add no multi seg to all DUTs
69 | | And Apply startup configuration on all VPP DUTs
70 | | And Initialize IPv6 forwarding in 3-node circular topology
71 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
72 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
73
74 *** Test Cases ***
75 | tc01-78B-1t1c-ethip6-ip6base-mrr
76 | | [Documentation]
77 | | ... | [Cfg] DUT runs IPv6 routing config with 1 thread, 1 phy core,\
78 | | ... | 1 receive queue per NIC port.
79 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
80 | | ... | throughput test.
81 | | ...
82 | | [Tags] | 78B | 1T1C | STHREAD
83 | | ...
84 | | [Template] | Check RR for ethip6-ip6base
85 | | framesize=${78} | wt=1 | rxq=1
86
87 | tc02-1518B-1t1c-ethip6-ip6base-mrr
88 | | [Documentation]
89 | | ... | [Cfg] DUT runs IPv6 routing config with 1 thread, 1 phy core,\
90 | | ... | 1 receive queue per NIC port.
91 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
92 | | ... | trial throughput test.
93 | | ...
94 | | [Tags] | 1518B | 1T1C | STHREAD
95 | | ...
96 | | [Template] | Check RR for ethip6-ip6base
97 | | framesize=${1518} | wt=1 | rxq=1
98
99 | tc03-9000B-1t1c-ethip6-ip6base-mrr
100 | | [Documentation]
101 | | ... | [Cfg] DUT runs IPv6 routing config with 1 thread, 1 phy core,\
102 | | ... | 1 receive queue per NIC port.
103 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
104 | | ... | trial throughput test.
105 | | ...
106 | | [Tags] | 9000B | 1T1C | STHREAD
107 | | ...
108 | | [Template] | Check RR for ethip6-ip6base
109 | | framesize=${9000} | wt=1 | rxq=1
110
111 | tc04-IMIX-1t1c-ethip6-ip6base-mrr
112 | | [Documentation]
113 | | ... | [Cfg] DUT runs IPv6 routing config with \
114 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
115 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
116 | | ... | throughput test.
117 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
118 | | ...
119 | | [Tags] | IMIX | 1T1C | STHREAD
120 | | ...
121 | | [Template] | Check RR for ethip6-ip6base
122 | | wt=1 | rxq=1 | framesize=IMIX_v4_1
123
124 | tc05-78B-2t2c-ethip6-ip6base-mrr
125 | | [Documentation]
126 | | ... | [Cfg] DUT runs IPv6 routing config with 2 threads, 2 phy cores,\
127 | | ... | 1 receive queue per NIC port.
128 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
129 | | ... | throughput test.
130 | | ...
131 | | [Tags] | 78B | 2T2C | MTHREAD
132 | | ...
133 | | [Template] | Check RR for ethip6-ip6base
134 | | framesize=${78} | wt=2 | rxq=1
135
136 | tc06-1518B-2t2c-ethip6-ip6base-mrr
137 | | [Documentation]
138 | | ... | [Cfg] DUT runs IPv6 routing config with 2 threads, 2 phy cores,\
139 | | ... | 1 receive queue per NIC port.
140 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
141 | | ... | trial throughput test.
142 | | ...
143 | | [Tags] | 1518B | 2T2C | MTHREAD
144 | | ...
145 | | [Template] | Check RR for ethip6-ip6base
146 | | framesize=${1518} | wt=2 | rxq=1
147
148 | tc07-9000B-2t2c-ethip6-ip6base-mrr
149 | | [Documentation]
150 | | ... | [Cfg] DUT runs IPv6 routing config with 2 threads, 2 phy cores,\
151 | | ... | 1 receive queue per NIC port.
152 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
153 | | ... | trial throughput test.
154 | | ...
155 | | [Tags] | 9000B | 2T2C | MTHREAD
156 | | ...
157 | | [Template] | Check RR for ethip6-ip6base
158 | | framesize=${9000} | wt=2 | rxq=1
159
160 | tc08-IMIX-2t2c-ethip6-ip6base-mrr
161 | | [Documentation]
162 | | ... | [Cfg] DUT runs IPv6 routing config with \
163 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
164 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
165 | | ... | throughput test.
166 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
167 | | ...
168 | | [Tags] | IMIX | 2T2C | MTHREAD
169 | | ...
170 | | [Template] | Check RR for ethip6-ip6base
171 | | wt=2 | rxq=1 | framesize=IMIX_v4_1
172
173 | tc09-78B-4t4c-ethip6-ip6base-mrr
174 | | [Documentation]
175 | | ... | [Cfg] DUT runs IPv6 routing config with 4 threads, 4 phy cores,\
176 | | ... | 2 receive queues per NIC port.
177 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
178 | | ... | throughput test.
179 | | ...
180 | | [Tags] | 78B | 4T4C | MTHREAD
181 | | ...
182 | | [Template] | Check RR for ethip6-ip6base
183 | | framesize=${78} | wt=4 | rxq=2
184
185 | tc10-1518B-4t4c-ethip6-ip6base-mrr
186 | | [Documentation]
187 | | ... | [Cfg] DUT runs IPv6 routing config with 4 threads, 4 phy cores,\
188 | | ... | 2 receive queues per NIC port.
189 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
190 | | ... | trial throughput test.
191 | | ...
192 | | [Tags] | 1518B | 4T4C | MTHREAD
193 | | ...
194 | | [Template] | Check RR for ethip6-ip6base
195 | | framesize=${1518} | wt=4 | rxq=2
196
197 | tc11-9000B-4t4c-ethip6-ip6base-mrr
198 | | [Documentation]
199 | | ... | [Cfg] DUT runs IPv6 routing config with 4 threads, 4 phy cores,\
200 | | ... | 2 receive queues per NIC port.
201 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
202 | | ... | trial throughput test.
203 | | ...
204 | | [Tags] | 9000B | 4T4C | MTHREAD
205 | | ...
206 | | [Template] | Check RR for ethip6-ip6base
207 | | framesize=${9000} | wt=4 | rxq=2
208
209 | tc12-IMIX-4t4c-ethip6-ip6base-mrr
210 | | [Documentation]
211 | | ... | [Cfg] DUT runs IPv6 routing config with \
212 | | ... | 4 threads, 4 phy cores, 2 receive queue per NIC port.
213 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
214 | | ... | throughput test.
215 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
216 | | ...
217 | | [Tags] | IMIX | 4T4C | MTHREAD
218 | | ...
219 | | [Template] | Check RR for ethip6-ip6base
220 | | wt=4 | rxq=2 | framesize=IMIX_v4_1