Anuket Project

ovs_stats_dpdk plugin tests:

Test Environment details:

  • Bare Metal,  Ubuntu 16.04.1 LTS
  • Kernel version: 4.4.0-43-generic

Repo/branch used:

  • collectd

Tests precondition:

OVS built with DPDK.

DPDK version used for manual testing - 16.07.

OVS version used for manual testing - 2.6.1.

NIC used for testing - X710 for 10GbE SFP+ (rev 01) (i40e/igb_uio)

OpenvSwitch configuration:

  • Start ovs: service openvswitch-switch start
  • Add new bridge: ovs-vsctl add-br br0
  • Allow connection to ovsdb-server: ovs-vsctl set-manager ptcp:6640

Ovs_stat configuration:

  • Open collectd config file: vim /install_folder/etc/collectd.conf
  • Uncomment  LoadPlugin "ovs_stat" fields.
  • Set up IP address, port, bridges (Address/port or OVS DB Socket):
    • <Plugin ovs_stats> 
        Port "6640"
        Address "127.0.0.1"
        Socket "/var/run/openvswitch/db.sock"
        Bridges "br0"
              </Plugin>
     

OVS statistic with DPDK collectd plugin tests.

#

Test summary

Steps
Actual result
Expected result
Status - PASS/FAIL
Comments
1Verify tx-/rx_1_to_64_packets and tx/rx_bytes counters same value as sent from Ixia.
  1. Configure parameters: set ports admin up, bind. Configure OVS properly.
  2. Start collectd. Configure Ixia to send packets with size 64 bytes. Send number of packets.
  3. Verify number of sent packets and bytes from Ixia are the same as received on OVS port#1.
    Verify number of sent packets and bytes from Ixia are the same as transmitted from OVS port#2.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. OVS statistic tx-/rx_1_to_64_packets is same as in OVS with DPDK collectd plugin.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. OVS statistic tx-/rx_1_to_64_packets is same as in OVS with DPDK collectd plugin.
PASS 
2Verify tx-/rx_65_to_127_packets and tx/rx_bytes counters same value as sent from Ixia.
  1. Configure parameters: set ports admin up, bind. Configure OVS properly.
  2. Start collectd. Configure Ixia to send packets with size 65 bytes. Send number of packets.
  3. Verify number of sent packets and bytes from Ixia are the same as received on OVS port#1.
    Verify number of sent packets and bytes from Ixia are the same as transmitted from OVS port#2.
 
  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. OVS statistic tx-/rx_65_to_127_packets, tx/rx_bytes is same as in OVS with DPDK collectd plugin.
 
  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. OVS statistic tx-/rx_65_to_127_packets, tx/rx_bytes is same as in OVS with DPDK collectd plugin.
PASS 
3Verify tx-/rx_128_to_255_packets and tx/rx_bytes counters same value as sent from Ixia.
  1. Configure parameters: set ports admin up, bind. Configure OVS properly.
  2. Start collectd. Configure Ixia to send packets with size 128 bytes. Send number of packets.
  3. Verify number of sent packets and bytes from Ixia are the same as received on OVS port#1.
    Verify number of sent packets and bytes from Ixia are the same as transmitted from OVS port#2.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. OVS statistic tx-/rx_128_to_255_packets, tx/rx_bytes is same as in OVS with DPDK collectd plugin.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. OVS statistic tx-/rx_128_to_255_packets, tx/rx_bytes is same as in OVS with DPDK collectd plugin.
PASS 
4Verify tx-/rx_256_to_511_packets and tx/rx_bytes counters same value as sent from Ixia.
  1. Configure parameters: set ports admin up, bind. Configure OVS properly.
  2. Start collectd. Configure Ixia to send packets with size 256 bytes. Send number of packets.
  3. Verify number of sent packets and bytes from Ixia are the same as received on OVS port#1.
    Verify number of sent packets and bytes from Ixia are the same as transmitted from OVS port#2.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. OVS statistic tx-/rx_256_to_511_packets, tx/rx_bytes is same as in OVS with DPDK collectd plugin.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. OVS statistic tx-/rx_256_to_511_packets, tx/rx_bytes is same as in OVS with DPDK collectd plugin.

PASS

HAA-1402

 

 

