irungentoo / toxcore

The future of online communications.
https://tox.chat/
GNU General Public License v3.0
8.74k stars 1.27k forks source link

Reliable User Datagram Protocol #741

Closed ghost closed 8 years ago

ghost commented 10 years ago

Since we need guaranteed-order packet delivery in Tox, I think RUDP is a better option then UDP, without adding too much overhead.

irungentoo commented 10 years ago

We already have that, it's called Lossless UDP.

ghost commented 10 years ago

Nice!

Were you aware of RUDP when creating LUDP?

Perhaps you could get some ideas from RUDP to implement in your own Lossless UDP. Might have some interesting things over there.

http://plan9.bell-labs.com/sources/plan9/sys/src/9/ip/rudp.c

irungentoo commented 10 years ago

Yes i was aware.

That RUDP implementation is in plan 9 C, you can't just copy paste it in your software and start using it.

zan22 commented 10 years ago

What if you imported the necessary libraries? Too much overhead? Is there a way to compare both implementations to see which is faster, more reliable, etc.? I am interested in this as well. Perhaps something could be learn from another program that aims to do the same thing.

benwaffle commented 10 years ago

The lossless UDP has been here for quite a while, and since it works well the best thing to do, I think, would be to analyze RUDP and see what ideas Tox could use to improve performance and reliability.

GrayHatter commented 8 years ago

@irungentoo close