CSIT-524: Traffic generator using python profiles
[csit.git] / tests / perf / 10ge2p1x520-ethip4vxlan-l2xcbase-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 | ...
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRCHK
18 | ... | NIC_Intel-X520-DA2 | L2XCFWD | ENCAP | VXLAN | L2OVRLAY | IP4UNRLAY
19 | ...
20 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
21 | ... | L2 | Intel-X520-DA2
22 | Suite Teardown | 3-node Performance Suite Teardown
23 | ...
24 | Test Setup | Performance test setup
25 | Test Teardown | Performance ndrchk test teardown
26 | ...
27 | Documentation | *Reference NDR throughput L2XC with VXLANoIPv4 verify test\
28 | ... |  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 cross-connect on TG-DUTn.
33 | ... | Eth-IPv4-VXLAN-Eth-IPv4 is applied on link between DUT1 and DUT2.
34 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 cross-
35 | ... | connect. VXLAN tunnels are configured between L2XCs on DUT1 and DUT2.
36 | ... | DUT1 and DUT2 tested with 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 generated payload. MAC addresses are matching MAC addresses of the
46 | ... | TG node interfaces.
47 | ... | *[Ref] Applicable standard specifications:* RFC2544, RFC7348.
48
49 *** Variables ***
50 # Traffic profile:
51 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
52
53 *** Test Cases ***
54 | tc01-64B-1t1c-ethip4vxlan-l2xcbase-ndrchk
55 | | [Documentation]
56 | | ... | [Cfg] DUT runs L2XC config with 1 thread, 1 phy core, \
57 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
58 | | ... | frames using single trial throughput test at 2x 2.4mpps.
59 | | [Tags] | 64B | 1T1C | STHREAD
60 | | ${framesize}= | Set Variable | ${64}
61 | | ${rate}= | Set Variable | 2.4mpps
62 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
63 | | And Add PCI devices to DUTs from 3-node single link topology
64 | | And Add No Multi Seg to all DUTs
65 | | And Apply startup configuration on all VPP DUTs
66 | | And L2 xconnect with VXLANoIPv4 initialized in a 3-node circular topology
67 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
68 | | ... | ${framesize} | ${traffic_profile}
69
70 | tc02-1518B-1t1c-ethip4vxlan-l2xcbase-ndrchk
71 | | [Documentation]
72 | | ... | [Cfg] DUT runs L2XC config with 1 thread, 1 phy core, \
73 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
74 | | ... | frames using single trial throughput test at 2x 787153pps.
75 | | [Tags] | 1518B | 1T1C | STHREAD
76 | | ${framesize}= | Set Variable | ${1518}
77 | | ${rate}= | Set Variable | 787153pps
78 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
79 | | And Add PCI devices to DUTs from 3-node single link topology
80 | | And Apply startup configuration on all VPP DUTs
81 | | And L2 xconnect with VXLANoIPv4 initialized in a 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-ethip4vxlan-l2xcbase-ndrchk
86 | | [Documentation]
87 | | ... | [Cfg] DUT runs L2XC 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 137816pps.
90 | | [Tags] | 9000B | 1T1C | STHREAD
91 | | ${framesize}= | Set Variable | ${9000}
92 | | ${rate}= | Set Variable | 137816pps
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 L2 xconnect with VXLANoIPv4 initialized in a 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-ethip4vxlan-l2xcbase-ndrchk
101 | | [Documentation]
102 | | ... | [Cfg] DUT runs L2XC switching 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 5.2mpps.
105 | | [Tags] | 64B | 2T2C | MTHREAD
106 | | ${framesize}= | Set Variable | ${64}
107 | | ${rate}= | Set Variable | 5.2mpps
108 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
109 | | And Add PCI devices to DUTs from 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 L2 xconnect with VXLANoIPv4 initialized in a 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-ethip4vxlan-l2xcbase-ndrchk
117 | | [Documentation]
118 | | ... | [Cfg] DUT runs L2XC switching 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 787153pps.
121 | | [Tags] | 1518B | 2T2C | MTHREAD
122 | | ${framesize}= | Set Variable | ${1518}
123 | | ${rate}= | Set Variable | 787153pps
124 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
125 | | And Add PCI devices to DUTs from 3-node single link topology
126 | | And Apply startup configuration on all VPP DUTs
127 | | And L2 xconnect with VXLANoIPv4 initialized in a 3-node circular topology
128 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
129 | | ... | ${framesize} | ${traffic_profile}
130
131 | tc06-9000B-2t2c-ethip4vxlan-l2xcbase-ndrchk
132 | | [Documentation]
133 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
134 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
135 | | ... | frames using single trial throughput test at 2x 137816pps.
136 | | [Tags] | 9000B | 2T2C | MTHREAD
137 | | ${framesize}= | Set Variable | ${9000}
138 | | ${rate}= | Set Variable | 137816pps
139 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
140 | | And Add PCI devices to DUTs from 3-node single link topology
141 | | And Apply startup configuration on all VPP DUTs
142 | | And L2 xconnect with VXLANoIPv4 initialized in a 3-node circular topology
143 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
144 | | ... | ${framesize} | ${traffic_profile}
145
146 | tc07-64B-4t4c-ethip4vxlan-l2xcbase-ndrchk
147 | | [Documentation]
148 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
149 | | ... | 2 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
150 | | ... | frames using single trial throughput test at 2x 8.4mpps.
151 | | [Tags] | 64B | 4T4C | MTHREAD
152 | | ${framesize}= | Set Variable | ${64}
153 | | ${rate}= | Set Variable | 8.4mpps
154 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
155 | | And Add PCI devices to DUTs from 3-node single link topology
156 | | And Add No Multi Seg to all DUTs
157 | | And Apply startup configuration on all VPP DUTs
158 | | And L2 xconnect with VXLANoIPv4 initialized in a 3-node circular topology
159 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
160 | | ... | ${framesize} | ${traffic_profile}
161
162 | tc08-1518B-4t4c-ethip4vxlan-l2xcbase-ndrchk
163 | | [Documentation]
164 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
165 | | ... | 2 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
166 | | ... | frames using single trial throughput test at 2x 787153pps.
167 | | [Tags] | 1518B | 4T4C | MTHREAD
168 | | ${framesize}= | Set Variable | ${1518}
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 | ${perf_trial_duration} | ${rate}
175 | | ... | ${framesize} | ${traffic_profile}
176
177 | tc09-9000B-4t4c-ethip4vxlan-l2xcbase-ndrchk
178 | | [Documentation]
179 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
180 | | ... | 2 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
181 | | ... | frames using single trial throughput test at 2x 137816pps.
182 | | [Tags] | 9000B | 4T4C | MTHREAD
183 | | ${framesize}= | Set Variable | ${9000}
184 | | ${rate}= | Set Variable | 137816pps
185 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
186 | | And Add PCI devices to DUTs from 3-node single link topology
187 | | And Apply startup configuration on all VPP DUTs
188 | | And L2 xconnect with VXLANoIPv4 initialized in a 3-node circular topology
189 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
190 | | ... | ${framesize} | ${traffic_profile}