TL;DR
Several users share one limited resource, such as the capacity of a radio channel or a network link (its capacity is measured in bits per second, for example Mbit/s, megabits per second). Max-min fairness hands out the resource so that the user who has the least gets as much as possible. No user can receive more without taking from someone who already has less or the same.
The rule is computed by "water filling": give everyone an equal share, cap anyone whose need is smaller than that share, and split the leftover among the rest.
Where you'll see it: in how a network link divides bandwidth among flows, in how a base station divides power or time among phones, and as the fairness target in many resource-allocation papers.
This lesson is not about: what is fair in a moral sense. It defines one precise, mathematical kind of fairness.
Intuition
Pouring water into containers
Imagine a tank of water that must be poured into several containers, each with a different maximum height. Pour evenly into all containers at once. A small container fills up and stops taking water; you then keep pouring into the others, still evenly. The water level rises until either the tank is empty or every container is full.
The result is the max-min allocation. The small containers are filled to their limit, and the large ones share what remains equally. Nobody with a small container could be given more without taking water from someone already at a lower level.
Why it exists
Suppose a 10 Mbit/s link is shared by three video calls (each call is a "flow": a steady stream of data between two endpoints). One call needs only 2 Mbit/s, the other two could use 8 each. The naive "split equally" gives each about 3.3 Mbit/s. But the first call is then given more than it needs, and the spare capacity is wasted. The fair answer is 2 for the first call, and the other two split the remaining 8 between them.
Max-min fairness is the rule that does this automatically: it never wastes capacity a user can use, and it never lets a user with a small need be squeezed.
flowchart TD
A["Start: all users get an equal share of the link"] --> B{"Does any user need less than the share?"}
B -- Yes --> C["Give that user exactly what it needs and remove it"]
C --> D["Split the leftover capacity equally among the rest"]
D --> B
B -- No --> E["Every remaining user gets the equal share. Done"]
The math
Let there be users. User wants at most (its demand). Let be the total capacity of one shared resource. An allocation is a vector where is what user receives.
An allocation is feasible when for every user and .
A feasible allocation is max-min fair if you cannot increase any without decreasing some that is already less than or equal to . Equivalently, the smallest allocation is as large as possible, then the second smallest is as large as possible given that, and so on.
The single-link formula
For one shared link with demands , the max-min fair allocation has a simple form. There is a single number , called the water level, such that
where is chosen so that the total is exactly the capacity (or is the largest demand, if everyone is satisfied):
The left side is a non-decreasing function of , so can be found by increasing it until the sum reaches . Users with are fully satisfied. Users with all receive exactly .
Why the formula gives max-min fairness
Take any user and try to raise above . If , the user already has all it wants, so there is nothing to raise. Otherwise , and every unit you add must come from another user. All the capacity is in use, and every user's rate is either or its own smaller demand, so any user you take from has a rate at most . That is exactly what the definition forbids: raising would lower some with . So no improvement is possible in the max-min sense.
Worked examples
Demands are and capacity .
- Try . The sum is . This is below 6, so the water level must rise.
- Try . The sum is . This equals the capacity, so .
- The allocation is .
Interpretation: the user who wanted 1 gets all of it. The user who wanted 2 gets all of it. The user with the largest need gets the leftover 3. No user can be raised without lowering one with a smaller share.
Demands are and capacity . An equal split would give each. That is too much for user 1.
- Try . The sum is . Below 10, so raise the level.
- Try . The sum is . This equals the capacity, so .
- The allocation is .
Interpretation: user 1 is satisfied at 2, user 2 is satisfied at 3, and user 3 absorbs all the leftover, receiving 5. The total is exactly 10, so no capacity is wasted.
In a network, a flow may cross several links. Take three flows on two links, each with capacity 10 and 4 respectively:
- Flow uses both link 1 and link 2.
- Flow uses only link 1.
- Flow uses only link 2.
The constraints are (link 1) and (link 2).
- Raise , and together, all to the same rate . Link 2 limits this first: gives .
- At , link 2 is full. Flows and both use link 2, so they are frozen at and .
- Flow is the only one still growing. It is limited by link 1: , so .
- The allocation is .
Interpretation: flow does not share link 2, so it gets the leftover of link 1 that the others cannot use. Flows and are equally limited by the tighter link 2. This is how a bottleneck link determines the rates of all the flows that cross it.
Tradeoffs and failure modes
Max-min fairness is strict about the worst-off user, which is its strength and its weakness.
| Situation | What goes wrong | Better choice |
|---|---|---|
| Users value capacity very differently | The rule looks only at rates, not at how much each user benefits from extra capacity | Weighted max-min, or a utility-based rule |
| You want to maximise total throughput | Max-min can waste potential throughput when users have very different bottlenecks | Maximise the sum of rates, subject to the constraints |
| Users have different priorities or prices | Equal treatment ignores that some users pay more | Weighted fair share, or [[utility-function |
| Many link constraints, large network | Computing the allocation by hand is slow | Iterative algorithms that raise rates and freeze bottlenecks, which are a form of Constrained Optimization |
A common practical trap is confusing max-min fairness with equal shares. Equal shares ignore demand; max-min fairness does not. A second trap is forgetting that a flow crossing several links is limited by the tightest one, as in Example 3.
Max-min fairness can be built from a sequence of linear programs: first maximise the smallest rate, freeze the users who are stuck at that rate, then maximise the smallest rate among the rest, and repeat. This is one way to see the rule as an optimisation problem. For the single-link case above, the water-level solution is the only allocation that satisfies the definition.
History
The idea of comparing allocations by their worst-off member goes back to John Rawls's A Theory of Justice (1971), a work of political philosophy that argues for a "maximin" principle: judge arrangements by how they treat the worst-off member. Its use for sharing computing and communication resources came later. The water-filling picture is a related idea from engineering: the same pouring image is used for allocating transmit power across frequency channels, though that problem has a different formula.
In data networking, max-min fairness became a standard reference point for how flows share bottleneck links, a link that is the tightest limit on a flow's rate, as packet networks grew and the question of what "fair" meant for competing traffic became practical. Later work considered proportional fairness and weighted variants, which trade some worst-case protection for higher total throughput.
Recap
- Max-min fairness gives the poorest user as much as possible, and never wastes capacity a user can use.
- For one resource, the allocation is with the water level set so the total equals the capacity.
- Across several links, rates are raised together until a link fills, then the flows on that link are frozen, and the process repeats.
This idea feeds into resource allocation in wireless systems, where it is used as a fairness target, for example in cell-free MIMO designs where many users share the same access points.
Check yourself
QuestionRecall: what does the max-min fair allocation do with a user whose demand is smaller than the water level?Show answer
It gives that user exactly its demand. The formula caps the user at when , and the user is fully satisfied. The leftover is shared by the users still below their demand.
QuestionComputation: capacity 9, demands (1, 4, 6). Find the max-min fair allocation.Show answer
Try : . Below 9. Try : . So and the allocation is . User 1 is satisfied at 1, user 2 is satisfied at 4, and user 3 receives the leftover 4.
QuestionWhy: explain why an equal split of capacity is not max-min fair when one user needs less than its equal share.Show answer
An equal split gives the small-demand user more than it needs. The surplus is wasted, because that user cannot use it, while larger users could have used it. Max-min fairness caps the small user at its demand and gives the surplus to the others. Only then is no user's share improvable without lowering a poorer one.
QuestionApplied: three flows share a link of capacity 12. Flow A needs 2, flow B needs 5, and flow C needs no limit. What does each flow get?Show answer
Try : , below 12. Try : . So . Flow A gets 2, flow B gets 5, and flow C gets 5. Flow C has no cap, so it is held only by the water level and receives , the same as B.