Handling Packet Fragementation
Skip to end of metadata
Go to start of metadata

Handling IP Fragmentation in MINA Applications

IP Fragmentation

IP Fragmentation occurs, when a packet being sent is larger than the MTU of the transport network like Ethernet. The IP packets can be fragmented by the routers as well. The fragments are reassembled only at the final destination by the IP Layer.

The larger packet shall get fragmented by Source, and/or alternatively by intermediate Routers.

Handling multiple Message Packets (Fragmented Packets) in MINA

In a packet fragmentation scenario, the Iofilter(s)/IoHandler shall receive multiple messageReceived events. The application should handle such a scenario that message is processed only once all the fragments are received.

See Tutorial on ProtocolCodecFilter (for Mina 2.x) for details

Labels
  • No labels