[论文解读] An Empirical Analysis of the Nostr Social Network: Decentralization, Availability, and Replication Overhead
本文提供了对 Nostr 生态系统的首次大规模测量,显示出强烈的去中心化和通过中继复制实现的高帖子可用性,但存在显著的复制开销和中继可持续性挑战;并提出两项设计创新以减少复制和检索开销。
Nostr is a decentralized social network launched in 2022, emphasizing high availability and censorship resistance. Since launching, it has gained substantial attention, boasting over 100 million posts. Nostr resembles a micro-blogging service like Twitter but with distinct underlying infrastructure. Nostr introduces the concept of relays, which act as open storage servers that receive, store, and distribute user posts. Each user is uniquely identified by a public key, ensuring authenticity of posts through digital signatures. Users are able to securely replicate and retrieve posts through multiple relays, which frees them from single-server reliance and enhances post availability, thereby attempting to make Nostr censorship resistant. However, this aggressive design also presents challenges, such as the overhead required for extensive post replication and the difficulty in obtaining a global view of post replication locations, which remain unexplored or unaddressed. This necessitates a thorough understanding of the Nostr ecosystem; therefore, we conduct the first large-scale study on this topic. Our study focuses on two key aspects: Nostr relays and post replication strategies. We find that Nostr achieves superior decentralization compared to traditional Fediverse applications. However, relay availability remains a challenge, where financial sustainability (particularly for free-to-use relays) emerges as a contributing factor. We also find that the replication of posts across relays enhances censorship-resistance but introduces significant overhead. To address this, we propose two improvements: one to control the number of post replications, and another to reduce the overhead during post retrieval. Via a data-driven evaluation, we demonstrate their ability to reduce overhead without negatively impacting post availability under the simulated scenarios.
研究动机与目标
- 在大规模数据集中评估 Nostr 中继的去中心化和可用性。
- 量化帖子复制及其对存储和带宽的影响。
- 评估中继的可持续性和对运营者的激励。
- 提出设计创新以降低复制开销和检索浪费。
提出的方法
- 构建一个包含1780万条帖子、150万用户、712个中继的数据集,覆盖时间为 2023-07-01 至 2023-12-31。
- 对712个中继进行抓取,以收集文本笔记(kind-1)、用户资料(kind-0)、关注列表(kind-3)以及 Zap 事件(kind-9735)。
- 分析按中继、自治系统(AS)和国家/地区分布的帖子/用户,以评估去中心化程度。
- 使用 nostr.watch API 监测中继在 2023-10-01 至 2024-12-31 的可用性。
- 通过移除顶级中继/AS 以模拟中继故障,评估在故障情况下的剩余可用性。
- 计算帖子复制指标(每条帖子所对应的中继/AS 数量)和检索冗余度。
- 提出两项创新设计以降低帖子复制和检索开销,并评估其效果。
- 利用 Zap 交易和付费中继费用来估算中继收入和可持续性。
实验结果
研究问题
- RQ1在中继级别,帖子和用户在不同中继、AS 和国家/地区的分布有多去中心化?
- RQ2中继的可用性特征是什么,以及中继的可持续性如何影响可用性?
- RQ3跨中继的帖子复制规模和开销有多大,复制如何影响检索效率?
- RQ4设计创新是否能在不损害帖子可用性的情况下降低复制和检索开销?
主要发现
- 帖子和用户在中继上高度分散;有 93% 的帖子在多个中继存在,178 个中继(>5% 的帖子)承载了大量内容。
- 中继分布在 44 个国家和 151 个 AS;52% 的国家/地区的中继数量少于两个,但前列国家对帖子和用户份额有显著贡献(例如美国承载了 85% 的帖子)。
- 约 20% 的中继有 downtime 超过 40% 的时间,已识别出“死亡中继”;移除死亡中继后,90% 的中继的可用性提升至>80% 的正常运行时间。
- 大多数免费中继无法覆盖六个月的运营成本,较高的入场费只是帮助了一部分付费中继;总体而言,许多中继依赖爱好者和捐赠(zap 收入)而非稳定收入。
- 帖子在多家中继和多家 AS 上进行复制,平均每条帖子涉及 34.6 个中继和 12.4 个 AS,提升了可用性但带来高额存储和带宽开销。
- 帖子可用性保持稳健(在按用户活跃度排序移除前50个中继后约为90%),但当按帖子排序移除前30个中继后可用性下降,表明对以帖子为中心的中心化存在敏感性。
- 作者提出两项创新以降低复制开销和检索浪费,并展示在不降低整体可用性的情况下可显著减少冗余复制与检索。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。