CSIT-998: MRR tests
[csit.git] / tests / vpp / perf / ip4 / 10ge2p1x520-ethip4-ip4base-iacldstbase-ndrchk.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 | NDRCHK
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 | Test Teardown | Tear down performance ndrchk test
26 | ...
27 | Documentation | *Reference NDR throughput IPv4 whitelist 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, two static IPv4 /24 routes and IPv4 iAcl security whitelist
34 | ... | ingress /24 filter entries applied on links TG - DUT1 and DUT2 - TG.
35 | ... | DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
36 | ... | *[Ver] TG verification:* In short performance tests, TG verifies
37 | ... | DUTs' throughput at ref-NDR (reference Non Drop Rate) with zero packet
38 | ... | loss tolerance. Ref-NDR value is periodically updated acording to
39 | ... | formula: ref-NDR = 0.9x NDR, where NDR is found in RFC2544 long
40 | ... | performance tests for the same DUT configuration. Test packets are
41 | ... | generated by TG on links to DUTs. TG traffic profile contains two L3
42 | ... | flow-groups (flow-group per direction, 253 flows per flow-group) with
43 | ... | all packets containing Ethernet header, IPv4 header with IP protocol=61
44 | ... | and static payload. MAC addresses are matching MAC addresses of the
45 | ... | TG node interfaces.
46 | ... | *[Ref] Applicable standard specifications:* RFC2544.
47
48 *** Variables ***
49 # Traffic profile:
50 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src253
51
52 *** Keywords ***
53 | Check NDR for ethip4-ip4base-iacldstbase
54 | | [Documentation]
55 | | ... | [Cfg] DUT runs IPv4 routing config with ${wt} thread(s), ${wt}\
56 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
57 | | ... | [Ver] Verify ref-NDR for ${framesize} frames using single trial\
58 | | ... | throughput test at 2x ${rate}.
59 | | ...
60 | | [Arguments] | ${framesize} | ${rate} | ${wt} | ${rxq}
61 | | ...
62 | | # Test Variables required for 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 | | When Initialize IPv4 forwarding in 3-node circular topology
73 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
74 | | ... | ${dut1} | ip4 | dst
75 | | And Vpp Configures Classify Session L3
76 | | ... | ${dut1} | permit | ${table_idx} | ${skip_n} | ${match_n}
77 | | ... | ip4 | dst | 20.20.20.2
78 | | And Vpp Enable Input Acl Interface
79 | | ... | ${dut1} | ${dut1_if1} | ip4 | ${table_idx}
80 | | ${table_idx} | ${skip_n} | ${match_n}= | And Vpp Creates Classify Table L3
81 | | ... | ${dut2} | ip4 | dst
82 | | And Vpp Configures Classify Session L3
83 | | ... | ${dut2} | permit | ${table_idx} | ${skip_n} | ${match_n}
84 | | ... | ip4 | dst | 10.10.10.2
85 | | And Vpp Enable Input Acl Interface
86 | | ... | ${dut2} | ${dut2_if2} | ip4 | ${table_idx}
87 | | Then Traffic should pass with no loss | ${perf_trial_duration}
88 | | ... | ${rate} | ${framesize} | ${traffic_profile}
89
90 *** Test Cases ***
91 | tc01-64B-1t1c-ethip4-ip4base-iacldstbase-ndrchk
92 | | [Documentation]
93 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
94 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
95 | | ... | ref-NDR for 64 Byte frames using single trial throughput test
96 | | ... | at 2x 3.6mpps.
97 | | [Tags] | 64B | 1T1C | STHREAD
98 | | ...
99 | | [Template] | Check NDR for ethip4-ip4base-iacldstbase
100 | | framesize=${64} | rate=3.6mpps | wt=1 | rxq=1
101
102 | tc02-1518B-1t1c-ethip4-ip4base-iacldstbase-ndrchk
103 | | [Documentation]
104 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
105 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
106 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
107 | | ... | at 2x 812743pps.
108 | | [Tags] | 1518B | 1T1C | STHREAD
109 | | ...
110 | | [Template] | Check NDR for ethip4-ip4base-iacldstbase
111 | | framesize=${1518} | rate=812743pps | wt=1 | rxq=1
112
113 | tc03-9000B-1t1c-ethip4-ip4base-iacldstbase-ndrchk
114 | | [Documentation]
115 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
116 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port. [Ver] Verify
117 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
118 | | ... | at 2x 138580pps.
119 | | [Tags] | 9000B | 1T1C | STHREAD
120 | | ...
121 | | [Template] | Check NDR for ethip4-ip4base-iacldstbase
122 | | framesize=${9000} | rate=138580pps | wt=1 | rxq=1
123
124 | tc04-64B-2t2c-ethip4-ip4base-iacldstbase-ndrchk
125 | | [Documentation]
126 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
127 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
128 | | ... | ref-NDR for 64 Byte frames using single trial throughput test
129 | | ... | at 2x 6.3mpps.
130 | | [Tags] | 64B | 2T2C | MTHREAD
131 | | ...
132 | | [Template] | Check NDR for ethip4-ip4base-iacldstbase
133 | | framesize=${64} | rate=6.3mpps | wt=2 | rxq=1
134
135 | tc05-1518B-2t2c-ethip4-ip4base-iacldstbase-ndrchk
136 | | [Documentation]
137 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
138 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
139 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
140 | | ... | at 2x 812743pps.
141 | | [Tags] | 1518B | 2T2C | MTHREAD
142 | | ...
143 | | [Template] | Check NDR for ethip4-ip4base-iacldstbase
144 | | framesize=${1518} | rate=812743pps | wt=2 | rxq=1
145
146 | tc06-9000B-2t2c-ethip4-ip4base-iacldstbase-ndrchk
147 | | [Documentation]
148 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
149 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port. [Ver] Verify
150 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
151 | | ... | at 2x 138580pps.
152 | | [Tags] | 9000B | 2T2C | MTHREAD
153 | | ...
154 | | [Template] | Check NDR for ethip4-ip4base-iacldstbase
155 | | framesize=${9000} | rate=138580pps | wt=2 | rxq=1
156
157 | tc07-64B-4t4c-ethip4-ip4base-iacldstbase-ndrchk
158 | | [Documentation]
159 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
160 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
161 | | ... | ref-NDR for 64 Byte frames using single trial throughput test
162 | | ... | at 2x 9.7mpps.
163 | | [Tags] | 64B | 4T4C | MTHREAD
164 | | ...
165 | | [Template] | Check NDR for ethip4-ip4base-iacldstbase
166 | | framesize=${64} | rate=9.7mpps | wt=4 | rxq=2
167
168 | tc08-1518B-4t4c-ethip4-ip4base-iacldstbase-ndrchk
169 | | [Documentation]
170 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
171 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
172 | | ... | ref-NDR for 1518 Byte frames using single trial throughput test
173 | | ... | at 2x 812743pps.
174 | | [Tags] | 1518B | 4T4C | MTHREAD
175 | | ...
176 | | [Template] | Check NDR for ethip4-ip4base-iacldstbase
177 | | framesize=${1518} | rate=812743pps | wt=4 | rxq=2
178
179 | tc09-9000B-4t4c-ethip4-ip4base-iacldstbase-ndrchk
180 | | [Documentation]
181 | | ... | [Cfg] DUT runs IPv4 routing and whitelist filters config with \
182 | | ... | 4 thread, 4 phy core, 2 receive queue per NIC port. [Ver] Verify
183 | | ... | ref-NDR for 9000 Byte frames using single trial throughput test
184 | | ... | at 2x 138580pps.
185 | | [Tags] | 9000B | 4T4C | MTHREAD
186 | | ...
187 | | [Template] | Check NDR for ethip4-ip4base-iacldstbase
188 | | framesize=${9000} | rate=138580pps | wt=4 | rxq=2