Call for Contributions
This section needs improvements, examples and explanations.
Please take a look at the Contributing Guide for our Write Documentation.
VPP sFlow Configuration
VPP Dataplane in VyOS support sFlow for traffic monitoring and analysis.
The VPP Dataplane integration works hand-in-hand with normal kernel sFlow agent, which is responsible for collecting and exporting sFlow samples. VPP itself is responsible for generating the samples.
To enable sFlow in VPP, you first need to configure the service using the same steps as for normal kernel sFlow agent, as described in sFlow. Then you can enable sFlow on VPP interfaces.
Then, you need to enable sFlow on the VPP interfaces you want to monitor. This is done using the following commands:
This will enable sFlow on the specified interface. You can repeat this command for each interface you want to monitor.
Note
sFlow collects statistics only for traffic received on the interface. If you want to monitor traffic sent on the interface, you need to enable sFlow on the corresponding interface in the opposite direction.
Optionally, you can specify the sampling rate for the interface using the following command:
This will set the sampling rate for the specified interface. The default sampling rate is 1, which means that every packet is sampled. A higher sampling rate means that fewer packets are sampled, which can reduce the amount of data sent to the sFlow collector. This can be useful in high-traffic environments to reduce the load on the collector.
Finally, you need to enable integration between VPP and the kernel sFlow agent using the following command:
After this, collecting and exporting sFlow samples will be handled by the kernel sFlow agent, while VPP will generate the samples.