799a704d17341839fedcdb64a3fc42eb5f5e0c24
[csit.git] / tests / vpp / perf / srv6 / 10ge2p1x520-ethip6srhip6-ip6base-srv6enc2sids-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 | 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 performance test with SRv6 with encapsulation
27 | ... | ${min_rate}pps | ${framesize} | ${traffic_profile}
28 | ...
29 | Documentation | *Packet throughput Segment routing over IPv6 dataplane with\
30 | ... | two SIDs (SRH inserted) test cases*
31 | ...
32 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
33 | ... | with single links between nodes.
34 | ... | *[Enc] Packet Encapsulations:* Eth-IPv6-SRH-IPv6 on DUT1-DUT2, Eth-IPv6\
35 | ... | on TG-DUTn for IPv6 routing over SRv6.
36 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv6\
37 | ... | routing and static route, SR policy and steering policy for one\
38 | ... | direction and two SR behaviours (functions) - End and End.DX6 - for\
39 | ... | other direction. DUT1 and DUT2 are tested with 2p10GE NIC X520 Niantic\
40 | ... | by Intel.
41 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop\
42 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop\
43 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage\
44 | ... | of packets transmitted. NDR and PDR are discovered for different\
45 | ... | Ethernet L2 frame sizes using either binary search or linear search\
46 | ... | algorithms with configured starting rate and final step that determines\
47 | ... | throughput measurement resolution. Test packets are generated by TG on\
48 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups\
49 | ... | (flow-group per direction, 253 flows per flow-group) with\
50 | ... | all packets containing Ethernet header,IPv6 header with static payload.\
51 | ... | MAC addresses are matching MAC addresses of the TG node interfaces.
52 | ... | *[Ref] Applicable standard specifications:* SRv6 Network Programming -\
53 | ... | draft 3.
54 | ...
55
56 *** Variables ***
57 # X520-DA2 bandwidth limit
58 | ${s_limit}= | ${10000000000}
59 # SIDs
60 | ${dut1_sid1}= | 2002:1::
61 | ${dut1_sid2_1}= | 2003:2::
62 | ${dut1_sid2_2}= | 2003:3::
63 | ${dut1_bsid}= | 2002:1::1
64 | ${dut2_sid1_1}= | 2002:2::
65 | ${dut2_sid1_2}= | 2002:3::
66 | ${dut2_sid2}= | 2003:1::
67 | ${dut2_bsid}= | 2002:2::1
68 | ${sid_prefix}= | ${64}
69 # IP settings
70 | ${tg_if1_ip6_subnet}= | 2001:1::
71 | ${tg_if2_ip6_subnet}= | 2001:2::
72 | ${dst_addr_nr}= | ${1}
73 | ${dut1_if1_ip6}= | 2001:1::1
74 | ${dut1_if2_ip6}= | 2001:3::1
75 | ${dut2_if1_ip6}= | 2001:3::2
76 | ${dut2_if2_ip6}= | 2001:2::1
77 | ${prefix}= | ${64}
78 # outer IPv6 header + SRH with 2 SIDs: 40+40B
79 | ${srv6_overhead_2sids}= | ${80}
80 # Traffic profile:
81 | ${traffic_profile} | trex-sl-3n-ethip6-ip6src253
82
83 *** Keywords ***
84 | Discover NDR or PDR for IPv6 routing over SRv6
85 | | [Arguments] | ${wt} | ${rxq} | ${framesize} | ${min_rate} | ${search_type}
86 | | Set Test Variable | ${framesize}
87 | | Set Test Variable | ${min_rate}
88 | | ${get_framesize}= | Get Frame Size | ${framesize}
89 | | ${max_rate}= | Calculate pps | ${s_limit}
90 | | ... | ${get_framesize} + ${srv6_overhead_2sids}
91 | | ${binary_min}= | Set Variable | ${min_rate}
92 | | ${binary_max}= | Set Variable | ${max_rate}
93 | | ${threshold}= | Set Variable | ${min_rate}
94 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
95 | | And Add PCI devices to DUTs in 3-node single link topology
96 | | ${get_framesize}= | Get Frame Size | ${framesize}
97 | | And Run Keyword If | ${get_framesize} < ${1522} | Add no multi seg to all DUTs
98 | | And Apply startup configuration on all VPP DUTs
99 | | When Initialize IPv6 forwarding over SRv6 with encapsulation with '2' x SID 'with' decapsulation in 3-node circular topology
100 | | Then Run Keyword If | '${search_type}' == 'NDR'
101 | | ... | Find NDR using binary search and pps
102 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
103 | | ... | ${min_rate} | ${max_rate} | ${threshold}
104 | | ... | ELSE IF | '${search_type}' == 'PDR'
105 | | ... | Find PDR using binary search and pps
106 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
107 | | ... | ${min_rate} | ${max_rate} | ${threshold}
108 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
109
110 *** Test Cases ***
111 | tc01-78B-1t1c-ethip6srhip6-ip6base-srv6enc2sids-ndrdisc
112 | | [Documentation]
113 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
114 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
115 | | ... | [Ver] Find NDR for 78 Byte frames using binary search start at 10GE\
116 | | ... | linerate, step 50kpps.
117 | | ...
118 | | [Tags] | 78B | 1T1C | STHREAD | NDRDISC
119 | | ...
120 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6
121 | | wt=1 | rxq=1 | framesize=${78} | min_rate=${50000} | search_type=NDR
122
123 | tc02-78B-1t1c-ethip6srhip6-ip6base-srv6enc2sids-pdrdisc
124 | | [Documentation]
125 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
126 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
127 | | ... | [Ver] Find PDR for 78 Byte frames using binary search start at 10GE\
128 | | ... | linerate, step 50kpps, LT=0.5%.
129 | | ...
130 | | [Tags] | 78B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
131 | | ...
132 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6
133 | | wt=1 | rxq=1 | framesize=${78} | min_rate=${50000} | search_type=PDR
134
135 | tc03-78B-2t2c-ethip6srhip6-ip6base-srv6enc2sids-ndrdisc
136 | | [Documentation]
137 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
138 | | ... | 2 threads, 2 phy cores, 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 | 2T2C | MTHREAD | NDRDISC
143 | | ...
144 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6
145 | | wt=2 | rxq=1 | framesize=${78} | min_rate=${50000} | search_type=NDR
146
147 | tc04-78B-2t2c-ethip6srhip6-ip6base-srv6enc2sids-pdrdisc
148 | | [Documentation]
149 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
150 | | ... | 2 threads, 2 phy cores, 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 | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
155 | | ...
156 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6
157 | | wt=2 | rxq=1 | framesize=${78} | min_rate=${50000} | search_type=PDR
158
159 | tc05-78B-4t4c-ethip6srhip6-ip6base-srv6enc2sids-ndrdisc
160 | | [Documentation]
161 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
162 | | ... | 4 threads, 4 phy cores, 2 receive queues 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 | 4T4C | MTHREAD | NDRDISC
167 | | ...
168 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6
169 | | wt=4 | rxq=2 | framesize=${78} | min_rate=${50000} | search_type=NDR
170
171 | tc06-78B-4t4c-ethip6srhip6-ip6base-srv6enc2sids-pdrdisc
172 | | [Documentation]
173 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
174 | | ... | 4 threads, 4 phy cores, 2 receive queues 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 | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
179 | | ...
180 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6
181 | | wt=4 | rxq=2 | framesize=${78} | min_rate=${50000} | search_type=PDR
182
183 | tc07-1518B-1t1c-ethip6srhip6-ip6base-srv6enc2sids-ndrdisc
184 | | [Documentation]
185 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
186 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
187 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
188 | | ... | linerate, step 50kpps.
189 | | ...
190 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
191 | | ...
192 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6
193 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=NDR
194
195 | tc08-1518B-1t1c-ethip6srhip6-ip6base-srv6enc2sids-pdrdisc
196 | | [Documentation]
197 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
198 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
199 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
200 | | ... | linerate, step 50kpps, LT=0.5%.
201 | | ...
202 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
203 | | ...
204 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6
205 | | wt=1 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=PDR
206
207 | tc09-1518B-2t2c-ethip6srhip6-ip6base-srv6enc2sids-ndrdisc
208 | | [Documentation]
209 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
210 | | ... | 2 threads, 2 phy cores, 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 | 2T2C | MTHREAD | NDRDISC
215 | | ...
216 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6
217 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=NDR
218
219 | tc10-1518B-2t2c-ethip6srhip6-ip6base-srv6enc2sids-pdrdisc
220 | | [Documentation]
221 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
222 | | ... | 2 threads, 2 phy cores, 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 | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
227 | | ...
228 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6
229 | | wt=2 | rxq=1 | framesize=${1518} | min_rate=${50000} | search_type=PDR
230
231 | tc11-1518B-4t4c-ethip6srhip6-ip6base-srv6enc2sids-ndrdisc
232 | | [Documentation]
233 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
234 | | ... | 4 threads, 4 phy cores, 2 receive queues 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 | 4T4C | MTHREAD | NDRDISC
239 | | ...
240 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6
241 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${50000} | search_type=NDR
242
243 | tc12-1518B-4t4c-ethip6srhip6-ip6base-srv6enc2sids-pdrdisc
244 | | [Documentation]
245 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
246 | | ... | 4 threads, 4 phy cores, 2 receive queues 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 | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
251 | | ...
252 | | [Template] | Discover NDR or PDR for IPv6 routing over SRv6
253 | | wt=4 | rxq=2 | framesize=${1518} | min_rate=${50000} | search_type=PDR