Weighted_round_robin Weighted_round_robin

Weighted round robin - Definition

Weighted round robin (WRR) is a best-effort connection scheduling discipline. It is the simpliest emulation of generalized processor sharing (GPS) discipline. While GPS serves infinitesimal amount of data from each nonempty connection, WRR serves a number of packets for each nonempty connection (number = normalized(weight / mean packet size) ).

To obtain normalized set of weights a mean packet size must be known. Only then WRR correctly emulates GPS. It is the best to know this parameter in advance. But that's really uncommon in IP networks so it has to be estimated which may be in practice quite hard (in terms of good GPS approximation). Another problem with WRR is that in a scale of one round WRR doesn't provide fair link sharing.

WRR mechanism (pseudo-code):

//calculate number of packets to be served each round by connections

for (each connection)
   connection[i].normalized_weight = connection[i].weight / connection[i].mean_packet_size;

min = findSmallestNormalizedWeight();

for (each connection)
   connection[i].packets_to_be_served = connection[i].normalized_weight / min;

// main loop

while (true)
{
   for (each non-empty connection)
      for (j=0; j< min(connection[i].packets_to_be_served, connection[i].packets_waiting); j++)
         servePacket (connection[i].getPacket());
}

There's a modified version of WRR called deficit round robin (DRR) which is able to properly handle packets of different size without knowing their mean size of each connection in advance.

There are more effective scheduling disciplines which handles both of these problems mentioned above (e.g. weighted fair queuing (WFQ)).

See also: scheduling disciplines

Example Usage of Weighted

nevadaozonelv: NevadaOzone.com Professional O3 Ozone Weighted Tuning Fork + Activator - eBay ... http://bit.ly/62u6YL
ColinPeters: After a few misadventures, "The leg was amputated and, Weighted with a heavy stone, secretly buried in the depths of the Hudson."
treesahquiche: @wilw Candidate Obama wasn't Weighted down by a puppet Senate controlled by the corporate kleptocracy.
Copyright 2009 WordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us
This article is licensed under the GNU Free Documentation License. It uses material from the this Wikipedia article.