CSIT-403 Data-Driven Performance Test Suite I
[csit.git] / tests / perf / Bridge_Domain_Intel-X520-DA2.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-X520-DA2
18 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
19 | ... | L2 | Intel-X520-DA2
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-bridge
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 L2BD 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-IPv4 for L2 switching of IPv4.
34 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 bridge-\
35 | ... | domain and MAC learning enabled. DUT1 and DUT2 tested with 2p10GE NI
36 | ... | X520 Niantic 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, IPv4 header with IP protocol=61 and static\
47 | ... | payload. MAC addresses are matching MAC addresses of the TG node\
48 | ... | interfaces.
49 | ... | *[Ref] Applicable standard specifications:* RFC2544.
50
51 *** Variables ***
52 #X520-DA2 bandwidth limit
53 | ${s_limit} | ${10000000000}
54
55 *** Keywords ***
56 | L2 Bridge Domain NDR Binary Search
57 | | [Arguments] | ${framesize} | ${min_rate} | ${wt} | ${rxq}
58 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
59 | | ${binary_min}= | Set Variable | ${min_rate}
60 | | ${binary_max}= | Set Variable | ${max_rate}
61 | | ${threshold}= | Set Variable | ${min_rate}
62 | | Set Test Documentation | [Cfg] DUT runs L2BD switching config with ${wt}\
63 | | Set Test Documentation | thread, ${wt} phy core, ${rxq}\ | append=True
64 | | Set Test Documentation | receive queue per NIC port. | append=True
65 | | Set Test Documentation | [Ver] Find NDR for ${framesize} Byte\ | append=True
66 | | Set Test Documentation | frames using binary search start at\ | append=True
67 | | Set Test Documentation | 10GE linerate, step ${threshold}pps. | append=True
68 | | Add '${wt}' worker threads and rxqueues '${rxq}' in 3-node single-link topo
69 | | Add PCI devices to DUTs from 3-node single link topology
70 | | Run Keyword If | ${framesize} < ${1522} | Add No Multi Seg to all DUTs
71 | | Apply startup configuration on all VPP DUTs
72 | | L2 bridge domain initialized in a 3-node circular topology
73 | | Find NDR using binary search and pps
74 | | ... | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
75 | | ... | ${min_rate} | ${max_rate} | ${threshold}
76
77 | L2 Bridge Domain PDR Binary Search
78 | | [Arguments] | ${framesize} | ${min_rate} | ${wt} | ${rxq}
79 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
80 | | ${binary_min}= | Set Variable | ${min_rate}
81 | | ${binary_max}= | Set Variable | ${max_rate}
82 | | ${threshold}= | Set Variable | ${min_rate}
83 | | Set Test Documentation | [Cfg] DUT runs L2BD switching config with ${wt}\
84 | | Set Test Documentation | thread, ${wt} phy core, ${rxq}\ | append=True
85 | | Set Test Documentation | receive queue per NIC port. | append=True
86 | | Set Test Documentation | [Ver] Find PDR for ${framesize} Byte\ | append=True
87 | | Set Test Documentation | frames using binary search start at\ | append=True
88 | | Set Test Documentation | 10GE linerate, step ${threshold}pps, | append=True
89 | | Set Test Documentation | LT=${glob_loss_acceptance} | append=True
90 | | Set Test Documentation | ${glob_loss_acceptance_type}. | append=True
91 | | Add '${wt}' worker threads and rxqueues '${rxq}' in 3-node single-link topo
92 | | Add PCI devices to DUTs from 3-node single link topology
93 | | Run Keyword If | ${framesize} < ${1522} | Add No Multi Seg to all DUTs
94 | | Apply startup configuration on all VPP DUTs
95 | | L2 bridge domain initialized in a 3-node circular topology
96 | | Find PDR using binary search and pps
97 | | ... | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
98 | | ... | ${min_rate} | ${max_rate} | ${threshold}
99 | | ... | ${glob_loss_acceptance} | ${glob_loss_acceptance_type}
100
101 *** Test Cases ***
102 | TC01: 64B NDR binary search - DUT L2BD - 1thread 1core 1rxq
103 | | ... | ${64} | ${100000} | 1 | 1
104 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
105 | | [Template] | L2 Bridge Domain NDR Binary Search
106
107 | TC02: 64B PDR binary search - DUT L2BD - 1thread 1core 1rxq
108 | | ... | ${64} | ${100000} | 1 | 1
109 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
110 | | [Template] | L2 Bridge Domain PDR Binary Search
111
112 | TC03: 1518B NDR binary search - DUT L2BD - 1thread 1core 1rxq
113 | | ... | ${1518} | ${10000} | 1 | 1
114 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
115 | | [Template] | L2 Bridge Domain NDR Binary Search
116
117 | TC04: 1518B PDR binary search - DUT L2BD - 1thread 1core 1rxq
118 | | ... | ${1518} | ${10000} | 1 | 1
119 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
120 | | [Template] | L2 Bridge Domain PDR Binary Search
121
122 | TC05: 9000B NDR binary search - DUT L2BD - 1thread 1core 1rxq
123 | | ... | ${9000} | ${10000} | 1 | 1
124 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
125 | | [Template] | L2 Bridge Domain NDR Binary Search
126
127 | TC06: 9000B PDR binary search - DUT L2BD - 1thread 1core 1rxq
128 | | ... | ${9000} | ${10000} | 1 | 1
129 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | PDR | SKIP_PATCH
130 | | [Template] | L2 Bridge Domain PDR Binary Search
131
132 | TC07: 64B NDR binary search - DUT L2BD - 2thread 2core 1rxq
133 | | ... | ${64} | ${100000} | 2 | 1
134 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
135 | | [Template] | L2 Bridge Domain NDR Binary Search
136
137 | TC08: 64B PDR binary search - DUT L2BD - 2thread 2core 1rxq
138 | | ... | ${64} | ${100000} | 2 | 1
139 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
140 | | [Template] | L2 Bridge Domain PDR Binary Search
141
142 | TC09: 1518B NDR binary search - DUT L2BD - 2thread 2core 1rxq
143 | | ... | ${1518} | ${10000} | 2 | 1
144 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR | SKIP_PATCH
145 | | [Template] | L2 Bridge Domain NDR Binary Search
146
147 | TC10: 1518B PDR binary search - DUT L2BD - 2thread 2core 1rxq
148 | | ... | ${1518} | ${10000} | 2 | 1
149 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
150 | | [Template] | L2 Bridge Domain PDR Binary Search
151
152 | TC11: 9000B NDR binary search - DUT L2BD - 2thread 2core 1rxq
153 | | ... | ${9000} | ${10000} | 2 | 1
154 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR | SKIP_PATCH
155 | | [Template] | L2 Bridge Domain NDR Binary Search
156
157 | TC12: 9000B PDR binary search - DUT L2BD - 2thread 2core 1rxq
158 | | ... | ${9000} | ${10000} | 2 | 1
159 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | PDR | SKIP_PATCH
160 | | [Template] | L2 Bridge Domain PDR Binary Search
161
162 | TC13: 64B NDR binary search - DUT L2BD - 4thread 4core 2rxq
163 | | ... | ${64} | ${100000} | 4 | 2
164 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
165 | | [Template] | L2 Bridge Domain NDR Binary Search
166
167 | TC14: 64B PDR binary search - DUT L2BD - 4thread 4core 2rxq
168 | | ... | ${64} | ${100000} | 4 | 2
169 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
170 | | [Template] | L2 Bridge Domain PDR Binary Search
171
172 | TC15: 1518B NDR binary search - DUT L2BD - 4thread 4core 2rxq
173 | | ... | ${1518} | ${10000} | 4 | 2
174 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR | SKIP_PATCH
175 | | [Template] | L2 Bridge Domain NDR Binary Search
176
177 | TC16: 1518B PDR binary search - DUT L2BD - 4thread 4core 2rxq
178 | | ... | ${1518} | ${10000} | 4 | 2
179 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
180 | | [Template] | L2 Bridge Domain PDR Binary Search
181
182 | TC17: 9000B NDR binary search - DUT L2BD - 4thread 4core 2rxq
183 | | ... | ${9000} | ${10000} | 4 | 2
184 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR | SKIP_PATCH
185 | | [Template] | L2 Bridge Domain NDR Binary Search
186
187 | TC18: 9000B PDR binary search - DUT L2BD - 4thread 4core 2rxq
188 | | ... | ${9000} | ${10000} | 4 | 2
189 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | PDR | SKIP_PATCH
190 | | [Template] | L2 Bridge Domain PDR Binary Search