Package com.sun.multicast.reliable.applications.tree

TRAM tree-building simulator.

See:
          Description

Interface Summary
Members Undocumented Interface Declaration.
 

Class Summary
TreeSTPDataPacket The STPDataPacket defines the format of data packets in STP.
 

Package com.sun.multicast.reliable.applications.tree Description

TRAM tree-building simulator.

The TreeTest package is a simple GUI application that simulates a a set of network nodes building a TRAM repair tree. TreeTest can be invoked with a configuration file as an argument, or the user can manually add nodes. Once the nodes are in place, TRAM may be started. Multicast messages are displayed on the screen as expanding circles. It is recommended that this display be turned off when simulating large numbers of nodes, since it takes up extra processing time.

java com.sun.multicast.reliable.applications.tree.TreeTest [config-file]


Configuration Files

The TreeTest configuration files provide an alternative to manually placing nodes on the screen and manually adjusting the controlling parameters. Configuration files are specified as "filename.tcf". Each line of the file consists of a node type (S for sender, H for repair head, R for reluctant repair head, and M for member), followed by its coordinates on the screen. Nodes can be co-located on the same local area network by using the 'L' parameter on the lines before and after the co-located node specifications. If a configuration file is specified, TreeTest will also look for it companion parameter (.tpr) file, which specifies values for various TRAM parameters. TreeTest uses the Java Properties class to parse .tpr files. Therefore, the file format is a sequence of lines of ASCII text of the form propertyName=value.

Here are some sample files:

Sample configuration with a sender, four repair heads, and one member:

S 350 150
H 350 90
H 350 210
H 290 150
H 410 150
M 330 90  

Sample configuration with a sender, and five repair heads on a local area network:

S 350 150
L
H 310 80
H 290 100
H 330 100
H 310 120
H 370 120
L  

Sample parameter file:

tree.ttl=127
tree.beaconRate=4000
tree.beaconTTLIncrements=20
tree.haTTLIncrements=10
tree.haTTLLimit=127
tree.haInterval=4000
tree.maxMembers=10
tree.msRate=10000
tree.treeFormationPreference=HA

 



JavaTM Reliable MulticastTM Service version 1.1
Copyright (c) 2001, Sun Microsystems Laboratories, All rights reserved.