sFlow technology is a statistical-sampling–based network monitoring technology for high-speed switched or routed networks. sFlow technology samples network packets and sends the samples to a monitoring station. The information gathered by the sFlow technology is used to create a network traffic visibility picture.
sFlow technology is a monitoring technology for high-speed switched or routed networks. sFlow monitoring technology randomly samples network packets and sends the samples to a monitoring station. You can configure sFlow technology on a Juniper Networks EX Series Ethernet Switch to continuously monitor traffic at wire speed on all interfaces simultaneously.
sFlow technology has the following two sampling mechanisms:
The sFlow collector uses the sFlow agent’s IP address to determine the source of the sFlow data. The IP address assigned to the agent is based on the following order of priority of interfaces configured on the switch:
If a particular interface has not been configured, the IP address of the next interface in the priority list is used as the IP address for the agent. For example, if the loopback interface has not been configured, then the IP address of the VME interface is assigned as the agent’s IP address. Once an IP address is assigned to the agent and an interface with a higher priority is configured, the agent’s IP address is not modified till the sFlow service is restarted. At least one interface has to be configured for an IP address to be assigned to the agent.
[edit protocols sflow] user@switch# set collector 10.204.32.46
[edit protocols sflow] user@switch# set collector udp-port 5600
[edit protocols sflow] user@switch# set interfaces ge-0/0/0.0
[edit protocols sflow] user@switch# set polling-interval 20
[edit protocols sflow] user@switch# set sample-rate 1000
Check the results of the configuration:
user@switch# show sflow { polling-interval 20; sample-rate 1000; collector 10.204.32.46; interfaces ge-0/0/0.0; }
Note: The collector can be emulated with a linux/unix system and the sflow packets can be captured using the tcpdump on the linux interface.
2020-01-04: Added collector information