[zeromq-dev] Zeromq - epgm transport on Red Hat 4

Emmanuel TAUREL taurel at esrf.fr
Mon Jun 10 16:04:05 CEST 2013


Hello all,

Just to tell you the end of the story.
The RHE4 host on which I tried to used ZMQ/OpenPGM is configured in a 
strange way. Instead of 2, it has 3 network interfaces: lo0, eth0 and
a dummy0 interface. The dummy0 interface had the same IP address than 
eth0. A command like "/sbin/ifconfig dummy0 0.0.0.0" solves the problem.
I am actually checking with our IT team the reason of this dummy0 interface.

Regards

Emmanuel

On 04/06/2013 17:56, Steven McCoy wrote:
> On 4 June 2013 07:17, Emmanuel TAUREL <taurel at esrf.fr 
> <mailto:taurel at esrf.fr>> wrote:
>
>     Any help appreciated. Thank's in advance
>
>
> Modify the stock remote_thr.cpp to use a ZMQ_PUB socket then define a 
> rate limit slightly higher than the default,
>
>      s = zmq_socket (ctx, ZMQ_PUB);
>     if (!s) {
>         printf ("error in zmq_socket: %s\n", zmq_strerror (errno));
>         return -1;
>     }
>
>     //  Add your socket options here.
>     //  For example ZMQ_RATE, ZMQ_RECOVERY_IVL and ZMQ_MCAST_LOOP for PGM.
>
>     int rate = 10 * 1000;
>     rc = zmq_setsockopt (s, ZMQ_RATE, (void*)&rate, sizeof (rate));
>     if (rc != 0) {
>         printf ("error in zmq_setsockopt: %s\n", zmq_strerror (errno));
>         return -1;
>     }
>
> Running the following,
>
> [steve-o at nylabdev4 perf]$ *./remote_thr 
>  "epgm://eth0;239.192.0.30:6030 <http://239.192.0.30:6030>" 100 10*
> Warn: ToS/DSCP setting requires CAP_NET_ADMIN or ADMIN capability.
>
> [steve-o at nylabdev4 perf]$ lsb_release -a
> LSB Version: 
>  :core-3.0-amd64:core-3.0-noarch:graphics-3.0-amd64:graphics-3.0-noarch
> Distributor ID: RedHatEnterpriseAS
> Description:    Red Hat Enterprise Linux AS release 4 (Nahant Update 8)
> Release:        4
> Codename: NahantUpdate8
>
> Whilst,
>
> [steve-o at nylabdev4 ~]$ *sudo /usr/sbin/tcpdump port 6030*
> Password:
> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
> listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
> 11:55:26.013107 IP nylabdev4.36877 > 239.192.0.30.6030: UDP, length 36
> 11:55:26.013439 IP nylabdev4.36877 > 239.192.0.30.6030: UDP, length 36
> 11:55:26.013444 IP nylabdev4.36877 > 239.192.0.30.6030: UDP, length 36
> 11:55:26.013498 IP nylabdev4.38468 > 239.192.0.30.6030: UDP, length 1048
> 11:55:26.113495 IP nylabdev4.36877 > 239.192.0.30.6030: UDP, length 36
> 11:55:26.213494 IP nylabdev4.36877 > 239.192.0.30.6030: UDP, length 36
> 11:55:26.313494 IP nylabdev4.36877 > 239.192.0.30.6030: UDP, length 36
> 11:55:26.413493 IP nylabdev4.36877 > 239.192.0.30.6030: UDP, length 36
> 11:55:26.513495 IP nylabdev4.36877 > 239.192.0.30.6030: UDP, length 36
> 11:55:27.813499 IP nylabdev4.36877 > 239.192.0.30.6030: UDP, length 36
>
> 10 packets captured
> 10 packets received by filter
> 0 packets dropped by kernel
>
> -- 
> Steve-o

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


More information about the zeromq-dev mailing list