The motivation for this tool is to help identify demanding flow content. 

This series of patches provide:
 - implementation in utilitites directory
 - changes to debian distribution
 - changes to rpm based distribution.

Every second ovs-dpctl dump-flow content is aggregated and presented by 
decreasing packet count. Several flow concepts are extracted and 
presented individually:
  - MAC address pairs
  - IPv4 and IPv6 address pairs
  - eth types
  - ip protocol
  - destination port
  - in port

Testing included: 
 - confirmed parser handles various flow content
 - Bit masks are applied prior to aggregation when applicable
 - Test --script parameter which runs in non-interactive mode
 - pep8 runs cleanly
 - pylint runs cleanly as follows:
   pylint --disable=I0011 --include-id=y --reports=n

All work was done against Python2.7.

Future work will include:
 - For each "concept", include byte count and average packet size
   (byte count/packet count).  

 - Toggle through the following sorting criteria:
   - flow count in decreasing order: this tells us which "concepts" are
     associated with the most flows in the kernel
   - packet count in decreasing order then average packet size in
     increasing order: this tells us which "concepts" are associated with
     potentially very high packet rates
   - byte count in decreasing order then average packet size in
     decreasing order: this tells us which "concepts" are associated with
     potentially very high throughput.
 - Filter which flow concepts are aggregated
 - An accumulation mode where data persists

Signed-off-by: Mark Hamilton <[email protected]>
---

 debian/openvswitch-switch.install  |    1 +
 debian/openvswitch-switch.manpages |    1 +
 manpages.mk                        |    4 +
 rhel/openvswitch.spec.in           |    2 +
 utilities/automake.mk              |   10 +-
 utilities/ovs-dpctl-top.8.in       |   58 ++++
 utilities/ovs-dpctl-top.in         |  564 ++++++++++++++++++++++++++++++++++++
 7 files changed, 638 insertions(+), 2 deletions(-)
 create mode 100644 utilities/ovs-dpctl-top.8.in
 create mode 100755 utilities/ovs-dpctl-top.in

-- 
1.7.10.4

_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to