sFlow Elisa Jasinska elisa.jasinska@ams-ix.net Agenda What is - - PowerPoint PPT Presentation

sflow
SMART_READER_LITE
LIVE PREVIEW

sFlow Elisa Jasinska elisa.jasinska@ams-ix.net Agenda What is - - PowerPoint PPT Presentation

sFlow Elisa Jasinska elisa.jasinska@ams-ix.net Agenda What is sFlow? AMS-IX requirements Existing software solutions Performance issues Software used at AMS-IX Privacy What is sFlow? Monitoring networks Cisco IOS


slide-1
SLIDE 1

sFlow

Elisa Jasinska elisa.jasinska@ams-ix.net

slide-2
SLIDE 2
  • What is sFlow?
  • AMS-IX requirements
  • Existing software solutions
  • Performance issues
  • Software used at AMS-IX
  • Privacy

Agenda

slide-3
SLIDE 3
  • Monitoring networks
  • Cisco IOS - NetFlow
  • Sampling mechanism, not “touching”

every packet

  • Applicable to high speed networks

(>= 1GE)

What is sFlow?

slide-4
SLIDE 4
  • sFlow datagrams sent via UDP
  • Datagram format standard defined in

RFC 3176

  • Implemented on a wide range of devices

(Foundry, Force10, Extreme...)

What is sFlow?

slide-5
SLIDE 5
  • Flow samples
  • Whole captured packet (L2-L7)
  • Defined sampling rate (eg. one out of 8192)
  • Counter samples
  • Interface counters (octets/pkts/errors)
  • Polling interval (eg. 30 sec.)

What is sFlow?

slide-6
SLIDE 6
  • What do you need?
  • Hardware supporting sFlow
  • Central server to collect the data
  • Software to analyze the received data

What is sFlow?

slide-7
SLIDE 7

Collector sFlow datagrams UDP Up to 10 samples per sFlow datagram Traffic In/Out Sampling rate

  • eg. 1 out of 8192

What is sFlow?

Switch

slide-8
SLIDE 8
  • Use flow samples to:
  • Provide member-to-member traffic information
  • See growth (or lack) of of IPv6
  • Due to high throughput a very efficient

system is required

AMS-IX requirements

slide-9
SLIDE 9
  • Free software:
  • InMon – sflowtool
  • Pmacct
  • sFlow2MySQL
  • Commercial:
  • InMon – Traffic Sentinel

Existing software solutions

slide-10
SLIDE 10
  • Issues with existing software
  • Saves each sample to DB
  • No caching or preprocessing possible
  • Graphing with RRDtool
  • verhead due to data export to RRD
  • same data saved twice

Existing software solutions

slide-11
SLIDE 11

Performance issues

slide-12
SLIDE 12
  • Traffic up to 180 Gb/s (30 Mpps)
  • ca. 3500 samples per second
  • Cannot store each sample in a DB

Performance issues

slide-13
SLIDE 13
  • Written in PERL
  • Easy to understand
  • Good integration with RRDtool
  • Due to PERL's re-use architecture (modules) lots of

subtasks have already been programmed

  • Largest common denominator of a language

understood at the AMS-IX NOC

Software used at AMS-IX

slide-14
SLIDE 14
  • Decodes sFlow datagrams
  • Supports sFlow version 2/4 and 5
  • Single (exportable) function, decode()
  • Available on CPAN

Net::sFlow

slide-15
SLIDE 15
  • Based on module Net::sFlow
  • Receives UDP datagrams
  • Analyzes the information
  • Stores data to RRD files

sFlow daemon

slide-16
SLIDE 16
  • CPU usage while decoding sFlow

datagrams

  • Growing linearly with amount of packets /

samples

Performance Results

slide-17
SLIDE 17

Performance Results

slide-18
SLIDE 18
  • I/O performance while writing data
  • Currently:
  • Writing ca. 40 000 RRD files in 8 seconds
  • High load tests:
  • Writing 130 000 RRD files in 27 seconds
  • Max. at AMS-IX 160 000 conversations

Performance Results

slide-19
SLIDE 19
  • Foundry hardware
  • BigIron 15k
  • ASIC (Application-specific integrated circuit)
  • Switch CPU not affected
  • MG8 & RX*
  • Blade CPU affected

Performance Results

slide-20
SLIDE 20

Performance Results

slide-21
SLIDE 21
  • Analysis
  • Ether type graph – percentage of IPv4, IPv6, ARP

and other

  • Total IPv6 traffic graph – in bps and pps
  • Member-2-Member analysis – in bps and pps

Software used at AMS-IX

slide-22
SLIDE 22
  • Statistical analysis
  • Samples not saved after decoding
  • Decoding only up to L2 (ethernet)
  • More data not decoded by the software

Privacy

slide-23
SLIDE 23
  • Ether type - daily

Results

slide-24
SLIDE 24
  • Ether type - monthly

Results

slide-25
SLIDE 25
  • Total IPv6 traffic daily - bps

Results

slide-26
SLIDE 26
  • Total IPv6 traffic weekly - bps

Results

slide-27
SLIDE 27
  • Total IPv6 traffic monthly - bps

Results

slide-28
SLIDE 28
  • Member-2-Member traffic

Results

slide-29
SLIDE 29
  • Member-2-Member traffic

Results

slide-30
SLIDE 30
  • Member-2-Member traffic

Results

slide-31
SLIDE 31
  • Use counter samples:
  • Separate interfaces
  • Aggregated links
  • Backbone links
  • Core network
  • ...

Future plans

slide-32
SLIDE 32

Questions ?

Comments / Requests / Ideas:

  • elisa.jasinska@ams-ix.net
  • sflow@ams-ix.net