For more details, please see ourCookie Policy.

Ethernet Switches & Routers

Posts: 69
Registered: ‎10-14-2011

SFLOW stats how is utilization calculated

Can someone provide me more background on how sflow is used or correct me if I'm wrong?

Its my understanding that sflow takes samples when it takes these samples it reads the packets to calculate the amount of traffic by reading the header data and sequence information. I need to know how accurate is this sampled information? If I setup 500 rate of sampling and 1500 rate of sampling they should (in my mind) come up with almost identical traffic calculations if the information is truly calculated from the tcp headers and sequence information.

Otherwise if they are skewed then the data is strictly looking at data that is sampled and not calculating throughput based on header and sequence information in the tcp stream.

I would like to setup SFLOW to be able to track customers "CIT" but only if its proven accurate.

Thoughts or Ideas?

Super Contributor
Posts: 1,087
Registered: ‎12-13-2009

Re: SFLOW stats how is utilization calculated


     Some informaiton on sFlow below.

sFlow is a standards-based protocol that allows network traffic to be sampled at a user-defined rate for the purpose of monitoring traffic flow patterns and identifying packet transfer rates on user-specified interfaces.

When sFlow is enabled on a Layer 2 or Layer 3 switch, the system performs the following sFlow-related tasks:

  • Samples traffic flows by copying packet header information
  • Identifies ingress and egress interfaces for the sampled flows
  • Combines sFlow samples into UDP packets and forwards them to the sFlow collectors foranalysis
  • Forwards byte and packet count data, or counter samples, to sFlow collectors

sFlow version 5

sFlow version 5 enhances and modifies the format of the data sent to the sFlow collector. sFlow version 5 introduces several new sFlow features and also defines a new datagram syntax used by the sFlow agent to report flow samples and interface counters to the sFlow collector.

sFlow version 5 adds support for the following:

  • sFlow version 5 datagrams
  • Sub-agent support
  • Configurable sFlow export packet size
  • Support for the new data field and sample type length in flow samples
  • Configurable interval for exporting Brocade-specific data structure

sFlow version 5 is backward-compatible with sFlow version 2. By default, the sFlow agent exports sFlow version 5 flow samples by default, but you can configure the device to export the data in sFlow version 2 format. You can switch between sFlow version 2 and sFlow version 5 formats. The

sFlow collector automatically parses each incoming sample and decodes it based on the version number.

My thoughts----

     * So as you can see it also sends the byte and packet data too.

     * Many customer use sFlow for this (accounting/billing)

     * Lowering the sample rate to will better results depending on your types of traffic

     * Setting the sample rate lower will increase CPU load (default is 512, suggest no lower 128, but you must test it in your network)

     * Make sure you are using a sFlow version 5 collector



Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.