CSIT-989 Fix: Reflect latest memif API changes
[csit.git] / tests / vpp / perf / container_memif / 10ge2p1x520-eth-l2xcbase-eth-2memif-1dcr-mrr.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 | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | MRR
18 | ... | NIC_Intel-X520-DA2 | ETH | L2XCFWD | BASE | MEMIF | DOCKER
19 | ...
20 | Suite Setup | Run Keywords
21 | ... | Set up 3-node performance topology with DUT's NIC model | L2
22 | ... | Intel-X520-DA2
23 | ... | AND | Set up performance test suite with MEMIF
24 | ... | AND | Set up performance topology with containers
25 | ...
26 | Suite Teardown | Tear down 3-node performance topology with container
27 | ...
28 | Test Setup | Set up performance test
29 | ...
30 | Test Teardown | Tear down performance mrr test
31 | ...
32 | Documentation |  *Raw results L2XC test cases*
33 | ...
34 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
35 | ... | with single links between nodes.
36 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 cross connect.
37 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 cross-
38 | ... | connect. DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
39 | ... | Container is connected to VPP via Memif interface. Container is running
40 | ... | same VPP version as running on DUT. Container is limited via cgroup to
41 | ... | use 3 cores allocated from pool of isolated CPUs. There are no memory
42 | ... | contraints.
43 | ... | *[Ver] TG verification:* In MaxReceivedRate test TG sends traffic
44 | ... | at line rate and reports total received/sent packets over trial period.
45 | ... | Test packets are generated by TG on links to DUTs. TG traffic profile
46 | ... | contains two L3 flow-groups (flow-group per direction, 253 flows per
47 | ... | flow-group) with all packets containing Ethernet header, IPv4 header
48 | ... | with IP protocol=61 and static payload. MAC addresses are matching MAC
49 | ... | addresses of the TG node interfaces.
50 | ... | *[Ref] Applicable standard specifications:* RFC2544.
51
52 *** Variables ***
53 # X520-DA2 bandwidth limit
54 | ${s_limit} | ${10000000000}
55 # Traffic profile:
56 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
57 # LXC container
58 | ${container_count}= | ${1}
59 | ${container_engine}= | Docker
60 | ${container_image}= | ubuntu
61 # CPU settings
62 | ${system_cpus}= | ${1}
63 | ${vpp_cpus}= | ${5}
64 | ${container_cpus}= | ${3}
65
66 *** Keywords ***
67 | Check RR for l2xcbase-eth-2memif-1dcr
68 | | [Documentation]
69 | | ... | [Cfg] DUT runs L2XC switching config with ${wt} thread(s), ${wt}\
70 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
71 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
72 | | ... | trial throughput test.
73 | | ...
74 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
75 | | ...
76 | | # Test Variables required for test teardown
77 | | Set Test Variable | ${framesize}
78 | | ${get_framesize}= | Get Frame Size | ${framesize}
79 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
80 | | ...
81 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
82 | | And Add PCI devices to DUTs in 3-node single link topology
83 | | And Run Keyword If | ${get_framesize} < ${1522}
84 | | ... | Add no multi seg to all DUTs
85 | | And Apply startup configuration on all VPP DUTs
86 | | And Initialize L2 xconnect for '1' memif pairs in 3-node circular topology
87 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
88 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
89
90 *** Test Cases ***
91 | tc01-64B-1t1c-eth-l2xcbase-eth-2memif-1dcr-mrr
92 | | [Documentation]
93 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
94 | | ... | 1 receive queue per NIC port.
95 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
96 | | ... | throughput test.
97 | | ...
98 | | [Tags] | 64B | 1T1C | STHREAD
99 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
100 | | framesize=${64} | wt=1 | rxq=1
101
102 | tc02-IMIX-1t1c-eth-l2xcbase-eth-2memif-1dcr-mrr
103 | | [Documentation]
104 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
105 | | ... | 1 receive queue per NIC port.
106 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
107 | | ... | throughput test.
108 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
109 | | ...
110 | | [Tags] | IMIX | 1T1C | STHREAD
111 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
112 | | framesize=IMIX_v4_1 | wt=1 | rxq=1
113
114 | tc03-1518B-1t1c-eth-l2xcbase-eth-2memif-1dcr-mrr
115 | | [Documentation]
116 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
117 | | ... | 1 receive queue per NIC port.
118 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
119 | | ... | throughput test.
120 | | ...
121 | | [Tags] | 1518B | 1T1C | STHREAD
122 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
123 | | framesize=${1518} | wt=1 | rxq=1
124
125 | tc04-64B-2t2c-eth-l2xcbase-eth-2memif-1dcr-mrr
126 | | [Documentation]
127 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 2 phy core,\
128 | | ... | 1 receive queue per NIC port.
129 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
130 | | ... | throughput test.
131 | | ...
132 | | [Tags] | 64B | 2T2C | MTHREAD
133 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
134 | | framesize=${64} | wt=2 | rxq=1
135
136 | tc05-IMIX-2t2c-eth-l2xcbase-eth-2memif-1dcr-mrr
137 | | [Documentation]
138 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 2 phy core,\
139 | | ... | 1 receive queue per NIC port.
140 | | ... | [Ver] Measure MaxReceivedRate forIMIX_v4_1 frames using single trial\
141 | | ... | throughput test.
142 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
143 | | ...
144 | | [Tags] | IMIX | 2T2C | MTHREAD
145 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
146 | | framesize=IMIX_v4_1 | wt=2 | rxq=1
147
148 | tc06-1518B-2t2c-eth-l2xcbase-eth-2memif-1dcr-mrr
149 | | [Documentation]
150 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 1 phy core,\
151 | | ... | 1 receive queue per NIC port.
152 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
153 | | ... | throughput test.
154 | | ...
155 | | [Tags] | 1518B | 2T2C | MTHREAD
156 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
157 | | framesize=${1518} | wt=2 | rxq=1