CSIT-614: Create PDRCHK tests
[csit.git] / tests / perf / 10ge2p1x520-ethip4vxlan-l2xcbase-pdrchk.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_setup.robot
16 | ...
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PDRCHK
18 | ... | NIC_Intel-X520-DA2 | L2XCFWD | ENCAP | VXLAN | L2OVRLAY | IP4UNRLAY
19 | ...
20 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
21 | ... | L2 | Intel-X520-DA2
22 | Suite Teardown | Tear down 3-node performance topology
23 | ...
24 | Test Setup | Set up performance test
25 | Test Teardown | Tear down performance pdrchk test
26 | ...
27 | Documentation | *Reference PDR 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-PDR (reference Non Drop Rate) with zero packet
39 | ... | loss tolerance. Ref-PDR value is periodically updated acording to
40 | ... | formula: ref-PDR = 0.9x PDR, where PDR 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, 254 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 | ${vxlan_overhead} | ${50}
51 # Traffic profile:
52 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
53
54 *** Keywords ***
55 | Check PDR for L2 xconnect with VXLAN over IPv4
56 | | [Documentation]
57 | | ... | [Cfg] DUT runs L2XC config with ${wt} thread, ${wt} phy core,\
58 | | ... | ${rxq} receive queue per NIC port.
59 | | ... | [Ver] Verify ref-NDR for ${framesize} Byte frames using single trial\
60 | | ... | throughput test at 2x ${rate}.
61 | | ...
62 | | [Arguments] | ${framesize} | ${rate} | ${wt} | ${rxq}
63 | | ...
64 | | # Test Variables required for test and test teardown
65 | | Set Test Variable | ${framesize}
66 | | Set Test Variable | ${rate}
67 | | ${get_framesize}= | Get Frame Size | ${framesize}
68 | | ...
69 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
70 | | And Add PCI devices to DUTs in 3-node single link topology
71 | | And Run Keyword If | ${get_framesize} < ${1522}
72 | | ... | Add no multi seg to all DUTs
73 | | And Apply startup configuration on all VPP DUTs
74 | | And Initialize L2 xconnect with VXLANoIPv4 in 3-node circular topology
75 | | Then Traffic should pass with partial loss | ${perf_trial_duration}
76 | | ... | ${rate} | ${framesize} | ${traffic_profile}
77 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
78
79 *** Test Cases ***
80 | tc01-64B-1t1c-ethip4vxlan-l2xcbase-pdrchk
81 | | [Documentation]
82 | | ... | [Cfg] DUT runs L2XC config with 1 thread, 1 phy core,\
83 | | ... | 1 receive queue per NIC port.
84 | | ... | [Ver] Verify ref-NDR for 64 Byte frames using single trial\
85 | | ... | throughput test at 2x ${rate}.
86 | | ...
87 | | [Tags] | 64B | 1T1C | STHREAD
88 | | ...
89 | | [Template] | Check PDR for L2 xconnect with VXLAN over IPv4
90 | | framesize=${64 + ${vxlan_overhead}} | rate=2.0mpps | wt=1 | rxq=1
91
92 | tc02-1518B-1t1c-ethip4vxlan-l2xcbase-pdrchk
93 | | [Documentation]
94 | | ... | [Cfg] DUT runs L2XC config with 1 thread, 1 phy core,\
95 | | ... | 1 receive queue per NIC port.
96 | | ... | [Ver] Verify ref-NDR for 1518 Byte frames using single trial\
97 | | ... | throughput test at 2x ${rate}.
98 | | ...
99 | | [Tags] | 1518B | 1T1C | STHREAD
100 | | ...
101 | | [Template] | Check PDR for L2 xconnect with VXLAN over IPv4
102 | | framesize=${1518 + ${vxlan_overhead}} | rate=500000pps | wt=1 | rxq=1
103
104 | tc03-9000B-1t1c-ethip4vxlan-l2xcbase-pdrchk
105 | | [Documentation]
106 | | ... | [Cfg] DUT runs L2XC config with 1 thread, 1 phy core,\
107 | | ... | 1 receive queue per NIC port.
108 | | ... | [Ver] Verify ref-NDR for 9000 Byte frames using single trial\
109 | | ... | throughput test at 2x ${rate}.
110 | | ...
111 | | [Tags] | 9000B | 1T1C | STHREAD
112 | | ...
113 | | [Template] | Check PDR for L2 xconnect with VXLAN over IPv4
114 | | framesize=${9000 + ${vxlan_overhead}} | rate=100000pps | wt=1 | rxq=1
115
116 | tc04-64B-2t2c-ethip4vxlan-l2xcbase-pdrchk
117 | | [Documentation]
118 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores,\
119 | | ... | 1 receive queue per NIC port.
120 | | ... | [Ver] Verify ref-NDR for 64 Byte frames using single trial\
121 | | ... | throughput test at 2x ${rate}.
122 | | ...
123 | | [Tags] | 64B | 2T2C | MTHREAD
124 | | ...
125 | | [Template] | Check PDR for L2 xconnect with VXLAN over IPv4
126 | | framesize=${64 + ${vxlan_overhead}} | rate=5.0mpps | wt=2 | rxq=1
127
128 | tc05-1518B-2t2c-ethip4vxlan-l2xcbase-pdrchk
129 | | [Documentation]
130 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores,\
131 | | ... | 1 receive queue per NIC port.
132 | | ... | [Ver] Verify ref-NDR for 1518 Byte frames using single trial\
133 | | ... | throughput test at 2x ${rate}.
134 | | ...
135 | | [Tags] | 1518B | 2T2C | MTHREAD
136 | | ...
137 | | [Template] | Check PDR for L2 xconnect with VXLAN over IPv4
138 | | framesize=${1518 + ${vxlan_overhead}} | rate=500000pps | wt=2 | rxq=1
139
140 | tc06-9000B-2t2c-ethip4vxlan-l2xcbase-pdrchk
141 | | [Documentation]
142 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores,\
143 | | ... | 1 receive queue per NIC port.
144 | | ... | [Ver] Verify ref-NDR for 9000 Byte frames using single trial\
145 | | ... | throughput test at 2x ${rate}.
146 | | ...
147 | | [Tags] | 9000B | 2T2C | MTHREAD
148 | | ...
149 | | [Template] | Check PDR for L2 xconnect with VXLAN over IPv4
150 | | framesize=${9000 + ${vxlan_overhead}} | rate=100000pps | wt=2 | rxq=1
151
152 | tc07-64B-4t4c-ethip4vxlan-l2xcbase-pdrchk
153 | | [Documentation]
154 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\
155 | | ... | 2 receive queue per NIC port.
156 | | ... | [Ver] Verify ref-NDR for 64 Byte frames using single trial\
157 | | ... | throughput test at 2x ${rate}.
158 | | ...
159 | | [Tags] | 64B | 4T4C | MTHREAD
160 | | ...
161 | | [Template] | Check PDR for L2 xconnect with VXLAN over IPv4
162 | | framesize=${64 + ${vxlan_overhead}} | rate=6.5mpps | wt=4 | rxq=2
163
164 | tc08-1518B-4t4c-ethip4vxlan-l2xcbase-pdrchk
165 | | [Documentation]
166 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\
167 | | ... | 2 receive queue per NIC port.
168 | | ... | [Ver] Verify ref-NDR for 1518 Byte frames using single trial\
169 | | ... | throughput test at 2x ${rate}.
170 | | ...
171 | | [Tags] | 1518B | 4T4C | MTHREAD
172 | | ...
173 | | [Template] | Check PDR for L2 xconnect with VXLAN over IPv4
174 | | framesize=${1518 + ${vxlan_overhead}} | rate=500000pps | wt=4 | rxq=2
175
176 | tc09-9000B-4t4c-ethip4vxlan-l2xcbase-pdrchk
177 | | [Documentation]
178 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\
179 | | ... | 2 receive queue per NIC port.
180 | | ... | [Ver] Verify ref-NDR for 9000 Byte frames using single trial\
181 | | ... | throughput test at 2x ${rate}.
182 | | ...
183 | | [Tags] | 9000B | 4T4C | MTHREAD
184 | | ...
185 | | [Template] | Check PDR for L2 xconnect with VXLAN over IPv4
186 | | framesize=${9000 + ${vxlan_overhead}} | rate=100000pps | wt=4 | rxq=2