[zeromq-dev] multiple udp sender/receiver on same machine bugfix

Pavol Malosek malosek at fastmq.com
Tue Sep 8 10:55:03 CEST 2009


Hello Robert,

Yes you were right, I have checked OpenPGM sources and multicast loopback is explicitly disabled - unless enabled by api call pgm_transport_set_multicast_loop.
Check out (pull) commit bfcdf78 it should work now.

# ./perf/tests/zmq/pgm_local_lat localhost "lo;226.0.0.1:7500" eth1 1 1
local_exchange network: zmq.pgm://lo;226.0.0.1:7500
iface to connect to remote_exchange: eth1
message size: 1 [B]
roundtrip count: 1
Start pgm_remote_lat on remote host and press enter to continue.

Your average latency is 151.00 [us]

# ./perf/tests/zmq/pgm_remote_lat localhost eth0 "eth2;224.0.0.1:7500" 1 1
iface to connect to local_exchange: eth0
remote_exchange network: zmq.pgm://eth2;224.0.0.1:7500
message size: 1 [B]
roundtrip count: 1

I have added your name into AUTHORS list - credits section.
Thanks!

malo


  ----- Original Message ----- 
  From: Robert Zhang 
  To: Pavol Malosek 
  Sent: Monday, September 07, 2009 5:38 PM
  Subject: Re: [zeromq-dev] multiple udp sender/receiver on same machine bugfix


  Try the samething with pgm without udp. Also, try a real interface like eth0 instead of lo

  On Sep 7, 2009, at 4:01 AM, "Pavol Malosek" <malosek at fastmq.com> wrote:


    Hello Robert,

    Maybe I have missed something but SO_REUSEADDR is now set by default for UDP sockets (OpenPGM 1.2.14)
    Multicast loopback is enabled by default on unix sockets.

    I gave a try to 0MQ from the head
    $./perf/tests/zmq/pgm_local_thr localhost "udp:lo;226.0.0.1:7500" 1 1
    local_exchange network: zmq.pgm://udp:lo;226.0.0.1:7500
    message size: 1 [B]
    message count: 1
    Start pgm_remote_thr on remote host and press enter to continue.

    Press enter when pgm_remote_thr exits.

     
    $ ./perf/tests/zmq/pgm_remote_thr localhost lo 1 1
    iface to connect to local_exchange: eth1
    message size: 1 [B]
    message count: 1
    Your average throughput is 333333 [msg/s]
    Your average throughput is 2 [Mb/s]

     
    For me it seems working out of the box.

    malo
      ----- Original Message ----- 
      From: Robert Zhang 
      To: Pavol Malosek 
      Sent: Friday, September 04, 2009 6:03 PM
      Subject: Re: [zeromq-dev] multiple udp sender/receiver on same machine bugfix


      understood. Just to point out my suggested patch is still necessary for local loopback support for PGM and UDP.

      thanks,
      robert


      On Thu, Sep 3, 2009 at 5:34 AM, Pavol Malosek <malosek at fastmq.com> wrote:

        Hello,

        In recent commit 276c82f libpgm has been updated to version 1.2.14 which
        uses
        SO_REUSEADDR for UDP sockets by default.

        Thank you for all the feedback!

        malo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20090908/df0856e1/attachment.htm>


More information about the zeromq-dev mailing list