feat(tests): IPv6 fixes
[csit.git] / tests / vpp / perf / gso / 2n1l-10ge2p1x710-ethip4-ip4base-2tap-iperf3-mrr.robot
1 # Copyright (c) 2023 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 | iPerf3
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 \
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}= | tap
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 | ${enable_gso}= | ${False}
55 | ${smt_used}= | ${False}
56 # iPerf3 client settings:
57 | ${iperf_client_bind}= | 1.1.1.1
58 | ${iperf_client_bind_gw}= | 1.1.1.2
59 | ${iperf_client_bind_mask}= | 30
60 | ${iperf_client_interface}= | tap0
61 | ${iperf_client_namespace}= | tap0_namespace
62 | ${iperf_client_udp}= | ${False}
63 | ${iperf_client_node}= | DUT1
64 | ${iperf_client_affinity} | ${None}
65 # iPerf3 server settings:
66 | ${iperf_server_bind}= | 2.2.2.2
67 | ${iperf_server_bind_gw}= | 2.2.2.1
68 | ${iperf_server_bind_mask}= | 30
69 | ${iperf_server_interface}= | tap1
70 | ${iperf_server_namespace}= | tap1_namespace
71 | ${iperf_server_node}= | DUT1
72 | ${iperf_server_pf_key}= | ${None}
73 # Trial data overwrite:
74 | ${trial_duration}= | ${30}
75 | ${trial_multiplicity}= | ${10}
76
77 *** Keywords ***
78 | Local Template
79 | | [Documentation]
80 | | ... | - **[Cfg]** DUT configuration: DUT1 is configured with IPv4 routing.
81 | | ... | - **[Ver]** Measure MaxReceivedRate for ${frame_size}B frames \
82 | | ... | using burst trials throughput test.
83 | |
84 | | ... | *Arguments:*
85 | | ... | - frame_size - Framesize in Bytes in integer. Type: integer, string
86 | | ... | - phy_cores - Number of physical cores. Type: integer
87 | | ... | - rxq - Number of RX queues, default value: ${None}. Type: integer
88 | |
89 | | [Arguments] | ${frame_size} | ${phy_cores} | ${rxq}=${None}
90 | |
91 | | Set Test Variable | \${frame_size}
92 | |
93 | | Given Set Jumbo
94 | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq}
95 | | And Pre-initialize layer driver | ${nic_driver}
96 | | And Apply startup configuration on all VPP DUTs
97 | | When Initialize layer driver | ${nic_driver}
98 | | And Initialize layer interface
99 | | And VPP Interface Set IP Address
100 | | ... | ${dut1} | ${DUT1_${int}1}[0] | 1.1.1.2 | 30
101 | | And VPP Interface Set IP Address
102 | | ... | ${dut1} | ${DUT1_${int}2}[0] | 2.2.2.1 | 30
103 | | Set Test Variable | ${iperf_server_pf_key} | ${DUT1_pf1}[0]
104 | | Then Traffic should pass with maximum rate on iPerf3
105
106 *** Test Cases ***
107 | 128KB-1c-ethip4-ip4base-2tap-iperf3-mrr
108 | | [Tags] | 128KB | 1C
109 | | frame_size=${128000} | phy_cores=${1}
110
111 | 128KB-2c-ethip4-ip4base-2tap-iperf3-mrr
112 | | [Tags] | 128KB | 2C
113 | | frame_size=${128000} | phy_cores=${2}
114
115 | 128KB-4c-ethip4-ip4base-2tap-iperf3-mrr
116 | | [Tags] | 128KB | 4C
117 | | frame_size=${128000} | phy_cores=${4}