Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UDP Packet Reassembly

 
Lerner O'Reilly
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I searched and searched, to no avail.
I found, in many guides to Java Networking, that UDP packets have a chance of being split into smaller packets and/or conglomerated into bigger packets.
In either case, is the re-assembly of split packets, or the splitting of conglomerated packets done application-level or is it done in some lower level that I needn't be concerned with?
I understand that there is a chance that packets will not arrive, but do I have to deal with re-assembling packets myself?
I found a guide (non-Java-specific) that said that, in their UDP packets, they include two bytes which represent the size of the packet. Is this to ensure that the entire packet is received? Does this apply to me?
Thanks!
 
Lerner O'Reilly
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found a link that I /think/ answered my question. It would be nice if someone could confirm my understanding of it, though.
http://www.gamedev.net/topic/343577-fragmented-udp-packets/
All packet reassembly is done at the Network level, and I don't have to be concerned with it at Application level.
If a packet is not fully reassembled, it is not passed onto the application level.
If my understanding is correct OR incorrect, some validation would be nice.
 
Lerner O'Reilly
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, when I was referring to packet length in my first post, that was actually specific to non-blocking TCP connections, I later realized, not UDP packets.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic