Results 1 to 2 of 2

Thread: UDP IP layer limit

  1. #1
    Join Date
    Jan 2006
    Location
    Maui, Hawaii
    Posts
    120
    Thanks
    65
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default UDP IP layer limit

    So I've been trying to send some long UDP datagrams, as in like 3000 bytes.

    (You can probably tell where this is going).

    They seem to get broken up into blocks of 1024 bytes.

    I've heard from a couple folks the specification states UDP should be able to send 65000 bytes without breaking it up. In actual practice it happens much sooner.

    The Qt docs mention (on the QUdpSocket page) that anything larger than 512 bytes is likely to get broken up by the IP layer. How can the specification say it is so large while it is so low in actual practice?

    Does anyone know of a workaround that doesn't involve adding headers and checking?

  2. #2
    Join Date
    Jan 2009
    Location
    Varna, Bulgaria / Villeurbanne, France
    Posts
    4
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: UDP IP layer limit

    It's most probably because of your network interface's MTU (Maximum Transmit Unit). For instance, on my Linux machine the standard MTU for ethernet interfaces is 1500 bytes and 16436 bytes for the loopback interface. I guess you read the protocol specifications wich does not take into account the lower layers. However, there are ways of changing the MTU value, but even if you do so for the source machine the packets will be cut further on the network by the other equipments.

Similar Threads

  1. QTable:: Cell's character limit
    By soumyadeep_pan in forum Qt Programming
    Replies: 0
    Last Post: 23rd October 2008, 05:49
  2. Upper limit on number of widgets?
    By jdiewald in forum Qt Programming
    Replies: 1
    Last Post: 29th September 2008, 23:00
  3. Limit number of row/column in QGridLayout
    By EricF in forum Qt Programming
    Replies: 2
    Last Post: 18th October 2007, 19:54
  4. Setting Max Limit in Text Box
    By kenny_isles in forum Newbie
    Replies: 4
    Last Post: 15th August 2007, 08:40
  5. Limit Window Movement
    By abbapatris in forum Qt Programming
    Replies: 20
    Last Post: 19th July 2007, 13:54

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.