Update of VPP_STABLE_VER and DPDK_STABLE_VER files
[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 | Test Template | Local template
36 | ...
37 | Documentation | *Packet throughput Segment routing over IPv6 dataplane with\
38 | ... | Masquerading SRv6 proxy test cases*
39 | ...
40 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
41 | ... | with single links between nodes.
42 | ... | *[Enc] Packet Encapsulations:* Eth-IPv6-SRH-IPv6 on DUT1-DUT2, DUTn-LXC\
43 | ... | and DUTn->TG, Eth-IPv6 on TG->DUTn for IPv6 routing over SRv6.
44 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv6\
45 | ... | routing and static route, SR policy and steering policy for one\
46 | ... | direction and one SR behaviour (function) - End.AM - for other\
47 | ... | direction. DUT1 and DUT2 are tested with 2p10GE NIC X520 Niantic\
48 | ... | by Intel.
49 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop\
50 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop\
51 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage\
52 | ... | of packets transmitted. NDR and PDR are discovered for different\
53 | ... | Ethernet L2 frame sizes using either binary search or linear search\
54 | ... | algorithms with configured starting rate and final step that determines\
55 | ... | throughput measurement resolution. Test packets are generated by TG on\
56 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups\
57 | ... | (flow-group per direction, 253 flows per flow-group) with\
58 | ... | all packets containing Ethernet header,IPv6 header with static payload.\
59 | ... | MAC addresses are matching MAC addresses of the TG node interfaces.
60 | ... | *[Ref] Applicable standard specifications:* SRv6 Network Programming -\
61 | ... | draft 3 and Segment Routing for Service Chaining - internet draft 01.
62
63 *** Variables ***
64 # X520-DA2 bandwidth limit
65 | ${s_limit}= | ${10000000000}
66 # SIDs
67 | ${dut1_sid1}= | 2002:1::
68 | ${dut1_sid2}= | 2003:2::
69 | ${dut1_bsid}= | 2002:1::1
70 | ${dut2_sid1}= | 2002:2::
71 | ${dut2_sid2}= | 2003:1::
72 | ${dut2_bsid}= | 2003:1::1
73 | ${out_sid1_1}= | 2002:3::
74 | ${out_sid1_2}= | 2002:4::
75 | ${out_sid2_1}= | 2003:3::
76 | ${out_sid2_2}= | 2003:4::
77 | ${sid_prefix}= | ${64}
78 # IP settings
79 | ${tg_if1_ip6_subnet}= | 2001:1::
80 | ${tg_if2_ip6_subnet}= | 2001:2::
81 | ${dut1_if1_ip6}= | 2001:1::1
82 | ${dut1_if2_ip6}= | 2001:3::1
83 | ${dut1-memif-1-if1_ip6}= | 3001:1::1
84 | ${dut1-memif-1-if2_ip6}= | 3001:1::2
85 | ${dut1_nh}= | 4002::
86 | ${dut2_if1_ip6}= | 2001:3::2
87 | ${dut2_if2_ip6}= | 2001:2::1
88 | ${dut2-memif-1-if1_ip6}= | 3002:1::1
89 | ${dut2-memif-1-if2_ip6}= | 3002:1::2
90 | ${dut2_nh}= | 4001::
91 | ${prefix}= | ${64}
92 # outer IPv6 header + SRH with 3 SIDs: 40+(8+3*16)B
93 | ${srv6_overhead_3sids}= | ${96}
94 # Traffic profile:
95 | ${traffic_profile}= | trex-sl-3n-ethip6-ip6src253
96 # LXC container
97 | ${container_count}= | ${1}
98 | ${container_engine}= | LXC
99 | ${container_image}= | ${EMPTY}
100 | ${container_install_dkms}= | ${FALSE}
101 | ${container_chain_topology}= | chain
102 # CPU settings
103 | ${system_cpus}= | ${1}
104 | ${vpp_cpus}= | ${5}
105 | ${container_cpus}= | ${5}
106
107 *** Keywords ***
108 | Local template
109 | | [Arguments] | ${phy_cores} | ${framesize} | ${search_type}
110 | | ... | ${min_rate}=${50000} | ${rxq}=${None}
111 | | ...
112 | | Set Test Variable | ${framesize}
113 | | Set Test Variable | ${min_rate}
114 | | ${get_framesize}= | Get Frame Size | ${framesize}
115 | | ${max_rate}= | Calculate pps | ${s_limit}
116 | | ... | ${get_framesize} + ${srv6_overhead_3sids}
117 | | ${binary_min}= | Set Variable | ${min_rate}
118 | | ${binary_max}= | Set Variable | ${max_rate}
119 | | ${threshold}= | Set Variable | ${min_rate}
120 | | Given Add worker threads and rxqueues to all DUTs | ${phy_cores} | ${rxq}
121 | | And Add PCI devices to all DUTs
122 | | And Run Keyword If | ${get_framesize} + ${srv6_overhead_3sids} < ${1522}
123 | | ... | Add no multi seg to all DUTs
124 | | And Apply startup configuration on all VPP DUTs
125 | | When Initialize IPv6 forwarding over SRv6 with endpoint to SR-unaware Service Function via 'masquerading' behaviour in 3-node circular topology
126 | | Then Run Keyword If | '${search_type}' == 'NDR'
127 | | ... | Find NDR using binary search and pps
128 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
129 | | ... | ${min_rate} | ${max_rate} | ${threshold}
130 | | ... | ELSE IF | '${search_type}' == 'PDR'
131 | | ... | Find PDR using binary search and pps
132 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
133 | | ... | ${min_rate} | ${max_rate} | ${threshold}
134 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
135
136 *** Test Cases ***
137 | tc01-78B-1t1c-ethip6srhip6-ip6base-srv6proxy-masq-ndrdisc
138 | | [Tags] | 78B | 1C | NDRDISC
139 | | phy_cores=${1} | framesize=${78}  | search_type=NDR
140
141 | tc02-78B-1t1c-ethip6srhip6-ip6base-srv6proxy-masq-pdrdisc
142 | | [Tags] | 78B | 1C | PDRDISC | SKIP_PATCH
143 | | phy_cores=${1} | framesize=${78}  | search_type=PDR
144
145 | tc03-78B-2t2c-ethip6srhip6-ip6base-srv6proxy-masq-ndrdisc
146 | | [Tags] | 78B | 2C | NDRDISC
147 | | phy_cores=${2} | framesize=${78}  | search_type=NDR
148
149 | tc04-78B-2t2c-ethip6srhip6-ip6base-srv6proxy-masq-pdrdisc
150 | | [Tags] | 78B | 2C | PDRDISC | SKIP_PATCH
151 | | phy_cores=${2} | framesize=${78}  | search_type=PDR
152
153 | tc05-78B-4t4c-ethip6srhip6-ip6base-srv6proxy-masq-ndrdisc
154 | | [Tags] | 78B | 4C | NDRDISC
155 | | phy_cores=${4} | framesize=${78}  | search_type=NDR
156
157 | tc06-78B-4t4c-ethip6srhip6-ip6base-srv6proxy-masq-pdrdisc
158 | | [Tags] | 78B | 4C | PDRDISC | SKIP_PATCH
159 | | phy_cores=${4} | framesize=${78}  | search_type=PDR
160
161 | tc07-1518B-1t1c-ethip6srhip6-ip6base-srv6proxy-masq-ndrdisc
162 | | [Tags] | 1518B | 1C | NDRDISC
163 | | phy_cores=${1} | framesize=${1518}  | search_type=NDR
164
165 | tc08-1518B-1t1c-ethip6srhip6-ip6base-srv6proxy-masq-pdrdisc
166 | | [Tags] | 1518B | 1C | PDRDISC | SKIP_PATCH
167 | | phy_cores=${1} | framesize=${1518}  | search_type=PDR
168
169 | tc09-1518B-2t2c-ethip6srhip6-ip6base-srv6proxy-masq-ndrdisc
170 | | [Tags] | 1518B | 2C | NDRDISC
171 | | phy_cores=${2} | framesize=${1518}  | search_type=NDR
172
173 | tc10-1518B-2t2c-ethip6srhip6-ip6base-srv6proxy-masq-pdrdisc
174 | | [Tags] | 1518B | 2C | PDRDISC | SKIP_PATCH
175 | | phy_cores=${2} | framesize=${1518}  | search_type=PDR
176
177 | tc11-1518B-4t4c-ethip6srhip6-ip6base-srv6proxy-masq-ndrdisc
178 | | [Tags] | 1518B | 4C | NDRDISC
179 | | phy_cores=${4} | framesize=${1518}  | search_type=NDR
180
181 | tc12-1518B-4t4c-ethip6srhip6-ip6base-srv6proxy-masq-pdrdisc
182 | | [Tags] | 1518B | 4C | PDRDISC | SKIP_PATCH
183 | | phy_cores=${4} | framesize=${1518}  | search_type=PDR