next up previous contents index
Next: 7 Scale Up: 43. Tmix: Internet Traffic Previous: 43.5 Example   Contents   Index

43.6 Commands at a Glance

The following commands on the Tmix class can be accessed from OTcl:

[new Tmix]
Creates a new Tmix instance.

$tmix start
Start Tmix

$tmix stop
Stop Tmix

$tmix set-init <node>
Set the initiator node on which the connection initiator applications will be run

$tmix set-acc <node>
Set the acceptor node on which the connection acceptor applications will be run

$tmix set-outfile <filename>
Outputs the results of the active-connections and total-connections commands to the specified file instead of standard error

$tmix set-cvfile <filename>
Set the connection vector file from which to start and run connections

$tmix set-ID <int>
Set the NS id for this object

$tmix set-run <int>
Set the run number so that the RNGs used for the random variables will use the same substream (see Chapter 25 on RNG for more details).

$tmix set-debug <int>
Set the debugging level:

$tmix set-warmup <int>
Sets at what time output should start. Only used with set outfile.

$tmix set-TCP <protocol>
Sets the TCP type (Reno, Newreno, or Sack) for all connections in the client and server clouds - Reno is the default

$tmix set-pkt-size <int>
Size of packets to construct and send (TCP MSS)

$tmix set-step-size
Number of connection vector to read at a time from the supplied connection vector file

$tmix active-connections
Output the number of currently active connections to standard error or the outfile if it has been set.

$tmix total-connections
Output the total number of completed connections to standard error or the outfile if it has been set.

Tmix_DelayBox Commands

The following commands on the Tmix_DelayBox class can be accessed from OTcl (note that Tmix_DelayBox inherits commands available for DelayBox):

[$ns Tmix_DelayBox]
Creates a new Tmix_DelayBox node.

$tmix_db set-cvfile <filename>
Set the connection vector file from which to read the delays and loss rates for each flow

$tmix_db set-lossless
Do not induce any losses

$tmix_db set-debug <int>
Set the debugging level


next up previous contents index
Next: 7 Scale Up: 43. Tmix: Internet Traffic Previous: 43.5 Example   Contents   Index
2009-01-06