NOTE: This file and all referenced files are included in the demo-ping.zip of the latest Cougaar release.
This module contains the Cougaar "ping" demos.
There are six demos:
For additional information, please see the Cougaar Overview Slides:
http://cougaar.org/docman/view.php/17/196/CougaarOverview.ppt.
The "Hello World" README is available online at:
If the agents are unable to communicate with one another, verify that both
hosts can `/bin/ping` one another, that ports 8888 and 8800 are not blocked,
and that `/bin/hostname -iv` prints the correct host names and IP addresses.
If all else fails, please contact us for additional support.
However, Node1 is configured to log detailed profiling output every 10
seconds.
The logged metrics include various Cougaar-internal metrics:
The "[throughput]" is a good overall performance metric. Here is example output:
For documentation on the other profiled metrics, please see the "profile" module
code
and
javadoc.
Contents:
The society files.
The runtime files.
The Log4j logging configuration file.
The Java source code consists of:
Installation:
Please follow the same installation steps as in the "Hello World" example,
substituting "ping" for "hello".
http://cougaar.org/cgi-bin/viewcvs.cgi/*checkout*/hello/doc/README.html?rev=1.1.1.1&cvsroot=tutorials#installation
and in the "cougaar-hello.zip" produced by the nightly build:
http://build.cougaar.org/auto/HEAD/latest_success/
Usage:
There are six demos:
cd $COUGAAR_RUNTIME_PATH
cougaar
$COUGAAR_SOCIETY_PATH/configs/PingBasicSociety.xml
PingBasicRuntime.xml
This should print:
[PingSender] - A: Sending ping 0 to B
[DOTS] - +-
[PingReceiver] - B: Responding to ping 0 from A
[DOTS] - +-
[PingSender] - A: Received response 0 from B
[PingSender] - A: Will send ping 1 to B in 5 seconds
[DOTS] - .
...
http://localhost:8800/$A/ping
cd $COUGAAR_RUNTIME_PATH
cougaar
$COUGAAR_SOCIETY_PATH/configs/PingTwoNodesSociety.xml
PingTwoNodesRuntime.xml
Node1
cd $COUGAAR_RUNTIME_PATH
cougaar
$COUGAAR_SOCIETY_PATH/configs/PingTwoNodesSociety.xml
PingTwoNodesRuntime.xml
Node2
cd $COUGAAR_RUNTIME_PATH
cougaar
$COUGAAR_SOCIETY_PATH/configs/PingBenchmarkSociety.xml
PingBenchmarkRuntime.xml
Note that the above runtime XML file has been modified to disable the
logging output.
http://localhost:8800/$A/ping
Note the high "pings-per-second" throughput, due to the below
"delayMillis=0" setting.
http://localhost:8800/metrics/agent/load
For a full listing of included metrics servlets, see:
doc/OnlineManual/MetricsService/operation.html
cd $COUGAAR_RUNTIME_PATH
cougaar
$COUGAAR_SOCIETY_PATH/configs/PingProfileSociety.xml
PingProfileRuntime.xml
Node1
cd $COUGAAR_RUNTIME_PATH
cougaar
$COUGAAR_SOCIETY_PATH/configs/PingProfileSociety.xml
PingProfileRuntime.xml
Node2
and system metrics:
[throughput] - #agent_send_count_per_second, total_send_count_per_second, agent_send_count, total_send_count,
[throughput] - 257.90, 258.10, 8190, 8205
The above throughput rates should be twice the "/ping" servlet rate, since each
ping iteration consists of a ping message and an "ack" message.
Support:
If you have any questions or comments, please:
http://cougaar.org/mailman/listinfo/cougaar-developers
cougaar-developers@cougaar.org