Skip to main content
QUICK REVIEW

[论文解读] Dependability in Aggregation by Averaging

Paulo Jesus, Carlos Baquero|arXiv (Cornell University)|Nov 30, 2010
Distributed systems and fault toleranceComputer Science参考文献 20被引用 16
一句话总结

本文在异步、消息丢失和节点故障等现实条件下,揭示了基于平均值聚合算法(特别是 Push-Sum、Push-Pull Gossip 和 Distributed Random Grouping)中的关键可靠性问题。提出两种改进的 Push-Pull Gossip 协议(Push-Pull Back Cancellation 和 Push-Pull Ordered Wait),以解决消息交错问题,从而在降低收敛速度的代价下恢复正确性。

ABSTRACT

Aggregation is an important building block of modern distributed applications, allowing the determination of meaningful properties (e.g. network size, total storage capacity, average load, majorities, etc.) that are used to direct the execution of the system. However, the majority of the existing aggregation algorithms exhibit relevant dependability issues, when prospecting their use in real application environments. In this paper, we reveal some dependability issues of aggregation algorithms based on iterative averaging techniques, giving some directions to solve them. This class of algorithms is considered robust (when compared to common tree-based approaches), being independent from the used routing topology and providing an aggregation result at all nodes. However, their robustness is strongly challenged and their correctness often compromised, when changing the assumptions of their working environment to more realistic ones. The correctness of this class of algorithms relies on the maintenance of a fundamental invariant, commonly designated as "mass conservation". We will argue that this main invariant is often broken in practical settings, and that additional mechanisms and modifications are required to maintain it, incurring in some degradation of the algorithms performance. In particular, we discuss the behavior of three representative algorithms Push-Sum Protocol, Push-Pull Gossip protocol and Distributed Random Grouping under asynchronous and faulty (with message loss and node crashes) environments. More specifically, we propose and evaluate two new versions of the Push-Pull Gossip protocol, which solve its message interleaving problem (evidenced even in a synchronous operation mode).

研究动机与目标

  • 揭示在非理想网络环境中部署时,基于平均值聚合算法中的关键可靠性缺陷。
  • 分析三种代表性算法(Push-Sum、Push-Pull Gossip 和 Distributed Random Grouping)在异步、消息丢失和节点崩溃情况下的行为。
  • 指出质量守恒这一基本不变量在实践中经常被违反,从而破坏正确性。
  • 提出并评估两种改进的 Push-Pull Gossip 协议,以解决其在同步环境中也存在的消息交错问题。
  • 证明容错机制虽会降低性能,但在实际部署基于平均值的算法时是必不可少的。

提出的方法

  • 提出 Push-Pull Back Cancellation:一种机制,节点在发送推送消息后,忽略所有传入消息,直到收到对应的拉取消息,通过使用占位消息来保持状态。
  • 引入 Push-Pull Ordered Wait:一种缓冲机制,将主动操作期间接收到的推送消息排队,并基于节点 UID 建立全序关系,以防止循环等待和死锁。
  • 利用节点的全序(基于 UID)限制推送-拉取操作仅作用于 ID 更高的节点,从而防止等待图中出现循环依赖。
  • 使用仿真环境比较原始协议与增强协议之间的收敛速度和消息开销。
  • 从收敛精度和通信成本两个方面,将两种新协议与原始的 Push-Pull Gossip 协议进行评估。
  • 分析消息丢失和节点故障对平均值算法正确性的影响,强调质量守恒的破坏。

实验结果

研究问题

  • RQ1在异步、消息丢失和节点崩溃等实际网络条件下,基于平均值的聚合算法表现如何?
  • RQ2为何 Push-Pull Gossip 的正确性即使在同步环境中也会因消息交错而失败?
  • RQ3在故障和异步环境中,何种机制可恢复平均值算法中的质量守恒不变量?
  • RQ4额外的容错机制如何影响平均值算法的收敛速度和通信开销?
  • RQ5Push-Pull Gossip 协议能否被增强,以确保正确性而不造成过多性能损失?

主要发现

  • 原始的 Push-Pull Gossip 协议即使在同步环境中,也因消息交错导致收敛失败,从而破坏质量守恒不变量。
  • Push-Pull Back Cancellation 机制通过在主动推送-拉取操作期间防止干扰,成功恢复了正确性,但代价是执行了占位消息交换。
  • Push-Pull Ordered Wait 协议通过允许所有消息贡献被处理,避免了通信浪费,从而实现了比 Back Cancellation 更快的收敛速度。
  • 两种增强协议在异步和故障环境下均能恢复正确性,但与原始算法相比收敛速度更慢。
  • Push-Pull Ordered Wait 协议的消息开销与原始协议相当,表明通信成本几乎没有下降。
  • 本研究证实,质量守恒在实践中极为脆弱,因此必须引入额外机制,才能实现在真实分布式系统中可靠的聚合。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。