Skip Links

Network World

Brad Reese

NetFlow or sFlow: which is the open standard?

sFlow appears to be more popular on switches.

By Brad Reese on Thu, 01/10/08 - 8:52pm.

Most Network Admins keep traffic analysis on the top ten of their responsibility list, but they aren’t using packet analyzers as much.

Why?

Because NetFlow and sFlow now provide the majority of the information they are generally looking for without deploying probes.

NetFlow?

sFlow?

What is the difference?

Most SNMP manageable switches and routers shipping today support either NetFlow or sFlow.

NetFlow or a derivative called NetStream, IPFIX or Jflow are more often supported on routers.

sFlow appears to be more popular on switches.

NetFlow

NetFlow developed by Cisco Systems aggregates conversations between hosts (i.e. flows) with potentially thousands of packets into a single entry among 29 other conversations in a single NetFlow v5 packet.

In other words, a single NetFlow packet can represent tens of thousands of packets between over two dozen hosts.

However the majority of the data field is lost in the aggregation.

The source and destination IP addresses, protocols, type, QoS, autonomous systems and a few other fields are all that are saved.

The rest of the packet is dumped in NetFlow v5 which is over 80% of the market.

NetFlow v9 can save the first 1200 bytes of the packet, however, few if any collectors can report on the data intuitively.

Cliff MeltzerBecause of the aggregation, NetFlow allows for accurate total byte readings between IP hosts.

"The beauty of NetFlow is, because it is a standard, you can look at data from different vendors and still apply the correct level of forensics or traffic analysis to it," said Cliff Meltzer - Senior Vice President of the Cisco Network Management Technology Group.

SFlow

SFlow developed by InMon is a packet sampling technology where the switch captures every 100th packet (configurable) per interface and sends it off to the collector.

The sFlow specification does not preclude "sampling" every packet - this is a sampling rate of 1 in 1.

It is up to the specific chip vendor and specific sFlow implementation to limit the maximum frequency of packet sampling.

I am not aware of any vendor which will sample every packet.

Foundry Networks offers a switch which will sample every other packet.

Because of sFlows sampling nature, accurate readings of traffic volumes per hosts is nearly impossible without complicated algorithms which attempt to guess at accurate conversation byte volumes.

Unlike the normally software based architecture of NetFlow, sFlow requires a chip.

The sFlow.org consortium includes most of the leading network equipment and network traffic analysis vendors, who have contributed to the specification of the standard.

sFlow is licensed free of charge.

Unlike Flexible NetFlow which is limited to the first 1200 bytes of the sampled packet, with sFlow any amount of the sampled packet can be exported by sFlow, subject to any hardware limitations of a specific implementation.

Paul CongdonSince sFlow runs over UDP, the UDP datagram can exceed the MTU of the layer 2 medium and the IP layer will handle any fragmentation and reassembly.

"By including sFlow technology in our wireless platform, we are making it easier for enterprises to monitor network devices, enforce security and analyze traffic flows across both a wired and wireless infrastructure," said Paul Congdon - Chief Technology Officer of ProCurve Networking by HP.

So which is the open standard: NetFlow or sFlow?

Both are open.

IPFIX is a flow standard which is based on NetFlow v9.

However, vendors have been slow to implement it.

Nortel supports IPFIX on their 5500 & 8600 series switches, however, they only support sampling (i.e. similar to sFlow).

Very important and definitely worth bringing to your attention again, the sFlow.org consortium includes most of the leading network equipment and network traffic analysis vendors.

These vendors have contributed to the specification of the standard. sFlow is licensed free of charge from InMon Corporation.

Among router vendors, NetFlow v5 appears to be more popular over sFlow.

Trent WaterhouseOutside of Cisco and Enterasys, most switch vendors have implemented sFlow.

Enterasys supports NetFlow v9 on their switches because of a special chip they developed.

"The Enterasys Matrix N-Series switches collect NetFlow statistics for every packet in every flow without sacrificing performance based on the nTERA ASIC capabilities," said Trent Waterhouse - Marketing VP for Enterasys.

So which is better: NetFlow or sFlow?

In extremely high traffic volume environments, sFlow's sampling architecture probably prevails over NetFlows aggregation method.

The processing power to implement NetFlow on the routers and switches isn’t the problem.

The issue is the packet volume created by NetFlow which can be enormous and collectors can become overwhelmed.

Most routers outside of those used by service providers send between .5 to 50 NetFlow packets per second.

Although there are many routers in the world that will send over several hundred per second, they are not the norm.

Even so, some flow collectors can still handle 1000+ packets per second.

Why do most switch vendors support sFlow if it is only a sample, versus NetFlow's more accurate aggregation method for measuring IP traffic between hosts?

Well, since sFlow comes on a chip, one could be lead to believe it’s because sFlow takes less engineering to properly implement than NetFlow.


Related Stories:

