CSIT-998: MRR tests
[csit.git] / tests / vpp / perf / ip4 / 10ge2p1x520-ethip4-ip4base-ndrchk.robot
1 # Copyright (c) 2017 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 | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRCHK
18 | ... | NIC_Intel-X520-DA2 | ETH | IP4FWD | BASE | IP4BASE
19 | ...
20 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
21 | ... | L3 | Intel-X520-DA2
22 | Suite Teardown | Tear down 3-node performance topology
23 | ...
24 | Test Setup | Set up performance test
25 | Test Teardown | Tear down performance ndrchk test
26 | ...
27 | Documentation | *Reference NDR throughput IPv4 routing verify test cases*
28 | ...
29 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
30 | ... | with single links between nodes.
31 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for IPv4 routing.
32 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
33 | ... | routing and two static IPv4 /24 route entries. DUT1 and DUT2 tested with
34 | ... | 2p10GE NIC X520 Niantic by Intel.
35 | ... | *[Ver] TG verification:* In short performance tests, TG verifies
36 | ... | DUTs' throughput at ref-NDR (reference Non Drop Rate) with zero packet
37 | ... | loss tolerance. Ref-NDR value is periodically updated acording to
38 | ... | formula: ref-NDR = 0.9x NDR, where NDR is found in RFC2544 long
39 | ... | performance tests for the same DUT configuration. Test packets are
40 | ... | generated by TG on links to DUTs. TG traffic profile contains two L3
41 | ... | flow-groups (flow-group per direction, 253 flows per flow-group) with
42 | ... | all packets containing Ethernet header, IPv4 header with IP protocol=61
43 | ... | and static payload. MAC addresses are matching MAC addresses of the
44 | ... | TG node interfaces.
45 | ... | *[Ref] Applicable standard specifications:* RFC2544.
46
47 *** Variables ***
48 # Traffic profile:
49 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src253
50
51 *** Keywords ***
52 | Check NDR for ethip4-ip4base
53 | | [Documentation]
54 | | ... | [Cfg] DUT runs IPv4 routing config with ${wt} thread(s), ${wt}\
55 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
56 | | ... | [Ver] Verify ref-NDR for ${framesize} frames using single trial\
57 | | ... | throughput test at 2x ${rate}.
58 | | ...
59 | | [Arguments] | ${framesize} | ${rate} | ${wt} | ${rxq}
60 | | ...
61 | | # Test Variables required for test teardown
62 | | Set Test Variable | ${framesize}
63 | | Set Test Variable | ${rate}
64 | | ${get_framesize}= | Get Frame Size | ${framesize}
65 | | ...
66 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
67 | | And Add PCI devices to DUTs in 3-node single link topology
68 | | And Run Keyword If | ${get_framesize} < ${1522}
69 | | ... | Add no multi seg to all DUTs
70 | | And Apply startup configuration on all VPP DUTs
71 | | And Initialize IPv4 forwarding in 3-node circular topology
72 | | Then Traffic should pass with no loss | ${perf_trial_duration}
73 | | ... | ${rate} | ${framesize} | ${traffic_profile}
74
75 *** Test Cases ***
76 | tc01-64B-1t1c-ethip4-ip4base-ndrchk
77 | | [Documentation]
78 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
79 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
80 | | ... | frames using single trial throughput test at 2x 4.6mpps.
81 | | [Tags] | 64B | 1T1C | STHREAD
82 | | ...
83 | | [Template] | Check NDR for ethip4-ip4base
84 | | framesize=${64} | rate=4.6mpps | wt=1 | rxq=1
85
86 | tc02-1518B-1t1c-ethip4-ip4base-ndrchk
87 | | [Documentation]
88 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
89 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
90 | | ... | frames using single trial throughput test at 2x 812743pps.
91 | | [Tags] | 1518B | 1T1C | STHREAD
92 | | ...
93 | | [Template] | Check NDR for ethip4-ip4base
94 | | framesize=${1518} | rate=812743pps | wt=1 | rxq=1
95
96 | tc03-9000B-1t1c-ethip4-ip4base-ndrchk
97 | | [Documentation]
98 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
99 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
100 | | ... | frames using single trial throughput test at 2x 138580pps.
101 | | [Tags] | 9000B | 1T1C | STHREAD
102 | | ...
103 | | [Template] | Check NDR for ethip4-ip4base
104 | | framesize=${9000} | rate=138580pps | wt=1 | rxq=1
105
106 | tc04-64B-2t2c-ethip4-ip4base-ndrchk
107 | | [Documentation]
108 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
109 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
110 | | ... | frames using single trial throughput test at 2x 9.4mpps.
111 | | [Tags] | 64B | 2T2C | MTHREAD
112 | | ...
113 | | [Template] | Check NDR for ethip4-ip4base
114 | | framesize=${64} | rate=9.4mpps | wt=2 | rxq=1
115
116 | tc05-1518B-2t2c-ethip4-ip4base-ndrchk
117 | | [Documentation]
118 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
119 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
120 | | ... | frames using single trial throughput test at 2x 812743pps.
121 | | [Tags] | 1518B | 2T2C | MTHREAD
122 | | ...
123 | | [Template] | Check NDR for ethip4-ip4base
124 | | framesize=${1518} | rate=812743pps | wt=2 | rxq=1
125
126 | tc06-9000B-2t2c-ethip4-ip4base-ndrchk
127 | | [Documentation]
128 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
129 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
130 | | ... | frames using single trial throughput test at 2x 138580pps.
131 | | [Tags] | 9000B | 2T2C | MTHREAD
132 | | ...
133 | | [Template] | Check NDR for ethip4-ip4base
134 | | framesize=${9000} | rate=138580pps | wt=2 | rxq=1
135
136 | tc07-64B-4t4c-ethip4-ip4base-ndrchk
137 | | [Documentation]
138 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
139 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 64 Byte
140 | | ... | frames using single trial throughput test at 2x 10.4mpps.
141 | | [Tags] | 64B | 4T4C | MTHREAD
142 | | ...
143 | | [Template] | Check NDR for ethip4-ip4base
144 | | framesize=${64} | rate=10.4mpps | wt=4 | rxq=2
145
146 | tc08-1518B-4t4c-ethip4-ip4base-ndrchk
147 | | [Documentation]
148 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
149 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 1518 Byte
150 | | ... | frames using single trial throughput test at 2x 812743pps.
151 | | [Tags] | 1518B | 4T4C | MTHREAD
152 | | ...
153 | | [Template] | Check NDR for ethip4-ip4base
154 | | framesize=${1518} | rate=812743pps | wt=4 | rxq=2
155
156 | tc09-9000B-4t4c-ethip4-ip4base-ndrchk
157 | | [Documentation]
158 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
159 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 9000 Byte
160 | | ... | frames using single trial throughput test at 2x 138580pps.
161 | | [Tags] | 9000B | 4T4C | MTHREAD
162 | | ...
163 | | [Template] | Check NDR for ethip4-ip4base
164 | | framesize=${9000} | rate=138580pps | wt=4 | rxq=2