7e14c8afa9f23b35c5cbc89a6dfcae2b3080aa43
[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 | Discover NDRPDR for ethip4-ip4base
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 | Discover NDRPDR for ethip4-ip4base
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] | ${wt} | ${rxq} | ${framesize}
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 '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
75 | | And Add PCI devices to DUTs in 3-node single link topology
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 | 1T1C | STHREAD
86 | | ...
87 | | wt=1 | rxq=1 | framesize=${64}
88
89 | tc02-1518B-1t1c-ethip4-ip4base-ndrpdr
90 | | [Tags] | 1518B | 1T1C | STHREAD
91 | | ...
92 | | wt=1 | rxq=1 | framesize=${1518}
93
94 | tc03-9000B-1t1c-ethip4-ip4base-ndrpdr
95 | | [Tags] | 1518B | 1T1C | STHREAD
96 | | ...
97 | | wt=1 | rxq=1 | framesize=${9000}
98
99 | tc04-IMIX-1t1c-ethip4-ip4base-ndrpdr
100 | | [Tags] | IMIX | 1T1C | STHREAD
101 | | ...
102 | | wt=1 | rxq=1 | framesize=IMIX_v4_1
103
104 | tc05-64B-2t2c-ethip4-ip4base-ndrpdr
105 | | [Tags] | 64B | 2T2C | MTHREAD
106 | | ...
107 | | wt=2 | rxq=1 | framesize=${64}
108
109 | tc06-1518B-2t2c-ethip4-ip4base-ndrpdr
110 | | [Tags] | 1518B | 2T2C | MTHREAD
111 | | ...
112 | | wt=2 | rxq=1 | framesize=${1518}
113
114 | tc07-9000B-2t2c-ethip4-ip4base-ndrpdr
115 | | [Tags] | 9000B | 2T2C | MTHREAD
116 | | ...
117 | | wt=2 | rxq=1 | framesize=${9000}
118
119 | tc08-IMIX-2t2c-ethip4-ip4base-ndrpdr
120 | | [Tags] | IMIX | 2T2C | MTHREAD
121 | | ...
122 | | wt=2 | rxq=1 | framesize=IMIX_v4_1
123
124 | tc09-64B-4t4c-ethip4-ip4base-ndrpdr
125 | | [Tags] | 64B | 4T4C | MTHREAD
126 | | ...
127 | | wt=4 | rxq=2 | framesize=${64}
128
129 | tc10-1518B-4t4c-ethip4-ip4base-ndrpdr
130 | | [Tags] | 1518B | 4T4C | MTHREAD
131 | | ...
132 | | wt=4 | rxq=2 | framesize=${1518}
133
134 | tc11-9000B-4t4c-ethip4-ip4base-ndrpdr
135 | | [Tags] | 9000B | 4T4C | MTHREAD
136 | | ...
137 | | wt=4 | rxq=2 | framesize=${9000}
138
139 | tc12-IMIX-4t4c-ethip4-ip4base-ndrpdr
140 | | [Tags] | IMIX | 4T4C | MTHREAD
141 | | ...
142 | | wt=4 | rxq=2 | framesize=IMIX_v4_1