[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Some simple questions
On Wed, 14 Mar 2001, Leonidas A. Lymberopoulos wrote:
> Hello,
> I am a new user of the NS software.
> I am trying to set up a link between two nodes with a specified delay
> and bandwidth.
> I can do that with the command
>
> $ns duplex-link $n1 $n2 1Mb 10ms DropTail,
> where I can specify these parameters.
>
> I expected I could do that by having an DelayLink object instead and
> inside that object I could specify these parameters.
> How can I do that?
Take a look at simulator method simplex-link() which actually goes and
creates the link objects.
>
> Another question is how can I have a QueueObject for a specified link
> and obtain from that object
> characteristics of the queue (packets received etc).
>
See ns-manual for info on queueMonitor'ing.
> Also, can I find somewhere all the available methods that the Simulator
> class provides?
> (Like the duplex-link method before).
There isn't one place I can point you to. Most of the simulator methods
are defined in ~ns/tcl/lib/ns-lib.tcl. For others you need to grep on
"Simulator instproc" or something.
--Padma.
> Thank you.
>
> Leonidas
>
>
>
>
>
>
--
------------------------------------------------
Be true to your work, your word, and your friend.
--Thoreau
Padmaparna Haldar