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