Network World Cisco Flexible NetFlow expert Mike Patterson, Denial of Service (DoS) attacks can be accurately diagnosed
Network World Q & A with network behavior analysis software expert - Adam Powers
Network World Cisco’s NetFlow vs. Inmon’s sFlow: Which will prevail?
Network World Developed by Cisco, NetFlow reporting morphs into hyper-competitive industry
Network World Cisco customers have been kept in the dark about the extremely powerful NetFlow-NBAR technology combination
Network World Cisco invention NetFlow appears missing in action as Cisco invests into the network behavior analysis business
Network World Are you taking advantage of NetFlow and IP SLA?
Network World Appealing to CCIEs, hardware vendors copy Cisco's CLI and NetFlow to get into Cisco accounts
Network World NetFlow Tracker hits triple home run for Cisco VARS and their enterprise Cisco customers
Network World Demanding business applications have Cisco and rival HP ProCurve featuring their network behavior analysis strengths

Contact Brad Reese
http://www.BradReese.Com

RE:Why do most switch vendors support sFlow v netflow ?

0

afaik, this is because sflow has provides data that DPI can partially be used on, and it also provides physical port information (very powerful for link/trunk analysis).

As for

sFlow takes less engineering to properly implement than NetFlow

... I'm not too sure about this comment either. Sflow is quite difficult to get up and running on some switches, e.g. HP switches, where as some vendors are providing capabilities to enable netflow from their software, removing the need to physically access the router to make the ip-flow export...etc command changes.

Just my 2cents...

Stuart

cost of sflow

0

Hello,

I'm told by switch vendors that Inmon sells the sflow chip set at a very competitive price. I know of no NetFlow chip set that is available like sflow. Netflow is computationally expensive to support and is nearly 100% accurate in pure IP environments.

sFlow on the other hand is not limited to IP traffic and samples the entire packet which clearly has significant benefits. See this blog:
http://www.networkworld.com/community/node/29117

Regarding HP sflow setup. Make sure you upgrade the firmware on your switches before setting up sflow. HP has had problems with sflow support. The latest switches have a gui which make the configuration much easier. Use this as a reference:
http://www.plixer.com/products/scrutinizer_activate-netflow.php click on the hp links.

hope this helps.

mike[at]plixer.com

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Welcome, visitor. Register Log in
About Brad Reese on Cisco

Brad Reese cofounded BradReese.Com Cisco Refurbished, which enables affordable networks globally by assuring customer satisfaction with guaranteed one year warranties on both Cisco Repair as well as Refurbished Cisco.

Don't be shy, contact Brad Reese online or call him Toll Free:

866-864-0506

International callers may wish to call Brad by dialing:

850-364-4115

Archives
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
Categories
A classic scam to defraud Cisco's SMARTnet program
America's Best profile written by Useem regarding Chambers' success
Avian Securities Senior Telecom Research Analyst - Catharine Trebnick
Breakingviews.com correspondent - Robert Cyran
CCIE
Careers
Charlie Giancarlo - Managing Director of Silver Lake Partners and Skype investor
Cisco
Cisco ASR 9000 architecture
Cisco ISR G2 Module Support
Cisco Integrated Services Router Generation 2 (ISR G2) Model Comparison
Cisco Integrated Services Routers Generation 2 Portfolio
Cisco Unified Communications Support for Microsoft Windows 7
Cisco is pushing their ASR 9000 at very competitive prices
Cisco is warning Unified Communications customers about NOT successfully offering support for Microsoft Windows 7
Cisco technical star Jonathan Rosenberg
Cisco will have no liability for any delay in delivery
Data Center
Douglas Smith - Cofounder and President of Network Instruments
Expand visibility of NetFlow-dependent NBAD and compliance applications
GigaStor captures and converts packets in NetFlow data flows
Index Venture partner Danny Rimer
Jonathan Rosenberg - a Cisco Fellow in Cisco's Voice Technology Group
Juniper MX960 lab test results
LANs / WANs
Mark Roberts - Polycom vice president of partner marketing
Michael Useem - Professor of Management
Microsoft
NetFlow
NetFlow add-ons
NetFlow overhead can overtax infrastructure
Network Behavior Anomaly Detection (NBAD)
Network Management
Non-NetFlow capable devices are blind to local traffic
Produce NetFlow about any device
SMB
Security
Selection committee member for America's Best Leaders
September 2009 vs. October 2009 Worldwide CCIE Count Comparison
Silver Lake Managing Director - Egon Durban
Skype's cofounders Niklas Zennstrom and Janus Friis
Software
The Charlie angle is to keep Dave Roux on track
The new Cisco ISR G2 portfolio is priced as follows
VoIP / Convergence
What are the benefits of GigaStor NetFlow Agent?
What’s new on the Cisco ISR G2 models vs. the old ISR models?
Windows 7
Windows 7 just not worth an all-out urgent effort by Cisco to support
Wireless / Mobile
eBay CEO - John Donahoe
sFlow
sFlow and NetFlow provides extended visibility
On The Web
Twitter