CSIT-1087: Add SRv6 MRR tests
[csit.git] / tests / vpp / perf / srv6 / 10ge2p1x520-ethip6ip6-ip6base-srv6enc1sid-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 | FEATURE | SRv6
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 mrr test with SRv6 with encapsulation
27 | ...
28 | Documentation | *Raw results for Segment routing over IPv6 dataplane with\
29 | ... | one SID (SRH not inserted) 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-IPv6-IPv6 on DUT1-DUT2, Eth-IPv6 on\
34 | ... | TG-DUTn for IPv6 routing over SRv6.
35 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv6\
36 | ... | routing and static route, SR policy and steering policy for one\
37 | ... | direction and one SR behaviour (function) - End - for other direction.\
38 | ... | DUT1 and DUT2 are tested with 2p10GE NIC X520 Niantic by Intel.
39 | ... | *[Ver] TG verification:* In MaxReceivedRate tests TG sends traffic\
40 | ... | at line rate and reports total received/sent packets over trial period.\
41 | ... | Test packets are generated by TG on\
42 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups\
43 | ... | (flow-group per direction, 253 flows per flow-group) with\
44 | ... | all packets containing Ethernet header,IPv6 header with static payload.\
45 | ... | MAC addresses are matching MAC addresses of the TG node interfaces.
46 | ... | *[Ref] Applicable standard specifications:* SRv6 Network Programming -\
47 | ... | draft 3.
48
49 *** Variables ***
50 # X520-DA2 bandwidth limit
51 | ${s_limit}= | ${10000000000}
52 # SIDs
53 | ${dut1_sid1}= | 2002:1::
54 | ${dut1_sid2}= | 2003:2::
55 | ${dut1_bsid}= | 2002:1::1
56 | ${dut2_sid1}= | 2002:2::
57 | ${dut2_sid2}= | 2003:1::
58 | ${dut2_bsid}= | 2002:2::1
59 | ${sid_prefix}= | ${64}
60 # IP settings
61 | ${tg_if1_ip6_subnet}= | 2001:1::
62 | ${tg_if2_ip6_subnet}= | 2001:2::
63 | ${dst_addr_nr}= | ${1}
64 | ${dut1_if1_ip6}= | 2001:1::1
65 | ${dut1_if2_ip6}= | 2001:3::1
66 | ${dut2_if1_ip6}= | 2001:3::2
67 | ${dut2_if2_ip6}= | 2001:2::1
68 | ${prefix}= | ${64}
69 # outer IPv6 header: 40B
70 | ${srv6_overhead_nosrh}= | ${40}
71 # Traffic profile:
72 | ${traffic_profile}= | trex-sl-3n-ethip6-ip6src253
73
74 *** Keywords ***
75 | Check RR for IPv6 routing over SRv6
76 | | ...
77 | | [Arguments] | ${wt} | ${rxq} | ${framesize}
78 | | ...
79 | | # Test Variables required for test teardown
80 | | Set Test Variable | ${framesize}
81 | | ${get_framesize}= | Get Frame Size | ${framesize}
82 | | ${max_rate}= | Calculate pps | ${s_limit}
83 | | ... | ${get_framesize} + ${srv6_overhead_nosrh}
84 | | ...
85 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
86 | | And Add PCI devices to DUTs in 3-node single link topology
87 | | And Run Keyword If | ${get_framesize} < ${1522} | Add no multi seg to all DUTs
88 | | And Apply startup configuration on all VPP DUTs
89 | | When Initialize IPv6 forwarding over SRv6 with encapsulation with '1' x SID 'with' decapsulation in 3-node circular topology
90 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
91 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
92
93 *** Test Cases ***
94 | tc01-78B-1t1c-ethip6ip6-ip6base-srv6enc1sid-mrr
95 | | [Documentation]
96 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
97 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
98 | | ... | [Ver] Measure MaxReceivedRate for 78B frames using single trial\
99 | | ... | throughput test.
100 | | ...
101 | | [Tags] | 78B | 1T1C | STHREAD
102 | | ...
103 | | [Template] | Check RR for IPv6 routing over SRv6
104 | | wt=1 | rxq=1 | framesize=${78}
105
106 | tc02-1518B-1t1c-ethip6ip6-ip6base-srv6enc1sid-mrr
107 | | [Documentation]
108 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
109 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
110 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
111 | | ... | throughput test.
112 | | ...
113 | | [Tags] | 1518B | 1T1C | STHREAD
114 | | ...
115 | | [Template] | Check RR for IPv6 routing over SRv6
116 | | wt=1 | rxq=1 | framesize=${1518}
117
118 | tc03-9000B-1t1c-ethip6ip6-ip6base-srv6enc1sid-mrr
119 | | [Documentation]
120 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
121 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
122 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
123 | | ... | throughput test.
124 | | ...
125 | | [Tags] | 9000B | 1T1C | STHREAD
126 | | ...
127 | | [Template] | Check RR for IPv6 routing over SRv6
128 | | wt=1 | rxq=1 | framesize=${9000}
129
130 | tc04-IMIX-1t1c-ethip6ip6-ip6base-srv6enc1sid-mrr
131 | | [Documentation]
132 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
133 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
134 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
135 | | ... | throughput test.
136 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
137 | | ...
138 | | [Tags] | IMIX | 1T1C | STHREAD
139 | | ...
140 | | [Template] | Check RR for IPv6 routing over SRv6
141 | | wt=1 | rxq=1 | framesize=IMIX_v4_1
142
143 | tc05-78B-2t2c-ethip6ip6-ip6base-srv6enc1sid-mrr
144 | | [Documentation]
145 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
146 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
147 | | ... | [Ver] Measure MaxReceivedRate for 78B frames using single trial\
148 | | ... | throughput test.
149 | | ...
150 | | [Tags] | 78B | 2T2C | MTHREAD
151 | | ...
152 | | [Template] | Check RR for IPv6 routing over SRv6
153 | | wt=2 | rxq=1 | framesize=${78}
154
155 | tc06-1518B-2t2c-ethip6ip6-ip6base-srv6enc1sid-mrr
156 | | [Documentation]
157 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
158 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
159 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
160 | | ... | throughput test.
161 | | ...
162 | | [Tags] | 1518B | 2T2C | MTHREAD
163 | | ...
164 | | [Template] | Check RR for IPv6 routing over SRv6
165 | | wt=2 | rxq=1 | framesize=${1518}
166
167 | tc07-9000B-2t2c-ethip6ip6-ip6base-srv6enc1sid-mrr
168 | | [Documentation]
169 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
170 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
171 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
172 | | ... | throughput test.
173 | | ...
174 | | [Tags] | 9000B | 2T2C | MTHREAD
175 | | ...
176 | | [Template] | Check RR for IPv6 routing over SRv6
177 | | wt=2 | rxq=1 | framesize=${9000}
178
179 | tc08-IMIX-2t2c-ethip6ip6-ip6base-srv6enc1sid-mrr
180 | | [Documentation]
181 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
182 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
183 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
184 | | ... | throughput test.
185 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
186 | | ...
187 | | [Tags] | IMIX | 2T2C | MTHREAD
188 | | ...
189 | | [Template] | Check RR for IPv6 routing over SRv6
190 | | wt=2 | rxq=1 | framesize=IMIX_v4_1
191
192 | tc09-78B-4t4c-ethip6ip6-ip6base-srv6enc1sid-mrr
193 | | [Documentation]
194 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
195 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
196 | | ... | [Ver] Measure MaxReceivedRate for 78B frames using single trial\
197 | | ... | throughput test.
198 | | ...
199 | | [Tags] | 78B | 4T4C | MTHREAD
200 | | ...
201 | | [Template] | Check RR for IPv6 routing over SRv6
202 | | wt=4 | rxq=2 | framesize=${78}
203
204 | tc10-1518B-4t4c-ethip6ip6-ip6base-srv6enc1sid-mrr
205 | | [Documentation]
206 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
207 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
208 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
209 | | ... | throughput test.
210 | | ...
211 | | [Tags] | 1518B | 4T4C | MTHREAD
212 | | ...
213 | | [Template] | Check RR for IPv6 routing over SRv6
214 | | wt=4 | rxq=2 | framesize=${1518}
215
216 | tc11-9000B-4t4c-ethip6ip6-ip6base-srv6enc1sid-mrr
217 | | [Documentation]
218 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
219 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
220 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
221 | | ... | throughput test.
222 | | ...
223 | | [Tags] | 9000B | 4T4C | MTHREAD
224 | | ...
225 | | [Template] | Check RR for IPv6 routing over SRv6
226 | | wt=4 | rxq=2 | framesize=${9000}
227
228 | tc12-IMIX-4t4c-ethip6ip6-ip6base-srv6enc1sid-mrr
229 | | [Documentation]
230 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
231 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
232 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
233 | | ... | throughput test.
234 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
235 | | ...
236 | | [Tags] | IMIX | 4T4C | MTHREAD
237 | | ...
238 | | [Template] | Check RR for IPv6 routing over SRv6
239 | | wt=4 | rxq=2 | framesize=IMIX_v4_1