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:
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 | NDRPDRDISC
18 | ... | NIC_Intel-X520-DA2 | ETH | L2XCFWD | BASE | MEMIF | DOCKER
20 | Suite Setup | Run Keywords
21 | ... | Set up 3-node performance topology with DUT's NIC model | L2
22 | ... | Intel-X520-DA2
23 | ... | AND | Set up performance test suite with MEMIF
24 | ... | AND | Set up performance topology with containers
26 | Suite Teardown | Tear down 3-node performance topology with container
28 | Test Setup | Set up performance test
30 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
31 | ... | ${framesize} | ${traffic_profile}
33 | Documentation | *RFC2544: Pkt throughput L2XC test cases*
35 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
36 | ... | with single links between nodes.
37 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 cross connect.
38 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 cross-
39 | ... | connect. DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
40 | ... | Container is connected to VPP via Memif interface. Container is running
41 | ... | same VPP version as running on DUT. Container is limited via cgroup to
42 | ... | use 3 cores allocated from pool of isolated CPUs. There are no memory
44 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
45 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
46 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
47 | ... | of packets transmitted. NDR and PDR are discovered for different
48 | ... | Ethernet L2 frame sizes using either binary search or linear search
49 | ... | algorithms with configured starting rate and final step that determines
50 | ... | throughput measurement resolution. Test packets are generated by TG on
51 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
52 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
53 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
54 | ... | payload. MAC addresses are matching MAC addresses of the TG node
56 | ... | *[Ref] Applicable standard specifications:* RFC2544.
59 | ${avg_imix_framesize}= | ${357.833}
60 # X520-DA2 bandwidth limit
61 | ${s_limit} | ${10000000000}
63 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
65 | ${container_count}= | ${1}
66 | ${container_engine}= | Docker
67 | ${container_image}= | ubuntu
69 | ${system_cpus}= | ${1}
71 | ${container_cpus}= | ${3}
74 | L2 Cross Connect over Memif Binary Search
75 | | [Arguments] | ${framesize} | ${min_rate} | ${wt} | ${rxq} | ${search_type}
76 | | Set Test Variable | ${framesize}
77 | | Set Test Variable | ${min_rate}
78 | | ${get_framesize}= | Set Variable If
79 | | ... | "${framesize}" == "IMIX_v4_1" | ${avg_imix_framesize} | ${framesize}
80 | | ${max_rate}= | Calculate pps | ${s_limit} | ${get_framesize}
81 | | ${binary_min}= | Set Variable | ${min_rate}
82 | | ${binary_max}= | Set Variable | ${max_rate}
83 | | ${threshold}= | Set Variable | ${min_rate}
84 | | Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
85 | | Add PCI Devices To DUTs In 3-node Single Link Topology
86 | | Run Keyword If | ${get_framesize} < ${1522} | Add No Multi Seg to all DUTs
87 | | Apply startup configuration on all VPP DUTs
88 | | Initialize L2 xconnect for '${container_count}' memif pairs in 3-node circular topology
89 | | Run Keyword If | '${search_type}' == 'NDR'
90 | | ... | Find NDR using binary search and pps
91 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
92 | | ... | ${min_rate} | ${max_rate} | ${threshold}
93 | | ... | ELSE IF | '${search_type}' == 'PDR'
94 | | ... | Find PDR using binary search and pps
95 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
96 | | ... | ${min_rate} | ${max_rate} | ${threshold}
97 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
100 | tc01-64B-1t1c-eth-l2xcbase-eth-2memif-1dcr-ndrdisc
102 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
103 | | ... | 1 receive queue per NIC port.
104 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
105 | | ... | linerate, step 50kpps.
107 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
108 | | [Template] | L2 Cross Connect over Memif Binary Search
109 | | framesize=${64} | min_rate=${50000} | wt=1 | rxq=1 | search_type=NDR
111 | tc02-64B-1t1c-eth-l2xcbase-eth-2memif-1dcr-pdrdisc
113 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
114 | | ... | 1 receive queue per NIC port.
115 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
116 | | ... | linerate, step 50kpps, LT=0.5%.
118 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC
119 | | [Template] | L2 Cross Connect over Memif Binary Search
120 | | framesize=${64} | min_rate=${50000} | wt=1 | rxq=1 | search_type=PDR
122 | tc03-IMIX-1t1c-eth-l2xcbase-eth-2memif-1dcr-ndrdisc
124 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
125 | | ... | 1 receive queue per NIC port.
126 | | ... | [Ver] Find NDR for IMIX_v4_1 frames using binary search start at 10GE\
127 | | ... | linerate, step 50kpps.
128 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
130 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
131 | | [Template] | L2 Cross Connect over Memif Binary Search
132 | | framesize=IMIX_v4_1 | min_rate=${50000} | wt=1 | rxq=1 | search_type=NDR
134 | tc04-IMIX-1t1c-eth-l2xcbase-eth-2memif-1dcr-pdrdisc
136 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
137 | | ... | 1 receive queue per NIC port.
138 | | ... | [Ver] Find PDR for IMIX_v4_1 frames using binary search start at 10GE\
139 | | ... | linerate, step 50kpps, LT=0.5%.
140 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
142 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC
143 | | [Template] | L2 Cross Connect over Memif Binary Search
144 | | framesize=IMIX_v4_1 | min_rate=${50000} | wt=1 | rxq=1 | search_type=PDR
146 | tc05-1518B-1t1c-eth-l2xcbase-eth-2memif-1dcr-ndrdisc
148 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
149 | | ... | 1 receive queue per NIC port.
150 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
151 | | ... | linerate, step 50kpps.
153 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
154 | | [Template] | L2 Cross Connect over Memif Binary Search
155 | | framesize=${1518} | min_rate=${50000} | wt=1 | rxq=1 | search_type=NDR
157 | tc06-1518B-1t1c-eth-l2xcbase-eth-2memif-1dcr-pdrdisc
159 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
160 | | ... | 1 receive queue per NIC port.
161 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
162 | | ... | linerate, step 50kpps, LT=0.5%.
164 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC
165 | | [Template] | L2 Cross Connect over Memif Binary Search
166 | | framesize=${1518} | min_rate=${50000} | wt=1 | rxq=1 | search_type=PDR
168 | tc07-64B-2t2c-eth-l2xcbase-eth-2memif-1dcr-ndrdisc
170 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 2 phy core,\
171 | | ... | 1 receive queue per NIC port.
172 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
173 | | ... | linerate, step 50kpps.
175 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
176 | | [Template] | L2 Cross Connect over Memif Binary Search
177 | | framesize=${64} | min_rate=${50000} | wt=2 | rxq=1 | search_type=NDR
179 | tc08-64B-2t2c-eth-l2xcbase-eth-2memif-1dcr-pdrdisc
181 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 2 phy core,\
182 | | ... | 1 receive queue per NIC port.
183 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
184 | | ... | linerate, step 50kpps, LT=0.5%.
186 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC
187 | | [Template] | L2 Cross Connect over Memif Binary Search
188 | | framesize=${64} | min_rate=${50000} | wt=2 | rxq=1 | search_type=PDR
190 | tc09-IMIX-2t2c-eth-l2xcbase-eth-2memif-1dcr-ndrdisc
192 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 2 phy core,\
193 | | ... | 1 receive queue per NIC port.
194 | | ... | [Ver] Find NDR for IMIX_v4_1 frames using binary search start at 10GE\
195 | | ... | linerate, step 50kpps.
196 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
198 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC
199 | | [Template] | L2 Cross Connect over Memif Binary Search
200 | | framesize=IMIX_v4_1 | min_rate=${50000} | wt=2 | rxq=1 | search_type=NDR
202 | tc10-IMIX-2t2c-eth-l2xcbase-eth-2memif-1dcr-pdrdisc
204 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 1 phy core,\
205 | | ... | 1 receive queue per NIC port.
206 | | ... | [Ver] Find PDR for IMIX_v4_1 frames using binary search start at 10GE\
207 | | ... | linerate, step 50kpps, LT=0.5%.
208 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
210 | | [Tags] | IMIX | 2T2C | MTHREAD | PDRDISC
211 | | [Template] | L2 Cross Connect over Memif Binary Search
212 | | framesize=IMIX_v4_1 | min_rate=${50000} | wt=2 | rxq=1 | search_type=PDR
214 | tc11-1518B-2t2c-eth-l2xcbase-eth-2memif-1dcr-ndrdisc
216 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 1 phy core,\
217 | | ... | 1 receive queue per NIC port.
218 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
219 | | ... | linerate, step 50kpps.
221 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC
222 | | [Template] | L2 Cross Connect over Memif Binary Search
223 | | framesize=${1518} | min_rate=${50000} | wt=2 | rxq=1 | search_type=NDR
225 | tc12-1518B-2t2c-eth-l2xcbase-eth-2memif-1dcr-pdrdisc
227 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 1 phy core,\
228 | | ... | 1 receive queue per NIC port.
229 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
230 | | ... | linerate, step 50kpps, LT=0.5%.
232 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC
233 | | [Template] | L2 Cross Connect over Memif Binary Search
234 | | framesize=${1518} | min_rate=${50000} | wt=2 | rxq=1 | search_type=PDR