2d19f6332c870ca6fc3f5bf86f8dbd95527b7285
[csit.git] / tests / perf / 10ge2p1x520-ethip4vxlan-l2xcbase-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 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRCHK
17 | ... | NIC_Intel-X520-DA2 | L2XCFWD | ENCAP | VXLAN | L2OVRLAY | IP4UNRLAY
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 | Remove startup configuration of VPP from all DUTs
23 | ...           | AND          | Show vpp trace dump on all DUTs
24 | Documentation | *Reference NDR throughput L2XC with VXLANoIPv4 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 cross-connect on TG-DUTn.
29 | ... | Eth-IPv4-VXLAN-Eth-IPv4 is applied on link between DUT1 and DUT2.
30 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 cross-
31 | ... | connect. VXLAN tunnels are configured between L2XCs on DUT1 and DUT2.
32 | ... | DUT1 and DUT2 tested with 2p10GE NIC 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 configuration. 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. MAC addresses are matching MAC addresses of the
42 | ... | TG node interfaces.
43 | ... | *[Ref] Applicable standard specifications:* RFC2544, RFC7348.
44
45 *** Test Cases ***
46 | TC01: Verify 64B ref-NDR at 2x 2.4Mpps - DUT L2XC with VXLANoIPv4 - 1thread 1core 1rxq
47 | | [Documentation]
48 | | ... | [Cfg] DUT runs L2XC config with 1 thread, 1 phy core, \
49 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
50 | | ... | frames using single trial throughput test.
51 | | [Tags] | 1T1C | STHREAD
52 | | ${framesize}= | Set Variable | 64
53 | | ${duration}= | Set Variable | 10
54 | | ${rate}= | Set Variable | 2.4mpps
55 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
56 | | And   Add PCI devices to DUTs from 3-node single link topology
57 | | And   Add No Multi Seg to all DUTs
58 | | And   Apply startup configuration on all VPP DUTs
59 | | And   L2 xconnect with VXLANoIPv4 initialized in a 3-node circular topology
60 | | Then Traffic should pass with no loss | ${duration} | ${rate}
61 | | ...                                   | ${framesize} | 3-node-xconnect
62
63 | TC02: Verify 1518B ref-NDR at 2x 787.153kpps - DUT L2XC with VXLANoIPv4 - 1thread 1core 1rxq
64 | | [Documentation]
65 | | ... | [Cfg] DUT runs L2XC config with 1 thread, 1 phy core, \
66 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
67 | | ... | frames using single trial throughput test.
68 | | [Tags] | 1T1C | STHREAD
69 | | ${framesize}= | Set Variable | 1518
70 | | ${duration}= | Set Variable | 10
71 | | ${rate}= | Set Variable | 787153pps
72 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
73 | | And   Add PCI devices to DUTs from 3-node single link topology
74 | | And   Apply startup configuration on all VPP DUTs
75 | | And   L2 xconnect with VXLANoIPv4 initialized in a 3-node circular topology
76 | | Then Traffic should pass with no loss | ${duration} | ${rate}
77 | | ...                                   | ${framesize} | 3-node-xconnect
78
79 | TC03: Verify 9000B ref-NDR at 2x 137.816kpps - DUT L2XC with VXLANoIPv4 - 1thread 1core 1rxq
80 | | [Documentation]
81 | | ... | [Cfg] DUT runs L2XC 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] | 1T1C | STHREAD
85 | | ${framesize}= | Set Variable | 9000
86 | | ${duration}= | Set Variable | 10
87 | | ${rate}= | Set Variable | 137816pps
88 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
89 | | And   Add PCI devices to DUTs from 3-node single link topology
90 | | And   Apply startup configuration on all VPP DUTs
91 | | And   L2 xconnect with VXLANoIPv4 initialized in a 3-node circular topology
92 | | Then Traffic should pass with no loss | ${duration} | ${rate}
93 | | ...                                   | ${framesize} | 3-node-xconnect
94
95 | TC04: Verify 64B ref-NDR at 2x 5.2Mpps - DUT L2XC with VXLANoIPv4 - 2thread 2core 1rxq
96 | | [Documentation]
97 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 2 phy core, \
98 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
99 | | ... | frames using single trial throughput test.
100 | | [Tags] | 2T2C | MTHREAD
101 | | ${framesize}= | Set Variable | 64
102 | | ${duration}= | Set Variable | 10
103 | | ${rate}= | Set Variable | 5.2mpps
104 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
105 | | And   Add PCI devices to DUTs from 3-node single link topology
106 | | And   Add No Multi Seg to all DUTs
107 | | And   Apply startup configuration on all VPP DUTs
108 | | And   L2 xconnect with VXLANoIPv4 initialized in a 3-node circular topology
109 | | Then Traffic should pass with no loss | ${duration} | ${rate}
110 | | ...                                   | ${framesize} | 3-node-xconnect
111
112 | TC05: Verify 1518B ref-NDR at 2x 787.153kpps - DUT L2XC with VXLANoIPv4 - 2thread 2core 1rxq
113 | | [Documentation]
114 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 2 phy core, \
115 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
116 | | ... | frames using single trial throughput test.
117 | | [Tags] | 2T2C | MTHREAD
118 | | ${framesize}= | Set Variable | 1518
119 | | ${duration}= | Set Variable | 10
120 | | ${rate}= | Set Variable | 787153pps
121 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
122 | | And   Add PCI devices to DUTs from 3-node single link topology
123 | | And   Apply startup configuration on all VPP DUTs
124 | | And   L2 xconnect with VXLANoIPv4 initialized in a 3-node circular topology
125 | | Then Traffic should pass with no loss | ${duration} | ${rate}
126 | | ...                                   | ${framesize} | 3-node-xconnect
127
128 | TC06: Verify 9000B ref-NDR at 2x 137.816kpps - DUT L2XC with VXLANoIPv4 - 2thread 2core 1rxq
129 | | [Documentation]
130 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 2 phy core, \
131 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
132 | | ... | frames using single trial throughput test.
133 | | [Tags] | 2T2C | MTHREAD
134 | | ${framesize}= | Set Variable | 9000
135 | | ${duration}= | Set Variable | 10
136 | | ${rate}= | Set Variable | 137816pps
137 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
138 | | And   Add PCI devices to DUTs from 3-node single link topology
139 | | And   Apply startup configuration on all VPP DUTs
140 | | And   L2 xconnect with VXLANoIPv4 initialized in a 3-node circular topology
141 | | Then Traffic should pass with no loss | ${duration} | ${rate}
142 | | ...                                   | ${framesize} | 3-node-xconnect
143
144 | TC07: Verify 64B ref-NDR at 2x 8.4Mpps - DUT L2XC with VXLANoIPv4 - 4thread 4core 2rxq
145 | | [Documentation]
146 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core, \
147 | | ... | 2 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
148 | | ... | frames using single trial throughput test.
149 | | [Tags] | 4T4C | MTHREAD
150 | | ${framesize}= | Set Variable | 64
151 | | ${duration}= | Set Variable | 10
152 | | ${rate}= | Set Variable | 8.4mpps
153 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
154 | | And   Add PCI devices to DUTs from 3-node single link topology
155 | | And   Add No Multi Seg to all DUTs
156 | | And   Apply startup configuration on all VPP DUTs
157 | | And   L2 xconnect with VXLANoIPv4 initialized in a 3-node circular topology
158 | | Then Traffic should pass with no loss | ${duration} | ${rate}
159 | | ...                                   | ${framesize} | 3-node-xconnect
160
161 | TC08: Verify 1518B ref-NDR at 2x 787.153kpps - DUT L2XC with VXLANoIPv4 - 4thread 4core 2rxq
162 | | [Documentation]
163 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core, \
164 | | ... | 2 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
165 | | ... | frames using single trial throughput test.
166 | | [Tags] | 4T4C | MTHREAD
167 | | ${framesize}= | Set Variable | 1518
168 | | ${duration}= | Set Variable | 10
169 | | ${rate}= | Set Variable | 787153pps
170 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
171 | | And   Add PCI devices to DUTs from 3-node single link topology
172 | | And   Apply startup configuration on all VPP DUTs
173 | | And   L2 xconnect with VXLANoIPv4 initialized in a 3-node circular topology
174 | | Then Traffic should pass with no loss | ${duration} | ${rate}
175 | | ...                                   | ${framesize} | 3-node-xconnect
176
177 | TC09: Verify 9000B ref-NDR at 2x 137.816kpps - DUT L2XC with VXLANoIPv4 - 4thread 4core 2rxq
178 | | [Documentation]
179 | | ... | [Cfg] DUT runs L2XC switching config with 4 thread, 4 phy core, \
180 | | ... | 2 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
181 | | ... | frames using single trial throughput test.
182 | | [Tags] | 4T4C | MTHREAD
183 | | ${framesize}= | Set Variable | 9000
184 | | ${duration}= | Set Variable | 10
185 | | ${rate}= | Set Variable | 137816pps
186 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
187 | | And   Add PCI devices to DUTs from 3-node single link topology
188 | | And   Apply startup configuration on all VPP DUTs
189 | | And   L2 xconnect with VXLANoIPv4 initialized in a 3-node circular topology
190 | | Then Traffic should pass with no loss | ${duration} | ${rate}
191 | | ...                                   | ${framesize} | 3-node-xconnect