CSIT-1142 Change thread perf test TAGs
[csit.git] / tests / vpp / perf / srv6 / 10ge2p1x520-ethip6srhip6-ip6base-srv6proxy-masq-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 | SRv6 | IP6FWD | FEATURE | SRv6_PROXY
19 | ... | SRv6_PROXY_MASQ | MEMIF | LXC
20 | ...
21 | Suite Setup | Run Keywords
22 | ... | Set up 3-node performance topology with DUT's NIC model | L3
23 | ... | Intel-X520-DA2
24 | ... | AND | Set up performance test suite with MEMIF
25 | ... | AND | Set up performance test suite with Masquerading SRv6 proxy
26 | ... | AND | Set up performance topology with containers
27 | ...
28 | Suite Teardown | Tear down 3-node performance topology with container
29 | ...
30 | Test Setup | Set up performance test
31 | ...
32 | Test Teardown | Tear down mrr test with SRv6 with encapsulation
33 | ...
34 | Documentation | *Raw results for Segment routing over IPv6 dataplane with\
35 | ... | Masquerading SRv6 proxy test cases*
36 | ...
37 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
38 | ... | with single links between nodes.
39 | ... | *[Enc] Packet Encapsulations:* Eth-IPv6-SRH-IPv6 on DUT1-DUT2, DUTn-LXC\
40 | ... | and DUTn->TG, Eth-IPv6 on TG->DUTn for IPv6 routing over SRv6.
41 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv6\
42 | ... | routing and static route, SR policy and steering policy for one\
43 | ... | direction and one SR behaviour (function) - End.AM - for other\
44 | ... | direction. DUT1 and DUT2 are tested with 2p10GE NIC X520 Niantic\
45 | ... | by Intel.
46 | ... | *[Ver] TG verification:* In MaxReceivedRate tests TG sends traffic\
47 | ... | at line rate and reports total received/sent packets over trial period.\
48 | ... | Test packets are generated by TG on\
49 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups\
50 | ... | (flow-group per direction, 253 flows per flow-group) with\
51 | ... | all packets containing Ethernet header,IPv6 header with static payload.\
52 | ... | MAC addresses are matching MAC addresses of the TG node interfaces.
53 | ... | *[Ref] Applicable standard specifications:* SRv6 Network Programming -\
54 | ... | draft 3 and Segment Routing for Service Chaining - internet draft 01.
55
56 *** Variables ***
57 # X520-DA2 bandwidth limit
58 | ${s_limit}= | ${10000000000}
59 # SIDs
60 | ${dut1_sid1}= | 2002:1::
61 | ${dut1_sid2}= | 2003:2::
62 | ${dut1_bsid}= | 2002:1::1
63 | ${dut2_sid1}= | 2002:2::
64 | ${dut2_sid2}= | 2003:1::
65 | ${dut2_bsid}= | 2003:1::1
66 | ${out_sid1_1}= | 2002:3::
67 | ${out_sid1_2}= | 2002:4::
68 | ${out_sid2_1}= | 2003:3::
69 | ${out_sid2_2}= | 2003:4::
70 | ${sid_prefix}= | ${64}
71 # IP settings
72 | ${tg_if1_ip6_subnet}= | 2001:1::
73 | ${tg_if2_ip6_subnet}= | 2001:2::
74 | ${dut1_if1_ip6}= | 2001:1::1
75 | ${dut1_if2_ip6}= | 2001:3::1
76 | ${dut1-memif-1-if1_ip6}= | 3001:1::1
77 | ${dut1-memif-1-if2_ip6}= | 3001:1::2
78 | ${dut1_nh}= | 4002::
79 | ${dut2_if1_ip6}= | 2001:3::2
80 | ${dut2_if2_ip6}= | 2001:2::1
81 | ${dut2-memif-1-if1_ip6}= | 3002:1::1
82 | ${dut2-memif-1-if2_ip6}= | 3002:1::2
83 | ${dut2_nh}= | 4001::
84 | ${prefix}= | ${64}
85 # outer IPv6 header + SRH with 3 SIDs: 40+(8+3*16)B
86 | ${srv6_overhead_3sids}= | ${96}
87 # Traffic profile:
88 | ${traffic_profile}= | trex-sl-3n-ethip6-ip6src253
89 # LXC container
90 | ${container_count}= | ${1}
91 | ${container_engine}= | LXC
92 | ${container_image}= | ${EMPTY}
93 | ${container_install_dkms}= | ${FALSE}
94 | ${container_chain_topology}= | chain
95 # CPU settings
96 | ${system_cpus}= | ${1}
97 | ${vpp_cpus}= | ${5}
98 | ${container_cpus}= | ${5}
99
100 *** Keywords ***
101 | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
102 | | ...
103 | | [Arguments] | ${wt} | ${rxq} | ${framesize}
104 | | ...
105 | | # Test Variables required for test teardown
106 | | Set Test Variable | ${framesize}
107 | | Set Test Variable | ${rxq}
108 | | ${get_framesize}= | Get Frame Size | ${framesize}
109 | | ${max_rate}= | Calculate pps | ${s_limit}
110 | | ... | ${get_framesize} + ${srv6_overhead_3sids}
111 | | ...
112 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
113 | | And Add PCI devices to all DUTs
114 | | And Run Keyword If | ${get_framesize} + ${srv6_overhead_3sids} < ${1522}
115 | | ... | Add no multi seg to all DUTs
116 | | And Apply startup configuration on all VPP DUTs
117 | | When Initialize IPv6 forwarding over SRv6 with endpoint to SR-unaware Service Function via 'masquerading' behaviour in 3-node circular topology
118 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
119 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
120
121 *** Test Cases ***
122 | tc01-78B-1t1c-ethip6srhip6-ip6base-srv6proxy-masq-mrr
123 | | [Documentation]
124 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
125 | | ... | 1 phy core, 1 receive queue per NIC port.
126 | | ... | [Ver] Measure MaxReceivedRate for 78B frames using single trial\
127 | | ... | throughput test.
128 | | ...
129 | | [Tags] | 78B | 1C
130 | | ...
131 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
132 | | wt=1 | rxq=1 | framesize=${78}
133
134 | tc02-1518B-1t1c-ethip6srhip6-ip6base-srv6proxy-masq-mrr
135 | | [Documentation]
136 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
137 | | ... | 1 phy core, 1 receive queue per NIC port.
138 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
139 | | ... | throughput test.
140 | | ...
141 | | [Tags] | 1518B | 1C
142 | | ...
143 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
144 | | wt=1 | rxq=1 | framesize=${1518}
145
146 | tc03-9000B-1t1c-ethip6srhip6-ip6base-srv6proxy-masq-mrr
147 | | [Documentation]
148 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
149 | | ... | 1 phy core, 1 receive queue per NIC port.
150 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
151 | | ... | throughput test.
152 | | ...
153 | | [Tags] | 9000B | 1C
154 | | ...
155 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
156 | | wt=1 | rxq=1 | framesize=${9000}
157
158 | tc04-IMIX-1t1c-ethip6srhip6-ip6base-srv6proxy-masq-mrr
159 | | [Documentation]
160 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
161 | | ... | 1 phy core, 1 receive queue per NIC port.
162 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
163 | | ... | throughput test.
164 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
165 | | ...
166 | | [Tags] | IMIX | 1C
167 | | ...
168 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
169 | | wt=1 | rxq=1 | framesize=IMIX_v4_1
170
171 | tc05-78B-2t2c-ethip6srhip6-ip6base-srv6proxy-masq-mrr
172 | | [Documentation]
173 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
174 | | ... | 2 phy cores, 1 receive queue per NIC port.
175 | | ... | [Ver] Measure MaxReceivedRate for 78B frames using single trial\
176 | | ... | throughput test.
177 | | ...
178 | | [Tags] | 78B | 2C
179 | | ...
180 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
181 | | wt=2 | rxq=1 | framesize=${78}
182
183 | tc06-1518B-2t2c-ethip6srhip6-ip6base-srv6proxy-masq-mrr
184 | | [Documentation]
185 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
186 | | ... | 2 phy cores, 1 receive queue per NIC port.
187 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
188 | | ... | throughput test.
189 | | ...
190 | | [Tags] | 1518B | 2C
191 | | ...
192 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
193 | | wt=2 | rxq=1 | framesize=${1518}
194
195 | tc07-9000B-2t2c-ethip6srhip6-ip6base-srv6proxy-masq-mrr
196 | | [Documentation]
197 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
198 | | ... | 2 phy cores, 1 receive queue per NIC port.
199 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
200 | | ... | throughput test.
201 | | ...
202 | | [Tags] | 9000B | 2C
203 | | ...
204 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
205 | | wt=2 | rxq=1 | framesize=${9000}
206
207 | tc08-IMIX-2t2c-ethip6srhip6-ip6base-srv6proxy-masq-mrr
208 | | [Documentation]
209 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
210 | | ... | 2 phy cores, 1 receive queue per NIC port.
211 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
212 | | ... | throughput test.
213 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
214 | | ...
215 | | [Tags] | IMIX | 2C
216 | | ...
217 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
218 | | wt=2 | rxq=1 | framesize=IMIX_v4_1
219
220 | tc09-78B-4t4c-ethip6srhip6-ip6base-srv6proxy-masq-mrr
221 | | [Documentation]
222 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
223 | | ... | 4 phy cores, 2 receive queues per NIC port.
224 | | ... | [Ver] Measure MaxReceivedRate for 78B frames using single trial\
225 | | ... | throughput test.
226 | | ...
227 | | [Tags] | 78B | 4C
228 | | ...
229 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
230 | | wt=4 | rxq=2 | framesize=${78}
231
232 | tc10-1518B-4t4c-ethip6srhip6-ip6base-srv6proxy-masq-mrr
233 | | [Documentation]
234 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
235 | | ... | 4 phy cores, 2 receive queues per NIC port.
236 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
237 | | ... | throughput test.
238 | | ...
239 | | [Tags] | 1518B | 4C
240 | | ...
241 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
242 | | wt=4 | rxq=2 | framesize=${1518}
243
244 | tc11-9000B-4t4c-ethip6srhip6-ip6base-srv6proxy-masq-mrr
245 | | [Documentation]
246 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
247 | | ... | 4 phy cores, 2 receive queues per NIC port.
248 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
249 | | ... | throughput test.
250 | | ...
251 | | [Tags] | 9000B | 4C
252 | | ...
253 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
254 | | wt=4 | rxq=2 | framesize=${9000}
255
256 | tc12-IMIX-4t4c-ethip6srhip6-ip6base-srv6proxy-masq-mrr
257 | | [Documentation]
258 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
259 | | ... | 4 phy cores, 2 receive queues per NIC port.
260 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
261 | | ... | throughput test.
262 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
263 | | ...
264 | | [Tags] | IMIX | 4C
265 | | ...
266 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
267 | | wt=4 | rxq=2 | framesize=IMIX_v4_1