<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Paul,
<div class=""><br class="">
</div>
<div class="">I don’t want to launch into a religious argument since I’m not a network operator myself, but most (all?) of our customers and my personal colleagues in the business are quite happy with sFlow billing and security (unless they’re harbouring resentment
 and haven’t told me :)). </div>
<div class=""><br class="">
</div>
<div class="">
<div class="">Sflow is accurate for security purposes because it is simple enough to be performed in hardware. The sFlow is designed so that the accuracy of any measurement can be determined. Netflow tends to drop under heavy load, unless I’m mistaken.</div>
</div>
<div class=""><br class="">
</div>
<div class="">So, on to the billing bit. </div>
<div class=""><br class="">
</div>
<div class="">You don’t need to sample every single packet to get meaningful billing data, there’s not a great deal of benefit in doing so since the extra few percentage points don’t equate to serious gains, but quite large performance penalty (depending on
 the platform and media speed).</div>
<div class=""><br class="">
</div>
<div class="">With sFlow you optimise the sample rate in order to meet the desired level of accuracy and this is done by varying the number of samples collected. </div>
<div class=""><br class="">
</div>
<div class="">The accuracy is a function of the number of samples collected and the duration of the monitoring period. </div>
<div class=""><br class="">
</div>
<div class="">Further improvements in accuracy can be made by calculating the “confidence level” which is the width of the error window. In order to ensure that customers are not overcharged then the data point at the lower end of the confidence level should
 be used and this is a direct function of the number of samples collected and this can be calculated thus:<br class="">
<br class="">
Percentage Error ≤ 196 x √(1/c) where c is the number of samples.<br class="">
<br class="">
For example, if the number of samples is 10,000 then the error will be approximately ±2% so the amount charged for should be 98% of the total number of packets counted.</div>
<div class=""><br class="">
</div>
<div class="">It is important to note that the accuracy of measurement does not depend on the total number of frames, but simply on the number of samples used to make the measurement. As the speed of the interface increases, the percentage of the total number
 of frames sampled can be reduced. </div>
<div class=""><br class="">
</div>
<div class="">This is reflected in the default sampling rates we use on our devices (512/1024/2048 and 8192 for 100M/1G/10G/100G). Furthermore, accuracy can be improved by simply increasing the duration of the sample period until the required number of samples
 has been collected.</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">The sampling rate is the average ratio of the number of packets incoming on an sFlow-enabled port, to the number of flow samples taken from those packets. The sampling rate is a fraction in the form 1/N, meaning that, on average, one out of every
 N packets will be sampled.</div>
<br class="">
Because the accuracy of the sFlow measurement is dependent only on the number of samples then increasing the accuracy is fairly simple simple, and any errors will be negligible.</div>
<div class=""><br class="">
<div class="">
<div apple-content-edited="true" class=""><font face="Helvetica" class=""><span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Russell
 Brenner</span><br style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Systems
 Engineer</span><br style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Brocade</span><br style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Suite
 524, 1 Queens Road, </span><span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Melbourne</span><br style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">M. </span><span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">+61.412.869.959</span><br style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""><a href="http://www.brocade.com" class="">www.brocade.com</a></span><br style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span><span><span><span><span></span>
</span></span></span></span></span></font></div>
<font face="Helvetica" class=""></font><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 9 Jun 2015, at 9:21 am, Paul Koch <<a href="mailto:paul.koch137@gmail.com" class="">paul.koch137@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">On Fri, 5 Jun 2015 12:07:42 +1000<br class="">
Ivan Jukic <<a href="mailto:ijukic13@gmail.com" class="">ijukic13@gmail.com</a>> wrote:<br class="">
<br class="">
<blockquote type="cite" class="">Netflow or the currant "standard" is now called IPFIX. This is certainly<br class="">
support by Cisco as well as many other vendor.<br class="">
<br class="">
In relation to sflow not being a useful technology. I disagree. They<br class="">
essential both do the same, analyse traffic flows. However, sflow does so<br class="">
by packet sampling, 1 packet out of X sent to the collector. Where as<br class="">
IPFIX/Netflow send every packet to the collector. They both very useful,<br class="">
however there is a lot of design considering when rolling them out.<br class="">
<br class="">
Cheers,<br class="">
Ivan<br class="">
</blockquote>
<br class="">
<br class="">
sFlow is not useful.  It typically uses a 1 in N sample, where N is a<br class="">
"very big number".   Once you go over N=5 or N=10, it becomes statistically<br class="">
useless... or actually misleading and deceptive.  Ask any statistician<br class="">
and they laugh at the 1 in 1000 sample.<br class="">
<br class="">
I even watch a presentation from one of the <a href="http://sFlow.org" class="">sFlow.org</a> guys who reckon<br class="">
that N 1,000,000 sample was even useful.  Not sure what planet...<br class="">
<br class="">
For security guys, a N=1 is pretty much mandatory.<br class="">
<br class="">
sFlow should have been called something different as it just causes <br class="">
confusion.  A lot of people seem to think it is 'switch flow' and are<br class="">
surprised when you explain that its just packet sampling at N=1k or N=16k<br class="">
packets.  Switches will never do a N=1 sample because the cost of the<br class="">
hardware would be prohibitive.<br class="">
<br class="">
Plixer have some interesting blogs on Netflow vs sFlow.<br class="">
<br class="">
<span class="Apple-tab-span" style="white-space:pre"></span>Paul.<br class="">
-- <br class="">
Paul Koch | Founder, CEO<br class="">
AKIPS Network Monitor | <a href="http://akips.com" class="">akips.com</a><br class="">
Brisbane, Australia<br class="">
Cell: +61 (0)458 803 740<br class="">
_______________________________________________<br class="">
AusNOG mailing list<br class="">
<a href="mailto:AusNOG@lists.ausnog.net" class="">AusNOG@lists.ausnog.net</a><br class="">
http://lists.ausnog.net/mailman/listinfo/ausnog<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>