X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Fperformance.robot;h=c33905bc9abcc81679fc1f1cca98fee01a46e414;hp=365d44de1ee68fdc7d0202bec28fea48e5bf2927;hb=e9ce3e7fe123c7ed6847e7d615b0e963429b0298;hpb=b1a54dd8bbf32a025b998ef9d87a4c2d908c28dc diff --git a/resources/libraries/robot/performance.robot b/resources/libraries/robot/performance.robot index 365d44de1e..c33905bc9a 100644 --- a/resources/libraries/robot/performance.robot +++ b/resources/libraries/robot/performance.robot @@ -44,18 +44,24 @@ | | ... | for 10GE with 72B L2 Frame. | | ... | - 10Ge_linerate_pps_78B - Maximum number of packet per second | | ... | for 10GE with 78B L2 Frame. +| | ... | - 10Ge_linerate_pps_114B - Maximum number of packet per second +| | ... | for 10GE with 114B L2 Frame. | | ... | - 10Ge_linerate_pps_1518B - Maximum number of packet per second | | ... | for 10GE with 1518B L2 Frame. | | ... | - 10Ge_linerate_pps_1522B - Maximum number of packet per second | | ... | for 10GE with 1522B L2 Frame. | | ... | - 10Ge_linerate_pps_1526B - Maximum number of packet per second | | ... | for 10GE with 1526B L2 Frame. +| | ... | - 10Ge_linerate_pps_1568B - Maximum number of packet per second +| | ... | for 10GE with 1568B L2 Frame. | | ... | - 10Ge_linerate_pps_9000B - Maximum number of packet per second | | ... | for 10GE with 9000B L2 Frame. | | ... | - 10Ge_linerate_pps_9004B - Maximum number of packet per second | | ... | for 10GE with 9004B L2 Frame. | | ... | - 10Ge_linerate_pps_9008B - Maximum number of packet per second | | ... | for 10GE with 9008B L2 Frame. +| | ... | - 10Ge_linerate_pps_9050B - Maximum number of packet per second +| | ... | for 10GE with 9050B L2 Frame. | | ... | - 10Ge_linerate_pps_IMIX_v4_1 - Maximum number of packet per second | | ... | for 10GE with IMIX_v4_1 profile. | | ... | - 10Ge_lisp_linerate_pps_72B - Maximum number of packets per second @@ -94,18 +100,24 @@ | | ... | for 40GE with 72B L2 Frame. | | ... | - 40Ge_linerate_pps_78B - Maximum number of packet per second | | ... | for 40GE with 78B L2 Frame. +| | ... | - 40Ge_linerate_pps_114B - Maximum number of packet per second +| | ... | for 40GE with 114B L2 Frame. | | ... | - 40Ge_linerate_pps_1518B - Maximum number of packet per second | | ... | for 40GE with 1518B L2 Frame. | | ... | - 40Ge_linerate_pps_1522B - Maximum number of packet per second | | ... | for 40GE with 1522B L2 Frame. | | ... | - 40Ge_linerate_pps_1526B - Maximum number of packet per second | | ... | for 40GE with 1526B L2 Frame. +| | ... | - 40Ge_linerate_pps_1568B - Maximum number of packet per second +| | ... | for 40GE with 1568B L2 Frame. | | ... | - 40Ge_linerate_pps_9000B - Maximum number of packet per second | | ... | for 40GE with 9000B L2 Frame. | | ... | - 40Ge_linerate_pps_9004B - Maximum number of packet per second | | ... | for 40GE with 9004B L2 Frame. | | ... | - 40Ge_linerate_pps_9008B - Maximum number of packet per second | | ... | for 40GE with 9008B L2 Frame. +| | ... | - 40Ge_linerate_pps_9050B - Maximum number of packet per second +| | ... | for 40GE with 9050B L2 Frame. | | ... | - 40Ge_linerate_pps_IMIX_v4_1 - Maximum number of packet per second | | ... | for 40GE with IMIX_v4_1 profile. | | ... | - 40Ge_lisp_linerate_pps_72B - Maximum number of packets per second @@ -141,11 +153,14 @@ | | Set Suite Variable | ${10Ge_linerate_pps_68B} | 14204545 | | Set Suite Variable | ${10Ge_linerate_pps_72B} | 13586956 | | Set Suite Variable | ${10Ge_linerate_pps_78B} | 12755102 +| | Set Suite Variable | ${10Ge_linerate_pps_114B} | 9328358 | | Set Suite Variable | ${10Ge_linerate_pps_1518B} | 812743 | | Set Suite Variable | ${10Ge_linerate_pps_1522B} | 810635 +| | Set Suite Variable | ${10Ge_linerate_pps_1568B} | 787153 | | Set Suite Variable | ${10Ge_linerate_pps_9000B} | 138580 | | Set Suite Variable | ${10Ge_linerate_pps_9004B} | 138519 | | Set Suite Variable | ${10Ge_linerate_pps_9008B} | 138458 +| | Set Suite Variable | ${10Ge_linerate_pps_9050B} | 137816 | | Set Suite Variable | ${10Ge_linerate_pps_IMIX_v4_1} | 3343736 | | Set Suite Variable | ${10Ge_lisp_linerate_pps_72B} | 13586956 | | Set Suite Variable | ${10Ge_lisp_linerate_pps_86B} | 11792452 @@ -159,11 +174,14 @@ | | Set Suite Variable | ${40Ge_linerate_pps_68B} | 56818181 | | Set Suite Variable | ${40Ge_linerate_pps_72B} | 54347826 | | Set Suite Variable | ${40Ge_linerate_pps_78B} | 51020408 +| | Set Suite Variable | ${40Ge_linerate_pps_114B} | 37313432 | | Set Suite Variable | ${40Ge_linerate_pps_1518B} | 3250975 | | Set Suite Variable | ${40Ge_linerate_pps_1522B} | 3242542 +| | Set Suite Variable | ${40Ge_linerate_pps_1568B} | 3148614 | | Set Suite Variable | ${40Ge_linerate_pps_9000B} | 554323 | | Set Suite Variable | ${40Ge_linerate_pps_9004B} | 554078 | | Set Suite Variable | ${40Ge_linerate_pps_9008B} | 553832 +| | Set Suite Variable | ${40Ge_linerate_pps_9050B} | 551267 | | Set Suite Variable | ${40Ge_linerate_pps_IMIX_v4_1} | 13374944 | | Set Suite Variable | ${40Ge_lisp_linerate_pps_72B} | 54347826 | | Set Suite Variable | ${40Ge_lisp_linerate_pps_86B} | 47169811 @@ -190,6 +208,7 @@ | | ... | | ... | \| Calculate pps \| 10000000000 | 64 | | [Arguments] | ${bps} | ${framesize} +| | ${framesize}= | Get Frame Size | ${framesize} | | ${ret}= | Evaluate | (${bps}/((${framesize}+20)*8)).__trunc__() | | Return From Keyword | ${ret} @@ -587,6 +606,36 @@ | | Vpp Route Add | ${dut2} | 10.10.10.0 | 24 | 5.5.5.2 | ${dut2_vif2} | | ... | vrf=${fib_table_2} +| IPv4 policer 2r3c-${t} initialized in a 3-node circular topology +| | [Documentation] +| | ... | Setup of 2r3c color-aware or color-blind policer with dst ip match +| | ... | on all DUT nodes in 3-node circular topology. Policer is applied on +| | ... | links TG - DUT1 and DUT2 - TG. +| | ... +| | ${dscp}= | DSCP AF22 +| | Policer Set Name | policer1 +| | Policer Set CIR | ${cir} +| | Policer Set EIR | ${eir} +| | Policer Set CB | ${cb} +| | Policer Set EB | ${eb} +| | Policer Set Rate Type pps +| | Policer Set Round Type Closest +| | Policer Set Type 2R3C 2698 +| | Policer Set Conform Action Transmit +| | Policer Set Exceed Action Mark and Transmit | ${dscp} +| | Policer Set Violate Action Transmit +| | Policer Enable Color Aware +| | Run Keyword If | ${t} == 'ca' | Policer Enable Color Aware +| | Policer Classify Set Precolor Exceed +| | Policer Set Node | ${dut1} +| | Policer Classify Set Interface | ${dut1_if1} +| | Policer Classify Set Match IP | 20.20.20.2 | ${False} +| | Policer Set Configuration +| | Policer Set Node | ${dut2} +| | Policer Classify Set Interface | ${dut2_if2} +| | Policer Classify Set Match IP | 10.10.10.2 | ${False} +| | Policer Set Configuration + | IPv6 forwarding initialized in a 3-node circular topology | | [Documentation] | | ... | Set UP state on VPP interfaces in path on nodes in 3-node circular @@ -681,6 +730,56 @@ | | L2 setup xconnect on DUT | ${dut2} | ${dut2_if1} | ${dut2_if2} | | All Vpp Interfaces Ready Wait | ${nodes} +| L2 xconnect with VXLANoIPv4 initialized in a 3-node circular topology +| | [Documentation] +| | ... | Setup L2 xconnect topology with VXLANoIPv4 by cross connecting +| | ... | physical and vxlan interfaces on each DUT. All interfaces are brought +| | ... | up. IPv4 addresses with prefix /24 are configured on interfaces +| | ... | between DUTs. VXLAN sub-interfaces has same IPv4 address as +| | ... | interfaces. +| | ... +| | VPP interfaces in path are up in a 3-node circular topology +| | IP addresses are set on interfaces | ${dut1} | ${dut1_if2} | 172.16.0.1 +| | ... | 24 +| | IP addresses are set on interfaces | ${dut2} | ${dut2_if1} | 172.16.0.2 +| | ... | 24 +| | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2} +| | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1} +| | Add arp on dut | ${dut1} | ${dut1_if2} | 172.16.0.2 | ${dut2_if1_mac} +| | Add arp on dut | ${dut2} | ${dut2_if1} | 172.16.0.1 | ${dut1_if2_mac} +| | ${dut1s_vxlan}= | Create VXLAN interface | ${dut1} | 24 +| | ... | 172.16.0.1 | 172.16.0.2 +| | L2 setup xconnect on DUT | ${dut1} | ${dut1_if1} | ${dut1s_vxlan} +| | ${dut2s_vxlan}= | Create VXLAN interface | ${dut2} | 24 +| | ... | 172.16.0.2 | 172.16.0.1 +| | L2 setup xconnect on DUT | ${dut2} | ${dut2_if2} | ${dut2s_vxlan} + +| L2 xconnect with Vhost-User initialized in a 3-node circular topology +| | [Documentation] +| | ... | Create two Vhost-User interfaces on all defined VPP nodes. Cross +| | ... | connect each Vhost interface with one physical interface. +| | ... +| | ... | *Arguments:* +| | ... | - sock1 - Socket path for first Vhost-User interface. Type: string +| | ... | - sock2 - Socket path for second Vhost-User interface. Type: string +| | ... +| | ... | *Example:* +| | ... +| | ... | \| L2 xconnect with Vhost-User initialized in a 3-node \ +| | ... | circular topology \| /tmp/sock1 \| /tmp/sock2 \| +| | [Arguments] | ${sock1} | ${sock2} +| | VPP Vhost interfaces for L2BD forwarding are setup | ${dut1} +| | ... | ${sock1} +| | ... | ${sock2} +| | L2 setup xconnect on DUT | ${dut1} | ${dut1_if1} | ${vhost_if1} +| | L2 setup xconnect on DUT | ${dut1} | ${dut1_if2} | ${vhost_if2} +| | VPP Vhost interfaces for L2BD forwarding are setup | ${dut2} +| | ... | ${sock1} +| | ... | ${sock2} +| | L2 setup xconnect on DUT | ${dut2} | ${dut2_if1} | ${vhost_if1} +| | L2 setup xconnect on DUT | ${dut2} | ${dut2_if2} | ${vhost_if2} +| | All Vpp Interfaces Ready Wait | ${nodes} + | L2 bridge domain initialized in a 3-node circular topology | | [Documentation] | | ... | Setup L2 DB topology by adding two interfaces on each DUT into BD @@ -1178,9 +1277,9 @@ | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting | | ... | DPDK testpmd. Qemu Guest is using 3 cores pinned to physical cores 5, | | ... | 6, 7 and 2048M. Testpmd is using 3 cores (1 main core and 2 cores -| | ... | dedicated to io) socket-mem=1024, mem-channel=4, txq/rxq=2048, -| | ... | burst=64, disable-hw-vlan, total-num-mbufs, driver -| | ... | usr/lib/librte_pmd_virtio.so. +| | ... | dedicated to io) mem-channel=4, txq/rxq=256, burst=64, +| | ... | disable-hw-vlan, disable-rss, driver usr/lib/librte_pmd_virtio.so +| | ... | and fwd mode is io. | | ... | | ... | *Arguments:* | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary @@ -1206,9 +1305,9 @@ | | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7 | | Dpdk Testpmd Start | ${vm} | eal_coremask=0x7 | | ... | eal_mem_channels=4 -| | ... | eal_socket_mem=1024 | | ... | pmd_fwd_mode=io | | ... | pmd_disable_hw_vlan=${True} +| | ... | pmd_disable_rss=${True} | | Return From Keyword | ${vm} | Guest VM with dpdk-testpmd-mac connected via vhost-user is setup @@ -1216,9 +1315,9 @@ | | ... | Start QEMU guest with two vhost-user interfaces and interconnecting | | ... | DPDK testpmd. Qemu Guest is using 3 cores pinned to physical cores 5, | | ... | 6, 7 and 2048M. Testpmd is using 3 cores (1 main core and 2 cores -| | ... | dedicated to io) socket-mem=1024, mem-channel=4, txq/rxq=2048, -| | ... | burst=64, disable-hw-vlan, total-num-mbufs=65K, driver -| | ... | usr/lib/librte_pmd_virtio.so and fwd mode is mac rewrite. +| | ... | dedicated to io) mem-channel=4, txq/rxq=256, burst=64, +| | ... | disable-hw-vlan, disable-rss, driver usr/lib/librte_pmd_virtio.so +| | ... | and fwd mode is mac rewrite. | | ... | | ... | *Arguments:* | | ... | - dut_node - DUT node to start guest VM on. Type: dictionary @@ -1249,11 +1348,11 @@ | | Run keyword | ${vm_name}.Qemu Set Affinity | 5 | 6 | 7 | | Dpdk Testpmd Start | ${vm} | eal_coremask=0x7 | | ... | eal_mem_channels=4 -| | ... | eal_socket_mem=1024 | | ... | pmd_fwd_mode=mac | | ... | pmd_eth_peer_0=0,${eth0_mac} | | ... | pmd_eth_peer_1=1,${eth1_mac} | | ... | pmd_disable_hw_vlan=${True} +| | ... | pmd_disable_rss=${True} | | Return From Keyword | ${vm} | Guest VM with Linux Bridge connected via vhost-user is setup