PLRsearch: Initial implementation and suites
[csit.git] / tests / vpp / perf / ip4 / 2n1l-25ge2p1xxv710-ethip4-ip4base-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-XXV710 | ETH | IP4FWD | BASE | IP4BASE
19 | ...
20 | Suite Setup | Set up 2-node performance topology with DUT's NIC model
21 | ... | L3 | Intel-XXV710
22 | Suite Teardown | Tear down 2-node performance topology
23 | ...
24 | Test Setup | Set up performance test
25 | Test Teardown | Tear down performance mrr test
26 | ...
27 | Test Template | Local Template
28 | ...
29 | Documentation | *Raw results IPv4 routing test cases*
30 | ...
31 | ... | *[Top] Network Topologies:* TG-DUT1-TG 2-node circular topology
32 | ... | with single links between nodes.
33 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for IPv4 routing.
34 | ... | *[Cfg] DUT configuration:* DUT1 is configured with IPv4
35 | ... | routing and two static IPv4 /24 route entries. DUT1 tested with
36 | ... | 2p25GE NIC X710 by Intel.
37 | ... | *[Ver] TG verification:* Perform PLRsearch to find critical load.
38
39 *** Variables ***
40 # XXV710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
41 | ${s_24.5G}= | ${24500000000}
42 # XXV710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
43 | ${s_18.75Mpps}= | ${18750000}
44 # Traffic profile:
45 | ${traffic_profile}= | trex-sl-2n-ethip4-ip4src253
46
47 *** Keywords ***
48 | Local Template
49 | | [Documentation]
50 | | ... | [Cfg] DUT runs IPv4 routing config.\
51 | | ... | Each DUT uses ${phy_cores} physical core(s) for worker threads.
52 | | ... | [Ver] Perform PLRsearch to find critical load.
53 | | ...
54 | | ... | *Arguments:*
55 | | ... | - framesize - Framesize in Bytes in integer or string (IMIX_v4_1).
56 | | ... |   Type: integer, string
57 | | ... | - phy_cores - Number of physical cores. Type: integer
58 | | ... | - rxq - Number of RX queues, default value: ${None}. Type: integer
59 | | ...
60 | | [Arguments] | ${framesize} | ${phy_cores} | ${rxq}=${None}
61 | | ...
62 | | Given Add worker threads and rxqueues to all DUTs | ${phy_cores} | ${rxq}
63 | | And Add PCI devices to all DUTs
64 | | ${max_rate} | ${jumbo} = | Get Max Rate And Jumbo And Handle Multi Seg
65 | | ... | ${s_24.5G} | ${framesize} | pps_limit=${s_18.75Mpps}
66 | | And Apply startup configuration on all VPP DUTs
67 | | When Initialize IPv4 forwarding in circular topology
68 | | Then Find critical load using PLRsearch
69 | | ... | ${framesize} | ${traffic_profile} | ${10000} | ${max_rate}
70
71 *** Test Cases ***
72 | tc01-64B-1c-ethip4-ip4base-soak
73 | | [Tags] | 64B | 1C
74 | | framesize=${64} | phy_cores=${1}