150ca8535SJan Gelety# Copyright (c) 2020 Cisco and/or its affiliates.
25b444791SVratko Polak# Licensed under the Apache License, Version 2.0 (the "License");
35b444791SVratko Polak# you may not use this file except in compliance with the License.
45b444791SVratko Polak# You may obtain a copy of the License at:
55b444791SVratko Polak#
65b444791SVratko Polak#     http://www.apache.org/licenses/LICENSE-2.0
75b444791SVratko Polak#
85b444791SVratko Polak# Unless required by applicable law or agreed to in writing, software
95b444791SVratko Polak# distributed under the License is distributed on an "AS IS" BASIS,
105b444791SVratko Polak# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
115b444791SVratko Polak# See the License for the specific language governing permissions and
125b444791SVratko Polak# limitations under the License.
135b444791SVratko Polak
145b444791SVratko Polak*** Settings ***
151577123aSPeter Mikus| Resource | resources/libraries/robot/shared/default.robot
1699b2e6a8SJan Gelety| Resource | resources/libraries/robot/overlay/lisp.robot
1799b2e6a8SJan Gelety|
185b444791SVratko Polak| Variables | resources/test_data/lisp/performance/lisp_static_adjacency.py
19d68951acSJan Gelety|
205b444791SVratko Polak| Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDR
215e6145a4SVratko Polak| ... | NIC_Intel-X710 | IP4FWD | ENCAP | LISP | IP6UNRLAY | IP4OVRLAY
22ac89ba8aSPeter Mikus| ... | DRV_VFIO_PCI
236daa2d79SPeter Mikus| ... | RXQ_SIZE_0 | TXQ_SIZE_0
24e916ab4dSVratko Polak| ... | ethip4lispip6-ip4base
25d68951acSJan Gelety|
2614a71b74SPeter Mikus| Suite Setup | Setup suite topology interfaces | performance
276871d4e7SPeter Mikus| Suite Teardown | Tear down suite | performance
2850ca8535SJan Gelety| Test Setup | Setup test | performance | performance
296871d4e7SPeter Mikus| Test Teardown | Tear down test | performance
30d68951acSJan Gelety|
315b444791SVratko Polak| Test Template | Local Template
32d68951acSJan Gelety|
335b444791SVratko Polak| Documentation | *RFC2544: Pkt throughput Lisp test cases*
34d68951acSJan Gelety|
355b444791SVratko Polak| ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
365b444791SVratko Polak| ... | with single links between nodes.
375b444791SVratko Polak| ... | *[Enc] Packet Encapsulations:* Eth-IPv4-LISP-IPv6 on DUT1-DUT2,\
385b444791SVratko Polak| ... | Eth-IPv4 on TG-DUTn for IPv4 routing over LISPoIPv6 tunnel.
395b444791SVratko Polak| ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4\
405b444791SVratko Polak| ... | routing and static routes. LISPoIPv6 tunnel is configured between DUT1\
415e6145a4SVratko Polak| ... | and DUT2. DUT1 and DUT2 tested with ${nic_name}.\
425e6145a4SVratko Polak| ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop\
435e6145a4SVratko Polak| ... | Rate) with zero packet loss tolerance and throughput PDR (Partial Drop\
445e6145a4SVratko Polak| ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage\
455e6145a4SVratko Polak| ... | of packets transmitted. NDR and PDR are discovered for different\
465e6145a4SVratko Polak| ... | Ethernet L2 frame sizes using MLRsearch library.\
475b444791SVratko Polak| ... | Test packets are generated by TG on links to DUTs. TG traffic profile
485b444791SVratko Polak| ... | contains two L3 flow-groups (flow-group per direction, 253 flows per
495b444791SVratko Polak| ... | flow-group) with all packets containing Ethernet header, IPv4 header
505b444791SVratko Polak| ... | with IP protocol=61 and static payload. MAC addresses are matching MAC
515b444791SVratko Polak| ... | addresses of the TG node interfaces.
525b444791SVratko Polak| ... | *[Ref] Applicable standard specifications:* RFC6830.
535b444791SVratko Polak
545b444791SVratko Polak*** Variables ***
551577123aSPeter Mikus| @{plugins_to_enable}= | dpdk_plugin.so
56ac89ba8aSPeter Mikus| ${crypto_type}= | ${None}
575e6145a4SVratko Polak| ${nic_name}= | Intel-X710
58fcc77752SPeter Mikus| ${nic_driver}= | vfio-pci
596daa2d79SPeter Mikus| ${nic_rxq_size}= | 0
606daa2d79SPeter Mikus| ${nic_txq_size}= | 0
6114a71b74SPeter Mikus| ${nic_pfs}= | 2
6214a71b74SPeter Mikus| ${nic_vfs}= | 0
63ac89ba8aSPeter Mikus| ${osi_layer}= | L3
645b444791SVratko Polak| ${overhead}= | ${48}
655b444791SVratko Polak# Traffic profile:
665b444791SVratko Polak| ${traffic_profile}= | trex-sl-3n-ethip4-ip4src253
675b444791SVratko Polak
685b444791SVratko Polak*** Keywords ***
695b444791SVratko Polak| Local Template
705b444791SVratko Polak| | [Documentation]
715b444791SVratko Polak| | ... | [Cfg] DUT runs IPv6 LISP remote static mappings and whitelist filters\
725b444791SVratko Polak| | ... | config.
735b444791SVratko Polak| | ... | Each DUT uses ${phy_cores} physical core(s) for worker threads.
745b444791SVratko Polak| | ... | [Ver] Measure NDR and PDR values using MLRsearch algorithm.\
75d68951acSJan Gelety| |
765b444791SVratko Polak| | ... | *Arguments:*
775e6145a4SVratko Polak| | ... | - frame_size - Framesize in Bytes in integer or string (IMIX_v4_1).
785b444791SVratko Polak| | ... | Type: integer, string
795b444791SVratko Polak| | ... | - phy_cores - Number of physical cores. Type: integer
805b444791SVratko Polak| | ... | - rxq - Number of RX queues, default value: ${None}. Type: integer
81d68951acSJan Gelety| |
825e6145a4SVratko Polak| | [Arguments] | ${frame_size} | ${phy_cores} | ${rxq}=${None}
83d68951acSJan Gelety| |
845e6145a4SVratko Polak| | Set Test Variable | \${frame_size}
85d68951acSJan Gelety| |
86ac89ba8aSPeter Mikus| | Given Set Max Rate And Jumbo
87ac89ba8aSPeter Mikus| | And Add worker threads to all DUTs | ${phy_cores} | ${rxq}
88ac89ba8aSPeter Mikus| | And Pre-initialize layer driver | ${nic_driver}
895b444791SVratko Polak| | And Apply startup configuration on all VPP DUTs
90fcc77752SPeter Mikus| | When Initialize layer driver | ${nic_driver}
91ac89ba8aSPeter Mikus| | And Initialize layer interface
92fcc77752SPeter Mikus| | And Initialize LISP IPv4 over IPv6 forwarding in 3-node circular topology
935b444791SVratko Polak| | ... | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
945b444791SVratko Polak| | ... | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
955b444791SVratko Polak| | And Configure LISP topology in 3-node circular topology
9614a71b74SPeter Mikus| | ... | ${dut1} | ${DUT1_${int}2}[0] | ${NONE}
9714a71b74SPeter Mikus| | ... | ${dut2} | ${DUT2_${int}1}[0] | ${NONE}
985b444791SVratko Polak| | ... | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
995b444791SVratko Polak| | ... | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
1005b444791SVratko Polak| | Then Find NDR and PDR intervals using optimized search
1015b444791SVratko Polak
1025b444791SVratko Polak*** Test Cases ***
1035b444791SVratko Polak| tc01-64B-1c-ethip4lispip6-ip4base-ndrpdr
1045b444791SVratko Polak| | [Tags] | 64B | 1C
1055e6145a4SVratko Polak| | frame_size=${64} | phy_cores=${1}
1065b444791SVratko Polak
1075b444791SVratko Polak| tc02-64B-2c-ethip4lispip6-ip4base-ndrpdr
1085b444791SVratko Polak| | [Tags] | 64B | 2C
1095e6145a4SVratko Polak| | frame_size=${64} | phy_cores=${2}
1105b444791SVratko Polak
1115b444791SVratko Polak| tc03-64B-4c-ethip4lispip6-ip4base-ndrpdr
1125b444791SVratko Polak| | [Tags] | 64B | 4C
1135e6145a4SVratko Polak| | frame_size=${64} | phy_cores=${4}
1145b444791SVratko Polak
1155b444791SVratko Polak| tc04-1518B-1c-ethip4lispip6-ip4base-ndrpdr
1165b444791SVratko Polak| | [Tags] | 1518B | 1C
1175e6145a4SVratko Polak| | frame_size=${1518} | phy_cores=${1}
1185b444791SVratko Polak
1195b444791SVratko Polak| tc05-1518B-2c-ethip4lispip6-ip4base-ndrpdr
1205b444791SVratko Polak| | [Tags] | 1518B | 2C
1215e6145a4SVratko Polak| | frame_size=${1518} | phy_cores=${2}
1225b444791SVratko Polak
1235b444791SVratko Polak| tc06-1518B-4c-ethip4lispip6-ip4base-ndrpdr
1245b444791SVratko Polak| | [Tags] | 1518B | 4C
1255e6145a4SVratko Polak| | frame_size=${1518} | phy_cores=${4}
1265b444791SVratko Polak
1275b444791SVratko Polak| tc07-9000B-1c-ethip4lispip6-ip4base-ndrpdr
1285b444791SVratko Polak| | [Tags] | 9000B | 1C
1295e6145a4SVratko Polak| | frame_size=${9000} | phy_cores=${1}
1305b444791SVratko Polak
1315b444791SVratko Polak| tc08-9000B-2c-ethip4lispip6-ip4base-ndrpdr
1325b444791SVratko Polak| | [Tags] | 9000B | 2C
1335e6145a4SVratko Polak| | frame_size=${9000} | phy_cores=${2}
1345b444791SVratko Polak
1355b444791SVratko Polak| tc09-9000B-4c-ethip4lispip6-ip4base-ndrpdr
1365b444791SVratko Polak| | [Tags] | 9000B | 4C
1375e6145a4SVratko Polak| | frame_size=${9000} | phy_cores=${4}
1385b444791SVratko Polak
1395b444791SVratko Polak| tc10-IMIX-1c-ethip4lispip6-ip4base-ndrpdr
1405b444791SVratko Polak| | [Tags] | IMIX | 1C
1415e6145a4SVratko Polak| | frame_size=IMIX_v4_1 | phy_cores=${1}
1425b444791SVratko Polak
1435b444791SVratko Polak| tc11-IMIX-2c-ethip4lispip6-ip4base-ndrpdr
1445b444791SVratko Polak| | [Tags] | IMIX | 2C
1455e6145a4SVratko Polak| | frame_size=IMIX_v4_1 | phy_cores=${2}
1465b444791SVratko Polak
1475b444791SVratko Polak| tc12-IMIX-4c-ethip4lispip6-ip4base-ndrpdr
1485b444791SVratko Polak| | [Tags] | IMIX | 4C
1495e6145a4SVratko Polak| | frame_size=IMIX_v4_1 | phy_cores=${4}
150