the only way I know to get the link bandwidth is
$link set bandwidth_
which I think returns the bandwidth assigned to the link as a characteristic
of the link...
I also thought of using a LossMonitor and measuring the number of received bytes_ but I am not sure if I can use it to get the total number for bytes arring at node , it can be attached to an Agent not to a node , is that right?
any help is appreciated
Thanks
Ashraf
You could write a simple awk script to calculate the link bandwidth every
1 sec and calculate the utlization. It shouldnt be mroe than a couple of
lines of code.Debo
On Wed, 28 Feb 2001, Ashraf Matrawy wrote:
>
>
> I am trying to plot a link utilization like the example
>
> test-suite-intserv.tcl
>
> using the method trace-util.
>
>
> In the example, it is defined as a method of an Intserv link
>
> #Set up queue-monitor to measure link utilization and drop rates
> set f [open out.tr w]
> set f1 [open eee.e w]
> set qmon [$ns monitor-queue $n0 $n1 $f1]
> set l01 [$ns link $n0 $n1]
> $l01 set qBytesEstimate_ 0
> $l01 set qPktsEstimate_ 0
> $l01 set sampleInterval_ 0
> $ns at 100 "$l01 trace-util 0.5 $f"
>
>
> I am trying to plot the link utilization for a link that is not an
> Intserv
> link. I searched the list archive and the tcl examples of NS , nothing
> useful
>
> any help is really appreciated
>
>
> Thanks a lot
>
>
> Ashraf
>
>
-- ---------------------------------------------- Ashraf Matrawy, Ph.D. Candidate Broadband Networks Laboratory Department of Systems and Computer Engineering Carleton University Phone : 613-520-2600 ext. 2913 --------------------------------------------------------------------------- "For every problem, there exists a solution that is simple, neat and WRONG"