44.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-warmup <int>
Sets at what time output should start. Only used with set outfile.

$tmix set-TCP <protocol>
Sets the TCP type for all connections in the client and server clouds. In one-way mode, Tahoe is the default; for Full-TCP, Reno is the default. When this is set, the actual agent class used is ``Agent/TCP/FullTcp/<protocol>'' for Full-TCP, and ``Agent/TCP/<protocol>'' for one-way TCP.

$tmix set-sink <name>
Sets the type of TCPSink used. The default value is ``default'', meaning Agent/TCPSink. When this is set, the actual class used is ``Agent/TCPSink/<name>''. This setting is for one-way TCP; it has no effect in Full-TCP mode.

$tmix set-agent-type <name>
Possible values are ``full'' and ``one-way''. The default mode is Full-TCP. This affects the types of the TCP agents used: see the set-TCP and set-sink commands.

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

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

$tmix set-fin-time <int>
Tmix adds a FIN to any connection vector that does not have one. This parameter sets when the FIN is sent. The default is 1 second (1000000 us) after the last send.

$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 check-oneway-closed
Check to see if the final ACK has returned before recycling the one-way TCP agent.

$tmix set-prefill-t <int>
Accelerate the start of connections that begin in [0, prefill_t_] (s)

$tmix set-prefill-si <int>
Prefill start interval. Connections starting between [0,prefill_t_] instead start [(prefill_t_-prefill_si_), prefill_t_]

$tmix set-scale <int>
Scale rate for arrival rate adjustment.

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

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

Tom Henderson 2011-11-05