Suite: performance.
[csit.git] / tests / suites / performance / Short_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 | Library | resources.libraries.python.NodePath
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PERFTEST_SHORT
18 | ...        | NIC_Intel-X520-DA2
19 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
20 | ... | L2 | Intel-X520-DA2
21 | Suite Teardown | 3-node Performance Suite Teardown
22 | Test Setup | Setup all DUTs before test
23 | Test Teardown | Run Keyword | Remove startup configuration of VPP from all DUTs
24 | Documentation | *Reference NDR throughput L2BD verify test cases*
25 | ...
26 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
27 | ... | with single links between nodes.
28 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 switching of IPv4.
29 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 bridge-
30 | ... | domain and MAC learning enabled. DUT1 and DUT2 tested with 2p10GE NIC
31 | ... | X520 Niantic by Intel.
32 | ... | *[Ver] TG verification:* In short performance tests, TG verifies
33 | ... | DUTs' throughput at ref-NDR (reference Non Drop Rate) with zero packet
34 | ... | loss tolerance. Ref-NDR value is periodically updated acording to
35 | ... | formula: ref-NDR = 0.9x NDR, where NDR is found in RFC2544 long
36 | ... | performance tests for the same DUT confiiguration. Test packets are
37 | ... | generated by TG on links to DUTs. TG traffic profile contains two L3
38 | ... | flow-groups (flow-group per direction, 253 flows per flow-group) with
39 | ... | all packets containing Ethernet header, IPv4 header with IP protocol=61
40 | ... | and generated payload.
41 | ... | *[Ref] Applicable standard specifications:* RFC2544.
42
43 *** Test Cases ***
44 | TC01: Verify 64B ref-NDR at 2x 3.2Mpps - DUT L2BD - 1thread 1core 1rxq
45 | | [Documentation]
46 | | ... | [Cfg] DUT runs L2BD config with 1 thread, 1 phy core, \
47 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
48 | | ... | frames using single trial throughput test.
49 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
50 | | ${framesize}= | Set Variable | 64
51 | | ${duration}= | Set Variable | 10
52 | | ${rate}= | Set Variable | 3.2mpps
53 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
54 | | And   Add all PCI devices to all DUTs
55 | | And   Add No Multi Seg to all DUTs
56 | | And   Apply startup configuration on all VPP DUTs
57 | | And   L2 bridge domain initialized in a 3-node circular topology
58 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
59 | | ...                                    | ${framesize} | 3-node-bridge
60
61 | TC02: Verify 1518B ref-NDR at 2x 812.74kpps - DUT L2BD - 1thread 1core 1rxq
62 | | [Documentation]
63 | | ... | [Cfg] DUT runs L2BD config with 1 thread, 1 phy core, \
64 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
65 | | ... | frames using single trial throughput test.
66 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
67 | | ${framesize}= | Set Variable | 1518
68 | | ${duration}= | Set Variable | 10
69 | | ${rate}= | Set Variable | 812743pps
70 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
71 | | And   Add all PCI devices to all DUTs
72 | | And   Add No Multi Seg to all DUTs
73 | | And   Apply startup configuration on all VPP DUTs
74 | | And   L2 bridge domain initialized in a 3-node circular topology
75 | | Then Traffic should pass with no loss | ${duration} | ${rate}
76 | | ...                                   | ${framesize} | 3-node-bridge
77
78 | TC03: Verify 9000B ref-NDR at 2x 138.58kpps - DUT L2BD - 1thread 1core 1rxq
79 | | [Documentation]
80 | | ... | [Cfg] DUT runs L2BD config with 1 thread, 1 phy core, \
81 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
82 | | ... | frames using single trial throughput test.
83 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD | NDR
84 | | ${framesize}= | Set Variable | 9000
85 | | ${duration}= | Set Variable | 10
86 | | ${rate}= | Set Variable | 138580pps
87 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
88 | | And   Add all PCI devices to all DUTs
89 | | And   Apply startup configuration on all VPP DUTs
90 | | And   L2 bridge domain initialized in a 3-node circular topology
91 | | Then Traffic should pass with no loss | ${duration} | ${rate}
92 | | ...                                   | ${framesize} | 3-node-bridge
93
94 | TC04: Verify 64B ref-NDR at 2x 6.9Mpps - DUT L2BD - 2thread 2core 1rxq
95 | | [Documentation]
96 | | ... | [Cfg] DUT runs L2BD config with 2 threads, 2 phy cores, \
97 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
98 | | ... | frames using single trial throughput test.
99 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
100 | | ${framesize}= | Set Variable | 64
101 | | ${duration}= | Set Variable | 10
102 | | ${rate}= | Set Variable | 6.9mpps
103 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
104 | | And   Add all PCI devices to all DUTs
105 | | And   Add No Multi Seg to all DUTs
106 | | And   Apply startup configuration on all VPP DUTs
107 | | And   L2 bridge domain initialized in a 3-node circular topology
108 | | Then Traffic should pass with no loss | ${duration} | ${rate}
109 | | ...                                   | ${framesize} | 3-node-bridge
110
111 | TC05: Verify 1518B ref-NDR at 2x 812.74kpps - DUT L2BD - 2thread 2core 1rxq
112 | | [Documentation]
113 | | ... | [Cfg] DUT runs L2BD config with 2 threads, 2 phy cores, \
114 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
115 | | ... | frames using single trial throughput test.
116 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
117 | | ${framesize}= | Set Variable | 1518
118 | | ${duration}= | Set Variable | 10
119 | | ${rate}= | Set Variable | 812743pps
120 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
121 | | And   Add all PCI devices to all DUTs
122 | | And   Add No Multi Seg to all DUTs
123 | | And   Apply startup configuration on all VPP DUTs
124 | | And   L2 bridge domain initialized in a 3-node circular topology
125 | | Then Traffic should pass with no loss | ${duration} | ${rate}
126 | | ...                                   | ${framesize} | 3-node-bridge
127
128 | TC06: Verify 9000B ref-NDR at 2x 138.58kpps - DUT L2BD - 2thread 2core 1rxq
129 | | [Documentation]
130 | | ... | [Cfg] DUT runs L2BD config with 2 threads, 2 phy cores, \
131 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
132 | | ... | frames using single trial throughput test.
133 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD | NDR
134 | | ${framesize}= | Set Variable | 9000
135 | | ${duration}= | Set Variable | 10
136 | | ${rate}= | Set Variable | 138580pps
137 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
138 | | And   Add all PCI devices to all DUTs
139 | | And   Apply startup configuration on all VPP DUTs
140 | | And   L2 bridge domain initialized in a 3-node circular topology
141 | | Then Traffic should pass with no loss | ${duration} | ${rate}
142 | | ...                                   | ${framesize} | 3-node-bridge
143
144 | TC07: Verify 64B ref-NDR at 2x 7.4Mpps - DUT L2BD - 4thread 4core 2rxq
145 | | [Documentation]
146 | | ... | [Cfg] DUT runs L2BD config with 4 threads, 4 phy cores, \
147 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 64 Byte
148 | | ... | frames using single trial throughput test.
149 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
150 | | ${framesize}= | Set Variable | 64
151 | | ${duration}= | Set Variable | 10
152 | | ${rate}= | Set Variable | 7.4mpps
153 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
154 | | And   Add all PCI devices to all DUTs
155 | | And   Add No Multi Seg to all DUTs
156 | | And   Apply startup configuration on all VPP DUTs
157 | | And   L2 bridge domain initialized in a 3-node circular topology
158 | | Then Traffic should pass with no loss | ${duration} | ${rate}
159 | | ...                                   | ${framesize} | 3-node-bridge
160
161 | TC08: Verify 1518B ref-NDR at 2x 812.74kpps - DUT L2BD - 4thread 4core 2rxq
162 | | [Documentation]
163 | | ... | [Cfg] DUT runs L2BD config with 4 threads, 4 phy cores, \
164 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 1518 Byte
165 | | ... | frames using single trial throughput test.
166 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
167 | | ${framesize}= | Set Variable | 1518
168 | | ${duration}= | Set Variable | 10
169 | | ${rate}= | Set Variable | 812743pps
170 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
171 | | And   Add all PCI devices to all DUTs
172 | | And   Add No Multi Seg to all DUTs
173 | | And   Apply startup configuration on all VPP DUTs
174 | | And   L2 bridge domain initialized in a 3-node circular topology
175 | | Then Traffic should pass with no loss | ${duration} | ${rate}
176 | | ...                                   | ${framesize} | 3-node-bridge
177
178 | TC09: Verify 9000B ref-NDR at 2x 138.58kpps - DUT L2BD - 4thread 4core 2rxq
179 | | [Documentation]
180 | | ... | [Cfg] DUT runs L2BD config with 4 threads, 4 phy cores, \
181 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 9000 Byte
182 | | ... | frames using single trial throughput test.
183 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD | NDR
184 | | ${framesize}= | Set Variable | 9000
185 | | ${duration}= | Set Variable | 10
186 | | ${rate}= | Set Variable | 138580pps
187 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
188 | | And   Add all PCI devices to all DUTs
189 | | And   Apply startup configuration on all VPP DUTs
190 | | And   L2 bridge domain initialized in a 3-node circular topology
191 | | Then Traffic should pass with no loss | ${duration} | ${rate}
192 | | ...                                   | ${framesize} | 3-node-bridge