5Verify tx-/rx_512_to_1023_packets and tx/rx_bytes counters same value as sent from Ixia.
  1. Configure parameters: set ports admin up, bind. Configure OVS properly.
  2. Start collectd. Configure Ixia to send packets with size 512 bytes. Send number of packets.
  3. Verify number of sent packets and bytes from Ixia are the same as received on OVS port#1.
    Verify number of sent packets and bytes from Ixia are the same as transmitted from OVS port#2.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. OVS statistic tx-/rx_512_to_1023_packets, tx/rx_bytes is same as in OVS with DPDK collectd plugin.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. OVS statistic tx-/rx_512_to_1023_packets, tx/rx_bytes is same as in OVS with DPDK collectd plugin.
PASS 
6Verify tx-/rx_1024_to_1518_packets and tx/rx_bytes counters same value as sent from Ixia.
  1. Configure parameters: set ports admin up, bind. Configure OVS properly.
  2. Start collectd. Configure Ixia to send packets with size 1024 bytes. Send number of packets.
  3. Verify number of sent packets and bytes from Ixia are the same as received on OVS port#1.
    Verify number of sent packets and bytes from Ixia are the same as transmitted from OVS port#2.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. OVS statistic tx-/rx_1024_to_1518_packets, tx/rx_bytes is same as in OVS with DPDK collectd plugin.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. OVS statistic tx-/rx_1024_to_1518_packets, tx/rx_bytes is same as in OVS with DPDK collectd plugin.
PASS 
7Verify tx-/rx_1523_to_max_packets and tx/rx_bytes counters same value as sent from Ixia.
  1. Configure parameters: set ports admin up, bind. Configure OVS properly (mtu > 1523).
  2. Start collectd. Configure Ixia to send packets with size 1523 bytes. Send number of packets.
  3. Verify number of sent packets and bytes from Ixia are the same as received on OVS port#1.
    Verify number of sent packets and bytes from Ixia are the same as transmitted from OVS port#2.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. OVS statistic tx-/rx_1523_to_max_packets, tx/rx_bytes is same as in OVS with DPDK collectd plugin.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. OVS statistic tx-/rx_1523_to_max_packets, tx/rx_bytes is same as in OVS with DPDK collectd plugin.
PASS 
8Verify tx-/rx_packets and tx/rx_bytes counters same value as sent from Ixia.
  1. Configure parameters: set ports admin up, bind. Configure OVS properly.
  2. Start collectd. Configure Ixia to send packets with size 100 bytes. Send number of packets.
  3. Verify number of sent packets and bytes from Ixia are the same as received on OVS port#1.
    Verify number of sent packets and bytes from Ixia are the same as transmitted from OVS port#2.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. OVS statistic tx-/rx_packets, tx/rx_bytes is same as in OVS with DPDK collectd plugin.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. OVS statistic tx-/rx_packets, tx/rx_bytes is same as in OVS with DPDK collectd plugin.
PASS 
9Verify rx_errors counters are same in OVS stats and collectd CSV plugin.
  1. Configure parameters: set ports admin up, bind. Configure OVS properly.
  2. Start collectd. Configure Ixia to send packets with size 64 bytes. Send number of packets.
  3. Verify rx_errors Ixia sent packets same as in OVS statistic.
    Verify rx_errors are same in OVS statistic and collectd CSV plugin.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. rx_errors counters sent from Ixia are same as in OVS statistic.
    rx_errors are same in OVS statistic and collectd CSV plugin.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. rx_errors counters sent from Ixia are same as in OVS statistic.
    rx_errors are same in OVS statistic and collectd CSV plugin.
PASS 
10Verify rx_undersized_errors counters are same in OVS stats and collectd CSV plugin.
  1. Configure parameters: set ports admin up, bind. Configure OVS properly.
  2. Start collectd. Configure Ixia to send packets with size 63 bytes. Send number of packets.
  3. Verify rx_undersized_errors Ixia sent packets same as in OVS statistic.
    Verify rx_undersized_errors are same in OVS statistic and collectd CSV plugin.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. rx_undersized_errors counters sent from Ixia are same as in OVS statistic.
    rx_undersized_errors are same in OVS statistic and collectd CSV plugin.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. rx_undersized_errors counters sent from Ixia are same as in OVS statistic.
    rx_undersized_errors are same in OVS statistic and collectd CSV plugin.
