c58515121e8652c7b71b0dc9de4fadfe01ddd9c1
[csit.git] / tests / vpp / perf / ip4 / 10ge2p1x520-ethip4-ip4base-ndrpdr.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 | Documentation | *RFC2544: Pkt throughput IPv4 routing test cases*
16 | ...
17 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
18 | ... | with single links between nodes.
19 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for IPv4 routing.
20 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
21 | ... | routing and two static IPv4 /24 route entries. DUT1 and DUT2 tested with
22 | ... | 2p10GE NIC X520 Niantic by Intel.
23 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
24 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
25 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
26 | ... | of packets transmitted. NDR and PDR are discovered for different
27 | ... | Ethernet L2 frame sizes using either binary search or linear search
28 | ... | algorithms with configured starting rate and final step that determines
29 | ... | throughput measurement resolution. Test packets are generated by TG on
30 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
31 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
32 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
33 | ... | payload. MAC addresses are matching MAC addresses of the TG node
34 | ... | interfaces.
35 | ... | *[Ref] Applicable standard specifications:* RFC2544.
36 | ...
37 | Resource | resources/libraries/robot/performance/performance_setup.robot
38 | ...
39 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR
40 | ... | NIC_Intel-X520-DA2 | ETH | IP4FWD | BASE | IP4BASE
41 | ...
42 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
43 | ... | L3 | Intel-X520-DA2
44 | Suite Teardown | Tear down 3-node performance topology
45 | ...
46 | Test Setup | Set up performance test
47 | ...
48 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
49 | ... | ${framesize} | ${traffic_profile}
50 | ...
51 | Test Template | Local template
52
53 *** Variables ***
54 # X520-DA2 bandwidth limit
55 | ${s_limit} | ${10000000000}
56 # Traffic profile:
57 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src253
58
59 *** Keywords ***
60 | Local template
61 | | [Documentation]
62 | | ... | [Cfg] DUT runs IPv4 routing config with ${wt} thread(s), ${wt}\
63 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
64 | | ... | [Ver] Find NDR and PDR for ${framesize} frames using optimized search\
65 | | ... | start at 10GE linerate.
66 | | ...
67 | | [Arguments] | ${phy_cores} | ${framesize} | ${rxq}=${None}
68 | | ...
69 | | Set Test Variable | ${framesize}
70 | | Set Test Variable | ${min_rate} | ${20000}
71 | | ${get_framesize}= | Get Frame Size | ${framesize}
72 | | ${max_uniditrectional_rate}= | Calculate pps | ${s_limit} | ${get_framesize}
73 | | ${max_rate}= | Evaluate | 2*${max_uniditrectional_rate}
74 | | Given Add worker threads and rxqueues to all DUTs | ${phy_cores} | ${rxq}
75 | | And Add PCI devices to all DUTs
76 | | And Run Keyword If | ${get_framesize} < ${1522}
77 | | ... | Add no multi seg to all DUTs
78 | | And Apply startup configuration on all VPP DUTs
79 | | And Initialize IPv4 forwarding in 3-node circular topology
80 | | Then Find NDR and PDR intervals using optimized search
81 | | ... | ${framesize} | ${traffic_profile} | ${min_rate} | ${max_rate}
82
83 *** Test Cases ***
84 | tc01-64B-1t1c-ethip4-ip4base-ndrpdr
85 | | [Tags] | 64B | 1C
86 | | phy_cores=${1} | framesize=${64}
87
88 | tc02-1518B-1t1c-ethip4-ip4base-ndrpdr
89 | | [Tags] | 1518B | 1C
90 | | phy_cores=${1} | framesize=${1518}
91
92 | tc03-9000B-1t1c-ethip4-ip4base-ndrpdr
93 | | [Tags] | 1518B | 1C
94 | | phy_cores=${1} | framesize=${9000}
95
96 | tc04-IMIX-1t1c-ethip4-ip4base-ndrpdr
97 | | [Tags] | IMIX | 1C
98 | | phy_cores=${1} | framesize=IMIX_v4_1
99
100 | tc05-64B-2t2c-ethip4-ip4base-ndrpdr
101 | | [Tags] | 64B | 2C
102 | | phy_cores=${2} | framesize=${64}
103
104 | tc06-1518B-2t2c-ethip4-ip4base-ndrpdr
105 | | [Tags] | 1518B | 2C
106 | | phy_cores=${2} | framesize=${1518}
107
108 | tc07-9000B-2t2c-ethip4-ip4base-ndrpdr
109 | | [Tags] | 9000B | 2C
110 | | phy_cores=${2} | framesize=${9000}
111
112 | tc08-IMIX-2t2c-ethip4-ip4base-ndrpdr
113 | | [Tags] | IMIX | 2C
114 | | phy_cores=${2} | framesize=IMIX_v4_1
115
116 | tc09-64B-4t4c-ethip4-ip4base-ndrpdr
117 | | [Tags] | 64B | 4C
118 | | phy_cores=${4} | framesize=${64}
119
120 | tc10-1518B-4t4c-ethip4-ip4base-ndrpdr
121 | | [Tags] | 1518B | 4C
122 | | phy_cores=${4} | framesize=${1518}
123
124 | tc11-9000B-4t4c-ethip4-ip4base-ndrpdr
125 | | [Tags] | 9000B | 4C
126 | | phy_cores=${4} | framesize=${9000}
127
128 | tc12-IMIX-4t4c-ethip4-ip4base-ndrpdr
129 | | [Tags] | IMIX | 4C
130 | | phy_cores=${4} | framesize=IMIX_v4_1