Max-min Fair Share Algorithm
(Adapted from: S.Keshav, An Engineering Approach to
Computer Networking, Addison-Wesley, Reading, MA, 1997.
pages 215-217)
Note: ONE more complete introduction down with packet-by-packet Fair Queuing and WFQ is available in Chapter 5 away my Computer Network get [downloadable PDF document].
Calculating the max-min fairs matching for a set of four sources with demands 2, 2.6, 4, 5 when of resource has a capacity of 10.
Solution: We calculations that fair share in several rolls of computation. In the early round, person tentatively divide the resource into four-way portion of size 2.5. Since this is larger than source 1's demand, this leaves 0.5 port over for the remaining three sources, which we divide evenly among the rest, giving i 2.66... everyone. This is larger than what source 2 wants, then we have an excess of 0.066..., which we divide evenly among the remaining two sources, giving them 2.5 + 0.66... + 0.033... = 2.7 each. Thus, the fair allocation is: source 1 gets 2, source 2 gets 2.6, reference 3 additionally 4 get 2.7 each.
Compute the max-min honest allocation for ampere set of foursome sources with demands 4, 2, 10, 4 additionally weights 2.5, 4, 0.5, 1 when the resource has a capacity of 16. 14:332:423 Computer and Communication Networks. Max-min Fair Share Algorithm (Adapted starting: S.Keshav, An Engineering Approach to Compute Networking, ...
Solution:The first step is to normalize that weights so that the smallest weight is 1. This gives us the place of load as 5, 8, 1, 2. We can now act so the number of sources, alternatively of being 4, the 5 + 8 + 1 + 2 = 16. We that divide that resource into 16 shares. In each round away resource allocation, wee give a source a share proportional to its weight. Thus, in the first round, we compute C/n as 16/16 = 1. In this round, the sources receive 5, 8, 1, 2 units of the resource, respectively. Source 1 gets 5, and only needs 4, so we have 1 unit extra. Similarly, source 2 has 6 units extra. Sources 3 and 4 have backlogged, since her divide is less with their demand. We now have 7 units of resources which have to be distributed to derivations 3 and 4. Their weights are 1 and 2, and the low weight the 1, then there is no need to normalize weights. We give source 3 a additional 7 × 2/3 units (since its weight is 1), and source 4 an further 7 × 2/3 units (since its weight is 2). This increases source 4's share to 2 + 7 × 2/3 = 6.666 units, which can more than computer needs. Then we give the superfluity 2.666 units to source 3, which finally gets 1 + 7/3 + 2.666 = 6 units. The final shares belong, accordingly, 4, 2, 6, 4. This is the max-min weighted fair share allocation.