CSIT-1202: Unify min_rate
[csit.git] / tests / vpp / perf / l2 / 10ge2p1vic1227-eth-l2bdbasemaclrn-ndrpdrdisc.robot
1 # Copyright (c) 2017 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_Cisco-VIC-1227 | ETH | L2BDMACLRN | BASE
19 | ...
20 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
21 | ... | L2 | Cisco-VIC-1227
22 | Suite Teardown | Tear down 3-node performance topology
23 | ...
24 | Test Setup | Set up performance test
25 | ...
26 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
27 | ... | ${framesize} | ${traffic_profile}
28 | ...
29 | Documentation | *RFC2544: Pkt throughput L2BD test cases*
30 | ...
31 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
32 | ... | with single links between nodes.
33 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 switching of IPv4.
34 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 bridge-\
35 | ... | domain and MAC learning enabled. DUT1 and DUT2 tested with 2p10GE NIC
36 | ... | Cisco-VIC-1227.
37 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop\
38 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop\
39 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage\
40 | ... | of packets transmitted. NDR and PDR are discovered for different\
41 | ... | Ethernet L2 frame sizes using either binary search or linear search\
42 | ... | algorithms with configured starting rate and final step that determines\
43 | ... | throughput measurement resolution. Test packets are generated by TG on\
44 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups\
45 | ... | (flow-group per direction, 253 flows per flow-group) with all packets\
46 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static\
47 | ... | payload. MAC addresses are matching MAC addresses of the TG node\
48 | ... | interfaces.
49 | ... | *[Ref] Applicable standard specifications:* RFC2544.
50
51 *** Variables ***
52 # Cisco-VIC-1227 bandwidth limit
53 | ${s_limit} | ${10000000000}
54 # Traffic profile:
55 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
56
57 *** Keywords ***
58 | L2 Bridge Domain NDR Binary Search
59 | | [Documentation]
60 | | ... | [Cfg] DUT runs L2BD switching config with with\
61 | | ... | ${phy_cores} phy core.
62 | | ... | [Ver] Find NDR for ${framesize}B Byte frames using binary search\
63 | | ... | start at 10GE linerate, step 50kpps.
64 | | [Arguments] | ${framesize} | ${phy_cores} | ${min_rate}=${50000}
65 | | ...
66 | | Set Test Variable | ${framesize}
67 | | Set Test Variable | ${min_rate}
68 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
69 | | ${binary_min}= | Set Variable | ${min_rate}
70 | | ${binary_max}= | Set Variable | ${max_rate}
71 | | ${threshold}= | Set Variable | ${min_rate}
72 | | Add worker threads and rxqueues to all DUTs | ${phy_cores}
73 | | Add PCI devices to all DUTs
74 | | Run Keyword If | ${framesize} < ${1522} | Add no multi seg to all DUTs
75 | | Apply startup configuration on all VPP DUTs
76 | | Initialize L2 bridge domain in 3-node circular topology
77 | | Find NDR using binary search and pps
78 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
79 | | ... | ${min_rate} | ${max_rate} | ${threshold}
80
81 | L2 Bridge Domain PDR Binary Search
82 | | [Documentation]
83 | | ... | [Cfg] DUT runs L2BD switching config with with\
84 | | ... | ${phy_cores} phy core.
85 | | ... | [Ver] Find PDR for ${framesize}B Byte frames using binary search\
86 | | ... | start at 10GE linerate, step 50kpps.
87 | | [Arguments] | ${framesize} | ${phy_cores} | ${min_rate}=${50000}
88 | | ...
89 | | Set Test Variable | ${framesize}
90 | | Set Test Variable | ${min_rate}
91 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
92 | | ${binary_min}= | Set Variable | ${min_rate}
93 | | ${binary_max}= | Set Variable | ${max_rate}
94 | | ${threshold}= | Set Variable | ${min_rate}
95 | | Add worker threads and rxqueues to all DUTs | ${phy_cores}
96 | | Add PCI devices to all DUTs
97 | | Run Keyword If | ${framesize} < ${1522} | Add no multi seg to all DUTs
98 | | Apply startup configuration on all VPP DUTs
99 | | Initialize L2 bridge domain in 3-node circular topology
100 | | Find PDR using binary search and pps
101 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
102 | | ... | ${min_rate} | ${max_rate} | ${threshold}
103 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
104
105 *** Test Cases ***
106 | tc01-64B-1t1c-eth-l2bdbasemaclrn-ndrdisc
107 | | [Tags] | 64B | 1C | NDRDISC
108 | | [Template] | L2 Bridge Domain NDR Binary Search
109 | | framesize=${64}  | phy_cores=${1}
110
111 | tc02-64B-1t1c-eth-l2bdbasemaclrn-pdrdisc
112 | | [Tags] | 64B | 1C | PDRDISC | SKIP_PATCH
113 | | [Template] | L2 Bridge Domain PDR Binary Search
114 | | framesize=${64}  | phy_cores=${1}
115
116 | tc03-1518B-1t1c-eth-l2bdbasemaclrn-ndrdisc
117 | | [Tags] | 1518B | 1C | NDRDISC
118 | | [Template] | L2 Bridge Domain NDR Binary Search
119 | | framesize=${1518}  | phy_cores=${1}
120
121 | tc04-1518B-1t1c-eth-l2bdbasemaclrn-pdrdisc
122 | | [Tags] | 1518B | 1C | PDRDISC | SKIP_PATCH
123 | | [Template] | L2 Bridge Domain PDR Binary Search
124 | | framesize=${1518}  | phy_cores=${1}
125
126 | tc05-9000B-1t1c-eth-l2bdbasemaclrn-ndrdisc
127 | | [Tags] | 9000B | 1C | NDRDISC
128 | | [Template] | L2 Bridge Domain NDR Binary Search
129 | | framesize=${9000} | phy_cores=${1}
130
131 | tc06-9000B-1t1c-eth-l2bdbasemaclrn-pdrdisc
132 | | [Tags] | 9000B | 1C | PDRDISC | SKIP_PATCH
133 | | [Template] | L2 Bridge Domain PDR Binary Search
134 | | framesize=${9000} | phy_cores=${1}
135
136 | tc07-64B-2t2c-eth-l2bdbasemaclrn-ndrdisc
137 | | [Tags] | 64B | 2C | NDRDISC
138 | | [Template] | L2 Bridge Domain NDR Binary Search
139 | | framesize=${64}  | phy_cores=${2}
140
141 | tc08-64B-2t2c-eth-l2bdbasemaclrn-pdrdisc
142 | | [Tags] | 64B | 2C | PDRDISC | SKIP_PATCH
143 | | [Template] | L2 Bridge Domain PDR Binary Search
144 | | framesize=${64}  | phy_cores=${2}
145
146 | tc09-1518B-2t2c-eth-l2bdbasemaclrn-ndrdisc
147 | | [Tags] | 1518B | 2C | NDRDISC | SKIP_PATCH
148 | | [Template] | L2 Bridge Domain NDR Binary Search
149 | | framesize=${1518}  | phy_cores=${2}
150
151 | tc10-1518B-2t2c-eth-l2bdbasemaclrn-pdrdisc
152 | | [Tags] | 1518B | 2C | PDRDISC | SKIP_PATCH
153 | | [Template] | L2 Bridge Domain PDR Binary Search
154 | | framesize=${1518}  | phy_cores=${2}
155
156 | tc11-9000B-2t2c-eth-l2bdbasemaclrn-ndrdisc
157 | | [Tags] | 9000B | 2C | NDRDISC | SKIP_PATCH
158 | | [Template] | L2 Bridge Domain NDR Binary Search
159 | | framesize=${9000} | phy_cores=${2}
160
161 | tc12-9000B-2t2c-eth-l2bdbasemaclrn-pdrdisc
162 | | [Tags] | 9000B | 2C | PDRDISC | SKIP_PATCH
163 | | [Template] | L2 Bridge Domain PDR Binary Search
164 | | framesize=${9000} | phy_cores=${2}
165
166 | tc13-64B-4t4c-eth-l2bdbasemaclrn-ndrdisc
167 | | [Tags] | 64B | 4C | NDRDISC
168 | | [Template] | L2 Bridge Domain NDR Binary Search
169 | | framesize=${64}  | phy_cores=${4}
170
171 | tc14-64B-4t4c-eth-l2bdbasemaclrn-pdrdisc
172 | | [Tags] | 64B | 4C | PDRDISC | SKIP_PATCH
173 | | [Template] | L2 Bridge Domain PDR Binary Search
174 | | framesize=${64}  | phy_cores=${4}
175
176 | tc15-1518B-4t4c-eth-l2bdbasemaclrn-ndrdisc
177 | | [Tags] | 1518B | 4C | NDRDISC | SKIP_PATCH
178 | | [Template] | L2 Bridge Domain NDR Binary Search
179 | | framesize=${1518}  | phy_cores=${4}
180
181 | tc16-1518B-4t4c-eth-l2bdbasemaclrn-pdrdisc
182 | | [Tags] | 1518B | 4C | PDRDISC | SKIP_PATCH
183 | | [Template] | L2 Bridge Domain PDR Binary Search
184 | | framesize=${1518}  | phy_cores=${4}
185
186 | tc17-9000B-4t4c-eth-l2bdbasemaclrn-ndrdisc
187 | | [Tags] | 9000B | 4C | NDRDISC | SKIP_PATCH
188 | | [Template] | L2 Bridge Domain NDR Binary Search
189 | | framesize=${9000} | phy_cores=${4}
190
191 | tc18-9000B-4t4c-eth-l2bdbasemaclrn-pdrdisc
192 | | [Tags] | 9000B | 4C | PDRDISC | SKIP_PATCH
193 | | [Template] | L2 Bridge Domain PDR Binary Search
194 | | framesize=${9000} | phy_cores=${4}