perf: GENEVE tunnel test, l3 mode
[csit.git] / tests / vpp / perf / ip4_tunnels / 2n1l-10ge2p1x710-ethip4--ethip4udpgeneve-256tun-ip4base-ndrpdr.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 | Resource | resources/libraries/robot/ip/geneve.robot
17 |
18 | Force Tags | 2_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR
19 | ... | NIC_Intel-X710 | ETH | IP4FWD | IP4BASE | UDP | ENCAP | GENEVE_L3MODE
20 | ... | SCALE | GENEVE4_256TUN | DRV_VFIO_PCI
21 | ... | RXQ_SIZE_0 | TXQ_SIZE_0
22 | ... | ethip4--ethip4udpgeneve-256tun-ip4base
23 |
24 | Suite Setup | Setup suite topology interfaces | performance
25 | Suite Teardown | Tear down suite | performance
26 | Test Setup | Setup test | performance
27 | Test Teardown | Tear down test | performance | geneve4
28 |
29 | Test Template | Local Template
30 |
31 | Documentation | *RFC2544: Pkt throughput GENEVE tunnel L3 mode performance
32 | ... | test cases*
33 |
34 | ... | *[Top] Network Topologies:* TG-DUT1-TG 2-node circular topology
35 | ... | with single links between nodes.
36 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 between TG-if1 and DUT1-if1 and\
37 | ... | Eth-IPv4-UDP-GENEVE-Eth-IPv4 between DUT1-if2 and TG-if2 for IPv4\
38 | ... | routing over GENEVE tunnels.
39 | ... | *[Cfg] DUT configuration:* DUT1 is configured with IPv4 routing over\
40 | ... | ${n_tunnels} GENEVE tunnels and ${${4} * ${n_tunnels}} static IPv4 /24\
41 | ... | route entries. DUT1 is tested with ${nic_name}.
42 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop\
43 | ... | Rate) with zero packet loss tolerance and throughput PDR (Partial Drop\
44 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage\
45 | ... | of packets transmitted. NDR and PDR are discovered for different\
46 | ... | Ethernet L2 frame sizes using MLRsearch library.\
47 | ... | Test packets are generated by TG on links to DUT1. TG traffic profile
48 | ... | contains two L3 flow-groups (flow-group per direction, 1 flow per
49 | ... | flow-group) with all packets containing Ethernet header, IPv4 header
50 | ... | with IP protocol=61 and static payload. MAC addresses are matching MAC
51 | ... | addresses of the TG node interfaces.
52 | ... | *[Ref] Applicable standard specifications:* RFC2544, RFC791, RFC768,
53 | ... | RFC8926.
54
55 *** Variables ***
56 | @{plugins_to_enable}= | dpdk_plugin.so | geneve_plugin.so
57 | ${crypto_type}= | ${None}
58 | ${nic_name}= | Intel-X710
59 | ${nic_driver}= | vfio-pci
60 | ${nic_rxq_size}= | 0
61 | ${nic_txq_size}= | 0
62 | ${nic_pfs}= | 2
63 | ${nic_vfs}= | 0
64 | ${osi_layer}= | L3
65 | ${overhead}= | ${50}
66 # IP settings
67 | ${dut1_if1_ip4}= | 20.0.0.1
68 | ${dut1_if2_ip4}= | 30.0.0.1
69 | ${tg_if1_ip4}= | 20.0.0.2
70 | ${tg_if2_ip4}= | 30.0.0.2
71 # GENEVE settings
72 | ${gen_mode}= | ${osi_layer}
73 | ${n_tunnels}= | ${256}
74 | &{gen_tunnel}=
75 | ... | local=1.1.1.2 | remote=1.1.1.1 | vni=${1}
76 | ... | src_ip=10.128.1.0 | dst_ip=10.0.1.0 | ip_mask=${24} | if_ip=11.0.1.2
77 # Traffic profile
78 | ${traffic_profile}= | trex-stl-2n-ethip4-geneve-${n_tunnels}t
79
80 *** Keywords ***
81 | Local Template
82 | |
83 | | [Documentation]
84 | | ... | [Cfg] DUT runs GENEVE ${gen_mode} mode configuration.
85 | | ... | Each DUT uses ${phy_cores} physical core(s) for worker threads.
86 | | ... | [Ver] Measure NDR and PDR values using MLRsearch algorithm.\
87 | |
88 | | ... | *Arguments:*
89 | | ... | - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1).
90 | | ... | Type: integer, string
91 | | ... | - phy_cores - Number of physical cores. Type: integer
92 | | ... | - rxq - Number of RX queues, default value: ${None}. Type: integer
93 | |
94 | | [Arguments] | ${frame_size} | ${phy_cores} | ${rxq}=${None}
95 | |
96 | | Set Test Variable | \${frame_size}
97 | | Set Test Variable | \${rxq_ratio} | ${1}
98 | |
99 | | Given Set Max Rate And Jumbo
100 | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq}
101 | | And Pre-initialize layer driver | ${nic_driver}
102 | | And Apply startup configuration on all VPP DUTs
103 | | When Initialize layer driver | ${nic_driver}
104 | | And Initialize layer interface
105 | | And Initialize GENEVE L3 mode in circular topology
106 | | Then Find NDR and PDR intervals using optimized search
107
108 *** Test Cases ***
109 | 64B-1c-ethip4--ethip4udpgeneve-256tun-ip4base-ndrpdr
110 | | [Tags] | 64B | 1C
111 | | frame_size=${64} | phy_cores=${1}
112
113 | 64B-2c-ethip4--ethip4udpgeneve-256tun-ip4base-ndrpdr
114 | | [Tags] | 64B | 2C
115 | | frame_size=${64} | phy_cores=${2}
116
117 | 64B-4c-ethip4--ethip4udpgeneve-256tun-ip4base-ndrpdr
118 | | [Tags] | 64B | 4C
119 | | frame_size=${64} | phy_cores=${4}
120
121 | 1518B-1c-ethip4--ethip4udpgeneve-256tun-ip4base-ndrpdr
122 | | [Tags] | 1518B | 1C
123 | | frame_size=${1518} | phy_cores=${1}
124
125 | 1518B-2c-ethip4--ethip4udpgeneve-256tun-ip4base-ndrpdr
126 | | [Tags] | 1518B | 2C
127 | | frame_size=${1518} | phy_cores=${2}
128
129 | 1518B-4c-ethip4--ethip4udpgeneve-256tun-ip4base-ndrpdr
130 | | [Tags] | 1518B | 4C
131 | | frame_size=${1518} | phy_cores=${4}
132
133 | 9000B-1c-ethip4--ethip4udpgeneve-256tun-ip4base-ndrpdr
134 | | [Tags] | 9000B | 1C
135 | | frame_size=${9000} | phy_cores=${1}
136
137 | 9000B-2c-ethip4--ethip4udpgeneve-256tun-ip4base-ndrpdr
138 | | [Tags] | 9000B | 2C
139 | | frame_size=${9000} | phy_cores=${2}
140
141 | 9000B-4c-ethip4--ethip4udpgeneve-256tun-ip4base-ndrpdr
142 | | [Tags] | 9000B | 4C
143 | | frame_size=${9000} | phy_cores=${4}
144
145 | IMIX-1c-ethip4--ethip4udpgeneve-256tun-ip4base-ndrpdr
146 | | [Tags] | IMIX | 1C
147 | | frame_size=IMIX_v4_1 | phy_cores=${1}
148
149 | IMIX-2c-ethip4--ethip4udpgeneve-256tun-ip4base-ndrpdr
150 | | [Tags] | IMIX | 2C
151 | | frame_size=IMIX_v4_1 | phy_cores=${2}
152
153 | IMIX-4c-ethip4--ethip4udpgeneve-256tun-ip4base-ndrpdr
154 | | [Tags] | IMIX | 4C
155 | | frame_size=IMIX_v4_1 | phy_cores=${4}