CSIT-604: Bootstrap file for vpp-csit-verify-master-centos7-nightly
[csit.git] / tests / perf / 10ge2p1x520-ethip4-ip4scale2m-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 | ETH | IP4FWD | SCALE | FIB_2M
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 2x1M static IPv4 /32 route entries. DUT1 and DUT2 tested
34 | ... | with 2p10GE NIC X520 Niantic by Intel.
35 | ... | *[Ver] TG verification:* TG verifies throughput PDR (Partial Drop
36 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
37 | ... | of packets transmitted. Ref-PDR value is periodically updated acording
38 | ... | to 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, 1M flows per flow-group) with
42 | ... | all packets containing Ethernet header, IPv4 header with IP protocol=61
43 | ... | and static payload. Incrementing of IP.dst (IPv4 destination address)
44 | ... | field is applied to both streams.
45 | ... | *[Ref] Applicable standard specifications:* RFC2544.
46
47 *** Variables ***
48 | ${rts_per_flow}= | ${1000000}
49 # Traffic profile:
50 | ${traffic_profile} | trex-sl-3n-ethip4-ip4dst${rts_per_flow}
51
52 *** Keywords ***
53 | Check PDR for IPv4 routing
54 | | [Documentation]
55 | | ... | [Cfg] DUT runs IPv4 routing config with ${wt} thread, ${wt} phy\
56 | | ... | core, ${rxq} receive queue per NIC port.
57 | | ... | [Ver] Verify ref-PDR for ${framesize} Byte frames using single trial\
58 | | ... | throughput test at 2x ${rate}.
59 | | ...
60 | | [Arguments] | ${framesize} | ${rate} | ${wt} | ${rxq}
61 | | ...
62 | | # Test Variables required for test and test teardown
63 | | Set Test Variable | ${framesize}
64 | | Set Test Variable | ${rate}
65 | | ${get_framesize}= | Get Frame Size | ${framesize}
66 | | ...
67 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
68 | | And Add PCI devices to DUTs in 3-node single link topology
69 | | And Run Keyword If | ${get_framesize} < ${1522}
70 | | ... | Add no multi seg to all DUTs
71 | | And Apply startup configuration on all VPP DUTs
72 | | And Initialize IPv4 forwarding with scaling in 3-node circular topology
73 | | ... | ${rts_per_flow}
74 | | Then Traffic should pass with partial loss | ${perf_trial_duration}
75 | | ... | ${rate} | ${framesize} | ${traffic_profile}
76 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
77
78 *** Test Cases ***
79 | tc01-64B-1t1c-ethip4-ip4scale2m-pdrchk
80 | | [Documentation]
81 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
82 | | ... | 1 receive queue per NIC port.
83 | | ... | [Ver] Verify ref-PDR for 64 Byte frames using single trial\
84 | | ... | throughput test at 2x ${rate}.
85 | | ...
86 | | [Tags] | 64B | 1T1C | STHREAD
87 | | ...
88 | | [Template] | Check PDR for IPv4 routing
89 | | framesize=${64} | rate=3.0mpps | wt=1 | rxq=1
90
91 | tc02-1518B-1t1c-ethip4-ip4scale2m-pdrchk
92 | | [Documentation]
93 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
94 | | ... | 1 receive queue per NIC port.
95 | | ... | [Ver] Verify ref-PDR for 1518 Byte frames using single trial\
96 | | ... | trial throughput test at 2x ${rate}.
97 | | ...
98 | | [Tags] | 1518B | 1T1C | STHREAD
99 | | ...
100 | | [Template] | Check PDR for IPv4 routing
101 | | framesize=${1518} | rate=600000pps | wt=1 | rxq=1
102
103 | tc03-9000B-1t1c-ethip4-ip4scale2m-pdrchk
104 | | [Documentation]
105 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
106 | | ... | 1 receive queue per NIC port.
107 | | ... | [Ver] Verify ref-PDR for 1518 Byte frames using single trial\
108 | | ... | throughput test at 2x ${rate}.
109 | | ...
110 | | [Tags] | 9000B | 1T1C | STHREAD
111 | | ...
112 | | [Template] | Check PDR for IPv4 routing
113 | | framesize=${9000} | rate=100000pps | wt=1 | rxq=1
114
115 | tc04-64B-2t2c-ethip4-ip4scale2m-pdrchk
116 | | [Documentation]
117 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores,\
118 | | ... | 1 receive queue per NIC port.
119 | | ... | [Ver] Verify ref-PDR for 64 Byte frames using single trial\
120 | | ... | throughput test at 2x ${rate}.
121 | | ...
122 | | [Tags] | 64B | 2T2C | MTHREAD
123 | | ...
124 | | [Template] | Check PDR for IPv4 routing
125 | | framesize=${64} | rate=7.0mpps | wt=2 | rxq=1
126
127 | tc05-1518B-2t2c-ethip4-ip4scale2m-pdrchk
128 | | [Documentation]
129 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores,\
130 | | ... | 1 receive queue per NIC port.
131 | | ... | [Ver] Verify ref-PDR for 1518 Byte frames using single trial\
132 | | ... | throughput test at 2x ${rate}.
133 | | ...
134 | | [Tags] | 1518B | 2T2C | MTHREAD
135 | | ...
136 | | [Template] | Check PDR for IPv4 routing
137 | | framesize=${1518} | rate=500000pps | wt=2 | rxq=1
138
139 | tc06-9000B-2t2c-ethip4-ip4scale2m-pdrchk
140 | | [Documentation]
141 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores,\
142 | | ... | 1 receive queue per NIC port.
143 | | ... | [Ver] Verify ref-PDR for 9000 Byte frames using single trial\
144 | | ... | throughput test at 2x ${rate}.
145 | | ...
146 | | [Tags] | 9000B | 2T2C | MTHREAD
147 | | ...
148 | | [Template] | Check PDR for IPv4 routing
149 | | framesize=${9000} | rate=100000pps | wt=2 | rxq=1
150
151 | tc07-64B-4t4c-ethip4-ip4scale2m-pdrchk
152 | | [Documentation]
153 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores,\
154 | | ... | 2 receive queues per NIC port.
155 | | ... | [Ver] Verify ref-PDR for 64 Byte frames using single trial\
156 | | ... | throughput test at 2x ${rate}.
157 | | ...
158 | | [Tags] | 64B | 4T4C | MTHREAD
159 | | ...
160 | | [Template] | Check PDR for IPv4 routing
161 | | framesize=${64} | rate=10.0mpps | wt=4 | rxq=2
162
163 | tc08-1518B-4t4c-ethip4-ip4scale2m-pdrchk
164 | | [Documentation]
165 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores,\
166 | | ... | 2 receive queues per NIC port.
167 | | ... | [Ver] Verify ref-PDR for 1518 Byte frames using single trial\
168 | | ... | throughput test at 2x ${rate}.
169 | | ...
170 | | [Tags] | 1518B | 4T4C | MTHREAD
171 | | ...
172 | | [Template] | Check PDR for IPv4 routing
173 | | framesize=${1518} | rate=500000pps | wt=4 | rxq=2
174
175 | tc09-9000B-4t4c-ethip4-ip4scale2m-pdrchk
176 | | [Documentation]
177 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores,\
178 | | ... | 2 receive queues per NIC port.
179 | | ... | [Ver] Verify ref-PDR for 9000 Byte frames using single trial\
180 | | ... | throughput test at 2x ${rate}.
181 | | ...
182 | | [Tags] | 9000B | 4T4C | MTHREAD
183 | | ...
184 | | [Template] | Check PDR for IPv4 routing
185 | | framesize=${9000} | rate=100000pps | wt=4 | rxq=2