43076b38aa8dc9f4f664c8cfbf5239a3bb6a1801
[csit.git] / tests / suites / performance / long_bridge_domain.robot
1 # Copyright (c) 2016 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 *** Settings ***
14 | Resource | resources/libraries/robot/default.robot
15 | Resource | resources/libraries/robot/interfaces.robot
16 | Resource | resources/libraries/robot/bridge_domain.robot
17 | Resource | resources/libraries/robot/performance.robot
18 | Resource | resources/libraries/robot/counters.robot
19 | Library | resources.libraries.python.TrafficGenerator
20 | Library | resources.libraries.python.TrafficGenerator.TGDropRateSearchImpl
21 | Library | resources.libraries.python.NodePath
22 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PERFTEST_LONG
23 | Suite Setup | 3-node Performance Suite Setup
24 | Suite Teardown | 3-node Performance Suite Teardown
25 | Test Setup | Setup all DUTs before test
26 | Test Teardown  | Run Keyword If Test Failed | Show statistics on all DUTs
27 | Documentation | Throughput search suite (long running test suite based on RFC2544).
28
29 *** Test Cases ***
30 | Find NDR by using linear search and 64B frames through bridge domain in 3-node topology
31 | | Given L2 bridge domain initialized in a 3-node circular topology
32 | | Then Find NDR using linear search and pps | 64 | 4600000 | 100000
33 | | ...                                       | 3-node-bridge | 14000000 | 100000
34
35 *** Keywords ***
36
37 | 3-node Performance Suite Setup
38 | | 3-node circular Topology Variables Setup
39 | | Initialize traffic generator | ${tg} | ${tg_if1} | ${tg_if2}
40 | | ...                          | ${dut1} | ${dut1_if1} | ${dut1_if2}
41 | | ...                          | ${dut2} | ${dut2_if1} | ${dut2_if2}
42 | | ...                          | L2
43
44 | 3-node Performance Suite Teardown
45 | | Teardown traffic generator | ${tg}
46
47 | L2 bridge domain initialized in a 3-node circular topology
48 | | Vpp l2bd forwarding setup | ${dut1} | ${dut1_if1} | ${dut1_if2}
49 | | Vpp l2bd forwarding setup | ${dut2} | ${dut2_if1} | ${dut2_if2}
50 | | All Vpp Interfaces Ready Wait | ${nodes}
51
52 | Find NDR using linear search and pps
53 | | [Arguments] | ${framesize} | ${start_rate} | ${step_rate}
54 | | ...         | ${topology_type} | ${min_rate} | ${max_rate}
55 | | Set Duration | 60
56 | | Set Search Rate Boundaries | 14000000 | 100000
57 | | Set Search Linear Step | ${step_rate}
58 | | Set Search Rate Type pps
59 | | Linear Search | ${start_rate} | ${topology_type}
60 | | ${result_rate}= | Verify Search Result
61 | | Set Test Message | FINAL_RATE: ${result_rate} pps
62
63 | Show statistics on all DUTs
64 | | Sleep | 10 | Waiting for statistics to be collected
65 | | Vpp show stats | ${dut1}
66 | | Vpp show stats | ${dut2}