ed4fa470be521cd92bba8218d84c9cc997337ed1
[csit.git] / tests / perf / 10ge2p1x520-eth-l2bdbasemaclrn-ndrchk.robot
1 # Copyright (c) 2017 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 | ...
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRCHK
19 | ... | NIC_Intel-X520-DA2 | ETH | L2BDMACLRN | BASE
20 | ...
21 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
22 | ... | L2 | Intel-X520-DA2
23 | Suite Teardown | 3-node Performance Suite Teardown
24 | ...
25 | Test Setup | Performance test setup
26 | Test Teardown | Performance ndrchk test teardown
27 | ...
28 | Documentation | *Reference NDR throughput L2BD verify test cases*
29 | ...
30 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
31 | ... | with single links between nodes.
32 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 switching of IPv4.
33 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 bridge-
34 | ... | domain and MAC learning enabled. DUT1 and DUT2 tested with 2p10GE NIC
35 | ... | 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.
47
48 *** Test Cases ***
49 | tc01-64B-1t1c-eth-l2bdbasemaclrn-ndrchk
50 | | [Documentation]
51 | | ... | [Cfg] DUT runs L2BD config with 1 thread, 1 phy core, \
52 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
53 | | ... | frames using single trial throughput test at 2x 4.9mpps.
54 | | [Tags] | 64B | 1T1C | STHREAD
55 | | ${framesize}= | Set Variable | ${64}
56 | | ${rate}= | Set Variable | 4.9mpps
57 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
58 | | And Add PCI devices to DUTs from 3-node single link topology
59 | | And Add No Multi Seg to all DUTs
60 | | And Apply startup configuration on all VPP DUTs
61 | | And L2 bridge domain initialized in a 3-node circular topology
62 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
63 | | ... | ${framesize} | 3-node-bridge
64
65 | tc02-1518B-1t1c-eth-l2bdbasemaclrn-ndrchk
66 | | [Documentation]
67 | | ... | [Cfg] DUT runs L2BD config with 1 thread, 1 phy core, \
68 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
69 | | ... | frames using single trial throughput test at 2x 812743pps.
70 | | [Tags] | 1518B | 1T1C | STHREAD
71 | | ${framesize}= | Set Variable | ${1518}
72 | | ${rate}= | Set Variable | 812743pps
73 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
74 | | And Add PCI devices to DUTs from 3-node single link topology
75 | | And Add No Multi Seg to all DUTs
76 | | And Apply startup configuration on all VPP DUTs
77 | | And L2 bridge domain initialized in a 3-node circular topology
78 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
79 | | ... | ${framesize} | 3-node-bridge
80
81 | tc03-9000B-1t1c-eth-l2bdbasemaclrn-ndrchk
82 | | [Documentation]
83 | | ... | [Cfg] DUT runs L2BD config with 1 thread, 1 phy core, \
84 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
85 | | ... | frames using single trial throughput test at 2x 138580pps.
86 | | [Tags] | 9000B | 1T1C | STHREAD
87 | | ${framesize}= | Set Variable | ${9000}
88 | | ${rate}= | Set Variable | 138580pps
89 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
90 | | And Add PCI devices to DUTs from 3-node single link topology
91 | | And Apply startup configuration on all VPP DUTs
92 | | And L2 bridge domain initialized in a 3-node circular topology
93 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
94 | | ... | ${framesize} | 3-node-bridge
95
96 | tc04-64B-2t2c-eth-l2bdbasemaclrn-ndrchk
97 | | [Documentation]
98 | | ... | [Cfg] DUT runs L2BD config with 2 threads, 2 phy cores, \
99 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
100 | | ... | frames using single trial throughput test at 2x 10.4mpps.
101 | | [Tags] | 64B | 2T2C | MTHREAD
102 | | ${framesize}= | Set Variable | ${64}
103 | | ${rate}= | Set Variable | 10.4mpps
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 bridge domain initialized in a 3-node circular topology
109 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
110 | | ... | ${framesize} | 3-node-bridge
111
112 | tc05-1518B-2t2c-eth-l2bdbasemaclrn-ndrchk
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 at 2x 812743pps.
117 | | [Tags] | 1518B | 2T2C | MTHREAD
118 | | ${framesize}= | Set Variable | ${1518}
119 | | ${rate}= | Set Variable | 812743pps
120 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
121 | | And Add PCI devices to DUTs from 3-node single link topology
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 | ${perf_trial_duration} | ${rate}
126 | | ... | ${framesize} | 3-node-bridge
127
128 | tc06-9000B-2t2c-eth-l2bdbasemaclrn-ndrchk
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 at 2x 138580pps.
133 | | [Tags] | 9000B | 2T2C | MTHREAD
134 | | ${framesize}= | Set Variable | ${9000}
135 | | ${rate}= | Set Variable | 138580pps
136 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
137 | | And Add PCI devices to DUTs from 3-node single link topology
138 | | And Apply startup configuration on all VPP DUTs
139 | | And L2 bridge domain initialized in a 3-node circular topology
140 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
141 | | ... | ${framesize} | 3-node-bridge
142
143 | tc07-64B-4t4c-eth-l2bdbasemaclrn-ndrchk
144 | | [Documentation]
145 | | ... | [Cfg] DUT runs L2BD config with 4 threads, 4 phy cores, \
146 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 64 Byte
147 | | ... | frames using single trial throughput test at 2x 10.4mpps.
148 | | [Tags] | 64B | 4T4C | MTHREAD
149 | | ${framesize}= | Set Variable | ${64}
150 | | ${rate}= | Set Variable | 10.4mpps
151 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
152 | | And Add PCI devices to DUTs from 3-node single link topology
153 | | And Add No Multi Seg to all DUTs
154 | | And Apply startup configuration on all VPP DUTs
155 | | And L2 bridge domain initialized in a 3-node circular topology
156 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
157 | | ... | ${framesize} | 3-node-bridge
158
159 | tc08-1518B-4t4c-eth-l2bdbasemaclrn-ndrchk
160 | | [Documentation]
161 | | ... | [Cfg] DUT runs L2BD config with 4 threads, 4 phy cores, \
162 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 1518 Byte
163 | | ... | frames using single trial throughput test at 2x 812743pps.
164 | | [Tags] | 1518B | 4T4C | MTHREAD
165 | | ${framesize}= | Set Variable | ${1518}
166 | | ${rate}= | Set Variable | 812743pps
167 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
168 | | And Add PCI devices to DUTs from 3-node single link topology
169 | | And Add No Multi Seg to all DUTs
170 | | And Apply startup configuration on all VPP DUTs
171 | | And L2 bridge domain initialized in a 3-node circular topology
172 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
173 | | ... | ${framesize} | 3-node-bridge
174
175 | tc09-9000B-4t4c-eth-l2bdbasemaclrn-ndrchk
176 | | [Documentation]
177 | | ... | [Cfg] DUT runs L2BD config with 4 threads, 4 phy cores, \
178 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 9000 Byte
179 | | ... | frames using single trial throughput test at 2x 138580pps.
180 | | [Tags] | 9000B | 4T4C | MTHREAD
181 | | ${framesize}= | Set Variable | ${9000}
182 | | ${rate}= | Set Variable | 138580pps
183 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
184 | | And Add PCI devices to DUTs from 3-node single link topology
185 | | And Apply startup configuration on all VPP DUTs
186 | | And L2 bridge domain initialized in a 3-node circular topology
187 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
188 | | ... | ${framesize} | 3-node-bridge