View Single Post
  #3   Spotlight this post!  
Unread 30-01-2012, 10:43
derekwhite's Avatar
derekwhite derekwhite is offline
Java Virtual Machine Hacker
no team (FIRST@Oracle)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2009
Location: Burlington, MA
Posts: 127
derekwhite is on a distinguished road
Re: System.out.println output jumbled

We found last year that the newer router has a habit of reversing the order of packets. When it receives several packets "at once", it sends the most recent one first. It may be assuming that all UDP traffic is audio/video, and the right thing to do is to always send to most recent data.

That was really fun when another part of the system managed to send break up all system output into 1 character packets - all output came out in reversed order!

In any case, now that output is buffered into larger chunks, it's still possible that if several packets hit the router at the same time it may reverse their order.

If you have time, look into the difference between TCP and UDP. System output (e.g. the "netconsole") uses UDP to broadcast to all interested clients on the local network.
Reply With Quote