You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the "NFPlugins Examples" section, an implementation of FlowSlicer is provided. However, besides sampling the [1st packet, N-th packet] of each flow, I also want to sample the [N-th packet, M-th packet] of each flow. Is it possible?
The text was updated successfully, but these errors were encountered:
Pzoom522
changed the title
FLOW SLICER that specifies a beginning
slice the middle of a flow
Apr 11, 2024
What you call packet sampling is actually sampling of expired flows, which can only occur once per a lifetime of a flow I believe. So you probably cannot make streamer return a flow more than once.
If you want to sample packets, you can do so inside on_init() and on_update() methods. Just count the packets and only act (for instanced append to flow.udps.sample_packets) on packets in N-M range.
I think you need to be careful about flow expiration, to make sure you it does not expire too soon, otherwise you might sample another piece of the same flow.
Dear developers,
Thanks for releasing this beautiful project!
In the "NFPlugins Examples" section, an implementation of
FlowSlicer
is provided. However, besides sampling the [1st packet, N-th packet] of each flow, I also want to sample the [N-th packet, M-th packet] of each flow. Is it possible?The text was updated successfully, but these errors were encountered: