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

Linux kernel packet loss - Help needed! #6

Open
Vrolijk opened this issue Aug 11, 2023 · 6 comments
Open

Linux kernel packet loss - Help needed! #6

Vrolijk opened this issue Aug 11, 2023 · 6 comments

Comments

@Vrolijk
Copy link
Owner

Vrolijk commented Aug 11, 2023

As described in https://github.com/Vrolijk/OSDD/blob/main/packetloss_explained.md Linux does drop UDP packets. There are several ways to optimize UDP traffic like Forward Error Control (FEC) within the application, optimizing the UDP network buffers but even with these optimizations UDP remains unreliable.

During the creation of the workshop we collected some idea's but where not able to add them to the workshop.
Use eXpress Data Path XDP: https://github.com/Vrolijk/OSDD/blob/main/examples/XDP_to_prevent_packet_loss.md
Modify udp.c within the kernel with function when using data diodes: https://github.com/torvalds/linux/blob/master/net/ipv4/udp.c
Create an FEC application: https://github.com/Vrolijk/OSDD/blob/main/netcat-diode.md

If you have more suggestions or know how to implement these suggestions (if they are viable) please leave a comment.

Regards,
Rene

@Vrolijk
Copy link
Owner Author

Vrolijk commented Aug 11, 2023

XDP Example: https://github.com/gamemann/XDP-Forwarding
Not tested.

@Vrolijk
Copy link
Owner Author

Vrolijk commented Aug 11, 2023

Use Flute protocol: https://github.com/ypo/flute
Not tested.

@poweredgenl
Copy link

hey - im unsure wether this helps - but i have made some mods to my linux (routers) to optimize for max traffic throughput ...

could one of these settings perhaps help you?

https://github.com/poweredgenl/networkstuff/blob/main/sysctl.conf_bgp_RHEL9

@Vrolijk
Copy link
Owner Author

Vrolijk commented Apr 7, 2024

tried the sctp protocol without success...

@Vrolijk
Copy link
Owner Author

Vrolijk commented Apr 7, 2024

hey - im unsure wether this helps - but i have made some mods to my linux (routers) to optimize for max traffic throughput ...

could one of these settings perhaps help you?

https://github.com/poweredgenl/networkstuff/blob/main/sysctl.conf_bgp_RHEL9

Peter Paul,
Thank you for the suggestion. The sysctl optimization is already part of the workshop. It does improve the packetloss but when i send large files or streams the networkbuffers still drops packets (as designed in the UDP protocol)

@Vrolijk
Copy link
Owner Author

Vrolijk commented May 27, 2024

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