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