perf: add TCP Iperf3+LDPRELOAD test suite
[csit.git] / tests / vpp / perf / hoststack / 10ge2p1x710-eth-ip4tcp-ldpreload-iperf3-bps.robot
1 # Copyright (c) 2020 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 | Library  | resources.libraries.python.HoststackUtil
16 | Resource | resources/libraries/robot/shared/default.robot
17 | Resource | resources/libraries/robot/hoststack/hoststack.robot
18 |
19 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV
20 | ... | TCP | NIC_Intel-X710 | DRV_VFIO_PCI
21 | ... | eth-ip4tcp-ldpreload-iperf3
22 |
23 | Suite Setup | Setup suite single link no tg
24 | Suite Teardown | Tear down suite
25 | Test Setup | Setup test
26 | Test Teardown | Tear down test
27 |
28 | Test Template | Local template
29 |
30 | Documentation | *Iperf3 client -> Iperf3 server throughput.
31 |
32 | ... | *[Top] Network Topologies:* DUT-DUT 2-node topology
33 | ... | with single link between nodes.
34 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4-TCP
35 | ... | *[Cfg] DUT configuration:*
36 | ... | *[Ref] Applicable standard specifications:*
37
38 *** Variables ***
39 | @{plugins_to_enable}= | dpdk_plugin.so
40 | ${nic_name}= | Intel-X710
41 | ${nic_driver}= | vfio-pci
42 | ${overhead}= | ${0}
43 | ${frame_size}= | IMIX_v4_1
44 | ${crypto_type}= | ${None}
45
46 *** Keywords ***
47 | Local template
48 | | [Arguments] | ${phy_cores} | ${clients} | ${streams} | ${bytes}
49 | |
50 | | Set VPP Hoststack Attributes | phy_cores=${phy_cores}
51 | | Set Iperf3 Client Attributes | parallel=${streams} | bytes=${bytes}
52 | | ${no_results}= | Get Test Results From Hoststack Iperf3 Test
53 | | Run Keyword If | ${no_results}==True | FAIL
54 | | ... | No Test Results From Iperf3 client
55
56 *** Test Cases ***
57 | tc01-IMIX-1c-eth-ip4tcp-ldpreload-iperf3-bps
58 | | [Tags] | 1C | 1CLIENT | 1STREAM
59 | | phy_cores=${1} | clients=${1} | streams=${1} | bytes=1G
60
61 | tc02-IMIX-1c-eth-ip4tcp-ldpreload-iperf3-bps
62 | | [Tags] | 1C | 1CLIENT | 10STREAM
63 | | phy_cores=${1} | clients=${1} | streams=${10} | bytes=10G
64
65 | tc03-IMIX-2c-eth-ip4tcp-ldpreload-iperf3-bps
66 | | [Tags] | 2C | 1CLIENT | 10STREAM
67 | | phy_cores=${2} | clients=${1} | streams=${10} | bytes=10G
68
69 | tc04-IMIX-4c-eth-ip4tcp-ldpreload-iperf3-bps
70 | | [Tags] | 4C | 1CLIENT | 10STREAM
71 | | phy_cores=${4} | clients=${1} | streams=${10} | bytes=10G