Update of VPP_STABLE_VER and DPDK_STABLE_VER files
[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 | Test Template | Local template
30 | ...
31 | Documentation | *Packet throughput Segment routing over IPv6 dataplane with\
32 | ... | two SIDs (SRH inserted) 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, Eth-IPv6\
37 | ... | 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 two SR behaviours (functions) - End and End.DX6 - for\
41 | ... | other direction. DUT1 and DUT2 are tested with 2p10GE NIC X520 Niantic\
42 | ... | by Intel.
43 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop\
44 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop\
45 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage\
46 | ... | of packets transmitted. NDR and PDR are discovered for different\
47 | ... | Ethernet L2 frame sizes using either binary search or linear search\
48 | ... | algorithms with configured starting rate and final step that determines\
49 | ... | throughput measurement resolution. Test packets are generated by TG on\
50 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups\
51 | ... | (flow-group per direction, 253 flows per flow-group) with\
52 | ... | all packets containing Ethernet header,IPv6 header with static payload.\
53 | ... | MAC addresses are matching MAC addresses of the TG node interfaces.
54 | ... | *[Ref] Applicable standard specifications:* SRv6 Network Programming -\
55 | ... | draft 3.
56
57 *** Variables ***
58 # X520-DA2 bandwidth limit
59 | ${s_limit}= | ${10000000000}
60 # SIDs
61 | ${dut1_sid1}= | 2002:1::
62 | ${dut1_sid2_1}= | 2003:2::
63 | ${dut1_sid2_2}= | 2003:3::
64 | ${dut1_bsid}= | 2002:1::1
65 | ${dut2_sid1_1}= | 2002:2::
66 | ${dut2_sid1_2}= | 2002:3::
67 | ${dut2_sid2}= | 2003:1::
68 | ${dut2_bsid}= | 2002:2::1
69 | ${sid_prefix}= | ${64}
70 # IP settings
71 | ${tg_if1_ip6_subnet}= | 2001:1::
72 | ${tg_if2_ip6_subnet}= | 2001:2::
73 | ${dst_addr_nr}= | ${1}
74 | ${dut1_if1_ip6}= | 2001:1::1
75 | ${dut1_if2_ip6}= | 2001:3::1
76 | ${dut2_if1_ip6}= | 2001:3::2
77 | ${dut2_if2_ip6}= | 2001:2::1
78 | ${prefix}= | ${64}
79 # outer IPv6 header + SRH with 2 SIDs: 40+40B
80 | ${srv6_overhead_2sids}= | ${80}
81 # Traffic profile:
82 | ${traffic_profile}= | trex-sl-3n-ethip6-ip6src253
83
84 *** Keywords ***
85 | Local template
86 | | [Arguments] | ${phy_cores} | ${framesize} | ${search_type}
87 | | ... | ${min_rate}=${50000} | ${rxq}=${None}
88 | | ...
89 | | Set Test Variable | ${framesize}
90 | | Set Test Variable | ${min_rate}
91 | | ${get_framesize}= | Get Frame Size | ${framesize}
92 | | ${max_rate}= | Calculate pps | ${s_limit}
93 | | ... | ${get_framesize} + ${srv6_overhead_2sids}
94 | | ${binary_min}= | Set Variable | ${min_rate}
95 | | ${binary_max}= | Set Variable | ${max_rate}
96 | | ${threshold}= | Set Variable | ${min_rate}
97 | | Given Add worker threads and rxqueues to all DUTs | ${phy_cores} | ${rxq}
98 | | And Add PCI devices to all DUTs
99 | | And Run Keyword If | ${get_framesize} < ${1522} | Add no multi seg to all DUTs
100 | | And Apply startup configuration on all VPP DUTs
101 | | When Initialize IPv6 forwarding over SRv6 with encapsulation with '2' x SID 'with' decapsulation in 3-node circular topology
102 | | Then Run Keyword If | '${search_type}' == 'NDR'
103 | | ... | Find NDR using binary search and pps
104 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
105 | | ... | ${min_rate} | ${max_rate} | ${threshold}
106 | | ... | ELSE IF | '${search_type}' == 'PDR'
107 | | ... | Find PDR using binary search and pps
108 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
109 | | ... | ${min_rate} | ${max_rate} | ${threshold}
110 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
111
112 *** Test Cases ***
113 | tc01-78B-1t1c-ethip6srhip6-ip6base-srv6enc2sids-ndrdisc
114 | | [Tags] | 78B | 1C | NDRDISC
115 | | phy_cores=${1} | framesize=${78}  | search_type=NDR
116
117 | tc02-78B-1t1c-ethip6srhip6-ip6base-srv6enc2sids-pdrdisc
118 | | [Tags] | 78B | 1C | PDRDISC | SKIP_PATCH
119 | | phy_cores=${1} | framesize=${78}  | search_type=PDR
120
121 | tc03-78B-2t2c-ethip6srhip6-ip6base-srv6enc2sids-ndrdisc
122 | | [Tags] | 78B | 2C | NDRDISC
123 | | phy_cores=${2} | framesize=${78}  | search_type=NDR
124
125 | tc04-78B-2t2c-ethip6srhip6-ip6base-srv6enc2sids-pdrdisc
126 | | [Tags] | 78B | 2C | PDRDISC | SKIP_PATCH
127 | | phy_cores=${2} | framesize=${78}  | search_type=PDR
128
129 | tc05-78B-4t4c-ethip6srhip6-ip6base-srv6enc2sids-ndrdisc
130 | | [Tags] | 78B | 4C | NDRDISC
131 | | phy_cores=${4} | framesize=${78}  | search_type=NDR
132
133 | tc06-78B-4t4c-ethip6srhip6-ip6base-srv6enc2sids-pdrdisc
134 | | [Tags] | 78B | 4C | PDRDISC | SKIP_PATCH
135 | | phy_cores=${4} | framesize=${78}  | search_type=PDR
136
137 | tc07-1518B-1t1c-ethip6srhip6-ip6base-srv6enc2sids-ndrdisc
138 | | [Tags] | 1518B | 1C | NDRDISC
139 | | phy_cores=${1} | framesize=${1518}  | search_type=NDR
140
141 | tc08-1518B-1t1c-ethip6srhip6-ip6base-srv6enc2sids-pdrdisc
142 | | [Tags] | 1518B | 1C | PDRDISC | SKIP_PATCH
143 | | phy_cores=${1} | framesize=${1518}  | search_type=PDR
144
145 | tc09-1518B-2t2c-ethip6srhip6-ip6base-srv6enc2sids-ndrdisc
146 | | [Tags] | 1518B | 2C | NDRDISC
147 | | phy_cores=${2} | framesize=${1518}  | search_type=NDR
148
149 | tc10-1518B-2t2c-ethip6srhip6-ip6base-srv6enc2sids-pdrdisc
150 | | [Tags] | 1518B | 2C | PDRDISC | SKIP_PATCH
151 | | phy_cores=${2} | framesize=${1518}  | search_type=PDR
152
153 | tc11-1518B-4t4c-ethip6srhip6-ip6base-srv6enc2sids-ndrdisc
154 | | [Tags] | 1518B | 4C | NDRDISC
155 | | phy_cores=${4} | framesize=${1518}  | search_type=NDR
156
157 | tc12-1518B-4t4c-ethip6srhip6-ip6base-srv6enc2sids-pdrdisc
158 | | [Tags] | 1518B | 4C | PDRDISC | SKIP_PATCH
159 | | phy_cores=${4} | framesize=${1518}  | search_type=PDR