[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] link utilization
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
>
>