Results 1 to 2 of 2
  1. #1
    Raghavendra is offline Member
    Join Date
    Jun 2008
    Rep Power

    Default Regarding UDP Datagram packets

    Hi all,

    I am sending image over network using UDP datagram packet.

    It will work fine data of 65kb length, but when i try to send data of more then 65kb it will through socketException.

    To resolve this i have 2 solutions

    1. To fragment data which is more the 65 kb into pieces of 65 kb.

    Ex : If data is 135 kb i will send it as 3 packets of lengths 65 kb, 65 kb and 5 kb.

    Issue 1 : If i use this solution i dont know how to reassemble packets at the receiver side.

    2.Another solution to use jumbograms (ipv6).

    Issue 2 : I dont how to use jumbograms in java, if any one of u know this please help.

    if there any solutions other then above please suggest.


  2. #2
    vglass is offline Member
    Join Date
    Jul 2007
    Rep Power


    One of the disadvantages of UDP is that packets can come in any order. For this reason your UDP packet has to contain information on what order it should be reassembled in. One way to handle this may be to have the first X bytes of the packet contain this information.

Similar Threads

  1. Regarding UDP Datagram packtes
    By Raghavendra in forum Networking
    Replies: 0
    Last Post: 06-03-2008, 08:11 AM
  2. Encrypting packets
    By bugger in forum Networking
    Replies: 2
    Last Post: 02-04-2008, 11:24 AM
  3. How to capture IP packets
    By Hasan in forum Networking
    Replies: 1
    Last Post: 05-31-2007, 05:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts