PLRsearch: Initial implementation and suites
[csit.git] / tests / vpp / perf / l2 / 2n1l-10ge2p1x710-eth-l2bdbasemaclrn-soak.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 | 2_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | SOAK
18 | ... | NIC_Intel-X710 | ETH | L2BDMACLRN | BASE | L2BDBASE
19 | ...
20 | Suite Setup | Set up 2-node performance topology with DUT's NIC model
21 | ... | L2 | Intel-X710
22 | ...
23 | Suite Teardown | Tear down 2-node performance topology
24 | ...
25 | Test Setup | Set up performance test
26 | ...
27 | Test Teardown | Tear down performance mrr test
28 | ...
29 | Test Template | Local Template
30 | ...
31 | Documentation | *Raw results L2BD test cases*
32 | ...
33 | ... | *[Top] Network Topologies:* TG-DUT1-TG 2-node circular topology\
34 | ... | with single links between nodes.
35 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 switching of IPv4.
36 | ... | *[Cfg] DUT configuration:* DUT1 is configured with L2 bridge-domain\
37 | ... | and MAC learning enabled. DUT1 tested with 2p10GE NIC X710 by Intel.
38 | ... | *[Ver] TG verification:* Perform PLRsearch to find critical load.
39
40 *** Variables ***
41 # X710-DA2 bandwidth limit
42 | ${s_limit}= | ${10000000000}
43 # Traffic profile:
44 | ${traffic_profile}= | trex-sl-2n-ethip4-ip4src254
45
46 *** Keywords ***
47 | Local Template
48 | | [Documentation]
49 | | ... | [Cfg] DUT runs L2BD switching config and uses ${phy_cores} physical\
50 | | ... | core(s) for worker threads.
51 | | ... | [Ver] Perform PLRsearch to find critical load.
52 | | ...
53 | | ... | *Arguments:*
54 | | ... | - framesize - Framesize in Bytes in integer or string (IMIX_v4_1).
55 | | ... |   Type: integer, string
56 | | ... | - phy_cores - Number of physical cores. Type: integer
57 | | ... | - rxq - Number of RX queues, default value: ${None}. Type: integer
58 | | ...
59 | | [Arguments] | ${framesize} | ${phy_cores} | ${rxq}=${None}
60 | | ...
61 | | Given Add worker threads and rxqueues to all DUTs | ${phy_cores} | ${rxq}
62 | | And Add PCI devices to all DUTs
63 | | ${max_rate} | ${jumbo} = | Get Max Rate And Jumbo And Handle Multi Seg
64 | | ... | ${s_limit} | ${framesize}
65 | | And Apply startup configuration on all VPP DUTs
66 | | And Initialize L2 bridge domain in circular topology
67 | | Then Find critical load using PLRsearch
68 | | ... | ${framesize} | ${traffic_profile} | ${10000} | ${max_rate}
69
70 *** Test Cases ***
71 | tc01-64B-1c-eth-l2bdbasemaclrn-soak
72 | | [Tags] | 64B | 1C
73 | | framesize=${64} | phy_cores=${1}