CSIT-768: Refactor Python container libraries
[csit.git] / tests / vpp / perf / l2 / 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/performance_setup.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 | L2BDBASE
20 | ...
21 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
22 | ... | L2 | Intel-X520-DA2
23 | Suite Teardown | Tear down 3-node performance topology
24 | ...
25 | Test Setup | Set up performance test
26 | Test Teardown | Tear down performance ndrchk test
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 *** Variables ***
49 # Traffic profile:
50 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
51
52 *** Test Cases ***
53 | tc01-64B-1t1c-eth-l2bdbasemaclrn-ndrchk
54 | | [Documentation]
55 | | ... | [Cfg] DUT runs L2BD config with 1 thread, 1 phy core, \
56 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
57 | | ... | frames using single trial throughput test at 2x 4.9mpps.
58 | | [Tags] | 64B | 1T1C | STHREAD
59 | | ${framesize}= | Set Variable | ${64}
60 | | ${rate}= | Set Variable | 4.9mpps
61 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
62 | | And Add PCI devices to DUTs in 3-node single link topology
63 | | And Add no multi seg to all DUTs
64 | | And Apply startup configuration on all VPP DUTs
65 | | And Initialize L2 bridge domain in 3-node circular topology
66 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
67 | | ... | ${framesize} | ${traffic_profile}
68
69 | tc02-1518B-1t1c-eth-l2bdbasemaclrn-ndrchk
70 | | [Documentation]
71 | | ... | [Cfg] DUT runs L2BD config with 1 thread, 1 phy core, \
72 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
73 | | ... | frames using single trial throughput test at 2x 812743pps.
74 | | [Tags] | 1518B | 1T1C | STHREAD
75 | | ${framesize}= | Set Variable | ${1518}
76 | | ${rate}= | Set Variable | 812743pps
77 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
78 | | And Add PCI devices to DUTs in 3-node single link topology
79 | | And Add no multi seg to all DUTs
80 | | And Apply startup configuration on all VPP DUTs
81 | | And Initialize L2 bridge domain in 3-node circular topology
82 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
83 | | ... | ${framesize} | ${traffic_profile}
84
85 | tc03-9000B-1t1c-eth-l2bdbasemaclrn-ndrchk
86 | | [Documentation]
87 | | ... | [Cfg] DUT runs L2BD config with 1 thread, 1 phy core, \
88 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
89 | | ... | frames using single trial throughput test at 2x 138580pps.
90 | | [Tags] | 9000B | 1T1C | STHREAD
91 | | ${framesize}= | Set Variable | ${9000}
92 | | ${rate}= | Set Variable | 138580pps
93 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
94 | | And Add PCI devices to DUTs in 3-node single link topology
95 | | And Apply startup configuration on all VPP DUTs
96 | | And Initialize L2 bridge domain in 3-node circular topology
97 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
98 | | ... | ${framesize} | ${traffic_profile}
99
100 | tc04-64B-2t2c-eth-l2bdbasemaclrn-ndrchk
101 | | [Documentation]
102 | | ... | [Cfg] DUT runs L2BD 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 at 2x 10.4mpps.
105 | | [Tags] | 64B | 2T2C | MTHREAD
106 | | ${framesize}= | Set Variable | ${64}
107 | | ${rate}= | Set Variable | 10.4mpps
108 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
109 | | And Add PCI devices to DUTs in 3-node single link topology
110 | | And Add no multi seg to all DUTs
111 | | And Apply startup configuration on all VPP DUTs
112 | | And Initialize L2 bridge domain in 3-node circular topology
113 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
114 | | ... | ${framesize} | ${traffic_profile}
115
116 | tc05-1518B-2t2c-eth-l2bdbasemaclrn-ndrchk
117 | | [Documentation]
118 | | ... | [Cfg] DUT runs L2BD config with 2 threads, 2 phy cores, \
119 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
120 | | ... | frames using single trial throughput test at 2x 812743pps.
121 | | [Tags] | 1518B | 2T2C | MTHREAD
122 | | ${framesize}= | Set Variable | ${1518}
123 | | ${rate}= | Set Variable | 812743pps
124 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
125 | | And Add PCI devices to DUTs in 3-node single link topology
126 | | And Add no multi seg to all DUTs
127 | | And Apply startup configuration on all VPP DUTs
128 | | And Initialize L2 bridge domain in 3-node circular topology
129 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
130 | | ... | ${framesize} | ${traffic_profile}
131
132 | tc06-9000B-2t2c-eth-l2bdbasemaclrn-ndrchk
133 | | [Documentation]
134 | | ... | [Cfg] DUT runs L2BD config with 2 threads, 2 phy cores, \
135 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
136 | | ... | frames using single trial throughput test at 2x 138580pps.
137 | | [Tags] | 9000B | 2T2C | MTHREAD
138 | | ${framesize}= | Set Variable | ${9000}
139 | | ${rate}= | Set Variable | 138580pps
140 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
141 | | And Add PCI devices to DUTs in 3-node single link topology
142 | | And Apply startup configuration on all VPP DUTs
143 | | And Initialize L2 bridge domain in 3-node circular topology
144 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
145 | | ... | ${framesize} | ${traffic_profile}
146
147 | tc07-64B-4t4c-eth-l2bdbasemaclrn-ndrchk
148 | | [Documentation]
149 | | ... | [Cfg] DUT runs L2BD config with 4 threads, 4 phy cores, \
150 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 64 Byte
151 | | ... | frames using single trial throughput test at 2x 10.4mpps.
152 | | [Tags] | 64B | 4T4C | MTHREAD
153 | | ${framesize}= | Set Variable | ${64}
154 | | ${rate}= | Set Variable | 10.4mpps
155 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
156 | | And Add PCI devices to DUTs in 3-node single link topology
157 | | And Add no multi seg to all DUTs
158 | | And Apply startup configuration on all VPP DUTs
159 | | And Initialize L2 bridge domain in 3-node circular topology
160 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
161 | | ... | ${framesize} | ${traffic_profile}
162
163 | tc08-1518B-4t4c-eth-l2bdbasemaclrn-ndrchk
164 | | [Documentation]
165 | | ... | [Cfg] DUT runs L2BD config with 4 threads, 4 phy cores, \
166 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 1518 Byte
167 | | ... | frames using single trial throughput test at 2x 812743pps.
168 | | [Tags] | 1518B | 4T4C | MTHREAD
169 | | ${framesize}= | Set Variable | ${1518}
170 | | ${rate}= | Set Variable | 812743pps
171 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
172 | | And Add PCI devices to DUTs in 3-node single link topology
173 | | And Add no multi seg to all DUTs
174 | | And Apply startup configuration on all VPP DUTs
175 | | And Initialize L2 bridge domain in 3-node circular topology
176 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
177 | | ... | ${framesize} | ${traffic_profile}
178
179 | tc09-9000B-4t4c-eth-l2bdbasemaclrn-ndrchk
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 at 2x 138580pps.
184 | | [Tags] | 9000B | 4T4C | MTHREAD
185 | | ${framesize}= | Set Variable | ${9000}
186 | | ${rate}= | Set Variable | 138580pps
187 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
188 | | And Add PCI devices to DUTs in 3-node single link topology
189 | | And Apply startup configuration on all VPP DUTs
190 | | And Initialize L2 bridge domain in 3-node circular topology
191 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
192 | | ... | ${framesize} | ${traffic_profile}