Skip to content

Add reliable delivery support in MUD#10

Closed
haqa wants to merge 1 commit into
angt:masterfrom
haqa:master
Closed

Add reliable delivery support in MUD#10
haqa wants to merge 1 commit into
angt:masterfrom
haqa:master

Conversation

@haqa

@haqa haqa commented Apr 3, 2026

Copy link
Copy Markdown
  • Introduced reliable delivery mechanism with sequence numbers and acknowledgments.
  • Updated Makefile to include new targets for reliable echo tests.
  • Added integration test for reliable delivery over loopback UDP.
  • Enhanced mud.c and mud.h to support reliable delivery features, including retransmission and reordering.
  • Updated .gitignore to exclude new test files.
  • Added document RELIABLE_DELIVERY.md to describe the changes and intentions

This commit lays the groundwork for improved link health detection and reliable message delivery in MUD.

- Introduced reliable delivery mechanism with sequence numbers and acknowledgments.
- Updated Makefile to include new targets for reliable echo tests.
- Added integration test for reliable delivery over loopback UDP.
- Enhanced mud.c and mud.h to support reliable delivery features, including retransmission and reordering.
- Updated .gitignore to exclude new test files.

This commit lays the groundwork for improved link health detection and reliable message delivery in MUD.
@angt

angt commented Apr 7, 2026

Copy link
Copy Markdown
Owner

Hi @haqa,

I really appreciate your effort, but I cannot merge it in its current form. The changes are a bit too intrusive for the codebase right now, especially since mud is currently used in a wide variety of scenarios.

You are completely right that mud has issues when path latencies are very different. The best way to fix this today (with successful testing) is to use tc to align the latency of all interfaces. The kernel handles this very well, but it is hard to configure and does not adapt when latencies change dynamically.

My first priority will be to clean and modernize the current code. A dynamic latency feature was actually planned 6 years ago, but I moved on to other subjects. I still have the code somewhere and i will try to polish it and add some tests so you can try it out. Then, we can iterate and solve the issue.

@angt angt closed this Apr 7, 2026
@haqa

haqa commented Apr 7, 2026 via email

Copy link
Copy Markdown
Author

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

Successfully merging this pull request may close these issues.

2 participants