PASS 
11Verify rx_dropped counters are same in OVS stats and collectd CSV plugin.
  1. Configure parameters: set ports admin up, bind. Configure OVS properly.
  2. Start collectd. Configure Ixia to send packets with size 1000 bytes. Send max utilization traffic.
  3. Verify rx_dropped are same in OVS statistic and collectd CSV plugin.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. rx_dropped are same in OVS statistic and collectd CSV plugin.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. rx_dropped are same in OVS statistic and collectd CSV plugin.
PASS 
12Verify tx_multicast_packets counters are same in OVS stats and collectd CSV plugin.
  1. Configure parameters: set ports admin up, bind. Configure OVS properly.
  2. Start collectd. Configure Ixia to send packets with size 64 bytes. Send number of packets.
  3. Verify tx_multicast_packets Ixia sent packets same as in OVS statistic.
    Verify tx_multicast_packets are same in OVS statistic and collectd CSV plugin.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. tx_multicast_packets counters sent from Ixia are same as in OVS statistic.
    tx_multicast_packets are same in OVS statistic and collectd CSV plugin.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. tx_multicast_packets counters sent from Ixia are same as in OVS statistic.
    tx_multicast_packets are same in OVS statistic and collectd CSV plugin.
PASS 
13Verify rx_broadcast_packets counters are same in OVS stats and collectd CSV plugin.
  1. Configure parameters: set ports admin up, bind. Configure OVS properly.
  2. Start collectd. Configure Ixia to send packets with size 64 bytes. Send number of packets.
  3. Verify rx_broadcast_packets Ixia sent packets same as in OVS statistic.
    Verify rx_broadcast_packets are same in OVS statistic and collectd CSV plugin.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. rx_broadcast_packets counters sent from Ixia are same as in OVS statistic.
    rx_broadcast_packets are same in OVS statistic and collectd CSV plugin.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. rx_broadcast_packets counters sent from Ixia are same as in OVS statistic.
    rx_broadcast_packets are same in OVS statistic and collectd CSV plugin.
PASS 
14Verify tx_broadcast_packets counters are same in OVS stats and collectd CSV plugin.
  1. Configure parameters: set ports admin up, bind. Configure OVS properly.
  2. Start collectd. Configure Ixia to send packets with size 64 bytes. Send number of packets.
  3. Verify tx_broadcast_packets Ixia sent packets same as in OVS statistic.
    Verify tx_broadcast_packets are same in OVS statistic and collectd CSV plugin.
  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. tx_broadcast_packets counters sent from Ixia are same as in OVS statistic.
    tx_broadcast_packets are same in OVS statistic and collectd CSV plugin.
  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. tx_broadcast_packets counters sent from Ixia are same as in OVS statistic.
    tx_broadcast_packets are same in OVS statistic and collectd CSV plugin.
PASS 
15Verify rx_fragmented_errors counters are same in OVS stats and collectd CSV plugin.
  1. Configure parameters: set ports admin up, bind. Configure OVS properly.
  2. Start collectd. Configure Ixia to send packets with size 63 bytes and bad CRC. Send number of packets.
  3. Verify rx_fragmented_errors Ixia sent packets same as in OVS statistic.
    Verify rx_fragmented_errors are same in OVS statistic and collectd CSV plugin.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. rx_fragmented_errors counters sent from Ixia are same as in OVS statistic.
    rx_fragmented_errors are same in OVS statistic and collectd CSV plugin.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. rx_fragmented_errors counters sent from Ixia are same as in OVS statistic.
    rx_fragmented_errors are same in OVS statistic and collectd CSV plugin.
PASS 
16Verify rx_jabber_errors counters are same in OVS stats and collectd CSV plugin.
  1. Configure parameters: set ports admin up, bind. Configure OVS properly.
  2. Start collectd. Configure Ixia to send packets with size 10000 bytes and bad CRC. Send number of packets.
  3. Verify rx_jabber_errors counters Ixia sent packets same as in OVS statistic.
    Verify rx_jabber_errors counters are same in OVS statistic and collectd CSV plugin.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. rx_jabber_errors counters counters sent from Ixia are same as in OVS statistic.
    rx_jabber_errors counters are same in OVS statistic and collectd CSV plugin.

 

  1. Ports admin are up, bound. OVS configured properly.
  2. Collectd started.
  3. rx_jabber_errors counters counters sent from Ixia are same as in OVS statistic.
    rx_jabber_errors counters are same in OVS statistic and collectd CSV plugin.

PASS

 
  • No labels