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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 | Resource | resources/libraries/robot/performance/performance_setup.robot
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | MRR
18 | ... | NIC_Intel-X520-DA2 | ETH | IP6FWD | FEATURE | SRv6
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
24 | Test Setup | Set up performance test
26 | Test Teardown | Tear down mrr test with SRv6 with encapsulation
28 | Documentation | *Raw results for Segment routing over IPv6 dataplane with\
29 | ... | two SIDs (SRH inserted) without decapsulation test cases*
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 and\
34 | ... | DUTn->TG, Eth-IPv6 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 one SR behaviour (function) - End - for other direction.\
38 | ... | DUT1 and DUT2 are tested with 2p10GE NIC X520 Niantic by Intel.
39 | ... | *[Ver] TG verification:* In MaxReceivedRate tests TG sends traffic\
40 | ... | at line rate and reports total received/sent packets over trial period.\
41 | ... | Test packets are generated by TG on\
42 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups\
43 | ... | (flow-group per direction, 253 flows per flow-group) with\
44 | ... | all packets containing Ethernet header,IPv6 header with static payload.\
45 | ... | MAC addresses are matching MAC addresses of the TG node interfaces.
46 | ... | *[Ref] Applicable standard specifications:* SRv6 Network Programming -\
50 # X520-DA2 bandwidth limit
51 | ${s_limit}= | ${10000000000}
53 | ${dut1_sid1}= | 2002:1::
54 | ${dut1_sid2_1}= | 2003:2::
55 | ${dut1_sid2_2}= | 2003:3::
56 | ${dut1_bsid}= | 2002:1::1
57 | ${dut2_sid1_1}= | 2002:2::
58 | ${dut2_sid1_2}= | 2002:3::
59 | ${dut2_sid2}= | 2003:1::
60 | ${dut2_bsid}= | 2002:2::1
61 | ${sid_prefix}= | ${64}
63 | ${tg_if1_ip6_subnet}= | 2001:1::
64 | ${tg_if2_ip6_subnet}= | 2001:2::
65 | ${dst_addr_nr}= | ${1}
66 | ${dut1_if1_ip6}= | 2001:1::1
67 | ${dut1_if2_ip6}= | 2001:3::1
68 | ${dut2_if1_ip6}= | 2001:3::2
69 | ${dut2_if2_ip6}= | 2001:2::1
71 # outer IPv6 header + SRH with 2 SIDs: 40+40B
72 | ${srv6_overhead_2sids}= | ${80}
74 | ${traffic_profile}= | trex-sl-3n-ethip6-ip6src253
77 | Check RR for IPv6 routing over SRv6
79 | | [Arguments] | ${wt} | ${rxq} | ${framesize}
81 | | # Test Variables required for test teardown
82 | | Set Test Variable | ${framesize}
83 | | ${get_framesize}= | Get Frame Size | ${framesize}
84 | | ${max_rate}= | Calculate pps | ${s_limit}
85 | | ... | ${get_framesize} + ${srv6_overhead_2sids}
87 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
88 | | And Add PCI devices to all DUTs
89 | | And Run Keyword If | ${get_framesize} < ${1522} | Add no multi seg to all DUTs
90 | | And Apply startup configuration on all VPP DUTs
91 | | When Initialize IPv6 forwarding over SRv6 with encapsulation with '2' x SID 'without' decapsulation in 3-node circular topology
92 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
93 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
96 | tc01-78B-1t1c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
98 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
99 | | ... | 1 phy core, 1 receive queue per NIC port.
100 | | ... | [Ver] Measure MaxReceivedRate for 78B frames using single trial\
101 | | ... | throughput test.
103 | | [Tags] | 78B | 1C
105 | | [Template] | Check RR for IPv6 routing over SRv6
106 | | wt=1 | rxq=1 | framesize=${78}
108 | tc02-1518B-1t1c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
110 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
111 | | ... | 1 phy core, 1 receive queue per NIC port.
112 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
113 | | ... | throughput test.
115 | | [Tags] | 1518B | 1C
117 | | [Template] | Check RR for IPv6 routing over SRv6
118 | | wt=1 | rxq=1 | framesize=${1518}
120 | tc03-9000B-1t1c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
122 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
123 | | ... | 1 phy core, 1 receive queue per NIC port.
124 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
125 | | ... | throughput test.
127 | | [Tags] | 9000B | 1C
129 | | [Template] | Check RR for IPv6 routing over SRv6
130 | | wt=1 | rxq=1 | framesize=${9000}
132 | tc04-IMIX-1t1c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
134 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
135 | | ... | 1 phy core, 1 receive queue per NIC port.
136 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
137 | | ... | throughput test.
138 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
140 | | [Tags] | IMIX | 1C
142 | | [Template] | Check RR for IPv6 routing over SRv6
143 | | wt=1 | rxq=1 | framesize=IMIX_v4_1
145 | tc05-78B-2t2c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
147 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
148 | | ... | 2 phy cores, 1 receive queue per NIC port.
149 | | ... | [Ver] Measure MaxReceivedRate for 78B frames using single trial\
150 | | ... | throughput test.
152 | | [Tags] | 78B | 2C
154 | | [Template] | Check RR for IPv6 routing over SRv6
155 | | wt=2 | rxq=1 | framesize=${78}
157 | tc06-1518B-2t2c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
159 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
160 | | ... | 2 phy cores, 1 receive queue per NIC port.
161 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
162 | | ... | throughput test.
164 | | [Tags] | 1518B | 2C
166 | | [Template] | Check RR for IPv6 routing over SRv6
167 | | wt=2 | rxq=1 | framesize=${1518}
169 | tc07-9000B-2t2c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
171 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
172 | | ... | 2 phy cores, 1 receive queue per NIC port.
173 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
174 | | ... | throughput test.
176 | | [Tags] | 9000B | 2C
178 | | [Template] | Check RR for IPv6 routing over SRv6
179 | | wt=2 | rxq=1 | framesize=${9000}
181 | tc08-IMIX-2t2c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
183 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
184 | | ... | 2 phy cores, 1 receive queue per NIC port.
185 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
186 | | ... | throughput test.
187 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
189 | | [Tags] | IMIX | 2C
191 | | [Template] | Check RR for IPv6 routing over SRv6
192 | | wt=2 | rxq=1 | framesize=IMIX_v4_1
194 | tc09-78B-4t4c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
196 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
197 | | ... | 4 phy cores, 2 receive queues per NIC port.
198 | | ... | [Ver] Measure MaxReceivedRate for 78B frames using single trial\
199 | | ... | throughput test.
201 | | [Tags] | 78B | 4C
203 | | [Template] | Check RR for IPv6 routing over SRv6
204 | | wt=4 | rxq=2 | framesize=${78}
206 | tc10-1518B-4t4c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
208 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
209 | | ... | 4 phy cores, 2 receive queues per NIC port.
210 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
211 | | ... | throughput test.
213 | | [Tags] | 1518B | 4C
215 | | [Template] | Check RR for IPv6 routing over SRv6
216 | | wt=4 | rxq=2 | framesize=${1518}
218 | tc11-9000B-4t4c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
220 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
221 | | ... | 4 phy cores, 2 receive queues per NIC port.
222 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
223 | | ... | throughput test.
225 | | [Tags] | 9000B | 4C
227 | | [Template] | Check RR for IPv6 routing over SRv6
228 | | wt=4 | rxq=2 | framesize=${9000}
230 | tc12-IMIX-4t4c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-mrr
232 | | ... | [Cfg] DUT runs IPv6 over SRv6 routing config with\
233 | | ... | 4 phy cores, 2 receive queues per NIC port.
234 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
235 | | ... | throughput test.
236 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
238 | | [Tags] | IMIX | 4C
240 | | [Template] | Check RR for IPv6 routing over SRv6
241 | | wt=4 | rxq=2 | framesize=IMIX_v4_1