4b347b478d77ca20ff934ebacc38ac10eac30cb9
[csit.git] / tests / vpp / perf / container_memif / 10ge2p1x520-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-X520-DA2 | 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-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 | ... | 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 # X520-DA2 bandwidth limit
52 | ${s_limit} | ${10000000000}
53 # Traffic profile:
54 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
55 # LXC container
56 | ${container_count}= | ${1}
57 | ${container_engine}= | LXC
58 | ${container_image}= | ${EMPTY}
59 # CPU settings
60 | ${system_cpus}= | ${1}
61 | ${vpp_cpus}= | ${5}
62 | ${container_cpus}= | ${3}
63
64 *** Keywords ***
65 | Check RR for l2xcbase-eth-2memif-1lxc
66 | | [Documentation]
67 | | ... | [Cfg] DUT runs L2XC switching config with ${wt} thread(s), ${wt}\
68 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
69 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
70 | | ... | trial throughput test.
71 | | ...
72 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
73 | | ...
74 | | # Test Variables required for test teardown
75 | | Set Test Variable | ${framesize}
76 | | ${get_framesize}= | Get Frame Size | ${framesize}
77 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
78 | | ...
79 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
80 | | And Add PCI devices to DUTs in 3-node single link topology
81 | | And Run Keyword If | ${get_framesize} < ${1522}
82 | | ... | Add no multi seg to all DUTs
83 | | And Apply startup configuration on all VPP DUTs
84 | | And Initialize L2 xconnect for '1' memif pairs in 3-node circular topology
85 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
86 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
87
88 *** Test Cases ***
89 | tc01-64B-1t1c-eth-l2xcbase-eth-2memif-1lxc-mrr
90 | | [Documentation]
91 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
92 | | ... | 1 receive queue per NIC port.
93 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
94 | | ... | throughput test.
95 | | ...
96 | | [Tags] | 64B | 1T1C | STHREAD
97 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
98 | | framesize=${64} | wt=1 | rxq=1
99
100 | tc02-IMIX-1t1c-eth-l2xcbase-eth-2memif-1lxc-mrr
101 | | [Documentation]
102 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
103 | | ... | 1 receive queue per NIC port.
104 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
105 | | ... | throughput test.
106 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
107 | | ...
108 | | [Tags] | IMIX | 1T1C | STHREAD
109 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
110 | | framesize=IMIX_v4_1 | wt=1 | rxq=1
111
112 | tc03-1518B-1t1c-eth-l2xcbase-eth-2memif-1lxc-mrr
113 | | [Documentation]
114 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
115 | | ... | 1 receive queue per NIC port.
116 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
117 | | ... | throughput test.
118 | | ...
119 | | [Tags] | 1518B | 1T1C | STHREAD
120 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
121 | | framesize=${1518} | wt=1 | rxq=1
122
123 | tc04-64B-2t2c-eth-l2xcbase-eth-2memif-1lxc-mrr
124 | | [Documentation]
125 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 2 phy core,\
126 | | ... | 1 receive queue per NIC port.
127 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
128 | | ... | throughput test.
129 | | ...
130 | | [Tags] | 64B | 2T2C | MTHREAD
131 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
132 | | framesize=${64} | wt=2 | rxq=1
133
134 | tc05-IMIX-2t2c-eth-l2xcbase-eth-2memif-1lxc-mrr
135 | | [Documentation]
136 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 2 phy core,\
137 | | ... | 1 receive queue per NIC port.
138 | | ... | [Ver] Measure MaxReceivedRate forIMIX_v4_1 frames using single trial\
139 | | ... | throughput test.
140 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
141 | | ...
142 | | [Tags] | IMIX | 2T2C | MTHREAD
143 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
144 | | framesize=IMIX_v4_1 | wt=2 | rxq=1
145
146 | tc06-1518B-2t2c-eth-l2xcbase-eth-2memif-1lxc-mrr
147 | | [Documentation]
148 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 1 phy core,\
149 | | ... | 1 receive queue per NIC port.
150 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
151 | | ... | throughput test.
152 | | ...
153 | | [Tags] | 1518B | 2T2C | MTHREAD
154 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
155 | | framesize=${1518} | wt=2 | rxq=1