Results 1 to 10 of 10

Thread: IPC using UDP multicast

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: IPC using UDP multicast

    The maximum packet size of IP is 65535 (16bit length field).

    Ethernet often has 1500 byte MTU (maximum transfer unit), other technologies have smaller or larger sizes.

    Since an IP packet can cross a lot of channels with different size requirements, a single IP packet might be split and reassembled quite a lot along its route.

    If, for whatever reason, part of a UDP packet is lost, it can no longer be reassembled by the receiving IP stack and will be discarded.

    Since UDP has not retransmit or assumption that packets will arrive this is generally OK, the transmission partners have to deal with packet loss anyway.

    The larger a packet is, the higher the chance that it gets fragmented and the more fragments, the higher the chance that one is lost.

    The latter chance of course depends a lot on the transmission path.
    E.g. in a local ethernet this is not likely to happen at all.

    Cheers,
    _

  2. The following user says thank you to anda_skoa for this useful post:

    MrGentleman (29th August 2016)

  3. #2
    Join Date
    Sep 2014
    Posts
    14
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11
    Thanks
    2

    Thumbs up Re: IPC using UDP multicast

    Thank you very much for your input!
    Since the IPC mechanism is used only locally on the host machine and the number of bytes to send/receive are less than 200 I will implement
    a publisher/subscriber system based on UDP multicast.

    Best regards,
    michael

  4. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: IPC using UDP multicast

    On the loopback device there shouldn't be any problem with packet loss (aside from receiver buffers running full), reordering or packet fragmentation

    Cheers,
    _

Similar Threads

  1. UDP Multicast
    By Thomas_Lerman in forum Qt Programming
    Replies: 0
    Last Post: 29th July 2014, 21:51
  2. Multicast in Qt -- Help needed
    By swamyonline in forum Qt Programming
    Replies: 1
    Last Post: 27th November 2008, 11:30
  3. Does Qt 4.2 support multicast?
    By zeki709 in forum Qt Programming
    Replies: 2
    Last Post: 10th February 2007, 17:00
  4. MULTICAST with QT 4.1 and above.
    By jlarsj in forum Qt Programming
    Replies: 7
    Last Post: 10th January 2007, 13:45
  5. UDP multicast with Qt
    By madcat in forum Qt Programming
    Replies: 0
    Last Post: 25th April 2006, 22:31

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.