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