Thread: Missing first few multicast messages in udp.

  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    3

    Missing first few multicast messages in udp.

    Hi,

    I am writing a client server code in C. In code the client send the UDP messages to the multicast group. The server(which have joined the group ) receive the packet and process it.

    The problem I am facing is that when I run the program ( in the beging of the day) it losses 1 or 2 or 3 first messages and then and works properly there after. And if I run the program again then it works fine (no message even 1st message is not lost).
    what would be the problem and also this doesn't t happen very often makes it hard to diagnose.


    I have started the server and waited few minutes to update routing table but still it didn't help


    The servers are on different machines and I am facing this problem only in one server that means the problem is system specific.

    I am using linux.


    Any help or suggestion would be appreciated.

  2. #2
    Registered User
    Join Date
    Apr 2008
    Posts
    396
    You're saying the identical server is ran on several machines but the problem appears on only one machine, so this is a configuration or timing issue, right?, is the server really ready when first packets are sent (group joined, etc)? you should also check the first packets are actually received on the machine with tcpdump or any equivalent started before the server. Also notice joining a multicast group is a per-interface property, if several processes have joined the same group, if one of them leave the group, others are still in; so when you try to restart the server (and check you receive everything), there maybe a side effect depending on what is running on the machine (as you may already belong to the mcast group).
    Last edited by root4; 03-04-2009 at 03:48 PM.

  3. #3
    Registered User
    Join Date
    Feb 2009
    Posts
    3
    nice. I totally forgot about the tcp dump tracing. Will give it a try keeping my fingers crossed.

    Thanks a lot root4

  4. #4
    Registered User
    Join Date
    Apr 2008
    Posts
    396
    tcpdump or wireshark which is a bit more user-friendly

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Errors including <windows.h>
    By jw232 in forum Windows Programming
    Replies: 4
    Last Post: 07-29-2008, 01:29 PM
  2. failure to import external C libraries in C++ project
    By nocturna_gr in forum C++ Programming
    Replies: 3
    Last Post: 12-02-2007, 03:49 PM
  3. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 08:26 AM
  4. ras.h errors
    By Trent_Easton in forum Windows Programming
    Replies: 8
    Last Post: 07-15-2005, 10:52 PM
  5. pointer to array of objects of struct
    By undisputed007 in forum C++ Programming
    Replies: 12
    Last Post: 03-02-2004, 04:49 AM

Tags for this Thread