CSIT-678: Re-organize L2 libraries - performance
[csit.git] / tests / perf / 10ge2p1x520-ethip4-ip4base-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 | Library | resources.libraries.python.topology.Topology
17 | Library | resources.libraries.python.NodePath
18 | Library | resources.libraries.python.InterfaceUtil
19 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT1']}
20 | ... | WITH NAME | dut1_v4
21 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT2']}
22 | ... | WITH NAME | dut2_v4
23 | ...
24 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PDRCHK
25 | ... | NIC_Intel-X520-DA2 | ETH | IP4FWD | BASE | IP4BASE
26 | ...
27 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
28 | ... | L3 | Intel-X520-DA2
29 | Suite Teardown | Tear down 3-node performance topology
30 | ...
31 | Test Setup | Set up performance test
32 | Test Teardown | Tear down performance pdrchk test
33 | ...
34 | Documentation | *Reference PDR throughput IPv4 routing verify test cases*
35 | ...
36 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
37 | ... | with single links between nodes.
38 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for IPv4 routing.
39 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
40 | ... | routing and two static IPv4 /24 route entries. DUT1 and DUT2 tested with
41 | ... | 2p10GE NIC X520 Niantic by Intel.
42 | ... | *[Ver] TG verification:* In short performance tests, TG verifies
43 | ... | DUTs' throughput at ref-PDR (reference Non Drop Rate) with zero packet
44 | ... | loss tolerance. Ref-PDR value is periodically updated acording to
45 | ... | formula: ref-PDR = 0.9x PDR, where PDR is found in RFC2544 long
46 | ... | performance tests for the same DUT configuration. Test packets are
47 | ... | generated by TG on links to DUTs. TG traffic profile contains two L3
48 | ... | flow-groups (flow-group per direction, 253 flows per flow-group) with
49 | ... | all packets containing Ethernet header, IPv4 header with IP protocol=61
50 | ... | and static payload. MAC addresses are matching MAC addresses of the
51 | ... | TG node interfaces.
52 | ... | *[Ref] Applicable standard specifications:* RFC2544.
53
54 *** Variables ***
55 # Traffic profile:
56 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src253
57
58 *** Keywords ***
59 | Check PDR for IPv4 routing
60 | | [Documentation]
61 | | ... | [Cfg] DUT runs IPv4 routing config with ${wt} thread(s), ${wt}\
62 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
63 | | ... | [Ver] Verify ref-PDR for ${framesize} frames using single trial\
64 | | ... | throughput test at 2x ${rate}.
65 | | ...
66 | | [Arguments] | ${framesize} | ${rate} | ${wt} | ${rxq}
67 | | ...
68 | | # Test Variables required for test teardown
69 | | Set Test Variable | ${framesize}
70 | | Set Test Variable | ${rate}
71 | | ${get_framesize}= | Get Frame Size | ${framesize}
72 | | ...
73 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
74 | | And Add PCI devices to DUTs in 3-node single link topology
75 | | And Run Keyword If | ${get_framesize} < ${1522}
76 | | ... | Add no multi seg to all DUTs
77 | | And Apply startup configuration on all VPP DUTs
78 | | And Initialize IPv4 forwarding in 3-node circular topology
79 | | Then Traffic should pass with partial loss | ${perf_trial_duration}
80 | | ... | ${rate} | ${framesize} | ${traffic_profile}
81 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
82
83 *** Test Cases ***
84 | tc01-64B-1t1c-ethip4-ip4base-pdrchk
85 | | [Documentation]
86 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
87 | | ... | 1 receive queue per NIC port.
88 | | ... | [Ver] Verify ref-PDR for 64 Byte\
89 | | ... | frames using single trial throughput test at 2x ${rate}.
90 | | ...
91 | | [Tags] | 64B | 1T1C | STHREAD
92 | | ...
93 | | [Template] | Check PDR for IPv4 routing
94 | | framesize=${64} | rate=4.7mpps | wt=1 | rxq=1
95
96 | tc02-1518B-1t1c-ethip4-ip4base-pdrchk
97 | | [Documentation]
98 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
99 | | ... | 1 receive queue per NIC port.
100 | | ... | [Ver] Verify ref-PDR for 1518 Byte frames using single trial\
101 | | ... | throughput test at 2x ${rate}.
102 | | ...
103 | | [Tags] | 1518B | 1T1C | STHREAD
104 | | ...
105 | | [Template] | Check PDR for IPv4 routing
106 | | framesize=${1518} | rate=812743pps | wt=1 | rxq=1
107
108 | tc03-9000B-1t1c-ethip4-ip4base-pdrchk
109 | | [Documentation]
110 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
111 | | ... | 1 receive queue per NIC port.
112 | | ... | [Ver] Verify ref-PDR for 9000 Byte frames using single trial\
113 | | ... | throughput test at 2x ${rate}.
114 | | ...
115 | | [Tags] | 9000B | 1T1C | STHREAD
116 | | ...
117 | | [Template] | Check PDR for IPv4 routing
118 | | framesize=${9000} | rate=138580pps | wt=1 | rxq=1
119
120 | tc04-64B-2t2c-ethip4-ip4base-pdrchk
121 | | [Documentation]
122 | | ... | [Cfg] DUT runs IPv4 routing config with 2 thread, 2 phy core,\
123 | | ... | 1 receive queue per NIC port.
124 | | ... | [Ver] Verify ref-PDR for 64 Byte frames using single trial\
125 | | ... | throughput test at 2x ${rate}.
126 | | ...
127 | | [Tags] | 64B | 2T2C | STHREAD
128 | | ...
129 | | [Template] | Check PDR for IPv4 routing
130 | | framesize=${64} | rate=9.4mpps | wt=2 | rxq=1
131
132 | tc05-1518B-2t2c-ethip4-ip4base-pdrchk
133 | | [Documentation]
134 | | ... | [Cfg] DUT runs IPv4 routing config with 2 thread, 2 phy core,\
135 | | ... | 1 receive queue per NIC port.
136 | | ... | [Ver] Verify ref-PDR for 1518 Byte frames using single trial\
137 | | ... | throughput test at 2x ${rate}.
138 | | ...
139 | | [Tags] | 1518B | 2T2C | MTHREAD
140 | | ...
141 | | [Template] | Check PDR for IPv4 routing
142 | | framesize=${1518} | rate=812743pps | wt=2 | rxq=1
143
144 | tc06-9000B-2t2c-ethip4-ip4base-pdrchk
145 | | [Documentation]
146 | | ... | [Cfg] DUT runs IPv4 routing config with 2 thread, 2 phy core,\
147 | | ... | 1 receive queue per NIC port.
148 | | ... | [Ver] Verify ref-PDR for 9000 Byte frames using single trial\
149 | | ... | throughput test at 2x ${rate}.
150 | | ...
151 | | [Tags] | 9000B | 2T2C | MTHREAD
152 | | ...
153 | | [Template] | Check PDR for IPv4 routing
154 | | framesize=${9000} | rate=138580pps | wt=2 | rxq=1
155
156 | tc07-64B-4t4c-ethip4-ip4base-pdrchk
157 | | [Documentation]
158 | | ... | [Cfg] DUT runs IPv4 routing config with 4 thread, 4 phy core,\
159 | | ... | 1 receive queue per NIC port.
160 | | ... | [Ver] Verify ref-PDR for 64 Byte frames using single trial\
161 | | ... | throughput test at 2x ${rate}.
162 | | ...
163 | | [Tags] | 64B | 4T4C | MTHREAD
164 | | ...
165 | | [Template] | Check PDR for IPv4 routing
166 | | framesize=${64} | rate=13.4mpps | wt=4 | rxq=2
167
168 | tc08-1518B-4t4c-ethip4-ip4base-pdrchk
169 | | [Documentation]
170 | | ... | [Cfg] DUT runs IPv4 routing config with 4 thread, 4 phy core,\
171 | | ... | 1 receive queue per NIC port.
172 | | ... | [Ver] Verify ref-PDR for 1518 Byte frames using single trial\
173 | | ... | throughput test at 2x ${rate}.
174 | | ...
175 | | [Tags] | 1518B | 4T4C | MTHREAD
176 | | ...
177 | | [Template] | Check PDR for IPv4 routing
178 | | framesize=${1518} | rate=812743pps | wt=4 | rxq=2
179
180 | tc08-9000B-4t4c-ethip4-ip4base-pdrchk
181 | | [Documentation]
182 | | ... | [Cfg] DUT runs IPv4 routing config with 4 thread, 4 phy core,\
183 | | ... | 1 receive queue per NIC port.
184 | | ... | [Ver] Verify ref-PDR for 9000 Byte frames using single trial\
185 | | ... | throughput test at 2x ${rate}.
186 | | ...
187 | | [Tags] | 9000B | 4T4C | MTHREAD
188 | | ...
189 | | [Template] | Check PDR for IPv4 routing with
190 | | framesize=${9000} | rate=138580pps | wt=4 | rxq=2