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

Option to Control PDU Size? #191

Open
MureDanta opened this issue Feb 1, 2022 · 1 comment
Open

Option to Control PDU Size? #191

MureDanta opened this issue Feb 1, 2022 · 1 comment
Assignees

Comments

@MureDanta
Copy link

Just a suggestion: I'm working in an environment where we want to send Netflow V9 or IPFIX data are sent from ipt-netflow to a remote server over an encrypted tunnel (Wireguard). Everything works OK in general, but because the size of netflow9_pdu is fixed, once headers are added, the size of the datagram frequently exceeds the MTU of the tunnel, and the datagram ends up being fragmented, leading to (worst case) doubling the number of packets, half of them full-sized, half tiny, and performance suffers. It seems like it could be advantageous to have an option in /proc/sys/net/netflow to tune the size of the PDU. Given the careful way you coded the check for free space in the PDU, it doesn't look too hard.

Alternatively, though not as accessible for most people, maybe the size of the version-specific PDU data[] arrays in ipt_NETFLOW.h could be controlled by a compile-time option rather than hard-coded at 1400?

@aabc aabc self-assigned this May 9, 2022
@aabc
Copy link
Owner

aabc commented May 9, 2022

Thanks for the suggestion. I will think over it.

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