Update of VPP_STABLE_VER files
[csit.git] / tests / vpp / perf / ip4 / 10ge2p1x520-ethip4-ip4base-iacldstbase-ndrpdrdisc.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 | NDRPDRDISC
18 | ... | NIC_Intel-X520-DA2 | ETH | IP4FWD | FEATURE | IACLDST
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 | ...
26 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
27 | ... | ${framesize} | ${traffic_profile}
28 | ...
29 | Test Template | Local template
30 | ...
31 | Documentation | *RFC2544: Pkt throughput IPv4 iAcl whitelist test cases*
32 | ...
33 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
34 | ... | with single links between nodes.
35 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for IPv4 routing.
36 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
37 | ... | routing, two static IPv4 /24 routes and IPv4 iAcl security whitelist
38 | ... | ingress /24 filter entries applied on links TG - DUT1 and DUT2 - TG.
39 | ... | DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
40 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
41 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
42 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
43 | ... | of packets transmitted. NDR and PDR are discovered for different
44 | ... | Ethernet L2 frame sizes using either binary search or linear search
45 | ... | algorithms with configured starting rate and final step that determines
46 | ... | throughput measurement resolution. Test packets are generated by TG on
47 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
48 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
49 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and
50 | ... | static payload. MAC addresses are matching MAC addresses of the TG
51 | ... | node interfaces.
52 | ... | *[Ref] Applicable standard specifications:* RFC2544.
53
54 *** Variables ***
55 # X520-DA2 bandwidth limit
56 | ${s_limit} | ${10000000000}
57 # Traffic profile:
58 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src253
59
60 *** Keywords ***
61 | Local template
62 | | [Documentation]
63 | | ... | [Cfg] DUT runs IPv4 routing config with ${wt} thread(s), ${wt}\
64 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
65 | | ... | [Ver] Find NDR or PDR for ${framesize} frames using binary search\
66 | | ... | start at 10GE linerate.
67 | | ...
68 | | [Arguments] | ${phy_cores} | ${framesize} | ${search_type}
69 | | ... | ${rxq}=${None} | ${min_rate}=${50000}
70 | | ...
71 | | Set Test Variable | ${framesize}
72 | | Set Test Variable | ${min_rate}
73 | | ${get_framesize}= | Get Frame Size | ${framesize}
74 | | ${max_rate}= | Calculate pps | ${s_limit} | ${get_framesize}
75 | | ${binary_min}= | Set Variable | ${min_rate}
76 | | ${binary_max}= | Set Variable | ${max_rate}
77 | | ${threshold}= | Set Variable | ${min_rate}
78 | | Given Add worker threads and rxqueues to all DUTs | ${phy_cores} | ${rxq}
79 | | And Add PCI devices to all DUTs
80 | | And Run Keyword If | ${get_framesize} < ${1522}
81 | | ... | Add no multi seg to all DUTs
82 | | And Apply startup configuration on all VPP DUTs
83 | | When Initialize IPv4 forwarding in 3-node circular topology
84 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
85 | | ... | ${dut1} | ip4 | dst
86 | | And Vpp Configures Classify Session L3
87 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
88 | | ... | ip4 | dst | 20.20.20.2
89 | | And Vpp Enable Input Acl Interface
90 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
91 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
92 | | ... | ${dut2} | ip4 | dst
93 | | And Vpp Configures Classify Session L3
94 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
95 | | ... | ip4 | dst | 10.10.10.2
96 | | And Vpp Enable Input Acl Interface
97 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
98 | | Then Run Keyword If | '${search_type}' == 'NDR'
99 | | ... | Find NDR using binary search and pps
100 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
101 | | ... | ${min_rate} | ${max_rate} | ${threshold}
102 | | ... | ELSE IF | '${search_type}' == 'PDR'
103 | | ... | Find PDR using binary search and pps
104 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
105 | | ... | ${min_rate} | ${max_rate} | ${threshold}
106 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
107
108 *** Test Cases ***
109 | tc01-64B-1t1c-ethip4-ip4base-iacldstbase-ndrdisc
110 | | [Tags] | 64B | 1C | NDRDISC
111 | | phy_cores=${1} | framesize=${64}  | search_type=NDR
112
113 | tc02-64B-1t1c-ethip4-ip4base-iacldstbase-pdrdisc
114 | | [Tags] | 64B | 1C | PDRDISC | SKIP_PATCH
115 | | phy_cores=${1} | framesize=${64}  | search_type=PDR
116
117 | tc03-1518B-1t1c-ethip4-ip4base-iacldstbase-ndrdisc
118 | | [Tags] | 1518B | 1C | NDRDISC
119 | | phy_cores=${1} | framesize=${1518}  | search_type=NDR
120
121 | tc04-1518B-1t1c-ethip4-ip4base-iacldstbase-pdrdisc
122 | | [Tags] | 1518B | 1C | PDRDISC | SKIP_PATCH
123 | | phy_cores=${1} | framesize=${1518}  | search_type=PDR
124
125 | tc05-9000B-1t1c-ethip4-ip4base-iacldstbase-ndrdisc
126 | | [Tags] | 9000B | 1C | NDRDISC
127 | | phy_cores=${1} | framesize=${9000} | search_type=NDR
128
129 | tc06-9000B-1t1c-ethip4-ip4base-iacldstbase-pdrdisc
130 | | [Tags] | 9000B | 1C | PDRDISC | SKIP_PATCH
131 | | phy_cores=${1} | framesize=${9000} | search_type=PDR
132
133 | tc07-64B-2t2c-ethip4-ip4base-iacldstbase-ndrdisc
134 | | [Tags] | 64B | 2C | NDRDISC
135 | | phy_cores=${2} | framesize=${64}  | search_type=NDR
136
137 | tc08-64B-2t2c-ethip4-ip4base-iacldstbase-pdrdisc
138 | | [Tags] | 64B | 2C | PDRDISC | SKIP_PATCH
139 | | phy_cores=${2} | framesize=${64}  | search_type=PDR
140
141 | tc09-1518B-2t2c-ethip4-ip4base-iacldstbase-ndrdisc
142 | | [Tags] | 1518B | 2C | NDRDISC | SKIP_PATCH
143 | | phy_cores=${2} | framesize=${1518}  | search_type=NDR
144
145 | tc10-1518B-2t2c-ethip4-ip4base-iacldstbase-pdrdisc
146 | | [Tags] | 1518B | 2C | PDRDISC | SKIP_PATCH
147 | | phy_cores=${2} | framesize=${1518}  | search_type=PDR
148
149 | tc11-9000B-2t2c-ethip4-ip4base-iacldstbase-ndrdisc
150 | | [Tags] | 9000B | 2C | NDRDISC | SKIP_PATCH
151 | | phy_cores=${2} | framesize=${9000} | search_type=NDR
152
153 | tc12-9000B-2t2c-ethip4-ip4base-iacldstbase-pdrdisc
154 | | [Tags] | 9000B | 2C | PDRDISC | SKIP_PATCH
155 | | phy_cores=${2} | framesize=${9000} | search_type=PDR
156
157 | tc13-64B-4t4c-ethip4-ip4base-iacldstbase-ndrdisc
158 | | [Tags] | 64B | 4C | NDRDISC
159 | | phy_cores=${4} | framesize=${64}  | search_type=NDR
160
161 | tc14-64B-4t4c-ethip4-ip4base-iacldstbase-pdrdisc
162 | | [Tags] | 64B | 4C | PDRDISC | SKIP_PATCH
163 | | phy_cores=${4} | framesize=${64}  | search_type=PDR
164
165 | tc15-1518B-4t4c-ethip4-ip4base-iacldstbase-ndrdisc
166 | | [Tags] | 1518B | 4C | NDRDISC | SKIP_PATCH
167 | | phy_cores=${4} | framesize=${1518}  | search_type=NDR
168
169 | tc16-1518B-4t4c-ethip4-ip4base-iacldstbase-pdrdisc
170 | | [Tags] | 1518B | 4C | PDRDISC | SKIP_PATCH
171 | | phy_cores=${4} | framesize=${1518}  | search_type=PDR
172
173 | tc17-9000B-4t4c-ethip4-ip4base-iacldstbase-ndrdisc
174 | | [Tags] | 9000B | 4C | NDRDISC | SKIP_PATCH
175 | | phy_cores=${4} | framesize=${9000} | search_type=NDR
176
177 | tc18-9000B-4t4c-ethip4-ip4base-iacldstbase-pdrdisc
178 | | [Tags] | 9000B | 4C | PDRDISC | SKIP_PATCH
179 | | phy_cores=${4} | framesize=${9000} | search_type=PDR
180