MulticastTest - GigaSpaces CLI

  GigaSpaces 5.X

Documentation Home
Quick Start Guide
Release Notes

Previous release

  Search Here
Searching GigaSpaces Platform 5.X Documentation

                                               

Summary: Used to determine whether multicast is available.

Overview

The MulticastTest utility should be used to determine whether multicast is available.
It determines whether a multicast socket can be created and a Request announcement can be sent.

It is still possible that multicast does not work outside the tested host.
Make sure your network and machines running GigaSpaces are configured to have multicast enabled.
See the Multicast Configuration section for details on how to enable multicast.
 
Usage: MulticastTest [options] 
 Options:
           -help             This help screen
           -sender|receiver  Sender or receiver, specify one
           -ba addr          Binding address. Useful for multihomed hosts.
           -ma addr          Multicast address
           -p port           Multicast port that sends to
           -t ttl            Time to live for multicast packets
           -s size           Send buffer size
           -verbose          Print out the received messages
 

This multicast utility serves to check multicast communication between sender and receiver running on different machines. You should run this utility from two different shells, where one should run from the "sender" machine and the other from the "receiver" machine. The sender machine should display the round trip reply time from all receiver machines. If multicast is configured properly on your machine and network you should get the following message at your sender machine:

 
Reply from 192.138.120.56:5558 bytes=100 time=1.539ms

For multi-homed network card machine use multicastTest -sender -ba [network card IP]
.

To configure Jini in a multi network environment see the Multi Network Card Configuration Section.

Example:
Run the following at the sender machine:

multicastTest -sender -ba localhost -verbose

Run the following at the receiver machine:

multicastTest -receiver -ba localhost -verbose

The sender should display the following:

c:\GigaSpacesEE5.0\bin>multicastTest.bat -sender -ba localhost  -verbose
JAVA_HOME environment variable is set to D:\JDK\jdk1.5.0_04 in "<GigaSpaces Root>\bin\setenv.bat"
Environment set successfully from c:\GigaSpacesEE5.0\bin\\..
Starting Multicast-Sender...
Started MulticastSocket=/224.0.0.150:5558, ack-reply port: 5559, ttl=1, bind interface=/127.0.0.1, eventSize=100
 
---------- [SENDER MACHINE HOST] NETWORK INTERFACE INFO -----------
Names: lo / MS TCP Loopback interface
        Address: 127.0.0.1
Names: eth0 / Broadcom NetXtreme Gigabit Ethernet - Packet Scheduler Miniport
        Address: 192.168.10.178
Names: eth1 / Bluetooth LAN Access Server Driver - Packet Scheduler Miniport
        Address: 169.254.111.108
---------- [SENDER MACHINE HOST] NETWORK INTERFACE INFO -----------
Reply from 127.0.0.1:5558 bytes=100 time=2.869079ms
Reply from 127.0.0.1:5558 bytes=100 time=0.807924ms
Reply from 127.0.0.1:5558 bytes=100 time=0.744508ms
Reply from 127.0.0.1:5558 bytes=100 time=0.876089ms

The receiver should display the following:

c:\GigaSpacesEE5.0\bin>multicastTest.bat -receiver -ba localhost  -verbose
JAVA_HOME environment variable is set to D:\JDK\jdk1.5.0_04 in "<GigaSpaces Root>\bin\setenv.bat"
Environment set successfully from c:\GigaSpacesEE5.0\bin\\..
Starting Multicast-Receiver...
 
---------- [RECEIVER MACHINE HOST] NETWORK INTERFACE INFO -----------
Names: lo / MS TCP Loopback interface
        Address: 127.0.0.1
Names: eth0 / Broadcom NetXtreme Gigabit Ethernet - Packet Scheduler Miniport
        Address: 192.168.10.178
Names: eth1 / Bluetooth LAN Access Server Driver - Packet Scheduler Miniport
        Address: 169.254.111.108
---------- [SENDER MACHINE HOST] NETWORK INTERFACE INFO -----------
Received from [sender=127.0.0.1:5559] packet size: 100 bytes
Received from [sender=127.0.0.1:5559] packet size: 100 bytes
Received from [sender=127.0.0.1:5559] packet size: 100 bytes
Received from [sender=127.0.0.1:5559] packet size: 100 bytes

Wiki Content Tree


Your Feedback Needed!

We need your help to improve this wiki site. If you have any suggestions or corrections, write to us at techw@gigaspaces.com. Please provide a link to the wiki page you are referring to.

Labels

 
(None)