Upgrade autogen to NICs and search types
[csit.git] / tests / dpdk / perf / 2n1l-10ge2p1x710-ethip4-ip4base-l3fwd-ndrpdr.robot
1 # Copyright (c) 2019 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 | Resource | resources/libraries/robot/dpdk/default.robot
17 | Library | resources.libraries.python.topology.Topology
18 | Library | resources.libraries.python.NodePath
19 | Library | resources.libraries.python.InterfaceUtil
20 | Library | resources.libraries.python.DPDK.DPDKTools
21 | ...
22 | Force Tags | 2_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR | 1NUMA
23 | ... | NIC_Intel-X710 | DPDK | IP4FWD | BASE | ETH
24 | ...
25 | Suite Setup | Set up DPDK 2-node performance topology with DUT's NIC model
26 | ... | L3 | ${nic_name}
27 | Suite Teardown | Tear down DPDK 2-node performance topology
28 | ...
29 | Test Template | Local Template
30 | ...
31 | Documentation | *Raw results IPv4 routing test cases*
32 | ... | *[Top] Network Topologies:* TG-DUT1-TG 3-node circular topology\
33 | ... | with single links between nodes.
34 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L3 IPv4 routing.
35 | ... | *[Cfg] DUT configuration:* DUT1 run the DPDK l3fwd application\
36 | ... | DUT1 tested with ${nic_name}.\
37 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop\
38 | ... | Rate) with zero packet loss tolerance and throughput PDR (Partial Drop\
39 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage\
40 | ... | of packets transmitted. NDR and PDR are discovered for different\
41 | ... | Ethernet L2 frame sizes using MLRsearch library.\
42 | ... | Test packets are generated by TG on\
43 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups\
44 | ... | (flow-group per direction, 253 flows per flow-group) with all packets\
45 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static\
46 | ... | payload. MAC addresses are matching MAC addresses of the TG node\
47 | ... | interfaces.
48
49 *** Variables ***
50 | ${nic_name}= | Intel-X710
51 | ${overhead}= | ${0}
52 # Traffic profile:
53 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4dst253_l3fwd
54
55 *** Keywords ***
56 | Local Template
57 | | [Documentation]
58 | | ... | [Cfg] DUT runs L3 IPv4 routing config.\
59 | | ... | Each DUT uses ${phy_cores} physical core(s) for worker threads.
60 | | ... | [Ver] Measure NDR and PDR values using MLRsearch algorithm.\
61 | | ...
62 | | [Arguments] | ${frame_size} | ${phy_cores} | ${rxq}=${None}
63 | | ...
64 | | Set Test Variable | \${frame_size}
65 | | ...
66 | | Set Max Rate And Jumbo
67 | | Given Start L3FWD on all DUTs | ${phy_cores} | ${rxq} | ${jumbo}
68 | | Then Find NDR and PDR intervals using optimized search
69
70 *** Test Cases ***
71 | tc01-64B-1c-ethip4-ip4base-l3fwd-ndrpdr
72 | | [Tags] | 64B | 1C
73 | | frame_size=${64} | phy_cores=${1}
74
75 | tc02-64B-2c-ethip4-ip4base-l3fwd-ndrpdr
76 | | [Tags] | 64B | 2C
77 | | frame_size=${64} | phy_cores=${2}
78
79 | tc03-64B-4c-ethip4-ip4base-l3fwd-ndrpdr
80 | | [Tags] | 64B | 4C
81 | | frame_size=${64} | phy_cores=${4}
82
83 | tc04-1518B-1c-ethip4-ip4base-l3fwd-ndrpdr
84 | | [Tags] | 1518B | 1C
85 | | frame_size=${1518} | phy_cores=${1}
86
87 | tc05-1518B-2c-ethip4-ip4base-l3fwd-ndrpdr
88 | | [Tags] | 1518B | 2C
89 | | frame_size=${1518} | phy_cores=${2}
90
91 | tc06-1518B-4c-ethip4-ip4base-l3fwd-ndrpdr
92 | | [Tags] | 1518B | 4C
93 | | frame_size=${1518} | phy_cores=${4}
94
95 | tc07-9000B-1c-ethip4-ip4base-l3fwd-ndrpdr
96 | | [Tags] | 9000B | 1C
97 | | frame_size=${9000} | phy_cores=${1}
98
99 | tc08-9000B-2c-ethip4-ip4base-l3fwd-ndrpdr
100 | | [Tags] | 9000B | 2C
101 | | frame_size=${9000} | phy_cores=${2}
102
103 | tc09-9000B-4c-ethip4-ip4base-l3fwd-ndrpdr
104 | | [Tags] | 9000B | 4C
105 | | frame_size=${9000} | phy_cores=${4}
106
107 | tc10-IMIX-1c-ethip4-ip4base-l3fwd-ndrpdr
108 | | [Tags] | IMIX | 1C
109 | | frame_size=IMIX_v4_1 | phy_cores=${1}
110
111 | tc11-IMIX-2c-ethip4-ip4base-l3fwd-ndrpdr
112 | | [Tags] | IMIX | 2C
113 | | frame_size=IMIX_v4_1 | phy_cores=${2}
114
115 | tc12-IMIX-4c-ethip4-ip4base-l3fwd-ndrpdr
116 | | [Tags] | IMIX | 4C
117 | | frame_size=IMIX_v4_1 | phy_cores=${4}