2 Replies Latest reply on Jun 30, 2011 6:39 AM by Sam4219

    The network latency issue with Cirrus

    Sam4219

      Recently I've done with some simple test using Cirrus and then trying to apply it onto my project.

      Before using Cirrus, each client hear from each other through the broadcast message from a socket server. Now I make them joining the same group to talk directly.

       

      After test and verfied the function, then I added a logic to calculate the network latency like this:

      1. A client is picked up as the group host.

      2. It will call group.post() to send the Ping message every 10 sec.

      3. Each client handles the post messge by response group.sendToNearest() to the host.

      4. The host calculate the latency using the send time and receive time.

       

      Actually, these two clients are on the same computer, but the result latency is around 500 to 1000 milisecond which is very slow and confused me a lot.

       

      Would anyone please explain this to me? Or what could be the problem that I did wrong and not noticed.

       

      Thanks,

      Sam