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

Steven McCoy steven.mccoy at miru.hk
Tue Jun 4 17:56:32 CEST 2013


On 4 June 2013 07:17, Emmanuel TAUREL <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"
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/20130604/05d75963/attachment.htm>


More information about the zeromq-dev mailing list