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