a2ece2f89a68a48b24b501661656f8351ccc522f
[csit.git] / tests / vpp / perf / gso / 2n1l-10ge2p1x710-ethip4-ip4base-2vhost-gso-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_VHOST
19 | ... | RXQ_SIZE_4096 | TXQ_SIZE_4096 | GSO_TRUE
20 | ... | ethip4-ip4base-2vhost-gso-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 | 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 \
32 | ... | links.
33 | ... |
34 | ... | - **[Enc] Packet Encapsulations:** Eth-IPv4-TCP.
35 | ... |
36 | ... | - **[Cfg] DUT configuration:** DUT1 is configured with IPv4 routing.
37 | ... |
38 | ... | - **[Ver] TG verification:** iPerf3 client/server is used for Packet \
39 | ... | generation and verification.
40 | ... |
41 | ... | - **[Ref] Applicable standard specifications:** RFC2544.
42
43 *** Variables ***
44 | @{plugins_to_enable}= | ping_plugin.so | perfmon_plugin.so
45 | ${crypto_type}= | ${None}
46 | ${nic_name}= | Intel-X710
47 | ${nic_driver}= | vhost
48 | ${nic_rxq_size}= | 4096
49 | ${nic_txq_size}= | 4096
50 | ${nic_pfs}= | 2
51 | ${nic_vfs}= | 0
52 | ${osi_layer}= | L7
53 | ${overhead}= | ${0}
54 | ${smt_used}= | ${False}
55 # Qemu settings:
56 | ${enable_gso}= | ${True}
57 | ${enable_csum}= | ${True}
58 | ${nf_dtcr}= | ${1}
59 | ${nf_dtc}= | ${4}
60 # iPerf3 client settings:
61 | ${iperf_client_bind}= | 1.1.1.1
62 | ${iperf_client_bind_gw}= | 1.1.1.2
63 | ${iperf_client_bind_mask}= | 30
64 | ${iperf_client_interface}= | ens6
65 | ${iperf_client_namespace}= | ${None}
66 | ${iperf_client_udp}= | ${False}
67 | ${iperf_client_node}= | DUT1_2
68 | ${iperf_client_affinity} | 1
69 # iPerf3 server settings:
70 | ${iperf_server_bind}= | 2.2.2.2
71 | ${iperf_server_bind_gw}= | 2.2.2.1
72 | ${iperf_server_bind_mask}= | 30
73 | ${iperf_server_interface}= | ens6
74 | ${iperf_server_namespace}= | ${None}
75 | ${iperf_server_node}= | DUT1_1
76 | ${iperf_server_pf_key}= | ${None}
77 # Trial data overwrite:
78 | ${trial_duration}= | ${30}
79 | ${trial_multiplicity}= | ${10}
80
81 *** Keywords ***
82 | Local Template
83 | | [Documentation]
84 | | ... | - **[Cfg]** DUT configuration: DUT1 is configured with IPv4 routing.
85 | | ... | - **[Ver]** Measure MaxReceivedRate for ${frame_size}B frames \
86 | | ... | using burst trials throughput test.
87 | |
88 | | ... | *Arguments:*
89 | | ... | - frame_size - Framesize in Bytes in integer. Type: integer, string
90 | | ... | - phy_cores - Number of physical cores. Type: integer
91 | | ... | - rxq - Number of RX queues, default value: ${None}. Type: integer
92 | |
93 | | [Arguments] | ${frame_size} | ${phy_cores} | ${rxq}=${None}
94 | |
95 | | Set Test Variable | \${frame_size}
96 | |
97 | | Given Set Jumbo
98 | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq}
99 | | And Pre-initialize layer driver | ${nic_driver}
100 | | And Apply startup configuration on all VPP DUTs
101 | | When Initialize layer driver | ${nic_driver} | validate=${False}
102 | | And Initialize layer interface
103 | | And VPP Interface Set IP Address
104 | | ... | ${dut1} | ${DUT1_${int}1}[0]
105 | | ... | ${iperf_server_bind_gw} | ${iperf_server_bind_mask}
106 | | And VPP Interface Set IP Address
107 | | ... | ${dut1} | ${DUT1_${int}2}[0]
108 | | ... | ${iperf_client_bind_gw} | ${iperf_client_bind_mask}
109 | | And Configure chains of NFs connected via vhost-user on single node
110 | | ... | node=DUT1 | nf_nodes=${2} | vnf=iperf3 | auto_scale=${True}
111 | | ... | fixed_auto_scale=${True} | validate=${False}
112 | | And Get CPU Info from All Nodes | ${nodes}
113 | | Traffic should pass with maximum rate on iPerf3
114
115 *** Test Cases ***
116 | 128KB-1c-ethip4-ip4base-2vhost-gso-iperf3-mrr
117 | | [Tags] | 128KB | 1C
118 | | frame_size=${128000} | phy_cores=${1}
119
120 | 128KB-2c-ethip4-ip4base-2vhost-gso-iperf3-mrr
121 | | [Tags] | 128KB | 2C
122 | | frame_size=${128000} | phy_cores=${2}
123
124 | 128KB-4c-ethip4-ip4base-2vhost-gso-iperf3-mrr
125 | | [Tags] | 128KB | 4C
126 | | frame_size=${128000} | phy_cores=${4}