vflow icon indicating copy to clipboard operation
vflow copied to clipboard

vflow ignore sampling interval on IPFIX and Netflowv9

Open Slepwin opened this issue 4 years ago • 8 comments

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 avatar Feb 01 '21 14:02 Slepwin

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

Slepwin avatar Mar 25 '21 18:03 Slepwin

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

Slepwin avatar Mar 25 '21 18:03 Slepwin

@mehrdadrad could you please clarify.

Slepwin avatar Mar 31 '21 14:03 Slepwin

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

mehrdadrad avatar Apr 01 '21 00:04 mehrdadrad

@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).

Slepwin avatar Apr 01 '21 08:04 Slepwin

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?

mehrdadrad avatar Apr 01 '21 15:04 mehrdadrad

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.

Slepwin avatar Apr 01 '21 19:04 Slepwin

can you send me a pcap?

mehrdadrad avatar Apr 02 '21 03:04 mehrdadrad