4d441601e5dcd4beefca71521e289af0d20c1c5c
[csit.git] / tests / suites / performance / long_xconnect.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/performance.robot
15 | Library | resources.libraries.python.InterfaceUtil
16 | Library | resources.libraries.python.NodePath
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PERFTEST_LONG
18 | Suite Setup | 3-node Performance Suite Setup | L2
19 | Suite Teardown | 3-node Performance Suite Teardown
20 | Test Setup | Setup all DUTs before test
21 | Test Teardown  | Run Keyword If Test Failed | Show statistics on all DUTs
22 | Documentation | *Throughput search suite (based on RFC2544).*
23 | ...
24 | ... | Test suite uses 3-node topology TG - DUT1 - DUT2 - TG, with one link
25 | ... | between nodes. Traffic profile contain 2 L2 streams (1 stream per
26 | ... | direction). Packets contain Ethernet header, IPv4 header,
27 | ... | IP protocol=61 and random payload. Ethernet header MAC addresses are
28 | ... | matching MAC addresses of the TG node.
29
30 *** Test Cases ***
31 | Find NDR by using linear search and 64B frames through L2 cross connect in 3-node topology
32 | | [Documentation]
33 | | ... | Find throughput with non drop rate for 64B frames by using
34 | | ... | linear search starting at 5Mpps, stepping down with step of 0.1Mpps
35 | | ${framesize}= | Set Variable | 64
36 | | ${start_rate}= | Set Variable | 5000000
37 | | ${step_rate}= | Set Variable | 100000
38 | | ${min_rate}= | Set Variable | 100000
39 | | ${max_rate}= | Set Variable | 14880952
40 | | Given L2 xconnect initialized in a 3-node circular topology
41 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate} | ${step_rate}
42 | | ...                                       | 3-node-xconnect | ${min_rate} | ${max_rate}
43
44 | Find NDR by using linear search and 1518B frames through L2 cross connect in 3-node topology
45 | | [Documentation]
46 | | ... | Find throughput with non drop rate for 1518B frames by using
47 | | ... | linear search starting at 812,743pps, stepping down with step of 10,000pps
48 | | ${framesize}= | Set Variable | 1518
49 | | ${start_rate}= | Set Variable | 812743
50 | | ${step_rate}= | Set Variable | 10000
51 | | ${min_rate}= | Set Variable | 10000
52 | | ${max_rate}= | Set Variable | 812743
53 | | Given L2 xconnect initialized in a 3-node circular topology
54 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate} | ${step_rate}
55 | | ...                                       | 3-node-xconnect | ${min_rate} | ${max_rate}
56
57 | Find NDR by using linear search and 9000B frames through L2 cross connect in 3-node topology
58 | | [Documentation]
59 | | ... | Find throughput with non drop rate for 9000B frames by using
60 | | ... | linear search starting at 138,580pps, stepping down with step 5,000pps
61 | | ${framesize}= | Set Variable | 9000
62 | | ${start_rate}= | Set Variable | 138580
63 | | ${step_rate}= | Set Variable | 5000
64 | | ${min_rate}= | Set Variable | 5000
65 | | ${max_rate}= | Set Variable | 138580
66 | | Given L2 xconnect initialized in a 3-node circular topology
67 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate} | ${step_rate}
68 | | ...                                       | 3-node-xconnect | ${min_rate} | ${max_rate}