Refactor perf test cases
[csit.git] / tests / vpp / perf / ip6 / 40ge2p1xl710-ethip6-ip6base-ndrpdrdisc.robot
1 # Copyright (c) 2017 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 | NDRPDRDISC
18 | ... | NIC_Intel-XL710 | ETH | IP6FWD | BASE
19 | ...
20 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
21 | ... | L3 | Intel-XL710
22 | Suite Teardown | Tear down 3-node performance topology
23 | ...
24 | Test Setup | Set up performance test
25 | ...
26 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
27 | ... | ${framesize} | ${traffic_profile}
28 | ...
29 | Documentation | *RFC2544: Pkt throughput IPv6 routing test cases*
30 | ...
31 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
32 | ... | with single links between nodes.
33 | ... | *[Enc] Packet Encapsulations:* Eth-IPv6 for IPv6 routing.
34 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv6
35 | ... | routing and two static IPv6 /64 route entries. DUT1 and DUT2 tested with
36 | ... | 2p40GE NIC XL710 by Intel.
37 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
38 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
39 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
40 | ... | of packets transmitted. NDR and PDR are discovered for different
41 | ... | Ethernet L2 frame sizes using either binary search or linear search
42 | ... | algorithms with configured starting rate and final step that determines
43 | ... | throughput measurement resolution. Test packets are generated by TG on
44 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
45 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
46 | ... | containing Ethernet header, IPv6 header and static payload.
47 | ... | MAC addresses are matching MAC addresses of the TG node interfaces.
48 | ... | *[Ref] Applicable standard specifications:* RFC2544.
49
50 *** Variables ***
51 # XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
52 | ${s_24.5G} | ${24500000000}
53 # XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
54 | ${s_18.75Mpps} | ${18750000}
55 # Traffic profile:
56 | ${traffic_profile} | trex-sl-3n-ethip6-ip6src253
57
58 *** Test Cases ***
59 | tc01-78B-1t1c-ethip6-ip6base-ndrdisc
60 | | [Documentation]
61 | | ... | [Cfg] DUT runs IPv6 routing config with 1 phy core, \
62 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 78 Byte frames
63 | | ... | using binary search start at 18.75Mpps rate, step 50kpps.
64 | | [Tags] | 78B | 1C | NDRDISC
65 | | ${framesize}= | Set Variable | ${78}
66 | | ${min_rate}= | Set Variable | ${50000}
67 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
68 | | ${binary_min}= | Set Variable | ${min_rate}
69 | | ${binary_max}= | Set Variable | ${max_rate}
70 | | ${threshold}= | Set Variable | ${min_rate}
71 | | Given Add worker threads and rxqueues to all DUTs | 1
72 | | And Add PCI devices to all DUTs
73 | | And Add no multi seg to all DUTs
74 | | And Add DPDK dev default RXD to all DUTs | 2048
75 | | And Add DPDK dev default TXD to all DUTs | 2048
76 | | And Apply startup configuration on all VPP DUTs
77 | | And Initialize IPv6 forwarding in 3-node circular topology
78 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
79 | | ... | ${binary_max} | ${traffic_profile}
80 | | ... | ${min_rate} | ${max_rate} | ${threshold}
81
82 | tc03-1518B-1t1c-ethip6-ip6base-ndrdisc
83 | | [Documentation]
84 | | ... | [Cfg] DUT runs IPv6 routing config with 1 phy core, \
85 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
86 | | ... | using binary search start at 24.5G rate, step 50kpps.
87 | | [Tags] | 1518B | 1C | NDRDISC
88 | | ${framesize}= | Set Variable | ${1518}
89 | | ${min_rate}= | Set Variable | ${50000}
90 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
91 | | ${binary_min}= | Set Variable | ${min_rate}
92 | | ${binary_max}= | Set Variable | ${max_rate}
93 | | ${threshold}= | Set Variable | ${min_rate}
94 | | Given Add worker threads and rxqueues to all DUTs | 1
95 | | And Add PCI devices to all DUTs
96 | | And Add no multi seg to all DUTs
97 | | And Add DPDK dev default RXD to all DUTs | 2048
98 | | And Add DPDK dev default TXD to all DUTs | 2048
99 | | And Apply startup configuration on all VPP DUTs
100 | | And Initialize IPv6 forwarding in 3-node circular topology
101 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
102 | | ... | ${binary_max} | ${traffic_profile}
103 | | ... | ${min_rate} | ${max_rate} | ${threshold}
104
105 | tc07-78B-2t2c-ethip6-ip6base-ndrdisc
106 | | [Documentation]
107 | | ... | [Cfg] DUT runs IPv6 routing config with 2 phy cores, \
108 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 78 Byte frames
109 | | ... | using binary search start at 18.75Mpps rate, step 50kpps.
110 | | [Tags] | 78B | 2C | NDRDISC
111 | | ${framesize}= | Set Variable | ${78}
112 | | ${min_rate}= | Set Variable | ${50000}
113 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
114 | | ${binary_min}= | Set Variable | ${min_rate}
115 | | ${binary_max}= | Set Variable | ${max_rate}
116 | | ${threshold}= | Set Variable | ${min_rate}
117 | | Given Add worker threads and rxqueues to all DUTs | 2
118 | | And Add PCI devices to all DUTs
119 | | And Add no multi seg to all DUTs
120 | | And Add DPDK dev default RXD to all DUTs | 2048
121 | | And Add DPDK dev default TXD to all DUTs | 2048
122 | | And Apply startup configuration on all VPP DUTs
123 | | And Initialize IPv6 forwarding in 3-node circular topology
124 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
125 | | ... | ${binary_max} | ${traffic_profile}
126 | | ... | ${min_rate} | ${max_rate} | ${threshold}
127
128 | tc09-1518B-2t2c-ethip6-ip6base-ndrdisc
129 | | [Documentation]
130 | | ... | [Cfg] DUT runs IPv6 routing config with 2 phy cores, \
131 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
132 | | ... | using binary search start at 24.5G rate, step 50kpps.
133 | | [Tags] | 1518B | 2C | NDRDISC | SKIP_PATCH
134 | | ${framesize}= | Set Variable | ${1518}
135 | | ${min_rate}= | Set Variable | ${50000}
136 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
137 | | ${binary_min}= | Set Variable | ${min_rate}
138 | | ${binary_max}= | Set Variable | ${max_rate}
139 | | ${threshold}= | Set Variable | ${min_rate}
140 | | Given Add worker threads and rxqueues to all DUTs | 2
141 | | And Add PCI devices to all DUTs
142 | | And Add no multi seg to all DUTs
143 | | And Add DPDK dev default RXD to all DUTs | 2048
144 | | And Add DPDK dev default TXD to all DUTs | 2048
145 | | And Apply startup configuration on all VPP DUTs
146 | | And Initialize IPv6 forwarding in 3-node circular topology
147 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
148 | | ... | ${binary_max} | ${traffic_profile}
149 | | ... | ${min_rate} | ${max_rate} | ${threshold}
150
151 | tc13-78B-4t4c-ethip6-ip6base-ndrdisc
152 | | [Documentation]
153 | | ... | [Cfg] DUT runs IPv6 routing config with 4 phy cores, \
154 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 78 Byte frames
155 | | ... | using binary search start at 18.75Mpps rate, step 50kpps.
156 | | [Tags] | 78B | 4C | NDRDISC
157 | | ${framesize}= | Set Variable | ${78}
158 | | ${min_rate}= | Set Variable | ${50000}
159 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
160 | | ${binary_min}= | Set Variable | ${min_rate}
161 | | ${binary_max}= | Set Variable | ${max_rate}
162 | | ${threshold}= | Set Variable | ${min_rate}
163 | | Given Add worker threads and rxqueues to all DUTs | 4
164 | | And Add PCI devices to all DUTs
165 | | And Add no multi seg to all DUTs
166 | | And Add DPDK dev default RXD to all DUTs | 2048
167 | | And Add DPDK dev default TXD to all DUTs | 2048
168 | | And Apply startup configuration on all VPP DUTs
169 | | And Initialize IPv6 forwarding in 3-node circular topology
170 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
171 | | ... | ${binary_max} | ${traffic_profile}
172 | | ... | ${min_rate} | ${max_rate} | ${threshold}
173
174 | tc15-1518B-4t4c-ethip6-ip6base-ndrdisc
175 | | [Documentation]
176 | | ... | [Cfg] DUT runs IPv6 routing config with 4 phy cores, \
177 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames
178 | | ... | using binary search start at 24.5G rate, step 50kpps.
179 | | [Tags] | 1518B | 4C | NDRDISC | SKIP_PATCH
180 | | ${framesize}= | Set Variable | ${1518}
181 | | ${min_rate}= | Set Variable | ${50000}
182 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
183 | | ${binary_min}= | Set Variable | ${min_rate}
184 | | ${binary_max}= | Set Variable | ${max_rate}
185 | | ${threshold}= | Set Variable | ${min_rate}
186 | | Given Add worker threads and rxqueues to all DUTs | 4
187 | | And Add PCI devices to all DUTs
188 | | And Add no multi seg to all DUTs
189 | | And Add DPDK dev default RXD to all DUTs | 2048
190 | | And Add DPDK dev default TXD to all DUTs | 2048
191 | | And Apply startup configuration on all VPP DUTs
192 | | And Initialize IPv6 forwarding in 3-node circular topology
193 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
194 | | ... | ${binary_max} | ${traffic_profile}
195 | | ... | ${min_rate} | ${max_rate} | ${threshold}