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