Why do I get UDP datagrams out of order even with processes running locally?

Bilthon picture Bilthon · Mar 28, 2010 · Viewed 14.4k times · Source

I'm developing a java interface between a streaming server and a flash client. I noticed that UDP datagrams can reach my interface out of order even if both processes are running locally.

Is that normal? I thought that as no datagram has to go through any router or any network device, then that should not be happening.

Answer

Thomas M. DuBuisson picture Thomas M. DuBuisson · Mar 28, 2010

This would be operating system dependent. While you failed to specify an operating system it isn't important anyway. To remain portable you should always anticipate your datagram sockets receiving out of order data.