[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Q:Add Scheduling Algorithm into Diffserv module
u can add ur algo. as a method of dsREDQueue class and call it from the
deque() method with a condition if ur sched. is used
ie,
if (schedMode==schedModeyoursched.)
{
yourselectmethod()
}
else selectQueueToDeque()
or can directly add
ur code in the existing
selectQueueToDeque() method adding a condition as:
if (schedMode==schedModeyoursched.)
{
add your code
}
either way should be fine..
Renjish.
"Man who drive like hell is bound to get there!"
confucius
On Fri, 2 Mar 2001, Xiang wrote:
> Hi,
> Thank you for your reply. I have checked dsred.cc before and I want to know
> if I could select the next packet from another program called
> 'virtualclock.cc' or I must write my sourcecode into dsred.cc?
> Thanks
> Xiang
> ----- Original Message -----
> From: "Kaleelazhicathu R R Kumar" <[email protected]>
> To: "Xiang" <[email protected]>
> Cc: "Debojyoti Dutta" <[email protected]>; <[email protected]>
> Sent: Thursday, March 01, 2001 2:32 PM
> Subject: Re: [ns] Q:Add Scheduling Algorithm into Diffserv module
>
>
> >
> > u need to take a look at the file dsred.cc.
> > The method selectQueueToDeque() selects the next queue to be dequeued.
> > u may have to add ur scheduling algo. over there...
> > Renjish.
> >
> >
> >
> >
> > "Man who drive like hell is bound to get there!"
> > confucius
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Wed, 28 Feb 2001, Xiang wrote:
> >
> > > Hi,
> > > Thank you for your help. But which chpter should I read for this
> prepose?
> > > Thanks.
> > > Xiang
> > > ----- Original Message -----
> > > From: "Debojyoti Dutta" <[email protected]>
> > > To: "Xiang" <[email protected]>
> > > Cc: <[email protected]>
> > > Sent: Thursday, March 01, 2001 7:06 AM
> > > Subject: Re: [ns] Q:Add Scheduling Algorithm into Diffserv module
> > >
> > >
> > > > Have you looked at the current snapshot of the ns manual ?
> > > >
> > > > Debo
> > > >
> > > > On Tue, 27 Feb 2001, Xiang wrote:
> > > >
> > > > > Hi,
> > > > > I am using Nortel's Diffserv model in ns-2.1b6. This model allow us
> to
> > > > > choose the scheduling mode between queues through "setSchedularMode"
> > > methd.
> > > > > But currently it only suport WRR,WIRR,RR and PRI. I want to add
> another
> > > > > scheduling mode called "VirtualClock". I have written VirtualClock
> > > source
> > > > > code, and it works fine in NS (not within Diffserv module). Now
> could
> > > > > anybody tell me how to add this scheduling algorithm into Diffserv
> > > module?
> > > > > Thanks.
> > > > > Xiang Yu
> > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> >
>
>