Weighted round robin

Weighted round robin

Weighted round robin (WRR) is a best-effort connection scheduling discipline. Each packet flow or connection has its own packet queue in a network interface card. It is the simplest emulation of generalized processor sharing (GPS) discipline. While GPS serves infinitesimal amount of data from each nonempty queue, WRR serves a number of packets for each nonempty queue (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 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 min = find smallest weight for each flow f f.packets_to_be_served = f.weight / min // main loop loop for each non-empty flow queue f min(f.packets_to_be_served, f.packets_waiting).times do servePacket f.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)).

ee also

* scheduling discipline
* [http://neosmart.net/blog/2008/weighted-round-robin-dns-solutions/ A simple explanation of weight round-robin distribution]


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Round-robin scheduling — Round robin (RR) is one of the simplest scheduling algorithms for processes in an operating system, which assigns time slices to each process in equal portions and in order, handling all processes without priority. Round robin scheduling is both… …   Wikipedia

  • Round robin (disambiguation) — Round robin may mean:* Round robin (taking turns) * Round robin tournament (sports) * Round robin scheduling (computer science) * Deficit round robin (computer networking) * Weighted round robin (computer networking) …   Wikipedia

  • Deficit round robin — DWRR redirects here. For the radio station in Philippines, see DWRR FM. Deficit round robin (DRR),[1] also deficit weighted round robin (DWRR), is a modified weighted round robin scheduling discipline. DRR was proposed by M. Shreedhar and G.… …   Wikipedia

  • Weighted fair queuing — (WFQ) is a data packet scheduling technique allowing different scheduling priorities to statistically multiplexed data flows. WFQ is a generalization of fair queuing (FQ). Both in WFQ and FQ, each data flow has a separate FIFO queue. In FQ, with… …   Wikipedia

  • Weighted-Fair-Queuing — (WFQ, engl. „gewichtetes faires Einreihen“) ist eine geläufige Technik, um Datenstaus in Warteschlangen, wie sie unter anderem in Routern eingesetzt werden, zu vermeiden. Das primäre Ziel beim Weighted Fair Queuing ist auch wie beim Fair Queuing… …   Deutsch Wikipedia

  • WRR — Weighted Round Robin (Computing » General) Weighted Round Robin (Computing » Networking) * Water Resources Research (Academic & Science » Universities) * World Rivers Review (Community » Media) * World Radiometric Reference (Governmental » NASA)… …   Abbreviations dictionary

  • Fair queuing — is a scheduling algorithm used in computer and telecommunications networks to allow multiple packet flows to fairly share the link capacity. The advantage over conventional first in first out (FIFO) queuing is that a high data rate flow,… …   Wikipedia

  • Scheduling (computing) — This article is about processes assignment in operating systems. For other uses, see Scheduling (disambiguation). Scheduling is a key concept in computer multitasking, multiprocessing operating system and real time operating system designs.… …   Wikipedia

  • Сертификации Cisco — Эта статья или раздел нуждается в переработке. Пожалуйста, улучшите статью в соответствии с правилами написания статей. Сертификаци …   Википедия

  • Generalized Processor Sharing — (GPS)cite journal|first=A. K.|last=Parekh|coauthors=Gallager, R. G.|title=A Generalized Processor Sharing approach to Flow control in Integrated Services Networks: The Single Node Case|journal=Proceedings of IEEE Infocom|year=1992] was developed… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”