FIX: Naming convention compliance
[csit.git] / tests / vpp / perf / gso / 2n1l-10ge2p1x710-ethip4-ip4base-2tap-iperf3-mrr.robot
1 # Copyright (c) 2021 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/shared/default.robot
16 |
17 | Force Tags | 2_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | MRR
18 | ... | NIC_Intel-X710 | IP4FWD | BASE | IP4BASE | DRV_TAP
19 | ... | RXQ_SIZE_4096 | TXQ_SIZE_4096 | GSO_FALSE
20 | ... | ethip4-ip4base-2tap-iperf3
21 |
22 | Suite Setup | Setup suite topology interfaces
23 | Suite Teardown | Tear down suite
24 | Test Setup | Setup test
25 | Test Teardown | Tear down test | iPerf3 | namespace
26 |
27 | Test Template | Local Template
28 |
29 | Documentation | *RFC2544: Pkt throughput IPv4 routing test cases with TAPv2*
30 |
31 | ... | *[Top] Network Topologies:* DUT1 1-node topology without physical links.
32 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4-TCP.
33 | ... | *[Cfg] DUT configuration:* DUT1 is configured with IPv4 routing.
34 | ... | *[Ver] TG verification:* iPerf3 client/server is used for Packet\
35 | ... | generation and verification.
36 | ... | *[Ref] Applicable standard specifications:* RFC2544.
37
38 *** Variables ***
39 | @{plugins_to_enable}= | ping_plugin.so
40 | ${crypto_type}= | ${None}
41 | ${nic_name}= | Intel-X710
42 | ${nic_driver}= | tap
43 | ${nic_rxq_size}= | 4096
44 | ${nic_txq_size}= | 4096
45 | ${nic_pfs}= | 2
46 | ${nic_vfs}= | 0
47 | ${osi_layer}= | L7
48 | ${overhead}= | ${0}
49 | ${enable_gso}= | ${False}
50 # iPerf3 client settings:
51 | ${iperf_client_bind}= | 1.1.1.1
52 | ${iperf_client_bind_gw}= | 1.1.1.2
53 | ${iperf_client_bind_mask}= | 30
54 | ${iperf_client_interface}= | tap0
55 | ${iperf_client_namespace}= | tap0_namespace
56 | ${iperf_client_udp}= | ${False}
57 | ${iperf_client_node}= | DUT1
58 | ${iperf_client_affinity} | ${None}
59 # iPerf3 server settings:
60 | ${iperf_server_bind}= | 2.2.2.2
61 | ${iperf_server_bind_gw}= | 2.2.2.1
62 | ${iperf_server_bind_mask}= | 30
63 | ${iperf_server_interface}= | tap1
64 | ${iperf_server_namespace}= | tap1_namespace
65 | ${iperf_server_node}= | DUT1
66 | ${iperf_server_pf_key}= | ${None}
67 # Trial data overwrite:
68 | ${trial_duration}= | ${30}
69 | ${trial_multiplicity}= | ${10}
70
71 *** Keywords ***
72 | Local Template
73 | | [Documentation]
74 | | ... | [Cfg] DUT configuration: DUT1 is configured with IPv4 routing.
75 | | ... | [Ver] Measure MaxReceivedRate for ${frame_size}B frames\
76 | | ... | using burst trials throughput test.\
77 | |
78 | | ... | *Arguments:*
79 | | ... | - frame_size - Framesize in Bytes in integer. Type: integer, string
80 | | ... | - phy_cores - Number of physical cores. Type: integer
81 | | ... | - rxq - Number of RX queues, default value: ${None}. Type: integer
82 | |
83 | | [Arguments] | ${frame_size} | ${phy_cores} | ${rxq}=${None}
84 | |
85 | | Set Test Variable | \${frame_size}
86 | | Set Test Variable | \${rxq_ratio} | ${1}
87 | |
88 | | Given Set Jumbo
89 | | And Add worker threads for GSO tests to all DUTs | ${phy_cores} | ${rxq}
90 | | And Pre-initialize layer driver | ${nic_driver}
91 | | And Apply startup configuration on all VPP DUTs
92 | | When Initialize layer driver | ${nic_driver}
93 | | And Initialize layer interface
94 | | And VPP Interface Set IP Address
95 | | ... | ${dut1} | ${DUT1_${int}1}[0] | 1.1.1.2 | 30
96 | | And VPP Interface Set IP Address
97 | | ... | ${dut1} | ${DUT1_${int}2}[0] | 2.2.2.1 | 30
98 | | Set Test Variable | ${iperf_server_pf_key} | ${DUT1_pf1}[0]
99 | | Then Traffic should pass with maximum rate on iPerf3
100
101 *** Test Cases ***
102 | 128KB-1c-ethip4-ip4base-2tap-iperf3-mrr
103 | | [Tags] | 128KB | 1C
104 | | frame_size=${128000} | phy_cores=${1}
105
106 | 128KB-2c-ethip4-ip4base-2tap-iperf3-mrr
107 | | [Tags] | 128KB | 2C
108 | | frame_size=${128000} | phy_cores=${2}
109
110 | 128KB-4c-ethip4-ip4base-2tap-iperf3-mrr
111 | | [Tags] | 128KB | 4C
112 | | frame_size=${128000} | phy_cores=${4}