Fragmentation layer. Fragments messages larger than FRAG_SIZE into smaller packets.
Reassembles fragmented packets into bigger ones. The fragmentation number is prepended
to the messages as a header (and removed at the receiving side).
Each fragment is identified by (a) the sender (part of the message to which the header is appended),
(b) the fragmentation ID (which is unique per FRAG layer (monotonically increasing) and (c) the
fragement ID which ranges from 0 to number_of_fragments-1.
Requirement: lossless delivery (e.g. NAK, ACK). No requirement on ordering. Works for both unicast and
multicast messages.
author: Bela Ban author: Filip Hanik version: $Id: FRAG.java,v 1.32.2.1 2007/04/27 08:03:51 belaban Exp $ |