Remove lbdpdk perf tests
[csit.git] / tests / vpp / perf / vts / 10ge2p1x520-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr.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 | NDRPDR
18 | ... | NIC_Intel-X520-DA2 | L2BDMACLRN | ENCAP | VXLAN | L2OVRLAY | IP4UNRLAY
19 | ... | VHOST | VM | VHOST_1024 | VTS
20 | ...
21 | Suite Setup | Run Keywords
22 | ... | Set up 3-node performance topology with DUT's NIC model
23 | ... | L3 | Intel-X520-DA2
24 | ... | AND | Set up performance test suite with ACL
25 | Suite Teardown | Tear down 3-node performance topology
26 | ...
27 | Test Setup | Set up performance test
28 | Test Teardown | Tear down performance test with vhost and VM with dpdk-testpmd and ACL
29 | ... | ${min_rate}pps | ${framesize} | ${traffic_profile}
30 | ... | dut1_node=${dut1} | dut1_vm_refs=${dut1_vm_refs}
31 | ...
32 | Test Template | Local Template
33 | ...
34 | Documentation | *RFC2544: Packet throughput L2BD test cases with VXLANoIPv4
35 | ... | and vhost*
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 switching of IPv4.
40 | ... | Eth-IPv4-VXLAN-Eth-IPv4 is applied on link between DUT1 and DUT2.
41 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 bridge-
42 | ... | domain and MAC learning enabled. Qemu Guest is connected to VPP via
43 | ... | vhost-user interfaces. Guest is running DPDK testpmd interconnecting
44 | ... | vhost-user interfaces using 5 cores pinned to cpus 5-9 and 2048M
45 | ... | memory. Testpmd is using socket-mem=1024M (512x2M hugepages), 5 cores
46 | ... | (1 main core and 4 cores dedicated for io), forwarding mode is set to
47 | ... | io, rxd/txd=256, burst=64. DUT1, DUT2 are tested with 2p10GE NIC X520
48 | ... | Niantic 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 MLRsearch library.
54 | ... | Test packets are generated by TG on
55 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
56 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
57 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
58 | ... | payload. MAC addresses are matching MAC addresses of the TG node
59 | ... | interfaces.
60 | ... | *[Ref] Applicable standard specifications:* RFC2544, RFC7348.
61
62 *** Variables ***
63 # X520-DA2 bandwidth limit
64 | ${s_limit}= | ${10000000000}
65 | ${overhead}= | ${50}
66 # Socket names
67 | ${dut1_bd_id1}= | 1
68 | ${dut1_bd_id2}= | 2
69 | ${dut2_bd_id1}= | 1
70 | ${sock1}= | /var/run/vpp/sock-1-${dut1_bd_id1}
71 | ${sock2}= | /var/run/vpp/sock-1-${dut1_bd_id2}
72 # Traffic profile:
73 | ${traffic_profile}= | trex-sl-ethip4-vxlansrc253
74 | ${min_rate}= | ${10000}
75 | ${acl_type}= | ${EMPTY}
76 # Defaults for teardown:
77 | ${dut1}= | ${None}
78 | ${dut1_vm_refs}= | ${None}
79
80 *** Keywords ***
81 | Local Template
82 | | [Documentation]
83 | | ... | [Cfg] DUT runs L2BD switching config.
84 | | ... | Each DUT uses ${phy_cores} physical core(s) for worker threads.
85 | | ... | [Ver] Measure NDR and PDR values using MLRsearch algorithm.
86 | | ...
87 | | ... | *Arguments:*
88 | | ... | - framesize - L2 Frame Size [B]. Type: integer
89 | | ... | - phy_cores - Number of worker threads to be used. Type: integer
90 | | ... | - rxq - Number of Rx queues to be used. Type: integer
91 | | ... | - acl_type - FIXME.
92 | | ...
93 | | [Arguments] | ${framesize} | ${phy_cores} | ${rxq}=${None}
94 | | ...
95 | | Set Test Variable | ${framesize}
96 | | ...
97 | | Given Add worker threads and rxqueues to all DUTs | ${phy_cores} | ${rxq}
98 | | Add PCI devices to all DUTs
99 | | ${max_rate} | ${jumbo} = | Get Max Rate And Jumbo And Handle Multi Seg
100 | | ... | ${s_limit} | ${framesize} | overhead=${overhead}
101 | | And Apply startup configuration on all VPP DUTs
102 | | &{vxlan1} = | Create Dictionary | vni=24 | vtep=172.17.0.2
103 | | &{vxlan2} = | Create Dictionary | vni=24 | vtep=172.27.0.2
104 | | @{dut1_vxlans} = | Create List | ${vxlan1}
105 | | @{dut2_vxlans} = | Create List | ${vxlan2}
106 | | Set interfaces in path up
107 | | Configure vhost interfaces for L2BD forwarding | ${dut1}
108 | | ... | ${sock1} | ${sock2}
109 | | When Init L2 bridge domains with single DUT with Vhost-User and VXLANoIPv4 in 3-node circular topology
110 | | ... | 172.16.0.1 | 16 | 172.26.0.1 | 16 | 172.16.0.2 | 172.26.0.2
111 | | ... | ${dut1_vxlans} | ${dut2_vxlans} | 172.17.0.0 | 16 | 172.27.0.0 | 16
112 | | @{permit_list} = | Create List | 10.0.0.1/32 | 10.0.0.2/32
113 | | Run Keyword If | '${acl_type}' != '${EMPTY}'
114 | | ... | Configure ACLs on a single interface | ${dut1} | ${dut1_if2} | input
115 | | ... | ${acl_type} | @{permit_list}
116 | | ${nf_cpus}= | Create network function CPU list | DUT1
117 | | ... | chains=${1} | nodeness=${1} | chain_id=${1}
118 | | ... | node_id=${1} | auto_scale=${True}
119 | | ${vm1} = | And Configure guest VM with dpdk-testpmd connected via vhost-user
120 | | ... | DUT1 | ${sock1} | ${sock2} | DUT1_VM1 | ${nf_cpus}
121 | | ... | jumbo=${jumbo} | perf_qemu_qsz=${1024} | use_tuned_cfs=${False}
122 | | Set Test Variable | &{dut1_vm_refs} | DUT1_VM1=${vm1}
123 | | Then Find NDR and PDR intervals using optimized search
124 | | ... | ${framesize} | ${traffic_profile} | ${min_rate} | ${max_rate}
125
126 *** Test Cases ***
127 | tc01-114B-1c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
128 | | [Tags] | 114B | 1C
129 | | framesize=${114} | phy_cores=${1}
130
131 | tc02-114B-2c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
132 | | [Tags] | 114B | 2C
133 | | framesize=${114} | phy_cores=${2}
134
135 | tc03-114B-4c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
136 | | [Tags] | 114B | 4C
137 | | framesize=${114} | phy_cores=${4}
138
139 | tc04-1518B-1c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
140 | | [Tags] | 1518B | 1C
141 | | framesize=${1518} | phy_cores=${1}
142
143 | tc05-1518B-2c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
144 | | [Tags] | 1518B | 2C
145 | | framesize=${1518} | phy_cores=${2}
146
147 | tc06-1518B-4c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
148 | | [Tags] | 1518B | 4C
149 | | framesize=${1518} | phy_cores=${4}
150
151 | tc07-9000B-1c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
152 | | [Tags] | 9000B | 1C
153 | | framesize=${9000} | phy_cores=${1}
154
155 | tc08-9000B-2c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
156 | | [Tags] | 9000B | 2C
157 | | framesize=${9000} | phy_cores=${2}
158
159 | tc09-9000B-4c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
160 | | [Tags] | 9000B | 4C
161 | | framesize=${9000} | phy_cores=${4}
162
163 | tc10-IMIX-1c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
164 | | [Tags] | IMIX | 1C
165 | | framesize=IMIX_v4_1 | phy_cores=${1}
166
167 | tc11-IMIX-2c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
168 | | [Tags] | IMIX | 2C
169 | | framesize=IMIX_v4_1 | phy_cores=${2}
170
171 | tc12-IMIX-4c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
172 | | [Tags] | IMIX | 4C
173 | | framesize=IMIX_v4_1 | phy_cores=${4}