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