af17be5fd36561cc1ca8a72dab092168e5616b93
[csit.git] / tests / vpp / perf / srv6 / 10ge2p1x520-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-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 | Test Template | Local template
30 | ...
31 | Documentation | *Packet throughput Segment routing over IPv6 dataplane with\
32 | ... | two SIDs (SRH inserted) without decapsulation test cases*
33 | ...
34 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
35 | ... | with single links between nodes.
36 | ... | *[Enc] Packet Encapsulations:* Eth-IPv6-SRH-IPv6 on DUT1-DUT2 and\
37 | ... | DUTn->TG, Eth-IPv6 on TG->DUTn for IPv6 routing over SRv6.
38 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv6\
39 | ... | routing and static route, SR policy and steering policy for one\
40 | ... | direction and one SR behaviour (function) - End - for other direction.\
41 | ... | DUT1 and DUT2 are tested with 2p10GE NIC X520 Niantic by Intel.
42 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop\
43 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop\
44 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage\
45 | ... | of packets transmitted. NDR and PDR are discovered for different\
46 | ... | Ethernet L2 frame sizes using either binary search or linear search\
47 | ... | algorithms with configured starting rate and final step that determines\
48 | ... | throughput measurement resolution. 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.
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 | Local template
85 | | [Arguments] | ${phy_cores} | ${framesize} | ${search_type}
86 | | ... | ${min_rate}=${50000} | ${rxq}=${None}
87 | | ...
88 | | Set Test Variable | ${framesize}
89 | | Set Test Variable | ${min_rate}
90 | | ${get_framesize}= | Get Frame Size | ${framesize}
91 | | ${max_rate}= | Calculate pps | ${s_limit}
92 | | ... | ${get_framesize} + ${srv6_overhead_2sids}
93 | | ${binary_min}= | Set Variable | ${min_rate}
94 | | ${binary_max}= | Set Variable | ${max_rate}
95 | | ${threshold}= | Set Variable | ${min_rate}
96 | | Given Add worker threads and rxqueues to all DUTs | ${phy_cores} | ${rxq}
97 | | And Add PCI devices to all DUTs
98 | | And Run Keyword If | ${get_framesize} < ${1522} | Add no multi seg to all DUTs
99 | | And Apply startup configuration on all VPP DUTs
100 | | When Initialize IPv6 forwarding over SRv6 with encapsulation with '2' x SID 'without' decapsulation in 3-node circular topology
101 | | Then Run Keyword If | '${search_type}' == 'NDR'
102 | | ... | Find NDR using binary search and pps
103 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
104 | | ... | ${min_rate} | ${max_rate} | ${threshold}
105 | | ... | ELSE IF | '${search_type}' == 'PDR'
106 | | ... | Find PDR using binary search and pps
107 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
108 | | ... | ${min_rate} | ${max_rate} | ${threshold}
109 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
110
111 *** Test Cases ***
112 | tc01-78B-1t1c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-ndrdisc
113 | | [Tags] | 78B | 1C | NDRDISC
114 | | phy_cores=${1} | framesize=${78}  | search_type=NDR
115
116 | tc02-78B-1t1c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-pdrdisc
117 | | [Tags] | 78B | 1C | PDRDISC | SKIP_PATCH
118 | | phy_cores=${1} | framesize=${78}  | search_type=PDR
119
120 | tc03-78B-2t2c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-ndrdisc
121 | | [Tags] | 78B | 2C | NDRDISC
122 | | phy_cores=${2} | framesize=${78}  | search_type=NDR
123
124 | tc04-78B-2t2c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-pdrdisc
125 | | [Tags] | 78B | 2C | PDRDISC | SKIP_PATCH
126 | | phy_cores=${2} | framesize=${78}  | search_type=PDR
127
128 | tc05-78B-4t4c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-ndrdisc
129 | | [Tags] | 78B | 4C | NDRDISC
130 | | phy_cores=${4} | framesize=${78}  | search_type=NDR
131
132 | tc06-78B-4t4c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-pdrdisc
133 | | [Tags] | 78B | 4C | PDRDISC | SKIP_PATCH
134 | | phy_cores=${4} | framesize=${78}  | search_type=PDR
135
136 | tc07-1518B-1t1c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-ndrdisc
137 | | [Tags] | 1518B | 1C | NDRDISC
138 | | phy_cores=${1} | framesize=${1518}  | search_type=NDR
139
140 | tc08-1518B-1t1c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-pdrdisc
141 | | [Tags] | 1518B | 1C | PDRDISC | SKIP_PATCH
142 | | phy_cores=${1} | framesize=${1518}  | search_type=PDR
143
144 | tc09-1518B-2t2c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-ndrdisc
145 | | [Tags] | 1518B | 2C | NDRDISC
146 | | phy_cores=${2} | framesize=${1518}  | search_type=NDR
147
148 | tc10-1518B-2t2c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-pdrdisc
149 | | [Tags] | 1518B | 2C | PDRDISC | SKIP_PATCH
150 | | phy_cores=${2} | framesize=${1518}  | search_type=PDR
151
152 | tc11-1518B-4t4c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-ndrdisc
153 | | [Tags] | 1518B | 4C | NDRDISC
154 | | phy_cores=${4} | framesize=${1518}  | search_type=NDR
155
156 | tc12-1518B-4t4c-ethip6srhip6-ip6base-srv6enc2sids-nodecaps-pdrdisc
157 | | [Tags] | 1518B | 4C | PDRDISC | SKIP_PATCH
158 | | phy_cores=${4} | framesize=${1518}  | search_type=PDR