2895b45f50059c67808b8ccdf908a706c1791dbe
[csit.git] / tests / vpp / perf / srv6 / 10ge2p1x520-ethip6srhip6-ip6base-srv6proxy-dyn-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_DYN | 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 Dynamic 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 | ... | Dynamic 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 and\
40 | ... | DUTn->TG, Eth-IPv6 on TG->DUTn and DUTn-LXC 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.AD - 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 # CPU settings
95 | ${system_cpus}= | ${1}
96 | ${vpp_cpus}= | ${5}
97 | ${container_cpus}= | ${5}
98
99 *** Keywords ***
100 | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour
101 | | ...
102 | | [Arguments] | ${wt} | ${rxq} | ${framesize}
103 | | ...
104 | | # Test Variables required for test teardown
105 | | Set Test Variable | ${framesize}
106 | | Set Test Variable | ${rxq}
107 | | ${get_framesize}= | Get Frame Size | ${framesize}
108 | | ${max_rate}= | Calculate pps | ${s_limit}
109 | | ... | ${get_framesize} + ${srv6_overhead_3sids}
110 | | ...
111 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
112 | | And Add PCI devices to DUTs in 3-node single link topology
113 | | And Run Keyword If | ${get_framesize} + ${srv6_overhead_3sids} < ${1522}
114 | | ... | Add no multi seg to all DUTs
115 | | And Apply startup configuration on all VPP DUTs
116 | | When Initialize IPv6 forwarding over SRv6 with endpoint to SR-unaware Service Function via 'dynamic_proxy' behaviour in 3-node circular topology
117 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
118 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
119
120 *** Test Cases ***
121 | tc01-78B-1t1c-ethip6srhip6-ip6base-srv6proxy-dyn-mrr
122 | | [Documentation]
123 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\
124 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
125 | | ... | [Ver] Measure MaxReceivedRate for 78B frames using single trial\
126 | | ... | throughput test.
127 | | ...
128 | | [Tags] | 78B | 1T1C | STHREAD
129 | | ...
130 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour
131 | | wt=1 | rxq=1 | framesize=${78}
132
133 | tc02-1518B-1t1c-ethip6srhip6-ip6base-srv6proxy-dyn-mrr
134 | | [Documentation]
135 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\
136 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
137 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
138 | | ... | throughput test.
139 | | ...
140 | | [Tags] | 1518B | 1T1C | STHREAD
141 | | ...
142 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour
143 | | wt=1 | rxq=1 | framesize=${1518}
144
145 | tc03-9000B-1t1c-ethip6srhip6-ip6base-srv6proxy-dyn-mrr
146 | | [Documentation]
147 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\
148 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
149 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
150 | | ... | throughput test.
151 | | ...
152 | | [Tags] | 9000B | 1T1C | STHREAD
153 | | ...
154 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour
155 | | wt=1 | rxq=1 | framesize=${9000}
156
157 | tc04-IMIX-1t1c-ethip6srhip6-ip6base-srv6proxy-dyn-mrr
158 | | [Documentation]
159 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\
160 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
161 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
162 | | ... | throughput test.
163 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
164 | | ...
165 | | [Tags] | IMIX | 1T1C | STHREAD
166 | | ...
167 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour
168 | | wt=1 | rxq=1 | framesize=IMIX_v4_1
169
170 | tc05-78B-2t2c-ethip6srhip6-ip6base-srv6proxy-dyn-mrr
171 | | [Documentation]
172 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\
173 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
174 | | ... | [Ver] Measure MaxReceivedRate for 78B frames using single trial\
175 | | ... | throughput test.
176 | | ...
177 | | [Tags] | 78B | 2T2C | MTHREAD
178 | | ...
179 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour
180 | | wt=2 | rxq=1 | framesize=${78}
181
182 | tc06-1518B-2t2c-ethip6srhip6-ip6base-srv6proxy-dyn-mrr
183 | | [Documentation]
184 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\
185 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
186 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
187 | | ... | throughput test.
188 | | ...
189 | | [Tags] | 1518B | 2T2C | MTHREAD
190 | | ...
191 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour
192 | | wt=2 | rxq=1 | framesize=${1518}
193
194 | tc07-9000B-2t2c-ethip6srhip6-ip6base-srv6proxy-dyn-mrr
195 | | [Documentation]
196 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\
197 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
198 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
199 | | ... | throughput test.
200 | | ...
201 | | [Tags] | 9000B | 2T2C | MTHREAD
202 | | ...
203 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour
204 | | wt=2 | rxq=1 | framesize=${9000}
205
206 | tc08-IMIX-2t2c-ethip6srhip6-ip6base-srv6proxy-dyn-mrr
207 | | [Documentation]
208 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\
209 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
210 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
211 | | ... | throughput test.
212 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
213 | | ...
214 | | [Tags] | IMIX | 2T2C | MTHREAD
215 | | ...
216 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour
217 | | wt=2 | rxq=1 | framesize=IMIX_v4_1
218
219 | tc09-78B-4t4c-ethip6srhip6-ip6base-srv6proxy-dyn-mrr
220 | | [Documentation]
221 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\
222 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
223 | | ... | [Ver] Measure MaxReceivedRate for 78B frames using single trial\
224 | | ... | throughput test.
225 | | ...
226 | | [Tags] | 78B | 4T4C | MTHREAD
227 | | ...
228 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour
229 | | wt=4 | rxq=2 | framesize=${78}
230
231 | tc10-1518B-4t4c-ethip6srhip6-ip6base-srv6proxy-dyn-mrr
232 | | [Documentation]
233 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\
234 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
235 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
236 | | ... | throughput test.
237 | | ...
238 | | [Tags] | 1518B | 4T4C | MTHREAD
239 | | ...
240 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour
241 | | wt=4 | rxq=2 | framesize=${1518}
242
243 | tc11-9000B-4t4c-ethip6srhip6-ip6base-srv6proxy-dyn-mrr
244 | | [Documentation]
245 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\
246 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
247 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
248 | | ... | throughput test.
249 | | ...
250 | | [Tags] | 9000B | 4T4C | MTHREAD
251 | | ...
252 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour
253 | | wt=4 | rxq=2 | framesize=${9000}
254
255 | tc12-IMIX-4t4c-ethip6srhip6-ip6base-srv6proxy-dyn-mrr
256 | | [Documentation]
257 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with dynamic SRv6 proxy config\
258 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
259 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
260 | | ... | throughput test.
261 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
262 | | ...
263 | | [Tags] | IMIX | 4T4C | MTHREAD
264 | | ...
265 | | [Template] | Check RR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via dynamic proxy behaviour
266 | | wt=4 | rxq=2 | framesize=IMIX_v4_1