40 likes | 266 Views
Fairness. 10 Mb/s. 0.55 Mb/s. A. 1.1 Mb/s. 100 Mb/s. C. R 1. e.g. an http flow with a given (IP SA, IP DA, TCP SP, TCP DP). 0.55 Mb/s. B. What is the “fair” allocation: (0.55Mb/s, 0.55Mb/s) or (0.1Mb/s, 1Mb/s)?. Nick McKeown http://www.stanford.edu/~nickm. Fairness. 10
E N D
Fairness 10 Mb/s 0.55 Mb/s A 1.1 Mb/s 100 Mb/s C R1 e.g. an http flow with a given (IP SA, IP DA, TCP SP, TCP DP) 0.55 Mb/s B What is the “fair” allocation: (0.55Mb/s, 0.55Mb/s) or (0.1Mb/s, 1Mb/s)? Nick McKeown http://www.stanford.edu/~nickm EE384x
Fairness 10 Mb/s A 1.1 Mb/s R1 100 Mb/s D B 0.2 Mb/s What is the “fair” allocation? C Nick McKeown http://www.stanford.edu/~nickm EE384x
Max-Min FairnessA common way to allocate flows N flows share a link of rate C. Flow f wishes to send at rate W(f), and is allocated rate R(f). • Pick the flow, f, with the smallest requested rate. • If W(f)< C/N, then set R(f) = W(f). • If W(f) > C/N, then set R(f) = C/N. • Set N = N – 1. C = C – R(f). • If N>0 goto 1. Nick McKeown http://www.stanford.edu/~nickm EE384x
Max-Min FairnessAn example W(f1) = 0.1 1 Round 1: Set R(f1) = 0.1 Round 2: Set R(f2) = 0.9/3 = 0.3 Round 3: Set R(f4) = 0.6/2 = 0.3 Round 4: Set R(f3) = 0.3/1 = 0.3 W(f2) = 0.5 C R1 W(f3) = 10 W(f4) = 5 Nick McKeown http://www.stanford.edu/~nickm EE384x