[ovs-git] [openvswitch/ovs] 4ba9c6: ovs-vsctl: Support identifying Flow_Sample_Collect...

GitHub noreply at github.com
Mon Jun 13 21:47:29 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 4ba9c6bf4775d49732990f649e027733c832bb6a
      https://github.com/openvswitch/ovs/commit/4ba9c6bf4775d49732990f649e027733c832bb6a
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2016-06-13 (Mon, 13 Jun 2016)

  Changed paths:
    M lib/db-ctl-base.c
    M utilities/ovs-vsctl.c

  Log Message:
  -----------
  ovs-vsctl: Support identifying Flow_Sample_Collector_Set records by id.

This allows commands like
    ovs-vsctl list Flow_Sample_Collector_Set 123
if there's a record with id 123.  It's not perfect, since there can be
more than one record with the same id, but it's helpful.

Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Andy Zhou <azhou at ovn.org>


  Commit: 5752fe24fb93d43992565a6b7e2614d3a851d606
      https://github.com/openvswitch/ovs/commit/5752fe24fb93d43992565a6b7e2614d3a851d606
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2016-06-13 (Mon, 13 Jun 2016)

  Changed paths:
    M NEWS
    M include/openflow/nicira-ext.h
    M include/openvswitch/ofp-errors.h
    M include/openvswitch/ofp-msgs.h
    M include/openvswitch/ofp-util.h
    M lib/ofp-print.c
    M lib/ofp-util.c
    M lib/rconn.c
    M ofproto/collectors.c
    M ofproto/collectors.h
    M ofproto/ofproto-dpif-ipfix.c
    M ofproto/ofproto-dpif-ipfix.h
    M ofproto/ofproto-dpif.c
    M ofproto/ofproto-provider.h
    M ofproto/ofproto.c
    M tests/ofp-print.at
    M tests/ofproto-dpif.at
    M utilities/ovs-ofctl.8.in
    M utilities/ovs-ofctl.c

  Log Message:
  -----------
  ipfix: Add support for exporting ipfix statistics.

It is meaningful for user to check the stats of IPFIX.
Using IPFIX stats, user can know how much flows the system
can support. It is also can be used for performance check
of IPFIX.

IPFIX stats is added for per IPFIX exporter. If bridge IPFIX is
enabled on the bridge, the whole bridge will have one exporter.
For flow IPFIX, the system keeps per id (column in
Flow_Sample_Collector_Set) per exporter.

1) Add 'ovs-ofctl dump-ipfix-bridge SWITCH' to export IPFIX stats of
   the bridge which enable bridge IPFIX. The output format:
   NXST_IPFIX_BRIDGE reply (xid=0x2):
     bridge ipfix: flows=0, current flows=0, sampled pkts=0, \
             ipv4 ok=0, ipv6 ok=0, tx pkts=0
             pkts errs=0, ipv4 errs=0, ipv6 errs=0, tx errs=0
2) Add 'ovs-ofctl dump-ipfix-flow SWITCH' to export IPFIX stats of
   the bridge which enable flow IPFIX. The output format:
   NXST_IPFIX_FLOW reply (xid=0x2): 2 ids
     id   1: flows=4, current flows=4, sampled pkts=14, ipv4 ok=13, \
       ipv6 ok=0, tx pkts=0
       pkts errs=0, ipv4 errs=0, ipv6 errs=0, tx errs=0
     id   2: flows=0, current flows=0, sampled pkts=0, ipv4 ok=0, \
       ipv6 ok=0, tx pkts=0
       pkts errs=0, ipv4 errs=0, ipv6 errs=0, tx errs=0

flows: the number of total flow records, including those exported.
current flows: the number of current flow records cached.
sampled pkts: Successfully sampled packet count.
ipv4 ok: successfully sampled IPv4 flow packet count.
ipv6 ok: Successfully sampled IPv6 flow packet count.
tx pkts: the count of IPFIX exported packets sent  to the collector(s).
pkts errs: count of packets failed when sampling, maybe not supported or other error.
ipv4 errs: Count of IPV4 flow packet in the error packets.
ipv6 errs: Count of IPV6 flow packet in the error packets.
tx errs: the count of IPFIX exported packets failed when sending to the collector(s).

Signed-off-by: Benli Ye <daniely at vmware.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>


Compare: https://github.com/openvswitch/ovs/compare/77ee67e42dd7...5752fe24fb93


More information about the git mailing list