e0964741b6b558fb5d5f3022fdd1e3df711b74de
[csit.git] / tests / vpp / perf / container_memif / 40ge2p1xl710-eth-l2xcbase-eth-2memif-1lxc-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-XL710 | ETH | L2XCFWD | BASE | MEMIF | LXC
19 | ...
20 | Suite Setup | Run Keywords
21 | ... | Set up 3-node performance topology with DUT's NIC model | L2
22 | ... | Intel-XL710
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 2p40GE NIC XL710 by Intel.
39 | ... | LXC is connected to VPP via Memif interface. LXC is running same VPP
40 | ... | version as running on DUT. LXC is limited via cgroup to use 3 cores
41 | ... | allocated from pool of isolated CPUs. There are no memory contraints.
42 | ... | *[Ver] TG verification:* In MaxReceivedRate test TG sends traffic
43 | ... | at line rate and reports total received/sent packets over trial period.
44 | ... | Test packets are generated by TG on links to DUTs. TG traffic profile
45 | ... | contains two L3 flow-groups (flow-group per direction, 254 flows per
46 | ... | flow-group) with all packets containing Ethernet header, IPv4 header
47 | ... | with IP protocol=61 and static payload. MAC addresses are matching MAC
48 | ... | addresses of the TG node interfaces.
49
50 *** Variables ***
51 # XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
52 | ${s_24.5G} | ${24500000000}
53 # XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
54 | ${s_18.75Mpps} | ${18750000}
55 # Traffic profile:
56 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
57 # LXC container
58 | ${container_count}= | ${1}
59 | ${container_engine}= | LXC
60 | ${container_image}= | ${EMPTY}
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-1lxc
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_24.5G} | ${get_framesize}
80 | | ${max_rate}= | Set Variable If
81 | | ... | ${max_rate} > ${s_18.75Mpps} | ${s_18.75Mpps} | ${max_rate}
82 | | ...
83 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
84 | | And Add PCI devices to DUTs in 3-node single link topology
85 | | And Run Keyword If | ${get_framesize} < ${1522}
86 | | ... | Add no multi seg to all DUTs
87 | | And Apply startup configuration on all VPP DUTs
88 | | And Initialize L2 xconnect for '1' memif pairs in 3-node circular topology
89 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
90 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
91
92 *** Test Cases ***
93 | tc01-64B-1t1c-eth-l2xcbase-eth-2memif-1lxc-mrr
94 | | [Documentation]
95 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
96 | | ... | 1 receive queue per NIC port.
97 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
98 | | ... | throughput test.
99 | | ...
100 | | [Tags] | 64B | 1T1C | STHREAD
101 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
102 | | framesize=${64} | wt=1 | rxq=1
103
104 | tc02-IMIX-1t1c-eth-l2xcbase-eth-2memif-1lxc-mrr
105 | | [Documentation]
106 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
107 | | ... | 1 receive queue per NIC port.
108 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
109 | | ... | throughput test.
110 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
111 | | ...
112 | | [Tags] | IMIX | 1T1C | STHREAD
113 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
114 | | framesize=IMIX_v4_1 | wt=1 | rxq=1
115
116 | tc03-1518B-1t1c-eth-l2xcbase-eth-2memif-1lxc-mrr
117 | | [Documentation]
118 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
119 | | ... | 1 receive queue per NIC port.
120 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
121 | | ... | throughput test.
122 | | ...
123 | | [Tags] | 1518B | 1T1C | STHREAD
124 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
125 | | framesize=${1518} | wt=1 | rxq=1
126
127 | tc04-64B-2t2c-eth-l2xcbase-eth-2memif-1lxc-mrr
128 | | [Documentation]
129 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 2 phy core,\
130 | | ... | 1 receive queue per NIC port.
131 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
132 | | ... | throughput test.
133 | | ...
134 | | [Tags] | 64B | 2T2C | MTHREAD
135 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
136 | | framesize=${64} | wt=2 | rxq=1
137
138 | tc05-IMIX-2t2c-eth-l2xcbase-eth-2memif-1lxc-mrr
139 | | [Documentation]
140 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 2 phy core,\
141 | | ... | 1 receive queue per NIC port.
142 | | ... | [Ver] Measure MaxReceivedRate forIMIX_v4_1 frames using single trial\
143 | | ... | throughput test.
144 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
145 | | ...
146 | | [Tags] | IMIX | 2T2C | MTHREAD
147 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
148 | | framesize=IMIX_v4_1 | wt=2 | rxq=1
149
150 | tc06-1518B-2t2c-eth-l2xcbase-eth-2memif-1lxc-mrr
151 | | [Documentation]
152 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 1 phy core,\
153 | | ... | 1 receive queue per NIC port.
154 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
155 | | ... | throughput test.
156 | | ...
157 | | [Tags] | 1518B | 2T2C | MTHREAD
158 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
159 | | framesize=${1518} | wt=2 | rxq=1