0
The diagram shows how
sFlow-RT real-time analytics software can combine BGP route information and sFlow telemetry to generate route analytics. Merging sFlow traffic with BGP route data significantly enhances both data streams:
- sFlow real-time traffic data identifies active BGP routes
- BGP path attributes are available in flow definitions
The following example demonstrates how to configure sFlow / BGP route analytics. In this example, the switch IP address is
10.0.0.253, the router IP address is
10.0.0.254, and the sFlow-RT address is
10.0.0.162.
Setup
First
download sFlow-RT. Next create a configuration file,
bgp.js, in the sFlow-RT home directory with the following contents:
var reflectorIP = '10.0.0.254';
var myAS = '65162';
var myID = '10.0.0.162';
var sFlowAgentIP = '10.0.0.253';
// allow BGP connection from reflectorIP
bgpAddNeighbor(reflectorIP,myAS,myID);
// direct sFlow from sFlowAgentIP to reflectorIP routing table
// calculate a 60 second moving average byte rate for each route
bgpAddSource(sFlowAgentIP,reflectorIP,60,'bytes');
The following sFlow-RT
System Properties load the configuration file and enable BGP:
- script.file=bgp.js
- bgp.start=yes
Start sFlow-RT and the following log lines will confirm that BGP has been enabled and configured:
Continue reading