Heterogeneous Gossip

Davide Frey, Rachid Guerraoui, Anne-Marie Kermarrec, Boris Koldehofe, Martin Mogensen, Maxime Monod, Vivien Quéma

Abstract

Standard gossip protocols treat every node in a network equally, an approach that fails in real-world environments characterized by heterogeneous bandwidth. This paper introduces HEAP (HEterogeneity-Aware gossip Protocol), which dynamically redistributes communication workloads based on individual node capabilities. By allowing high-capacity nodes to take on a larger share of the gossip "fanout" while maintaining a constant network-wide average, HEAP ensures high-quality video streaming and resilience even in highly skewed networks.

Introduction

Gossip (or epidemic) protocols are widely used in distributed systems due to their simplicity, scalability, and robustness. In a traditional gossip protocol, every node performs the same amount of work: upon receiving a data packet, it "infects" a fixed number of random neighbors, known as the fanout ($f$).

However, the modern internet is inherently heterogeneous. A single network may consist of high-speed data center servers alongside home users on limited ADSL connections. Forcing all nodes to handle the same traffic volume creates a "lowest common denominator" effect. Slow nodes become bottlenecks, experiencing packet drops and latency spikes, while high-speed nodes remain underutilized. This imbalance is particularly detrimental to high-bandwidth applications like live video streaming.

The HEAP Protocol

The authors propose HEAP, a protocol that moves away from uniform fanouts to a model where a node's contribution is proportional to its capability.

Dynamic Fanout Adaptation

Instead of a globally fixed fanout, each node $i$ calculates its own fanout $f_i$. The objective is to maintain a network-wide average fanout ($\bar{f}$) sufficient for connectivity (typically $\ln(n)$), while allowing individual nodes to vary their workload.

Bandwidth Estimation

To determine its appropriate workload, a node must estimate the global average bandwidth. HEAP employs a secondary, lightweight gossip protocol for bandwidth aggregation. Nodes exchange their local bandwidth capabilities, eventually converging on a reasonably accurate estimate of the network's average capacity ($\bar{b}$).

Workload Calculation

A node $i$ with bandwidth $b_i$ sets its fanout using the formula: $$f_i = \bar{f} \cdot \frac{b_i}{\bar{b}}$$ This approach effectively turns high-capacity nodes into organic "super-peers," offloading the burden from bandwidth-constrained nodes and preventing self-congestion on slow links.

Experimental Evaluation

The researchers evaluated HEAP using the PlanetLab global research network, involving 270 nodes and a 600 kbps video stream. They tested various bandwidth distributions to simulate real-world heterogeneity:

  • Moderate Distributions (ref-691 & ref-724): Three classes of nodes (2 Mbps, 768 kbps, and 256 kbps).
  • Highly Skewed Distribution (ms-691/dist1): 85% "poor" nodes (512 kbps) and 5% "rich" nodes (3 Mbps), mimicking a realistic P2P environment.

As shown in Figure 3, standard gossip protocols with fixed fanouts struggle significantly when bandwidth is skewed (dist1, dashed lines), resulting in high stream lag compared to more uniform distributions (dist2, solid lines).

Key Results

HEAP demonstrates substantial improvements across several metrics:

  • Bandwidth Utilization: In skewed scenarios, standard gossip utilized only ~48% of high-capacity nodes' bandwidth. HEAP increased this to ~88%, leveraging available resources more effectively.
  • Streaming Quality: In the difficult ms-691 scenario, standard gossip provided jitter-free video to less than 33% of high-capacity nodes. With HEAP, over 95% of all nodes—both rich and poor—received jitter-free windows.
  • Latency Reduction: HEAP significantly reduces "stream lag," the delay between data generation and reception.

In comparative testing, HEAP delivered the stream to 80% of nodes in approximately 12-13 seconds (as seen in Figure 5), whereas standard gossip required over 26 seconds in similar conditions. Furthermore, HEAP showed remarkable resilience; after a simultaneous crash of 50% of nodes, the protocol recovered almost instantly.

Conclusion and Future Work

HEAP proves that heterogeneity-aware load balancing can dramatically enhance the performance of gossip protocols in real-world networks. By treating connectivity as a budget to be spent where most effective, HEAP achieves high-quality dissemination without sacrificing decentralization.

Future work includes addressing "free-rider" incentives, where nodes might underreport bandwidth to avoid work, and investigating the potential vulnerability of the network to targeted attacks on high-capacity nodes.

Summary updated

BibTeX
@inproceedings{frey2009heterogeneous,
  author = {Davide Frey and Rachid Guerraoui and Anne-Marie Kermarrec and Boris Koldehofe and Martin Mogensen and Maxime Monod and Vivien Quéma},
  title = {{Heterogeneous Gossip}},
  booktitle = {Middleware},
  year = {2009},
  doi = {10.1007/978-3-642-10445-9\_3},
}
Figure