deb3fef0b9b6999b80c102cc372ea87d32613151
[csit.git] / tests / vpp / perf / gso / 2n1l-10ge2p1x710-ethip4-ip4base-2vhost-gso-iperf3.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_VHOST
19 | ... | RXQ_SIZE_4096 | TXQ_SIZE_4096 | GSO_TRUE
20 | ... | ethip4-ip4base-2vhost-gso
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 | vhost
26 |
27 | Test Template | Local Template
28 |
29 | Documentation | *RFC2544: Pkt throughput IPv4 routing test cases with VHOST*
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}= | vhost
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 # Qemu settings:
50 | ${enable_gso}= | ${True}
51 | ${enable_csum}= | ${True}
52 | ${nf_dtcr}= | ${1}
53 | ${nf_dtc}= | ${4}
54 # iPerf3 client settings:
55 | ${iperf_client_bind}= | 1.1.1.1
56 | ${iperf_client_bind_gw}= | 1.1.1.2
57 | ${iperf_client_bind_mask}= | 30
58 | ${iperf_client_interface}= | ens6
59 | ${iperf_client_namespace}= | ${None}
60 | ${iperf_client_udp}= | ${False}
61 | ${iperf_client_node}= | DUT1_2
62 | ${iperf_client_affinity} | 1
63 # iPerf3 server settings:
64 | ${iperf_server_bind}= | 2.2.2.2
65 | ${iperf_server_bind_gw}= | 2.2.2.1
66 | ${iperf_server_bind_mask}= | 30
67 | ${iperf_server_interface}= | ens6
68 | ${iperf_server_namespace}= | ${None}
69 | ${iperf_server_node}= | DUT1_1
70 | ${iperf_server_pf_key}= | ${None}
71 # Trial data overwrite:
72 | ${trial_duration}= | ${30}
73 | ${trial_multiplicity}= | ${4}
74
75 *** Keywords ***
76 | Local Template
77 | | [Documentation]
78 | | ... | [Cfg] DUT configuration: DUT1 is configured with IPv4 routing.
79 | | ... | [Ver] Measure MaxReceivedRate for ${frame_size}B frames\
80 | | ... | using burst trials throughput test.\
81 | |
82 | | ... | *Arguments:*
83 | | ... | - frame_size - Framesize in Bytes in integer. Type: integer, string
84 | | ... | - phy_cores - Number of physical cores. Type: integer
85 | | ... | - rxq - Number of RX queues, default value: ${None}. Type: integer
86 | |
87 | | [Arguments] | ${frame_size} | ${phy_cores} | ${rxq}=${None}
88 | |
89 | | Set Test Variable | \${frame_size}
90 | | Set Test Variable | \${rxq_ratio} | ${1}
91 | |
92 | | Given Set Jumbo
93 | | And Add worker threads for GSO tests to all DUTs | ${phy_cores} | ${rxq}
94 | | And Pre-initialize layer driver | ${nic_driver}
95 | | And Apply startup configuration on all VPP DUTs
96 | | When Initialize layer driver | ${nic_driver} | validate=${False}
97 | | And Initialize layer interface
98 | | And VPP Interface Set IP Address
99 | | ... | ${dut1} | ${DUT1_${int}1}[0]
100 | | ... | ${iperf_server_bind_gw} | ${iperf_server_bind_mask}
101 | | And VPP Interface Set IP Address
102 | | ... | ${dut1} | ${DUT1_${int}2}[0]
103 | | ... | ${iperf_client_bind_gw} | ${iperf_client_bind_mask}
104 | | And Configure chains of NFs connected via vhost-user on single node
105 | | ... | node=DUT1 | nf_nodes=${2} | vnf=iperf3 | auto_scale=${True}
106 | | ... | fixed_auto_scale=${True} | validate=${False}
107 | | And Get CPU Info from All Nodes | ${nodes}
108 | | Traffic should pass with maximum rate on iPerf3
109
110 *** Test Cases ***
111 | 128KB-1c-ethip4-ip4base-2vhost-gso-iperf3
112 | | [Tags] | 128KB | 1C
113 | | frame_size=${128000} | phy_cores=${1}
114
115 | 128KB-2c-ethip4-ip4base-2vhost-gso-iperf3
116 | | [Tags] | 128KB | 2C
117 | | frame_size=${128000} | phy_cores=${2}
118
119 | 128KB-4c-ethip4-ip4base-2vhost-gso-iperf3
120 | | [Tags] | 128KB | 4C
121 | | frame_size=${128000} | phy_cores=${4}