e834475dc997b17ac7e0d76645468a4d25194074
[csit.git] / tests / vpp / perf / l2 / 10ge2p1x520-eth-l2bdbasemaclrn-mrr.robot
1 # Copyright (c) 2018 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 | MRR
18 | ... | NIC_Intel-X520-DA2 | ETH | L2BDMACLRN | BASE | L2BDBASE
19 | ...
20 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
21 | ... | L2 | 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 mrr test
26 | ...
27 | Documentation | *Raw results L2BD 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 L2 switching of IPv4.
32 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 bridge-
33 | ... | domain and MAC learning enabled. DUT1 and DUT2 tested with 2p10GE NIC
34 | ... | X520 Niantic by Intel.
35 | ... | *[Ver] TG verification:* In MaxReceivedRate tests TG sends traffic
36 | ... | at line rate and reports total received/sent packets over trial period.
37 | ... | Test packets are generated by TG on links to DUTs. TG traffic profile
38 | ... | contains two L3 flow-groups (flow-group per direction, 253 flows per
39 | ... | flow-group) with all packets containing Ethernet header, IPv4 header
40 | ... | with IP protocol=61 and static payload. MAC addresses are matching MAC
41 | ... | addresses of the TG node interfaces.
42 | ... | *[Ref] Applicable standard specifications:* RFC2544.
43
44 *** Variables ***
45 # X520-DA2 bandwidth limit
46 | ${s_limit}= | ${10000000000}
47 # Traffic profile:
48 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
49
50 *** Keywords ***
51 | Check RR for l2bdbasemaclrn
52 | | [Documentation]
53 | | ... | [Cfg] DUT runs L2BD config with ${wt} thread(s), ${wt}\
54 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
55 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
56 | | ... | trial throughput test.
57 | | ...
58 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
59 | | ...
60 | | # Test Variables required for test teardown
61 | | Set Test Variable | ${framesize}
62 | | ${get_framesize}= | Get Frame Size | ${framesize}
63 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
64 | | ...
65 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
66 | | And Add PCI devices to DUTs in 3-node single link topology
67 | | And Run Keyword If | ${get_framesize} < ${1522}
68 | | ... | Add no multi seg to all DUTs
69 | | And Apply startup configuration on all VPP DUTs
70 | | And Initialize L2 bridge domain in 3-node circular topology
71 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
72 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
73
74 *** Test Cases ***
75 | tc01-64B-1t1c-eth-l2bdbasemaclrn-mrr
76 | | [Documentation]
77 | | ... | [Cfg] DUT runs L2BD config with 1 thread, 1 phy core,\
78 | | ... | 1 receive queue per NIC port.
79 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
80 | | ... | throughput test.
81 | | [Tags] | 64B | 1T1C | STHREAD
82 | | ...
83 | | [Template] | Check RR for l2bdbasemaclrn
84 | | framesize=${64} | wt=1 | rxq=1
85
86 | tc02-1518B-1t1c-eth-l2bdbasemaclrn-mrr
87 | | [Documentation]
88 | | ... | [Cfg] DUT runs L2BD config with 1 thread, 1 phy core,\
89 | | ... | 1 receive queue per NIC port.
90 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
91 | | ... | trial throughput test.
92 | | [Tags] | 1518B | 1T1C | STHREAD
93 | | ...
94 | | [Template] | Check RR for l2bdbasemaclrn
95 | | framesize=${1518} | wt=1 | rxq=1
96
97 | tc03-9000B-1t1c-eth-l2bdbasemaclrn-mrr
98 | | [Documentation]
99 | | ... | [Cfg] DUT runs L2BD config with 1 thread, 1 phy core,\
100 | | ... | 1 receive queue per NIC port.
101 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
102 | | ... | trial throughput test.
103 | | [Tags] | 9000B | 1T1C | STHREAD
104 | | ...
105 | | [Template] | Check RR for l2bdbasemaclrn
106 | | framesize=${9000} | wt=1 | rxq=1
107
108 | tc04-64B-2t2c-eth-l2bdbasemaclrn-mrr
109 | | [Documentation]
110 | | ... | [Cfg] DUT runs L2BD config with 2 threads, 2 phy cores,\
111 | | ... | 1 receive queue per NIC port.
112 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
113 | | ... | throughput test.
114 | | [Tags] | 64B | 2T2C | MTHREAD
115 | | ...
116 | | [Template] | Check RR for l2bdbasemaclrn
117 | | framesize=${64} | wt=2 | rxq=1
118
119 | tc05-1518B-2t2c-eth-l2bdbasemaclrn-mrr
120 | | [Documentation]
121 | | ... | [Cfg] DUT runs L2BD config with 2 threads, 2 phy cores,\
122 | | ... | 1 receive queue per NIC port.
123 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
124 | | ... | trial throughput test.
125 | | [Tags] | 1518B | 2T2C | MTHREAD
126 | | ...
127 | | [Template] | Check RR for l2bdbasemaclrn
128 | | framesize=${1518} | wt=2 | rxq=1
129
130 | tc06-9000B-2t2c-eth-l2bdbasemaclrn-mrr
131 | | [Documentation]
132 | | ... | [Cfg] DUT runs L2BD config with 2 threads, 2 phy cores,\
133 | | ... | 1 receive queue per NIC port.
134 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
135 | | ... | trial throughput test.
136 | | [Tags] | 9000B | 2T2C | MTHREAD
137 | | ...
138 | | [Template] | Check RR for l2bdbasemaclrn
139 | | framesize=${9000} | wt=2 | rxq=1
140
141 | tc07-64B-4t4c-eth-l2bdbasemaclrn-mrr
142 | | [Documentation]
143 | | ... | [Cfg] DUT runs L2BD config with 4 threads, 4 phy cores,\
144 | | ... | 2 receive queues per NIC port.
145 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
146 | | ... | throughput test.
147 | | [Tags] | 64B | 4T4C | MTHREAD
148 | | ...
149 | | [Template] | Check RR for l2bdbasemaclrn
150 | | framesize=${64} | wt=4 | rxq=2
151
152 | tc08-1518B-4t4c-eth-l2bdbasemaclrn-mrr
153 | | [Documentation]
154 | | ... | [Cfg] DUT runs L2BD config with 4 threads, 4 phy cores,\
155 | | ... | 2 receive queues per NIC port.
156 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
157 | | ... | trial throughput test.
158 | | [Tags] | 1518B | 4T4C | MTHREAD
159 | | ...
160 | | [Template] | Check RR for l2bdbasemaclrn
161 | | framesize=${1518} | wt=4 | rxq=2
162
163 | tc09-9000B-4t4c-eth-l2bdbasemaclrn-mrr
164 | | [Documentation]
165 | | ... | [Cfg] DUT runs L2BD config with 4 threads, 4 phy cores,\
166 | | ... | 2 receive queues per NIC port.
167 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
168 | | ... | trial throughput test.
169 | | [Tags] | 9000B | 4T4C | MTHREAD
170 | | ...
171 | | [Template] | Check RR for l2bdbasemaclrn
172 | | framesize=${9000} | wt=4 | rxq=2