Weighted fair queueing (WFQ) is a data packet scheduling used by network schedulers. WFQ is both a packet based implementation of the generalized processor sharing policy (GPS), and a natural generalization of fair queuing (FQ): whereas FQ shares the links capacity in equal subparts, WFQ allows to specify, for each flow, which fraction of the capacity will be given.