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

[altq 1040] Re: Diffserv scheduler



hi,


For diffserv scheduling  implementatio when do we use _rmc_wrr_dequeue_next
or _rmc_prr_dequeue_next . Can I go ahead and use only _rmc_wrr_dequeue_next
and discard of _prr_dequeue_next . In which scenario do we use
_prr_dequeue_next .. Is each ethernet driver enabled to a particular type of
dequeueing i.e either priority or weighted round robin.



mbuf_t *
rmc_dequeue_next(ifd, mode)
 struct rm_ifdat *ifd;
 int mode;
{
 if (ifd->queued_ >= ifd->maxqueued_)
  return (NULL);
 else if (ifd->wrr_)
  return (_rmc_wrr_dequeue_next(ifd, mode));
 else
  return (_rmc_prr_dequeue_next(ifd, mode));
}




Thanks and Regards,
Saroj















Kenjiro Cho wrote:

> saroj.tripathy@wipro.com wrote:
> > I  have to implement a sceduler for Diffserv .Can the same
> > altq_Rmclass.c be used for the scheduler in this case. How will it take
> > care of calling different scheduling algorithms (PRR,WRR) in case of
> > EF,AF
>
> diffserv EF PHB can be realized by any queueing discipline able to
> guarantee the assigned rate.  In ALTQ, PRIQ, H-FSC and CBQ can be
> used.
>
> diffserv AF PHB can be realzied by combining a marker (trTCM or tswTCM
> in ALTQ) and a buffer management mechanism (RIO in ALTQ).
> RIO can be used with PRIQ, H-FSC and CBQ.
>
> -Kenjiro

-----------------------------------------------------------------------------------------------------------------------
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:mailadmin@wipro.com and delete this mail
from your records.
------------------------------------------------------------------------------------------------------------------------