From source-files :
Weighted Round Robin scheduler. Written by Christian Worm Mortensen, worm@diku.dk. Introduction ============ This module implements a weighted round robin queue with build-in classifier. The classifier currently map each MAC or IP address (configurable either MAC or IP and either source or destination) to different classes. Each such class is called a band. Whan using MAC addresses only bridged packets can be classified other packets go to a default MAC address. Each band has a weight value, where 00, then every time a packet is transmitted, val value is incremented by: decr* *penalfact. If penalfact<0, then every time a packet is transmitted, the weight1.val value is decremented by: decr* * *(-penalfact) This all makes it possible to give penalty to machines transferring much data.