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