Check multicast is working with omping in Linux

What is omping? From the man page

The omping is program which uses User Datagram Protocol to determine if computer is able to send and/or receive IP unicast and multicast or Broadcast packets from the network. It’s designed to be used in very similar way aping(8) and also has some features of the fping(8) command. Where ping(8) and omping differ is in who replies. In ping(8) replies are sent by the operating system and with omping another instance of omping sends the reply. This mean that omping must be running on all computers to test sending/receiving IP multicast/broadcast.

To check multicast communication between three servers- server1, server2 and server3, run the following command on all three.

omping server1 server2 server3

To check with a particular multicast address

omping server1 server2 server3 -m multicast_address

Example:

[root@node1 ~]# omping node1 node2 -m 239.255.254.24
node2 : waiting for response msg
node2 : waiting for response msg
node2 : waiting for response msg
node2 : waiting for response msg
node2 : waiting for response msg
node2 : waiting for response msg
node2 : waiting for response msg
node2 : waiting for response msg
node2 : waiting for response msg
node2 : joined (S,G) = (*, 239.255.254.24), pinging
node2 :   unicast, seq=1, size=69 bytes, dist=2, time=0.507ms
node2 : multicast, seq=1, size=69 bytes, dist=3, time=2.591ms
node2 : multicast, seq=1 (dup), size=69 bytes, dist=2, time=3.147ms
node2 :   unicast, seq=2, size=69 bytes, dist=2, time=0.595ms
node2 : multicast, seq=2, size=69 bytes, dist=2, time=0.716ms
node2 :   unicast, seq=3, size=69 bytes, dist=2, time=0.647ms

[root@node2 ~]# omping node1 node2 -m 239.255.254.24
node1 : waiting for response msg
node1 : joined (S,G) = (*, 239.255.254.24), pinging
node1 :   unicast, seq=1, size=69 bytes, dist=2, time=0.559ms
node1 :   unicast, seq=2, size=69 bytes, dist=2, time=0.605ms
node1 : multicast, seq=2, size=69 bytes, dist=2, time=0.743ms
node1 :   unicast, seq=3, size=69 bytes, dist=2, time=0.609ms
node1 : multicast, seq=3, size=69 bytes, dist=2, time=0.791ms
node1 :   unicast, seq=4, size=69 bytes, dist=2, time=0.604ms
node1 : multicast, seq=4, size=69 bytes, dist=2, time=0.718ms
node1 :   unicast, seq=5, size=69 bytes, dist=2, time=0.613ms
node1 : multicast, seq=5, size=69 bytes, dist=2, time=0.708ms
node1 :   unicast, seq=6, size=69 bytes, dist=2, time=0.737ms
node1 : multicast, seq=6, size=69 bytes, dist=2, time=1.569ms
node1 :   unicast, seq=7, size=69 bytes, dist=2, time=1.867ms
node1 : multicast, seq=7, size=69 bytes, dist=2, time=2.674ms
node1 :   unicast, seq=8, size=69 bytes, dist=2, time=0.595ms
node1 : multicast, seq=8, size=69 bytes, dist=2, time=0.720ms
node1 :   unicast, seq=9, size=69 bytes, dist=2, time=0.565ms
node1 : multicast, seq=9, size=69 bytes, dist=2, time=0.684ms
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s