Red–Blue utility and censorship resistance in peer-to-peer networks #
Danezis and Anderson [DA05] (presented in [AMNO07],
§25.4.1–§25.4.2, pp. 640–643, Equations (25.1)–(25.11)) model the trade-off between diversity and
solidarity in censorship-resistant peer-to-peer storage networks. Each node i has a preference
r_i ∈ [0, 1] for "red" resources (and b_i = 1 - r_i for "blue" resources) and derives
quadratic-in-ratio, linear-in-volume utility
U_i(R, B) = -T (R / T - r_i - 1) (R / T - r_i + 1) = T (1 - (R / T - r_i)²)
from holding T = R + B resources (Eq. (25.1)). Under discretionary storage, a node holds its
preferred mixture (r_i T, b_i T); under enforced random/DHT storage, it holds the systemwide
average mixture (r_s T, b_s T) with r_s = R / (R + B), b_s = B / (R + B) (Eq. (25.2)).
When a censor attempts to impose mixture (r_c, b_c), a node with total capacity T diverts a
defense budget t ∈ [0, T] to resist censorship, succeeding with probability P(t) and serving
the remaining T - t resources (Eqs. (25.4) and (25.7)). Under the linear survival model
P(t) = t / T (Eq. (25.5)), the optimal defense budgets t_d and t_s (Eqs. (25.6) and (25.8),
clamped to [0, T]) satisfy t_s ≤ t_d pointwise and ∑ i ∈ S, t_{si} ≤ ∑ i ∈ S, t_{di}
in aggregate (Eq. (25.11)), with the same monotonicity holding for every concave strictly
increasing survival probability P with P(0) = 0.
Notes on primary-source subtleties #
- Eq. (25.10), [AMNO07], printed p. 642: the published book prints
2 U_i(r_c, b_c) < U_i(r_c, b_c)instead of2 U_i(r_c, b_c) < U_i(r_s, b_s). Moreover, when censorship benefits a node (U_i(r_s, b_s) < U_i(r_c, b_c)), expected utility is convex rather than concave, so the unconstrained stationary ratio in Eq. (25.9) is positive (≥ T) even thought = 0uniquely maximizes utility on[0, T].linearDefenseBudget_pos_iffproves the corrected threshold0 < t_s ↔ 2 U_i(r_c, b_c) < U_i(r_s, b_s). - Equality after Eq. (25.11), printed p. 643: the prose claims
t_d = t_sholds only whenr_i = r_s(homogeneous preferences). In fact equality also occurs whenr_i ≠ r_sif both budgets clamp to0(1 / 2 ≤ U_i(r_c, b_c)) or if the censor is maximally opposed (U_i(r_c, b_c) = 0) while0 < U_i(r_s, b_s)(both equalT / 2).randomDefenseBudget_lt_discretionaryDefenseBudget_iffgives the exact strictness condition.
Main definitions #
Cslib.GameTheory.redBlueUtility: Red–Blue node utilityU_i(R, B)(Eq. (25.1)).Cslib.GameTheory.censorshipUtility: expected utility under censorship for a general survival probabilityP(Eqs. (25.4) and (25.7)).Cslib.GameTheory.linearSurvival: linear survival probabilityP(t) = t / T(Eq. (25.5)).Cslib.GameTheory.linearDefenseBudget,Cslib.GameTheory.discretionaryDefenseBudget,Cslib.GameTheory.randomDefenseBudget: optimal clamped defense budgets on[0, T](Eqs. (25.6) and (25.8)).
Main results #
Cslib.GameTheory.redBlueUtility_le_preferred,Cslib.GameTheory.redBlueUtility_eq_preferred_iff,Cslib.GameTheory.redBlueUtility_system_le_preferred: discretionary storage weakly dominates random storage (Eqs. (25.2)–(25.3)), with equality iffr_s = r_i.Cslib.GameTheory.strictConcaveOn_censorshipUtility,Cslib.GameTheory.defense_le_of_isMaxOn_censorshipUtility: for any concave strictly increasing survival curvePwithP 0 = 0, discretionary storage induces at least as large an optimal defense budget as random storage.Cslib.GameTheory.isMaxOn_censorshipUtility_linear,Cslib.GameTheory.eq_linearDefenseBudget_of_isMaxOn: exact global optimality and uniqueness oflinearDefenseBudgeton[0, T](Eqs. (25.6) and (25.8)).Cslib.GameTheory.linearDefenseBudget_pos_iff: positivity threshold0 < t* ↔ 2 u_c < u_keep(Eq. (25.9) and corrected Eq. (25.10)).Cslib.GameTheory.randomDefenseBudget_le_discretionaryDefenseBudget,Cslib.GameTheory.randomDefenseBudget_lt_discretionaryDefenseBudget_iff,Cslib.GameTheory.sum_randomDefenseBudget_le_sum_discretionaryDefenseBudget,Cslib.GameTheory.sum_randomDefenseBudget_lt_sum_discretionaryDefenseBudget: pointwise and aggregate censorship-cost dominance of discretionary over random storage (Eq. (25.11)).
References #
Red–Blue utility function (Eqs. (25.1)–(25.3)) #
Unit-volume utility U_i(p, q) = 1 - (p - r)² when p + q = 1.
A node holding one unit of its preferred mixture (r, 1 - r) attains unit utility 1.
Homogeneity of redBlueUtility in total resource volume T for any normalized mixture
p + q = 1.
For r ∈ [0, 1] and nonnegative resource counts R, B ≥ 0, redBlueUtility r R B ≥ 0.
For R + B ≥ 0, redBlueUtility r R B ≤ R + B.
Exact equality characterization for Eq. (25.3) ([AMNO07], §25.4.1,
p. 641): for positive capacity T > 0 and mixture p + q = 1, a node achieves the same utility
under (p T, q T) as under its preferred mixture (r T, (1 - r) T) if and only if p = r.
Random/DHT system-average utility inequality ([AMNO07], §25.4.1,
Eqs. (25.2)–(25.3), p. 641): with systemwide ratios r_s = R / (R + B) and b_s = B / (R + B)
(R + B ≠ 0), every node's random-storage utility is at most its discretionary utility.
General censorship-resistance expected utility and concave comparative statics #
Expected utility under censorship ([AMNO07], §25.4.2, Eqs. (25.4)
and (25.7), pp. 641–642; [DA05]): a node with capacity T and preference r_i
diverts defense effort t to resist a censor imposing (r_c, 1 - r_c); with probability P t it
retains distribution (r_keep, 1 - r_keep) over the remaining T - t resources, and with
probability 1 - P t the censor prevails.
Setting r_keep = r_i gives Eq. (25.4) (discretionary storage); setting r_keep = r_s gives
Eq. (25.7) (enforced random/DHT storage).
Reduced form of censorshipUtility via homogeneity in remaining capacity T - t.
Strict concavity of expected utility under censorship: whenever censorship strictly harms
the node (U_i(r_c, b_c) < U_i(r_keep, b_keep)) and P is concave and strictly increasing on
[0, T], censorshipUtility P T r_i r_keep r_c is strictly concave on [0, T] (hence admits at
most one optimal defense budget on [0, T]).
Pro-censor / indifferent nodes do not resist ([AMNO07], §25.4.2,
p. 642): when P 0 = 0, 0 ≤ P t on [0, T], 0 ≤ U_i(r_c, b_c), and censorship does not reduce
the node's unit utility (U_i(r_keep, b_keep) ≤ U_i(r_c, b_c)), zero defense effort t = 0
maximizes expected utility on [0, T].
General discretionary vs. random defense dominance (original generalization of
[AMNO07], §25.4.2, Eq. (25.11), pp. 641–643): for every concave strictly
increasing survival curve P on [0, T] with P 0 = 0, if 0 ≤ U_i(r_c, b_c) and the random
objective is not identically zero (0 < U_i(r_s, b_s) ∨ 0 < U_i(r_c, b_c)), then any optimal
defense effort t_s ∈ [0, T] under random storage (r_s, 1 - r_s) is at most any optimal defense
effort t_d ∈ [0, T] under discretionary storage (r_i, 1 - r_i).
Linear survival model and closed-form optimal defense budgets (Eqs. (25.5)–(25.11)) #
Clamped optimal defense budget under linear survival ([AMNO07],
§25.4.2, Eqs. (25.6), (25.8), (25.9), and corrected Eq. (25.10), pp. 642–643): equals
(T / 2) * ((2 * u_c - u_keep) / (u_c - u_keep)) when 2 * u_c < u_keep, and 0 otherwise.
Optimal discretionary defense budget t_d ([AMNO07], §25.4.2,
Eq. (25.6), p. 642), clamped to [0, T].
Optimal random/DHT defense budget t_s ([AMNO07], §25.4.2,
Eq. (25.8), p. 642), clamped to [0, T].
The optimal linear defense budget always lies in [0, T / 2] (hence in [0, T]) whenever
0 ≤ T and 0 ≤ u_c.
Positivity threshold for defense effort ([AMNO07], §25.4.2,
Eq. (25.9) and corrected Eq. (25.10), printed p. 642): for 0 < T and 0 ≤ u_c, the optimal
defense budget on [0, T] is strictly positive if and only if 2 * u_c < u_keep.
Note: the published book misprints Eq. (25.10) on p. 642 as 2 U_i(r_c, b_c) < U_i(r_c, b_c)
instead of 2 U_i(r_c, b_c) < U_i(r_s, b_s).
Global optimality of linearDefenseBudget on [0, T] ([AMNO07],
§25.4.2, Eqs. (25.5)–(25.8), p. 642): for 0 < T and 0 ≤ U_i(r_c, 1 - r_c),
linearDefenseBudget T (U_i(r_keep, 1 - r_keep)) (U_i(r_c, 1 - r_c)) maximizes
censorshipUtility (linearSurvival T) T r_i r_keep r_c over [0, T].
Uniqueness of the optimal defense budget under linear survival
([AMNO07], §25.4.2, Eqs. (25.6) and (25.8), p. 642): whenever the
objective is not identically zero (0 < U_i(r_keep, 1 - r_keep) ∨ 0 < U_i(r_c, 1 - r_c)),
linearDefenseBudget is the unique maximizer of censorshipUtility (linearSurvival T) on
[0, T].
Monotonicity of linearDefenseBudget in the retained unit utility u_keep.
Exact characterization of strict monotonicity of linearDefenseBudget in u_keep:
strict inequality holds iff 2 * u_c < u₂, u₁ < u₂, and either 0 < u_c or u₁ = 0.
Pointwise discretionary vs. random defense inequality ([AMNO07],
§25.4.2, p. 643): for every node i with r_i, r_c ∈ [0, 1] and capacity T ≥ 0, discretionary
storage induces at least as large an optimal defense budget as random storage at any r_s.
Exact strictness characterization for t_s < t_d (refining the homogeneity remark after
Eq. (25.11) in [AMNO07], §25.4.2, p. 643): for 0 < T and
r_i, r_s, r_c ∈ [0, 1], randomDefenseBudget T r_i r_s r_c < discretionaryDefenseBudget T r_i r_c
holds if and only if 2 U_i(r_c, 1 - r_c) < 1, r_s ≠ r_i, and either 0 < U_i(r_c, 1 - r_c) or
U_i(r_s, 1 - r_s) = 0.
Aggregate censorship-cost dominance (Eq. (25.11)) ([AMNO07],
§25.4.2, Eq. (25.11), p. 643; [DA05]): for any target node subset S : Finset ι,
the aggregate defense budget (censorship cost) under discretionary storage is at least that under
enforced random storage.
Strict aggregate censorship-cost advantage: if at least one targeted node i₀ ∈ S has
positive capacity T i₀ > 0, disagrees with the system ratio (r i₀ ≠ r_s), and faces an active
non-degenerate censor (2 U_{i₀}(r_c, 1 - r_c) < 1 and
0 < U_{i₀}(r_c, 1 - r_c) ∨ U_{i₀}(r_s, 1 - r_s) = 0), then discretionary storage strictly
increases aggregate censorship cost over random storage.
Homogeneous-preference equality ([AMNO07], §25.4.2, p. 643):
when every node in S shares the systemwide preference r i = r_s, discretionary and random
storage yield identical aggregate defense budgets.