172 lines
3.3 KiB
HTML
172 lines
3.3 KiB
HTML
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Weighted Round Robin (WRR)</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
|
REL="HOME"
|
|
TITLE="Linux Advanced Routing & Traffic Control HOWTO"
|
|
HREF="index.html"><LINK
|
|
REL="UP"
|
|
TITLE="Advanced & less common queueing disciplines"
|
|
HREF="lartc.adv-qdisc.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="VC/ATM emulation"
|
|
HREF="lartc.adv-qdisc.vc-atm.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="Cookbook"
|
|
HREF="lartc.cookbook.html"></HEAD
|
|
><BODY
|
|
CLASS="SECT1"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
SUMMARY="Header navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>Linux Advanced Routing & Traffic Control HOWTO</TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="lartc.adv-qdisc.vc-atm.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
>Chapter 14. Advanced & less common queueing disciplines</TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="lartc.cookbook.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="SECT1"
|
|
><H1
|
|
CLASS="SECT1"
|
|
><A
|
|
NAME="LARTC.ADV-QDISC.WRR"
|
|
></A
|
|
>14.8. Weighted Round Robin (WRR)</H1
|
|
><P
|
|
>This qdisc is not included in the standard kernels but can be downloaded from
|
|
<A
|
|
HREF="http://wipl-wrr.dkik.dk/wrr/"
|
|
TARGET="_top"
|
|
>�</A
|
|
>.
|
|
Currently the qdisc is only tested with Linux 2.2 kernels but it will
|
|
probably work with 2.4/2.5 kernels too.</P
|
|
><P
|
|
>The WRR qdisc distributes bandwidth between its classes using the weighted
|
|
round robin scheme. That is, like the CBQ qdisc it contains classes
|
|
into which arbitrary qdiscs can be plugged. All classes which have sufficient
|
|
demand will get bandwidth proportional to the weights associated with the classes.
|
|
The weights can be set manually using the <TT
|
|
CLASS="LITERAL"
|
|
>tc</TT
|
|
> program. But they
|
|
can also be made automatically decreasing for classes transferring much data.</P
|
|
><P
|
|
>The qdisc has a built-in classifier which assigns packets coming from or
|
|
sent to different machines to different classes. Either the MAC or IP and
|
|
either source or destination addresses can be used. The MAC address can only
|
|
be used when the Linux box is acting as an ethernet bridge, however. The
|
|
classes are automatically assigned to machines based on the packets seen.</P
|
|
><P
|
|
>The qdisc can be very useful at sites such as dorms where a lot of unrelated
|
|
individuals share an Internet connection. A set of scripts setting up a
|
|
relevant behavior for such a site is a central part of the WRR distribution.</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
SUMMARY="Footer navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="lartc.adv-qdisc.vc-atm.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
ACCESSKEY="H"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="lartc.cookbook.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>VC/ATM emulation</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="lartc.adv-qdisc.html"
|
|
ACCESSKEY="U"
|
|
>Up</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Cookbook</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |