Can you tell whether an UDP packet is "younger" than another one?

Viewed 62

What I mean is whether or not there is an algorithm which can make it possible to tell, when comparing two UDP packets, which one of them was sent first?

I would need to implement this in C# using libraries such as these: System.Net.Sockets and System.Net.

Also the answer to this question helps me build a reliable UDP protocol (that is the final goal I am trying to achieve, so if anyone knows a good optimized implementation of reliable UDP that would also solve my problem).

1 Answers

Sent first? Not possible, unless the sender(s) are putting a timestamp, or a sequence number, in the application level packet payload.

Take a look at MoldUDP -- its a popular protocol in the financial sector for a single sender to reliably broadcast a data feed to many consumers.

Related