Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vflow ignore sampling interval on IPFIX and Netflowv9 #145

Open
Slepwin opened this issue Feb 1, 2021 · 8 comments
Open

vflow ignore sampling interval on IPFIX and Netflowv9 #145

Slepwin opened this issue Feb 1, 2021 · 8 comments

Comments

@Slepwin
Copy link

Slepwin commented Feb 1, 2021

Hi,
I have a question how vflow handle IPFIX/Netflow v9 sampling rate, does it get from Option Data Sets and multiply by the number of bytes and packets automatically?

@Slepwin
Copy link
Author

Slepwin commented Mar 25, 2021

Seems like vflow completely ignores sampling interval field in IPFIX and Netflow packets and can't provide accurate information about traffic volume.

@Slepwin
Copy link
Author

Slepwin commented Mar 25, 2021

Maybe it have some configuration knob to set sampling rate manually?

@Slepwin Slepwin changed the title Question: how vflow handle IPFIX and Netflowv9sampling rate vflow ignore sampling interval on IPFIX and Netflowv9 Mar 26, 2021
@Slepwin
Copy link
Author

Slepwin commented Mar 31, 2021

@mehrdadrad could you please clarify.

@mehrdadrad
Copy link
Collaborator

@Slepwin samplingInterval IANA element id #34 deprecated please check samplingPacketInterval
https://www.iana.org/assignments/ipfix/ipfix.xhtml

@Slepwin
Copy link
Author

Slepwin commented Apr 1, 2021

@mehrdadrad i have a ipfix.elements file with samplingPacketInterval element in /etc/vflow directory but i can confirm vflow doesn't take into account this info and doesn't multiple bytes to sampling rate provided from routers (tested on Juniper MX).

@mehrdadrad
Copy link
Collaborator

vFlow doesn't multiply, if router sends the samplingPacketInterval then you should get it at dataset (json)
did you try tcpdump/wireshark to make sure it comes from Juniper MX router?

@Slepwin
Copy link
Author

Slepwin commented Apr 1, 2021

vFlow doesn't multiply, if router sends the samplingPacketInterval then you should get it at dataset (json)
did you try tcpdump/wireshark to make sure it comes from Juniper MX router?

Yes, i can confirm MX router send samplingPacketInterval for IPFIX and another collector do it (multiply) automatically. I also can't see samplingPacketInterval on vflow with debug mode.

@mehrdadrad
Copy link
Collaborator

can you send me a pcap?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants