• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

UDP Packet Reassembly

 
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.
 
You are HERE! The other map is obviously wrong. Better confirm with this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic