HC Test: Fix log archiving in honeycomb tests
[csit.git] / tests / perf / Long_IPv6_Intel-XL710.robot
1 # Copyright (c) 2016 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 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PERFTEST_LONG
17 | ...        | NIC_Intel-XL710
18 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
19 | ... | L3 | Intel-XL710
20 | Suite Teardown | 3-node Performance Suite Teardown
21 | Test Setup | Setup all DUTs before test
22 | Test Teardown | Run Keywords
23 | ...           | Run Keyword If Test Failed
24 | ...           | Traffic should pass with no loss | 10
25 | ...           | ${min_rate}pps | ${framesize} | 3-node-IPv6
26 | ...           | fail_on_loss=${False}
27 | ...           | AND | Remove startup configuration of VPP from all DUTs
28 | ...           | AND | Show vpp trace dump on all DUTs
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
56 *** Test Cases ***
57 | TC01: 78B NDR binary search - DUT IPv6 - 1thread 1core 1rxq
58 | | [Documentation]
59 | | ... | [Cfg] DUT runs IPv6 routing config with 1 thread, 1 phy core, \
60 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 78 Byte frames
61 | | ... | using binary search start at 18.75Mpps rate, step 100kpps.
62 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
63 | | ${framesize}= | Set Variable | ${78}
64 | | ${min_rate}= | Set Variable | ${100000}
65 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
66 | | ${binary_min}= | Set Variable | ${min_rate}
67 | | ${binary_max}= | Set Variable | ${max_rate}
68 | | ${threshold}= | Set Variable | ${min_rate}
69 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
70 | | And   Add PCI devices to DUTs from 3-node single link topology
71 | | And   Add No Multi Seg to all DUTs
72 | | And   Apply startup configuration on all VPP DUTs
73 | | And   IPv6 forwarding initialized in a 3-node circular topology
74 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
75 | | ...                                       | ${binary_max} | 3-node-IPv6
76 | | ...                                       | ${min_rate} | ${max_rate}
77 | | ...                                       | ${threshold}
78
79 | TC03: 1518B NDR binary search - DUT IPv6 - 1thread 1core 1rxq
80 | | [Documentation]
81 | | ... | [Cfg] DUT runs IPv6 routing config with 1 thread, 1 phy core, \
82 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
83 | | ... | using binary search start at 24.5G rate, step 10kpps.
84 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
85 | | ${framesize}= | Set Variable | ${1518}
86 | | ${min_rate}= | Set Variable | ${10000}
87 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
88 | | ${binary_min}= | Set Variable | ${min_rate}
89 | | ${binary_max}= | Set Variable | ${max_rate}
90 | | ${threshold}= | Set Variable | ${min_rate}
91 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
92 | | And   Add PCI devices to DUTs from 3-node single link topology
93 | | And   Add No Multi Seg to all DUTs
94 | | And   Apply startup configuration on all VPP DUTs
95 | | And   IPv6 forwarding initialized in a 3-node circular topology
96 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
97 | | ...                                       | ${binary_max} | 3-node-IPv6
98 | | ...                                       | ${min_rate} | ${max_rate}
99 | | ...                                       | ${threshold}
100
101 | TC07: 78B NDR binary search - DUT IPv6 - 2threads 2cores 1rxq
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] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
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 rxqueues '1' in 3-node single-link topo
114 | | And   Add PCI devices to DUTs from 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   IPv6 forwarding initialized in a 3-node circular topology
118 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
119 | | ...                                       | ${binary_max} | 3-node-IPv6
120 | | ...                                       | ${min_rate} | ${max_rate}
121 | | ...                                       | ${threshold}
122
123 | TC09: 1518B NDR binary search - DUT IPv6 - 2threads 2cores 1rxq
124 | | [Documentation]
125 | | ... | [Cfg] DUT runs IPv6 routing config with 2 threads, 2 phy cores, \
126 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
127 | | ... | using binary search start at 24.5G rate, step 10kpps.
128 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR | SKIP_PATCH
129 | | ${framesize}= | Set Variable | ${1518}
130 | | ${min_rate}= | Set Variable | ${10000}
131 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
132 | | ${binary_min}= | Set Variable | ${min_rate}
133 | | ${binary_max}= | Set Variable | ${max_rate}
134 | | ${threshold}= | Set Variable | ${min_rate}
135 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
136 | | And   Add PCI devices to DUTs from 3-node single link topology
137 | | And   Add No Multi Seg to all DUTs
138 | | And   Apply startup configuration on all VPP DUTs
139 | | And   IPv6 forwarding initialized in a 3-node circular topology
140 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
141 | | ...                                       | ${binary_max} | 3-node-IPv6
142 | | ...                                       | ${min_rate} | ${max_rate}
143 | | ...                                       | ${threshold}
144
145 | TC13: 78B NDR binary search - DUT IPv6 - 4threads 4cores 2rxq
146 | | [Documentation]
147 | | ... | [Cfg] DUT runs IPv6 routing config with 4 threads, 4 phy cores, \
148 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 78 Byte frames
149 | | ... | using binary search start at 18.75Mpps rate, step 100kpps.
150 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
151 | | ${framesize}= | Set Variable | ${78}
152 | | ${min_rate}= | Set Variable | ${100000}
153 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
154 | | ${binary_min}= | Set Variable | ${min_rate}
155 | | ${binary_max}= | Set Variable | ${max_rate}
156 | | ${threshold}= | Set Variable | ${min_rate}
157 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
158 | | And   Add PCI devices to DUTs from 3-node single link topology
159 | | And   Add No Multi Seg to all DUTs
160 | | And   Apply startup configuration on all VPP DUTs
161 | | And   IPv6 forwarding initialized in a 3-node circular topology
162 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
163 | | ...                                       | ${binary_max} | 3-node-IPv6
164 | | ...                                       | ${min_rate} | ${max_rate}
165 | | ...                                       | ${threshold}
166
167 | TC15: 1518B NDR binary search - DUT IPv6 - 4threads 4cores 2rxq
168 | | [Documentation]
169 | | ... | [Cfg] DUT runs IPv6 routing config with 4 threads, 4 phy cores, \
170 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames
171 | | ... | using binary search start at 24.5G rate, step 10kpps.
172 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR | SKIP_PATCH
173 | | ${framesize}= | Set Variable | ${1518}
174 | | ${min_rate}= | Set Variable | ${10000}
175 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
176 | | ${binary_min}= | Set Variable | ${min_rate}
177 | | ${binary_max}= | Set Variable | ${max_rate}
178 | | ${threshold}= | Set Variable | ${min_rate}
179 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
180 | | And   Add PCI devices to DUTs from 3-node single link topology
181 | | And   Add No Multi Seg to all DUTs
182 | | And   Apply startup configuration on all VPP DUTs
183 | | And   IPv6 forwarding initialized in a 3-node circular topology
184 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
185 | | ...                                       | ${binary_max} | 3-node-IPv6
186 | | ...                                       | ${min_rate} | ${max_rate}
187 | | ...                                       | ${threshold}