FIX: VTS cpu list
[csit.git] / tests / vpp / perf / vts / 10ge2p1x710-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr.robot
1 # Copyright (c) 2019 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/performance/performance_setup.robot
16 | ...
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR
18 | ... | NIC_Intel-X710 | L2BDMACLRN | ENCAP | VXLAN | L2OVRLAY | IP4UNRLAY
19 | ... | VHOST | VM | VHOST_1024 | VTS
20 | ...
21 | Suite Setup | Run Keywords
22 | ... | Set up 3-node performance topology with DUT's NIC model
23 | ... | L3 | ${nic_name}
24 | ... | AND | Set up performance test suite with ACL
25 | Suite Teardown | Tear down 3-node performance topology
26 | ...
27 | Test Setup | Set up performance test
28 | Test Teardown | Tear down performance test with vhost and VM with dpdk-testpmd and ACL
29 | ... | dut1_node=${dut1} | dut1_vm_refs=${dut1_vm_refs}
30 | ...
31 | Test Template | Local Template
32 | ...
33 | Documentation | *RFC2544: Packet throughput L2BD test cases with VXLANoIPv4
34 | ... | and vhost*
35 | ...
36 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
37 | ... | with single links between nodes.
38 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 switching of IPv4.
39 | ... | Eth-IPv4-VXLAN-Eth-IPv4 is applied on link between DUT1 and DUT2.
40 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 bridge-
41 | ... | domain and MAC learning enabled. Qemu Guest is connected to VPP via
42 | ... | vhost-user interfaces. Guest is running DPDK testpmd interconnecting
43 | ... | vhost-user interfaces using 5 cores pinned to cpus 5-9 and 2048M
44 | ... | memory. Testpmd is using socket-mem=1024M (512x2M hugepages), 5 cores
45 | ... | (1 main core and 4 cores dedicated for io), forwarding mode is set to
46 | ... | io, rxd/txd=256, burst=64. DUT1, DUT2 are tested with ${nic_name}.\
47 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop\
48 | ... | Rate) with zero packet loss tolerance and throughput PDR (Partial Drop\
49 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage\
50 | ... | of packets transmitted. NDR and PDR are discovered for different\
51 | ... | Ethernet L2 frame sizes using MLRsearch library.\
52 | ... | Test packets are generated by TG on
53 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
54 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
55 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
56 | ... | payload. MAC addresses are matching MAC addresses of the TG node
57 | ... | interfaces.
58 | ... | *[Ref] Applicable standard specifications:* RFC2544, RFC7348.
59
60 *** Variables ***
61 | ${nic_name}= | Intel-X710
62 | ${overhead}= | ${50}
63 # Socket names
64 | ${dut1_bd_id1}= | 1
65 | ${dut1_bd_id2}= | 2
66 | ${dut2_bd_id1}= | 1
67 | ${sock1}= | /var/run/vpp/sock-1-${dut1_bd_id1}
68 | ${sock2}= | /var/run/vpp/sock-1-${dut1_bd_id2}
69 # Traffic profile:
70 | ${traffic_profile}= | trex-sl-ethip4-vxlansrc253
71 | ${acl_type}= | ${EMPTY}
72 # Defaults for teardown:
73 | ${dut1}= | ${None}
74 | ${dut1_vm_refs}= | ${None}
75
76 *** Keywords ***
77 | Local Template
78 | | [Documentation]
79 | | ... | [Cfg] DUT runs L2BD switching config.
80 | | ... | Each DUT uses ${phy_cores} physical core(s) for worker threads.
81 | | ... | [Ver] Measure NDR and PDR values using MLRsearch algorithm.\
82 | | ...
83 | | ... | *Arguments:*
84 | | ... | - frame_size - L2 Frame Size [B]. Type: integer
85 | | ... | - phy_cores - Number of worker threads to be used. Type: integer
86 | | ... | - rxq - Number of Rx queues to be used. Type: integer
87 | | ... | - acl_type - FIXME.
88 | | ...
89 | | [Arguments] | ${frame_size} | ${phy_cores} | ${rxq}=${None}
90 | | ...
91 | | Set Test Variable | \${frame_size}
92 | | ...
93 | | Given Add worker threads and rxqueues to all DUTs | ${phy_cores} | ${rxq}
94 | | Add PCI devices to all DUTs
95 | | Set Max Rate And Jumbo And Handle Multi Seg
96 | | And Apply startup configuration on all VPP DUTs
97 | | &{vxlan1} = | Create Dictionary | vni=24 | vtep=172.17.0.2
98 | | &{vxlan2} = | Create Dictionary | vni=24 | vtep=172.27.0.2
99 | | @{dut1_vxlans} = | Create List | ${vxlan1}
100 | | @{dut2_vxlans} = | Create List | ${vxlan2}
101 | | Set interfaces in path up
102 | | Configure vhost interfaces for L2BD forwarding | ${dut1}
103 | | ... | ${sock1} | ${sock2}
104 | | When Init L2 bridge domains with single DUT with Vhost-User and VXLANoIPv4 in 3-node circular topology
105 | | ... | 172.16.0.1 | 16 | 172.26.0.1 | 16 | 172.16.0.2 | 172.26.0.2
106 | | ... | ${dut1_vxlans} | ${dut2_vxlans} | 172.17.0.0 | 16 | 172.27.0.0 | 16
107 | | @{permit_list} = | Create List | 10.0.0.1/32 | 10.0.0.2/32
108 | | Run Keyword If | '${acl_type}' != '${EMPTY}'
109 | | ... | Configure ACLs on a single interface | ${dut1} | ${dut1_if2} | input
110 | | ... | ${acl_type} | @{permit_list}
111 | | ${nf_cpus}= | Get Affinity NF | ${nodes} | ${dut1} | nf_chains=${1}
112 | | | ... | nf_nodes=${1} | nf_chain=${1} | nf_node=${1}
113 | | | ... | vs_dtc=${cpu_count_int} | nf_dtc=${cpu_count_int}
114 | | ${vm1} = | And Configure guest VM with dpdk-testpmd connected via vhost-user
115 | | ... | DUT1 | ${sock1} | ${sock2} | ${TEST NAME}DUT1_VM1 | ${nf_cpus}
116 | | ... | jumbo=${jumbo} | perf_qemu_qsz=${1024} | use_tuned_cfs=${False}
117 | | Set Test Variable | &{dut1_vm_refs} | ${TEST NAME}DUT1_VM1=${vm1}
118 | | Then Find NDR and PDR intervals using optimized search
119
120 *** Test Cases ***
121 | tc01-114B-1c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
122 | | [Tags] | 114B | 1C
123 | | frame_size=${114} | phy_cores=${1}
124
125 | tc02-114B-2c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
126 | | [Tags] | 114B | 2C
127 | | frame_size=${114} | phy_cores=${2}
128
129 | tc03-114B-4c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
130 | | [Tags] | 114B | 4C
131 | | frame_size=${114} | phy_cores=${4}
132
133 | tc04-1518B-1c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
134 | | [Tags] | 1518B | 1C
135 | | frame_size=${1518} | phy_cores=${1}
136
137 | tc05-1518B-2c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
138 | | [Tags] | 1518B | 2C
139 | | frame_size=${1518} | phy_cores=${2}
140
141 | tc06-1518B-4c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
142 | | [Tags] | 1518B | 4C
143 | | frame_size=${1518} | phy_cores=${4}
144
145 | tc07-9000B-1c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
146 | | [Tags] | 9000B | 1C
147 | | frame_size=${9000} | phy_cores=${1}
148
149 | tc08-9000B-2c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
150 | | [Tags] | 9000B | 2C
151 | | frame_size=${9000} | phy_cores=${2}
152
153 | tc09-9000B-4c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
154 | | [Tags] | 9000B | 4C
155 | | frame_size=${9000} | phy_cores=${4}
156
157 | tc10-IMIX-1c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
158 | | [Tags] | IMIX | 1C
159 | | frame_size=IMIX_v4_1 | phy_cores=${1}
160
161 | tc11-IMIX-2c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
162 | | [Tags] | IMIX | 2C
163 | | frame_size=IMIX_v4_1 | phy_cores=${2}
164
165 | tc12-IMIX-4c-ethip4vxlan-l2bdbasemaclrn-eth-iacldstbase-noacl-2vhostvr1024-1vm-ndrpdr
166 | | [Tags] | IMIX | 4C
167 | | frame_size=IMIX_v4_1 | phy_cores=${4}