sflow packet sampling algorithm

28 views
Skip to first unread message

Mehdi Moshiri

unread,
May 12, 2018, 1:44:33 AM5/12/18
to sFlow
we need to compute sflow packet sampling algorithm hardware complexity? 
could you help us?
what is the sflow packet sampling codes?
what is the hardware complexity?

Peter Phaal

unread,
May 12, 2018, 11:10:07 AM5/12/18
to sFlow
The requirements for packet sampling are described in the sFlow specification document (section 3.1 and Appendix B):

The theory behind sFlow packet sampling is described in:

The P4 implementation gives you an idea of the hardware complexity:

The Open Compute Project (OCP) Switch Abstraction Interface (SAI) provides an abstract API for configuring packet sampling in hardware:

Here are a couple of software examples:

Open vSwitch:

BPF:
Reply all
Reply to author
Forward
0 new messages