Price of anarchy for M/M/1 and M/G/1 queueing delay functions #
In Roughgarden's topology-independent selfish routing framework ([Rou03], Sections 5.2
and 5.3), link latencies model queueing delays with capacity (expected service rate) u > 0 and
traffic flow x ∈ [0, u):
- M/M/1 delay functions ([Rou03], Section 5.2, p. 19):
mm1Latency u x = (u - x)⁻¹, the mean delay of a single queue with Poisson arrivals at ratexand exponentially distributed service times of rateu. - M/G/1 delay functions ([Rou03], Section 5.3, p. 20):
mg1Latency u σ x = 1 / u + x * (1 + σ ^ 2 * u ^ 2) / (2 * u * (u - x)), the Pollaczek–Khinchine expected waiting-plus-service delay for a service-time distribution of mean1 / uand standard deviationσ ≥ 0(recoveringmm1Latency u xwhenσ = u⁻¹andx ≠ u).
Outside [0, u), Lean's real division returns 0 at x = u and negative values for x > u;
every routing theorem in this module keeps the capacity constraint edgeFlow < u explicit
(either edgewise or via total demand ∑ k, rate k ≤ R_max < u_min ≤ u e).
Because neither class contains constant functions ([Rou03], Remark 5.4, p. 20), matching
lower bounds cannot use two-link Pigou networks with a constant edge. Instead, we instantiate the
single-commodity union-of-paths construction (NonatomicCongestionGame.unionOfPaths and
NonatomicCongestionGame.exists_unionOfPaths_lt_cost from
CslibFrontier.GameTheory.Congestion.InhomogeneousPigou, following [Rou03], Lemma 4.8
and Theorem 4.9, pp. 16–17) with the same queueing latency function ℓ on every edge, giving exact
iff characterizations of the worst-case price of anarchy for both M/M/1 (Proposition 5.3) and
arbitrary M/G/1 families (Proposition 5.5).
Main definitions #
Cslib.GameTheory.mm1Latency,Cslib.GameTheory.mg1Latency: M/M/1 and M/G/1 queueing latency functions.Cslib.GameTheory.mm1Bound,Cslib.GameTheory.mg1Bound: the exact price-of-anarchy bounds of [Rou03], Propositions 5.3 and 5.5.
Main results #
Cslib.GameTheory.mg1Latency_inv_eq_mm1Latency,Cslib.GameTheory.mg1Bound_inv_eq_mm1Bound: M/G/1 specializes to M/M/1 atσ = u⁻¹.Cslib.GameTheory.mg1_pigou_ineq,Cslib.GameTheory.mg1_pigou_eq,Cslib.GameTheory.mm1_pigou_ineq: exact edgewise Pigou inequalities and attainment aty = u - √(u (u - x)).Cslib.GameTheory.NonatomicCongestionGame.IsWardrop.cost_le_mg1Bound_mul,Cslib.GameTheory.NonatomicCongestionGame.IsWardrop.cost_le_mg1Bound_mul_of_sum_rate_le,Cslib.GameTheory.NonatomicCongestionGame.exists_mg1_lt_cost,Cslib.GameTheory.NonatomicCongestionGame.mg1Bound_le_iff([Rou03], Proposition 5.5): exact M/G/1 price-of-anarchy upper bound and union-of-paths tightness.Cslib.GameTheory.NonatomicCongestionGame.IsWardrop.cost_le_mm1Bound_mul,Cslib.GameTheory.NonatomicCongestionGame.IsWardrop.cost_le_mm1Bound_mul_of_sum_rate_le,Cslib.GameTheory.NonatomicCongestionGame.exists_mm1_lt_cost,Cslib.GameTheory.NonatomicCongestionGame.mm1Bound_le_iff([Rou03], Proposition 5.3): exact M/M/1 price-of-anarchy bound(1 + √(u_min / (u_min - R_max))) / 2and union-of-paths tightness.
References #
Queueing latency functions and exact PoA bounds #
The M/M/1 queueing delay function with service rate (capacity) u > 0 and arrival rate
x ∈ [0, u) ([Roughgarden2003], Section 5.2, p. 19): mm1Latency u x = (u - x)⁻¹. Outside
[0, u), Lean's real inverse returns 0 at x = u and negative values for x > u; theorems
using this function assume 0 ≤ x < u.
The M/G/1 queueing delay function with expected service rate u > 0, service-time standard
deviation σ ≥ 0, and arrival rate x ∈ [0, u) ([Roughgarden2003], Section 5.3, p. 20):
mg1Latency u σ x = 1 / u + x * (1 + σ ^ 2 * u ^ 2) / (2 * u * (u - x)). At σ = u⁻¹
(exponential service times) this coincides with mm1Latency u x for all x ≠ u. Outside [0, u),
Lean's real division returns 1 / u at x = u and smaller values for x > u; theorems using this
function assume 0 ≤ x < u.
The exact M/M/1 price-of-anarchy bound of [Rou03], Proposition 5.3 (p. 20), for
minimum capacity u and maximum flow/demand r < u: (1 + √(u / (u - r))) / 2.
The exact M/G/1 price-of-anarchy bound of [Rou03], Proposition 5.5 (p. 21), for
service rate u, standard deviation σ, and maximum flow/demand r < u:
(1 + √(u / (u - r))) * (2 u + r (σ² u² - 1)) / (4 u + (u + r - √(u (u - r))) (σ² u² - 1)).
At σ = u⁻¹ (exponential service times), mg1Latency equals mm1Latency away from x = u.
mm1Latency u x is positive on [0, u) (in fact for all x < u).
mg1Latency u σ x is positive for 0 < u and 0 ≤ x < u.
Edgewise M/G/1 Pigou inequality: for 0 < u, 0 ≤ x < u, and y < u,
x * mg1Latency u σ x ≤ mg1Bound u σ x * (y * mg1Latency u σ y + (x - y) * mg1Latency u σ x).
Attainment of the M/G/1 Pigou inequality: at y = u - √(u (u - x)) ∈ [0, x], the
edgewise inequality mg1_pigou_ineq holds with equality.
Edgewise M/M/1 Pigou inequality: for 0 ≤ x < u and y < u,
x * mm1Latency u x ≤ mm1Bound u x * (y * mm1Latency u y + (x - y) * mm1Latency u x).
Upper bounds on the price of anarchy for M/G/1 and M/M/1 networks #
Every edge flow of a feasible flow is bounded by the sum of all commodity demand rates.
M/G/1 price-of-anarchy upper bound (headroom form) ([Rou03], Section 5.3):
if every edge e has M/G/1 latency mg1Latency (u e) (σ e) with 0 < u e, f is a Wardrop
equilibrium with G.edgeFlow f e ≤ R_max < u e, g is a feasible flow with G.edgeFlow g e < u e,
and mg1Bound (u e) (σ e) R_max ≤ α on every edge, then G.cost f ≤ α * G.cost g.
M/G/1 price-of-anarchy upper bound under bounded total demand ([Rou03],
Proposition 5.5, p. 21): if every edge e has M/G/1 latency mg1Latency (u e) (σ e) with
R_max < u e, the sum of all commodity rates is at most R_max, and
mg1Bound (u e) (σ e) R_max ≤ α on every edge, then every Wardrop equilibrium f costs at most
α times every feasible flow g.
M/M/1 price-of-anarchy upper bound (headroom form) ([Rou03], Section 5.2):
if every edge e has M/M/1 latency mm1Latency (u e) with u_min ≤ u e, 0 ≤ R_max < u_min,
f is a Wardrop equilibrium with G.edgeFlow f e ≤ R_max, and g is a feasible flow with
G.edgeFlow g e < u e, then G.cost f ≤ mm1Bound u_min R_max * G.cost g.
M/M/1 price-of-anarchy upper bound ([Rou03], Proposition 5.3, p. 20):
if every edge has M/M/1 latency mm1Latency (u e) with u_min ≤ u e and the sum of all
commodity demand rates is at most R_max < u_min (0 ≤ R_max), then every Wardrop equilibrium f
costs at most (1 + √(u_min / (u_min - R_max))) / 2 times every feasible flow g.
Union-of-paths networks and exact tightness without constant functions #
Union-of-paths tightness for M/G/1 queueing latencies ([Rou03], Proposition 5.5,
p. 21): for 0 < R_max < u, σ : ℝ, and every β < mg1Bound u σ R_max, there exists a
single-commodity union-of-paths network of rate R_max whose every edge has latency
mg1Latency u σ, a Wardrop equilibrium f, and a feasible flow g with 0 < G.cost g and
β * G.cost g < G.cost f.
Exact price of anarchy for M/G/1 queueing delay functions ([Rou03],
Proposition 5.5, p. 21): for 0 < R_max < u_min and any collection L of M/G/1 parameters
(u, σ) with u_min ≤ u (vacuously for L = ∅), a factor β bounds the price of anarchy of
every multicommodity network with edge latencies in L and total demand at most R_max if and
only if mg1Bound u σ R_max ≤ β for every (u, σ) ∈ L.
Union-of-paths tightness for M/M/1 queueing latencies ([Rou03], Proposition 5.3,
p. 20): for 0 < R_max < u_min and every β < mm1Bound u_min R_max, there exists a
single-commodity union-of-paths network of rate R_max whose every edge has latency
mm1Latency u_min, a Wardrop equilibrium f, and a feasible flow g with 0 < G.cost g and
β * G.cost g < G.cost f.
Exact price of anarchy for M/M/1 queueing delay functions ([Rou03],
Proposition 5.3, p. 20): for 0 < R_max < u_min, a factor β bounds the price of anarchy of
every multicommodity network with M/M/1 capacities at least u_min and total demand at most
R_max if and only if (1 + √(u_min / (u_min - R_max))) / 2 ≤ β.