CSIT-664: Refactor setups and teardowns
[csit.git] / tests / perf / 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.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 thread, 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 100kpps.
64 | | [Tags] | 78B | 1T1C | STHREAD | NDRDISC
65 | | ${framesize}= | Set Variable | ${78}
66 | | ${min_rate}= | Set Variable | ${100000}
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 '1' worker threads and '1' rxqueues in 3-node single-link circular topology
72 | | And Add PCI devices to DUTs in 3-node single link topology
73 | | And Add no multi seg to all DUTs
74 | | And Apply startup configuration on all VPP DUTs
75 | | And Initialize IPv6 forwarding in 3-node circular topology
76 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
77 | | ... | ${binary_max} | ${traffic_profile}
78 | | ... | ${min_rate} | ${max_rate} | ${threshold}
79
80 | tc03-1518B-1t1c-ethip6-ip6base-ndrdisc
81 | | [Documentation]
82 | | ... | [Cfg] DUT runs IPv6 routing config with 1 thread, 1 phy core, \
83 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
84 | | ... | using binary search start at 24.5G rate, step 10kpps.
85 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
86 | | ${framesize}= | Set Variable | ${1518}
87 | | ${min_rate}= | Set Variable | ${10000}
88 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
89 | | ${binary_min}= | Set Variable | ${min_rate}
90 | | ${binary_max}= | Set Variable | ${max_rate}
91 | | ${threshold}= | Set Variable | ${min_rate}
92 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
93 | | And Add PCI devices to DUTs in 3-node single link topology
94 | | And Add no multi seg to all DUTs
95 | | And Apply startup configuration on all VPP DUTs
96 | | And Initialize IPv6 forwarding in 3-node circular topology
97 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
98 | | ... | ${binary_max} | ${traffic_profile}
99 | | ... | ${min_rate} | ${max_rate} | ${threshold}
100
101 | tc07-78B-2t2c-ethip6-ip6base-ndrdisc
102 | | [Documentation]
103 | | ... | [Cfg] DUT runs IPv6 routing config with 2 threads, 2 phy cores, \
104 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 78 Byte frames
105 | | ... | using binary search start at 18.75Mpps rate, step 100kpps.
106 | | [Tags] | 78B | 2T2C | MTHREAD | NDRDISC
107 | | ${framesize}= | Set Variable | ${78}
108 | | ${min_rate}= | Set Variable | ${100000}
109 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
110 | | ${binary_min}= | Set Variable | ${min_rate}
111 | | ${binary_max}= | Set Variable | ${max_rate}
112 | | ${threshold}= | Set Variable | ${min_rate}
113 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
114 | | And Add PCI devices to DUTs in 3-node single link topology
115 | | And Add no multi seg to all DUTs
116 | | And Apply startup configuration on all VPP DUTs
117 | | And Initialize IPv6 forwarding in 3-node circular topology
118 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
119 | | ... | ${binary_max} | ${traffic_profile}
120 | | ... | ${min_rate} | ${max_rate} | ${threshold}
121
122 | tc09-1518B-2t2c-ethip6-ip6base-ndrdisc
123 | | [Documentation]
124 | | ... | [Cfg] DUT runs IPv6 routing config with 2 threads, 2 phy cores, \
125 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
126 | | ... | using binary search start at 24.5G rate, step 10kpps.
127 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
128 | | ${framesize}= | Set Variable | ${1518}
129 | | ${min_rate}= | Set Variable | ${10000}
130 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
131 | | ${binary_min}= | Set Variable | ${min_rate}
132 | | ${binary_max}= | Set Variable | ${max_rate}
133 | | ${threshold}= | Set Variable | ${min_rate}
134 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
135 | | And Add PCI devices to DUTs in 3-node single link topology
136 | | And Add no multi seg to all DUTs
137 | | And Apply startup configuration on all VPP DUTs
138 | | And Initialize IPv6 forwarding in 3-node circular topology
139 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
140 | | ... | ${binary_max} | ${traffic_profile}
141 | | ... | ${min_rate} | ${max_rate} | ${threshold}
142
143 | tc13-78B-4t4c-ethip6-ip6base-ndrdisc
144 | | [Documentation]
145 | | ... | [Cfg] DUT runs IPv6 routing config with 4 threads, 4 phy cores, \
146 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 78 Byte frames
147 | | ... | using binary search start at 18.75Mpps rate, step 100kpps.
148 | | [Tags] | 78B | 4T4C | MTHREAD | NDRDISC
149 | | ${framesize}= | Set Variable | ${78}
150 | | ${min_rate}= | Set Variable | ${100000}
151 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
152 | | ${binary_min}= | Set Variable | ${min_rate}
153 | | ${binary_max}= | Set Variable | ${max_rate}
154 | | ${threshold}= | Set Variable | ${min_rate}
155 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
156 | | And Add PCI devices to DUTs in 3-node single link topology
157 | | And Add no multi seg to all DUTs
158 | | And Apply startup configuration on all VPP DUTs
159 | | And Initialize IPv6 forwarding in 3-node circular topology
160 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
161 | | ... | ${binary_max} | ${traffic_profile}
162 | | ... | ${min_rate} | ${max_rate} | ${threshold}
163
164 | tc15-1518B-4t4c-ethip6-ip6base-ndrdisc
165 | | [Documentation]
166 | | ... | [Cfg] DUT runs IPv6 routing config with 4 threads, 4 phy cores, \
167 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames
168 | | ... | using binary search start at 24.5G rate, step 10kpps.
169 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
170 | | ${framesize}= | Set Variable | ${1518}
171 | | ${min_rate}= | Set Variable | ${10000}
172 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
173 | | ${binary_min}= | Set Variable | ${min_rate}
174 | | ${binary_max}= | Set Variable | ${max_rate}
175 | | ${threshold}= | Set Variable | ${min_rate}
176 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
177 | | And Add PCI devices to DUTs in 3-node single link topology
178 | | And Add no multi seg to all DUTs
179 | | And Apply startup configuration on all VPP DUTs
180 | | And Initialize IPv6 forwarding in 3-node circular topology
181 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
182 | | ... | ${binary_max} | ${traffic_profile}
183 | | ... | ${min_rate} | ${max_rate} | ${threshold}