[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Queue Monitor
ok, to use the qmon use
#Set up queue-monitor to measure link utilization and drop rates
set f [open out.tr w]
set qmon [$ns monitor-queue $n0 $n1 $f]
debo
On Sun, 9 Sep 2001, Abbas Makki wrote:
> I am not using flow monitor. Sowhy should I use flow ID ?
>
>
> >Date: Sun, 9 Sep 2001 12:39:18 -0700 (PDT)
> >From: Debojyoti Dutta <ddutta@ISI.EDU>
> >To: Abbas Makki <abbas.makki@kcl.ac.uk>
> >Subject: Re: [ns] Queue Monitor
> >MIME-Version: 1.0
> >
> >ok, i just checked some of my scripts.
> >
> >one way is to do as you said ......
> >
> >the other way that i have done is to write
> >
> > set slink [$ns_ link $n(1) $n(2)]
> > set fmon [$ns_ makeflowmon Fid]
> > $ns_ attach-fmon $slink $fmon
> >
> >thats accurate becuase it works !
> >
> >debo
> >
> >On Sun, 9 Sep 2001, Abbas Makki wrote:
> >
> >> Hello
> >>
> >> Please complete the statement. May be my documentation is not complete.
> >>
> >> >Date: Sun, 9 Sep 2001 12:31:13 -0700 (PDT)
> >> >From: Debojyoti Dutta <ddutta@ISI.EDU>
> >> >To: Abbas Makki <abbas.makki@kcl.ac.uk>
> >> >Subject: Re: [ns] Queue Monitor
> >> >MIME-Version: 1.0
> >> >
> >> >fmon is a qmon
> >> >
> >> >set fmon [$ns monitor .....
> >> >
> >> >debo
> >> >
> >> >On Sun, 9 Sep 2001, Abbas Makki wrote:
> >> >
> >> >> Hello Debo
> >> >>
> >> >> Is this without having to set a queue monitor between two nodes. Meant
> >> without
> >> >> having to state
> >> >>
> >> >> set qmon_xxx [$ns monitor-queue $rtr $dst .....etc ] ???
> >> >>
> >> >> Do I have to set a monotor-queue ??
> >> >>
> >> >> Is fmon the name of a file ?
> >> >>
> >> >> Thank you for your prompt reply.
> >> >>
> >> >>
> >> >> >Date: Sun, 9 Sep 2001 12:15:45 -0700 (PDT)
> >> >> >From: Debojyoti Dutta <ddutta@ISI.EDU>
> >> >> >To: Abbas Makki <abbas.makki@kcl.ac.uk>
> >> >> >cc: ns-users@ISI.EDU
> >> >> >Subject: Re: [ns] Queue Monitor
> >> >> >MIME-Version: 1.0
> >> >> >
> >> >> >suppose fmon is a q monitor
> >> >> >
> >> >> >> 1) get the number of packet arrivals
> >> >> >
> >> >> >set pkts [$fmon set parrivals_]
> >> >> >
> >> >> >also:
> >> >> >
> >> >> >set notDroped [$fmon set pdepartures_]
> >> >> >
> >> >> >set drops [$fmon set pdrops_]
> >> >> >
> >> >> >> 2) get the estimated rate
> >> >> >
> >> >> >you can do packets arrived / time ....... also depends on how you define
> >> >> >estimated rate ......
> >> >> >
> >> >> >debo
> >> >> >
> >> >>
> >> >>
> >> >
> >>
> >>
> >
>
>