[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] How to det actual virtual queue size in Nortel's Diffserv?



Hi,
Thank you for your help. I've done the following things:
1. Add function redQueue::getVirtualLength()  into dsredq.cc:A

    int redQueue::getVirtualLength(int prec) {

       return(qParam_[prec].qlen);
    }

2. Add following line into dsREDQueue::command( ) in dsred.cc:

     if (strcmp(argv[1], "getVirtualLength") ==0) {
                Tcl& tcl = Tcl::instance();
                 tcl.resultf("%f",
redq_[atoi(argv[2])].getVirtualLength(atoi(argv[3])));
                 return(TCL_OK);
        }
I want to use TCL command : "$dsredq getVirtualLenth 0 0" to get queue
length of virtual queue 0 in physical queue 0 in anytime I want. But when I
run TCL script,  I got result 0 all through the simulation time. I don't
know why. Could you help me?
Thank you very much!
Xiang

Kaleelazhicathu R R Kumar wrote:

> try binding the virtual queue length variable qParam_[prec].qlen  and
> write it to a file using the tcl script...that should do..
>
> Renjish.
>
> If politicians and scientist were lazier, how much happier we should all
> be.
> --Evelyn Waugh
>
> On Tue, 3 Apr 2001, Xiang wrote:
>
> > Hi,
> > I am using Nortel's Diffserv module to do some experiments, I want to
> > get the actual (real time) virtual queue size in my experiment, How can
> > I get it ? Could anybody help me?
> > Thanks!
> > Xiang
> >
> >
> >