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