CSIT-604: Bootstrap file for vpp-csit-verify-master-centos7-nightly
[csit.git] / tests / vpp / perf / l2 / 10ge2p1x520-eth-l2xcbase-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 | Library | resources.libraries.python.InterfaceUtil
17 | Library | resources.libraries.python.NodePath
18 | ...
19 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PDRCHK
20 | ... | NIC_Intel-X520-DA2 | ETH | L2XCFWD | BASE | L2XCBASE
21 | ...
22 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
23 | ... | L2 | Intel-X520-DA2
24 | Suite Teardown | Tear down 3-node performance topology
25 | ...
26 | Test Setup | Set up performance test
27 | Test Teardown | Tear down performance pdrchk test
28 | ...
29 | Documentation | *Reference PDR throughput L2XC verify test cases*
30 | ...
31 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
32 | ... | with single links between nodes.
33 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 cross connect.
34 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 cross-
35 | ... | connect. 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-PDR (reference Non Drop Rate) with zero packet
38 | ... | loss tolerance. Ref-PDR value is periodically updated acording to
39 | ... | formula: ref-PDR = 0.9x PDR, where PDR 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, 254 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-ip4src254
51
52 *** Keywords ***
53 | Check PDR for L2 xconnect
54 | | [Documentation]
55 | | ... | [Cfg] DUT runs L2XC config with ${wt} thread, ${wt} phy core,\
56 | | ... | ${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 L2 xconnect in 3-node circular topology
73 | | Then Traffic should pass with partial loss | ${perf_trial_duration}
74 | | ... | ${rate} | ${framesize} | ${traffic_profile}
75 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
76
77 *** Test Cases ***
78 | tc01-64B-1t1c-eth-l2xcbase-pdrchk
79 | | [Documentation]
80 | | ... | [Cfg] DUT runs L2XC config with 1 thread, 1 phy core,\
81 | | ... | 1 receive queue per NIC port.
82 | | ... | [Ver] Verify ref-NDR for 64 Byte frames using single trial\
83 | | ... | throughput test at 2x ${rate}.
84 | | ...
85 | | [Tags] | 64B | 1T1C | STHREAD
86 | | ...
87 | | [Template] | Check PDR for L2 xconnect
88 | | framesize=${64} | rate=5.9mpps | wt=1 | rxq=1
89
90 | tc02-1518B-1t1c-eth-l2xcbase-pdrchk
91 | | [Documentation]
92 | | ... | [Cfg] DUT runs L2XC config with 1 thread, 1 phy core,\
93 | | ... | 1 receive queue per NIC port.
94 | | ... | [Ver] Verify ref-NDR for 1518 Byte frames using single trial\
95 | | ... | throughput test at 2x ${rate}.
96 | | ...
97 | | [Tags] | 1518B | 1T1C | STHREAD
98 | | ...
99 | | [Template] | Check PDR for L2 xconnect
100 | | framesize=${1518} | rate=812743pps | wt=1 | rxq=1
101
102 | tc03-9000B-1t1c-eth-l2xcbase-pdrchk
103 | | [Documentation]
104 | | ... | [Cfg] DUT runs L2XC config with 1 thread, 1 phy core,\
105 | | ... | 1 receive queue per NIC port.
106 | | ... | [Ver] Verify ref-NDR for 9000 Byte frames using single trial\
107 | | ... | throughput test at 2x ${rate}.
108 | | ...
109 | | [Tags] | 9000B | 1T1C | STHREAD
110 | | ...
111 | | [Template] | Check PDR for L2 xconnect
112 | | framesize=${9000} | rate=138580pps | wt=1 | rxq=1
113
114 | tc04-64B-2t2c-eth-l2xcbase-pdrchk
115 | | [Documentation]
116 | | ... | [Cfg] DUT runs L2XC config with 2 threads, 2 phy cores,\
117 | | ... | 1 receive queue per NIC port.
118 | | ... | [Ver] Verify ref-NDR for 64 Byte frames using single trial\
119 | | ... | throughput test at 2x ${rate}.
120 | | ...
121 | | [Tags] | 64B | 2T2C | MTHREAD
122 | | ...
123 | | [Template] | Check PDR for L2 xconnect
124 | | framesize=${64} | rate=10.4mpps | wt=2 | rxq=1
125
126 | tc05-1518B-2t2c-eth-l2xcbase-pdrchk
127 | | [Documentation]
128 | | ... | [Cfg] DUT runs L2XC config with 2 threads, 2 phy cores,\
129 | | ... | 1 receive queue per NIC port.
130 | | ... | [Ver] Verify ref-NDR for 1518 Byte frames using single trial\
131 | | ... | throughput test at 2x ${rate}.
132 | | ...
133 | | [Tags] | 1518B | 2T2C | MTHREAD
134 | | ...
135 | | [Template] | Check PDR for L2 xconnect
136 | | framesize=${1518} | rate=812743pps | wt=2 | rxq=1
137
138 | tc06-9000B-2t2c-eth-l2xcbase-pdrchk
139 | | [Documentation]
140 | | ... | [Cfg] DUT runs L2XC config with 2 threads, 2 phy cores,\
141 | | ... | 1 receive queue per NIC port.
142 | | ... | [Ver] Verify ref-NDR for 9000 Byte frames using single trial\
143 | | ... | throughput test at 2x ${rate}.
144 | | ...
145 | | [Tags] | 9000B | 2T2C | MTHREAD
146 | | ...
147 | | [Template] | Check PDR for L2 xconnect
148 | | framesize=${9000} | rate=100000pps | wt=2 | rxq=1
149
150 | tc07-64B-4t4c-eth-l2xcbase-pdrchk
151 | | [Documentation]
152 | | ... | [Cfg] DUT runs L2XC config with 4 threads, 4 phy cores,\
153 | | ... | 2 receive queues per NIC port.
154 | | ... | [Ver] Verify ref-NDR for 64 Byte frames using single trial\
155 | | ... | throughput test at 2x ${rate}.
156 | | ...
157 | | [Tags] | 64B | 4T4C | MTHREAD
158 | | ...
159 | | [Template] | Check PDR for L2 xconnect
160 | | framesize=${64} | rate=10.4mpps | wt=4 | rxq=2
161
162 | tc08-1518B-4t4c-eth-l2xcbase-pdrchk
163 | | [Documentation]
164 | | ... | [Cfg] DUT runs L2XC config with 4 threads, 4 phy cores,\
165 | | ... | 2 receive queues per NIC port.
166 | | ... | [Ver] Verify ref-NDR for 1518 Byte frames using single trial\
167 | | ... | throughput test at 2x ${rate}.
168 | | ...
169 | | [Tags] | 1518B | 4T4C | MTHREAD
170 | | ...
171 | | [Template] | Check PDR for L2 xconnect
172 | | framesize=${1518} | rate=812743pps | wt=4 | rxq=2
173
174 | tc09-9000B-4t4c-eth-l2xcbase-pdrchk
175 | | [Documentation]
176 | | ... | [Cfg] DUT runs L2XC config with 4 threads, 4 phy cores,\
177 | | ... | 2 receive queues per NIC port.
178 | | ... | [Ver] Verify ref-NDR for 9000 Byte frames using single trial\
179 | | ... | throughput test at 2x ${rate}.
180 | | ...
181 | | [Tags] | 9000B | 4T4C | MTHREAD
182 | | ...
183 | | [Template] | Check PDR for L2 xconnect
184 | | framesize=${9000} | rate=138580pps | wt=4 | rxq=2