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