f71e305ba05b70354447b26095613558d493cca7
[csit.git] / tests / vpp / perf / srv6 / 10ge2p1x520-ethip6srhip6-ip6base-srv6proxy-masq-ndrpdrdisc.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 | NDRPDRDISC
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 performance test with SRv6 with encapsulation
33 | ... | ${min_rate}pps | ${framesize} | ${traffic_profile}
34 | ...
35 | Documentation | *Packet throughput Segment routing over IPv6 dataplane with\
36 | ... | Masquerading SRv6 proxy test cases*
37 | ...
38 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
39 | ... | with single links between nodes.
40 | ... | *[Enc] Packet Encapsulations:* Eth-IPv6-SRH-IPv6 on DUT1-DUT2, DUTn-LXC\
41 | ... | and DUTn->TG, Eth-IPv6 on TG->DUTn for IPv6 routing over SRv6.
42 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv6\
43 | ... | routing and static route, SR policy and steering policy for one\
44 | ... | direction and one SR behaviour (function) - End.AM - for other\
45 | ... | direction. DUT1 and DUT2 are tested with 2p10GE NIC X520 Niantic\
46 | ... | by Intel.
47 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop\
48 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop\
49 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage\
50 | ... | of packets transmitted. NDR and PDR are discovered for different\
51 | ... | Ethernet L2 frame sizes using either binary search or linear search\
52 | ... | algorithms with configured starting rate and final step that determines\
53 | ... | throughput measurement resolution. Test packets are generated by TG on\
54 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups\
55 | ... | (flow-group per direction, 253 flows per flow-group) with\
56 | ... | all packets containing Ethernet header,IPv6 header with static payload.\
57 | ... | MAC addresses are matching MAC addresses of the TG node interfaces.
58 | ... | *[Ref] Applicable standard specifications:* SRv6 Network Programming -\
59 | ... | draft 3 and Segment Routing for Service Chaining - internet draft 01.
60
61 *** Variables ***
62 # X520-DA2 bandwidth limit
63 | ${s_limit}= | ${10000000000}
64 # SIDs
65 | ${dut1_sid1}= | 2002:1::
66 | ${dut1_sid2}= | 2003:2::
67 | ${dut1_bsid}= | 2002:1::1
68 | ${dut2_sid1}= | 2002:2::
69 | ${dut2_sid2}= | 2003:1::
70 | ${dut2_bsid}= | 2003:1::1
71 | ${out_sid1_1}= | 2002:3::
72 | ${out_sid1_2}= | 2002:4::
73 | ${out_sid2_1}= | 2003:3::
74 | ${out_sid2_2}= | 2003:4::
75 | ${sid_prefix}= | ${64}
76 # IP settings
77 | ${tg_if1_ip6_subnet}= | 2001:1::
78 | ${tg_if2_ip6_subnet}= | 2001:2::
79 | ${dut1_if1_ip6}= | 2001:1::1
80 | ${dut1_if2_ip6}= | 2001:3::1
81 | ${dut1-memif-1-if1_ip6}= | 3001:1::1
82 | ${dut1-memif-1-if2_ip6}= | 3001:1::2
83 | ${dut1_nh}= | 4002::
84 | ${dut2_if1_ip6}= | 2001:3::2
85 | ${dut2_if2_ip6}= | 2001:2::1
86 | ${dut2-memif-1-if1_ip6}= | 3002:1::1
87 | ${dut2-memif-1-if2_ip6}= | 3002:1::2
88 | ${dut2_nh}= | 4001::
89 | ${prefix}= | ${64}
90 # outer IPv6 header + SRH with 3 SIDs: 40+(8+3*16)B
91 | ${srv6_overhead_3sids}= | ${96}
92 # Traffic profile:
93 | ${traffic_profile}= | trex-sl-3n-ethip6-ip6src253
94 # LXC container
95 | ${container_count}= | ${1}
96 | ${container_engine}= | LXC
97 | ${container_image}= | ${EMPTY}
98 | ${container_install_dkms}= | ${FALSE}
99 # CPU settings
100 | ${system_cpus}= | ${1}
101 | ${vpp_cpus}= | ${5}
102 | ${container_cpus}= | ${5}
103
104 *** Keywords ***
105 | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
106 | | ...
107 | | [Arguments] | ${wt} | ${rxq} | ${framesize} | ${min_rate} | ${search_type}
108 | | ...
109 | | Set Test Variable | ${framesize}
110 | | Set Test Variable | ${min_rate}
111 | | Set Test Variable | ${rxq}
112 | | ${get_framesize}= | Get Frame Size | ${framesize}
113 | | ${max_rate}= | Calculate pps | ${s_limit}
114 | | ... | ${get_framesize} + ${srv6_overhead_3sids}
115 | | ${binary_min}= | Set Variable | ${min_rate}
116 | | ${binary_max}= | Set Variable | ${max_rate}
117 | | ${threshold}= | Set Variable | ${min_rate}
118 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
119 | | And Add PCI devices to DUTs in 3-node single link topology
120 | | And Run Keyword If | ${get_framesize} + ${srv6_overhead_3sids} < ${1522}
121 | | ... | Add no multi seg to all DUTs
122 | | And Apply startup configuration on all VPP DUTs
123 | | When Initialize IPv6 forwarding over SRv6 with endpoint to SR-unaware Service Function via 'masquerading' behaviour in 3-node circular topology
124 | | Then Run Keyword If | '${search_type}' == 'NDR'
125 | | ... | Find NDR using binary search and pps
126 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
127 | | ... | ${min_rate} | ${max_rate} | ${threshold}
128 | | ... | ELSE IF | '${search_type}' == 'PDR'
129 | | ... | Find PDR using binary search and pps
130 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
131 | | ... | ${min_rate} | ${max_rate} | ${threshold}
132 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
133
134 *** Test Cases ***
135 | tc01-78B-1t1c-ethip6srhip6-ip6base-srv6proxy-masq-ndrdisc
136 | | [Documentation]
137 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
138 | | ... | config with 1 thread, 1 phy core, 1 receive queue per NIC port.
139 | | ... | [Ver] Find NDR for 78 Byte frames using binary search start at 10GE\
140 | | ... | linerate, step 50kpps.
141 | | ...
142 | | [Tags] | 78B | 1T1C | STHREAD | NDRDISC
143 | | ...
144 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
145 | | wt=1 | rxq=1 | framesize=${78} | min_rate=${50000} | search_type=NDR
146
147 | tc02-78B-1t1c-ethip6srhip6-ip6base-srv6proxy-masq-pdrdisc
148 | | [Documentation]
149 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
150 | | ... | config with 1 thread, 1 phy core, 1 receive queue per NIC port.
151 | | ... | [Ver] Find PDR for 78 Byte frames using binary search start at 10GE\
152 | | ... | linerate, step 50kpps, LT=0.5%.
153 | | ...
154 | | [Tags] | 78B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
155 | | ...
156 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
157 | | wt=1 | rxq=1 | framesize=${78} | min_rate=${50000} | search_type=PDR
158
159 | tc03-78B-2t2c-ethip6srhip6-ip6base-srv6proxy-masq-ndrdisc
160 | | [Documentation]
161 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
162 | | ... | config with 2 threads, 2 phy cores, 1 receive queue per NIC port.
163 | | ... | [Ver] Find NDR for 78 Byte frames using binary search start at 10GE\
164 | | ... | linerate, step 50kpps.
165 | | ...
166 | | [Tags] | 78B | 2T2C | MTHREAD | NDRDISC
167 | | ...
168 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
169 | | wt=2 | rxq=1 | framesize=${78} | min_rate=${50000} | search_type=NDR
170
171 | tc04-78B-2t2c-ethip6srhip6-ip6base-srv6proxy-masq-pdrdisc
172 | | [Documentation]
173 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
174 | | ... | config with 2 threads, 2 phy cores, 1 receive queue per NIC port.
175 | | ... | [Ver] Find PDR for 78 Byte frames using binary search start at 10GE\
176 | | ... | linerate, step 50kpps, LT=0.5%.
177 | | ...
178 | | [Tags] | 78B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
179 | | ...
180 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
181 | | wt=2 | rxq=1 | framesize=${78} | min_rate=${50000} | search_type=PDR
182
183 | tc05-78B-4t4c-ethip6srhip6-ip6base-srv6proxy-masq-ndrdisc
184 | | [Documentation]
185 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
186 | | ... | config with 4 threads, 4 phy cores, 2 receive queues per NIC port.
187 | | ... | [Ver] Find NDR for 78 Byte frames using binary search start at 10GE\
188 | | ... | linerate, step 50kpps.
189 | | ...
190 | | [Tags] | 78B | 4T4C | MTHREAD | NDRDISC
191 | | ...
192 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
193 | | wt=4 | rxq=2 | framesize=${78} | min_rate=${50000} | search_type=NDR
194
195 | tc06-78B-4t4c-ethip6srhip6-ip6base-srv6proxy-masq-pdrdisc
196 | | [Documentation]
197 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
198 | | ... | config with 4 threads, 4 phy cores, 2 receive queues per NIC port.
199 | | ... | [Ver] Find PDR for 78 Byte frames using binary search start at 10GE\
200 | | ... | linerate, step 50kpps, LT=0.5%.
201 | | ...
202 | | [Tags] | 78B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
203 | | ...
204 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
205 | | wt=4 | rxq=2 | framesize=${78} | min_rate=${50000} | search_type=PDR
206
207 | tc07-1518B-1t1c-ethip6srhip6-ip6base-srv6proxy-masq-ndrdisc
208 | | [Documentation]
209 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
210 | | ... | config with 1 thread, 1 phy core, 1 receive queue per NIC port.
211 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
212 | | ... | linerate, step 50kpps.
213 | | ...
214 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
215 | | ...
216 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
217 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=NDR
218
219 | tc08-1518B-1t1c-ethip6srhip6-ip6base-srv6proxy-masq-pdrdisc
220 | | [Documentation]
221 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
222 | | ... | config with 1 thread, 1 phy core, 1 receive queue per NIC port.
223 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
224 | | ... | linerate, step 50kpps, LT=0.5%.
225 | | ...
226 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
227 | | ...
228 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
229 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=PDR
230
231 | tc09-1518B-2t2c-ethip6srhip6-ip6base-srv6proxy-masq-ndrdisc
232 | | [Documentation]
233 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
234 | | ... | config with 2 threads, 2 phy cores, 1 receive queue per NIC port.
235 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
236 | | ... | linerate, step 50kpps.
237 | | ...
238 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC
239 | | ...
240 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
241 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=NDR
242
243 | tc10-1518B-2t2c-ethip6srhip6-ip6base-srv6proxy-masq-pdrdisc
244 | | [Documentation]
245 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
246 | | ... | config with 2 threads, 2 phy cores, 1 receive queue per NIC port.
247 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
248 | | ... | linerate, step 50kpps, LT=0.5%.
249 | | ...
250 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
251 | | ...
252 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
253 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=PDR
254
255 | tc11-1518B-4t4c-ethip6srhip6-ip6base-srv6proxy-masq-ndrdisc
256 | | [Documentation]
257 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
258 | | ... | config with 4 threads, 4 phy cores, 2 receive queues per NIC port.
259 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
260 | | ... | linerate, step 50kpps.
261 | | ...
262 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC
263 | | ...
264 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
265 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${50000} | search_type=NDR
266
267 | tc12-1518B-4t4c-ethip6srhip6-ip6base-srv6proxy-masq-pdrdisc
268 | | [Documentation]
269 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing with masquerading SRv6 proxy\
270 | | ... | config with 4 threads, 4 phy cores, 2 receive queues per NIC port.
271 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
272 | | ... | linerate, step 50kpps, LT=0.5%.
273 | | ...
274 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
275 | | ...
276 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6 with endpoint to SR-unaware Service Function via masquerading proxy behaviour
277 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${50000} | search_type=PDR