150ca8535SJan Gelety# Copyright (c) 2020 Cisco and/or its affiliates.
212eab1e5SJan Gelety# Licensed under the Apache License, Version 2.0 (the "License");
312eab1e5SJan Gelety# you may not use this file except in compliance with the License.
412eab1e5SJan Gelety# You may obtain a copy of the License at:
512eab1e5SJan Gelety#
612eab1e5SJan Gelety#     http://www.apache.org/licenses/LICENSE-2.0
712eab1e5SJan Gelety#
812eab1e5SJan Gelety# Unless required by applicable law or agreed to in writing, software
912eab1e5SJan Gelety# distributed under the License is distributed on an "AS IS" BASIS,
1012eab1e5SJan Gelety# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112eab1e5SJan Gelety# See the License for the specific language governing permissions and
1212eab1e5SJan Gelety# limitations under the License.
1312eab1e5SJan Gelety
1412eab1e5SJan Gelety*** Settings ***
151577123aSPeter Mikus| Resource | resources/libraries/robot/shared/default.robot
16d68951acSJan Gelety|
1712eab1e5SJan Gelety| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR
1812eab1e5SJan Gelety| ... | NIC_Intel-X710 | L2BDMACLRN | SCALE | L2BD_1K | DOT1Q | VLAN_1K
19ac89ba8aSPeter Mikus| ... | ENCAP | VXLAN | L2OVRLAY | IP4UNRLAY | VXLAN_1K | DRV_VFIO_PCI
206daa2d79SPeter Mikus| ... | RXQ_SIZE_0 | TXQ_SIZE_0
21e916ab4dSVratko Polak| ... | dot1q--ethip4vxlan-l2bdscale1kl2bd1kvlan1kvxlan
22d68951acSJan Gelety|
2314a71b74SPeter Mikus| Suite Setup | Setup suite topology interfaces | performance
246871d4e7SPeter Mikus| Suite Teardown | Tear down suite | performance
2550ca8535SJan Gelety| Test Setup | Setup test | performance | performance
266871d4e7SPeter Mikus| Test Teardown | Tear down test | performance
27d68951acSJan Gelety|
2812eab1e5SJan Gelety| Test Template | Local Template
29d68951acSJan Gelety|
3012eab1e5SJan Gelety| Documentation | *RFC2544: Pkt throughput L2BD with IEEE 802.1Q and VXLANoIPv4
3112eab1e5SJan Gelety| ... | test cases*
32d68951acSJan Gelety|
3312eab1e5SJan Gelety| ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
3412eab1e5SJan Gelety| ... | with single links between nodes.
3512eab1e5SJan Gelety| ... | *[Enc] Packet Encapsulations:* Eth-Dot1Q-IPv4 for L2 switching of IPv4\
3612eab1e5SJan Gelety| ... | on TG-DUTn. Eth-IPv4-VXLAN-Eth-IPv4 is applied on link between DUTs.
3712eab1e5SJan Gelety| ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with 1k L2\
3812eab1e5SJan Gelety| ... | bridge domains. VXLAN tunnels are configured between L2BDs on DUT1 and\
395e6145a4SVratko Polak| ... | DUT2. DUT1 and DUT2 tested with ${nic_name}.\
4012eab1e5SJan Gelety| ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop\
415e6145a4SVratko Polak| ... | Rate) with zero packet loss tolerance and throughput PDR (Partial Drop\
4212eab1e5SJan Gelety| ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage\
4312eab1e5SJan Gelety| ... | of packets transmitted. NDR and PDR are discovered for different\
4412eab1e5SJan Gelety| ... | Ethernet L2 frame sizes using MLRsearch library.\
4512eab1e5SJan Gelety| ... | Test packets are generated by TG on links to DUTs. TG traffic profile\
4612eab1e5SJan Gelety| ... | contains two L3 flow-groups (flow-group per direction, up to 64,5k\
4712eab1e5SJan Gelety| ... | flows per flow-group) with all packets containing Ethernet header, IEEE\
4812eab1e5SJan Gelety| ... | 802.1Q header, IPv4 header with IP protocol=61 and static payload.\
4912eab1e5SJan Gelety| ... | MAC addresses are matching MAC addresses of the TG node interfaces.
5012eab1e5SJan Gelety| ... | *[Ref] Applicable standard specifications:* RFC2544, RFC7348.
5112eab1e5SJan Gelety
5212eab1e5SJan Gelety*** Variables ***
531577123aSPeter Mikus| @{plugins_to_enable}= | dpdk_plugin.so
54ac89ba8aSPeter Mikus| ${crypto_type}= | ${None}
555e6145a4SVratko Polak| ${nic_name}= | Intel-X710
56fcc77752SPeter Mikus| ${nic_driver}= | vfio-pci
576daa2d79SPeter Mikus| ${nic_rxq_size}= | 0
586daa2d79SPeter Mikus| ${nic_txq_size}= | 0
5914a71b74SPeter Mikus| ${nic_pfs}= | 2
6014a71b74SPeter Mikus| ${nic_vfs}= | 0
61ac89ba8aSPeter Mikus| ${osi_layer}= | L2
6212eab1e5SJan Gelety| ${overhead}= | ${50}
6312eab1e5SJan Gelety# Traffic profile:
6412eab1e5SJan Gelety| ${traffic_profile}= | trex-sl-3n-dot1qip4-vlan1kip4src254ip4dst254
6512eab1e5SJan Gelety# Number of VXLAN tunnels
6612eab1e5SJan Gelety| ${vxlan_count}= | ${1000}
6712eab1e5SJan Gelety
6812eab1e5SJan Gelety*** Keywords ***
6912eab1e5SJan Gelety| Local Template
7012eab1e5SJan Gelety| | [Documentation]
7112eab1e5SJan Gelety| | ... | [Cfg] Each DUT runs L2BD forwarding config with VLAN and VXLAN and\
7212eab1e5SJan Gelety| | ... | uses ${phy_cores} physical core(s) for worker threads.
735e6145a4SVratko Polak| | ... | [Ver] Measure NDR and PDR values using MLRsearch algorithm.\
74d68951acSJan Gelety| |
7512eab1e5SJan Gelety| | ... | *Arguments:*
765e6145a4SVratko Polak| | ... | - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1).
7712eab1e5SJan Gelety| | ... | Type: integer, string
7812eab1e5SJan Gelety| | ... | - phy_cores - Number of physical cores. Type: integer
7912eab1e5SJan Gelety| | ... | - rxq - Number of RX queues, default value: ${None}. Type: integer
80d68951acSJan Gelety| |
815e6145a4SVratko Polak| | [Arguments] | ${frame_size} | ${phy_cores} | ${rxq}=${None}
82d68951acSJan Gelety| |
835e6145a4SVratko Polak| | Set Test Variable | \${frame_size}
84d68951acSJan Gelety| |
85ac89ba8aSPeter Mikus| | Given Set Max Rate And Jumbo
86ac89ba8aSPeter Mikus| | And Add worker threads to all DUTs | ${phy_cores} | ${rxq}
87ac89ba8aSPeter Mikus| | And Pre-initialize layer driver | ${nic_driver}
8812eab1e5SJan Gelety| | And Apply startup configuration on all VPP DUTs
89fcc77752SPeter Mikus| | When Initialize layer driver | ${nic_driver}
90ac89ba8aSPeter Mikus| | And Initialize layer interface
91fcc77752SPeter Mikus| | And Initialize L2 bridge domain with VLAN and VXLANoIPv4 in 3-node circular topology
9212eab1e5SJan Gelety| | ... | vxlan_count=${vxlan_count}
9312eab1e5SJan Gelety| | Then Find NDR and PDR intervals using optimized search
9412eab1e5SJan Gelety
9512eab1e5SJan Gelety*** Test Cases ***
9612eab1e5SJan Gelety| tc01-64B-1c-dot1q--ethip4vxlan-l2bdscale1kl2bd1kvlan1kvxlan-ndrpdr
9712eab1e5SJan Gelety| | [Tags] | 64B | 1C
985e6145a4SVratko Polak| | frame_size=${64} | phy_cores=${1}
9912eab1e5SJan Gelety
10012eab1e5SJan Gelety| tc02-64B-2c-dot1q--ethip4vxlan-l2bdscale1kl2bd1kvlan1kvxlan-ndrpdr
10112eab1e5SJan Gelety| | [Tags] | 64B | 2C
1025e6145a4SVratko Polak| | frame_size=${64} | phy_cores=${2}
10312eab1e5SJan Gelety
10412eab1e5SJan Gelety| tc03-64B-4c-dot1q--ethip4vxlan-l2bdscale1kl2bd1kvlan1kvxlan-ndrpdr
10512eab1e5SJan Gelety| | [Tags] | 64B | 4C
1065e6145a4SVratko Polak| | frame_size=${64} | phy_cores=${4}
10712eab1e5SJan Gelety
10812eab1e5SJan Gelety| tc04-1518B-1c-dot1q--ethip4vxlan-l2bdscale1kl2bd1kvlan1kvxlan-ndrpdr
10912eab1e5SJan Gelety| | [Tags] | 1518B | 1C
1105e6145a4SVratko Polak| | frame_size=${1518} | phy_cores=${1}
11112eab1e5SJan Gelety
11212eab1e5SJan Gelety| tc05-1518B-2c-dot1q--ethip4vxlan-l2bdscale1kl2bd1kvlan1kvxlan-ndrpdr
11312eab1e5SJan Gelety| | [Tags] | 1518B | 2C
1145e6145a4SVratko Polak| | frame_size=${1518} | phy_cores=${2}
11512eab1e5SJan Gelety
11612eab1e5SJan Gelety| tc06-1518B-4c-dot1q--ethip4vxlan-l2bdscale1kl2bd1kvlan1kvxlan-ndrpdr
11712eab1e5SJan Gelety| | [Tags] | 1518B | 4C
1185e6145a4SVratko Polak| | frame_size=${1518} | phy_cores=${4}
11912eab1e5SJan Gelety
12012eab1e5SJan Gelety| tc07-9000B-1c-dot1q--ethip4vxlan-l2bdscale1kl2bd1kvlan1kvxlan-ndrpdr
12112eab1e5SJan Gelety| | [Tags] | 9000B | 1C
1225e6145a4SVratko Polak| | frame_size=${9000} | phy_cores=${1}
12312eab1e5SJan Gelety
12412eab1e5SJan Gelety| tc08-9000B-2c-dot1q--ethip4vxlan-l2bdscale1kl2bd1kvlan1kvxlan-ndrpdr
12512eab1e5SJan Gelety| | [Tags] | 9000B | 2C
1265e6145a4SVratko Polak| | frame_size=${9000} | phy_cores=${2}
12712eab1e5SJan Gelety
12812eab1e5SJan Gelety| tc09-9000B-4c-dot1q--ethip4vxlan-l2bdscale1kl2bd1kvlan1kvxlan-ndrpdr
12912eab1e5SJan Gelety| | [Tags] | 9000B | 4C
1305e6145a4SVratko Polak| | frame_size=${9000} | phy_cores=${4}
13112eab1e5SJan Gelety
13212eab1e5SJan Gelety| tc10-IMIX-1c-dot1q--ethip4vxlan-l2bdscale1kl2bd1kvlan1kvxlan-ndrpdr
13312eab1e5SJan Gelety| | [Tags] | IMIX | 1C
1345e6145a4SVratko Polak| | frame_size=IMIX_v4_1 | phy_cores=${1}
13512eab1e5SJan Gelety
13612eab1e5SJan Gelety| tc11-IMIX-2c-dot1q--ethip4vxlan-l2bdscale1kl2bd1kvlan1kvxlan-ndrpdr
13712eab1e5SJan Gelety| | [Tags] | IMIX | 2C
1385e6145a4SVratko Polak| | frame_size=IMIX_v4_1 | phy_cores=${2}
13912eab1e5SJan Gelety
14012eab1e5SJan Gelety| tc12-IMIX-4c-dot1q--ethip4vxlan-l2bdscale1kl2bd1kvlan1kvxlan-ndrpdr
14112eab1e5SJan Gelety| | [Tags] | IMIX | 4C
1425e6145a4SVratko Polak| | frame_size=IMIX_v4_1 | phy_cores=${4}
143