[논문 리뷰] An Empirical Analysis of the Nostr Social Network: Decentralization, Availability, and Replication Overhead
본 논문은 Nostr 생태계의 최초 대규모 측정을 제시하며, Relay 복제에 의한 강한 분산성과 높은 게시물 가용성을 보여주지만, 상당한 복제 오버헤드와 Relay 지속가능성 문제도 존재한다; 또한 복제 및 검색 오버헤드를 줄이기 위한 두 가지 설계 혁신을 제안한다.
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 릴레이의 분산성과 가용성 평가.
- 게시물 복제량과 이에 따른 저장공간 및 대역폭 영향 정량화.
- 릴레이 지속가능성 및 운영자에 대한 인센티브 평가.
- 복제 오버헤드 및 검색 낭비를 줄이기 위한 설계 혁신 제안.
제안 방법
- 2023-07-01부터 2023-12-31까지 17.8 million posts, 1.5 million users, and 712 relays의 데이터셋을 구축한다.
- 텍스트 노트(kind-1), 사용자 프로필(kind-0), 팔로잉 목록(kind-3), 및 zap 이벤트(kind-9735)를 수집하기 위해 712개의 릴레이를 크롤링한다.
- 릴레이, AS, 국가별 게시물/사용자 분포를 분석하여 분산화를 평가한다.
- nostr.watch API를 사용해 2023-10-01부터 2024-12-31까지 릴레이 가용성을 모니터링한다.
- 상위 릴레이/AS를 제거하여 릴레이 장애 하에서 게시물 가용성을 시뮬레이션하고 남은 가용성을 평가한다.
- 게시물당 릴레이/AS 수로 복제 지표와 검색 중복성을 계산한다.
- 게시물 복제 및 검색 오버헤드를 줄이기 위한 두 가지 설계 혁신을 제안하고 효과를 평가한다.
- zap 트랜잭션 및 유료-relay 요금을 사용해 릴레이 수익과 지속가능성을 추정한다.
실험 결과
연구 질문
- RQ1릴레이 수준에서 게시물 및 사용자 분포 측면으로 Nostr이 릴레이 간 분산화가 얼마나 이루어져 있는가? AS 및 국가별로 분포는 어떤가?
- RQ2릴레이 가용성은 어떠하며, 릴레이 지속가능성은 가용성에 어떤 영향을 미치는가?
- RQ3릴레이 간 게시물 복제의 규모와 오버헤드는 어느 정도이며, 복제가 검색 효율성에 어떤 영향을 미치는가?
- RQ4설계 혁신이 게시물 가용성을 저하시키지 않으면서 복제 및 검색 오버헤드를 줄일 수 있는가?
주요 결과
- 게시물과 사용자는 릴레이에 걸쳐 매우 분산되어 있으며, 93%의 게시물이 여러 릴레이에 존재하고 178 relays (>5%의 게시물)을 호스팅하는 등 상당한 콘텐츠 공유를 보인다.
- 릴레이는 44개 국가와 151개 AS에 걸쳐 분포한다; 52%의 국가는 릴레이가 두 대 미만이지만 상위 국가는 게시물 및 사용자 점유율이 큰 편이다(예: 미국은 게시물의 85%를 호스트).
- 일부 릴레이는 40% 이상의 시간 동안 가동 중지 상태이며, 고장 릴레이가 확인된다; dead 릴레이를 제거하면 90%의 릴레이에 대해 가용성이 80% 이상으로 개선된다.
- 대부분의 무료 릴레이는 6개월 운영 비용을 충당할 수 없으며, 더 높은 입장료가 일부 유료 릴레이에만 도움이 된다; 전반적으로 많은 릴레이가 안정적 수익보다는 애호가와 기부(zap 수입)에 의존한다.
- 게시물은 많은 릴레이와 AS에 걸쳐 복제되며, 게시물당 평균 34.6개의 릴레이와 12.4개의 AS를 차지해 가용성을 높이지만 저장 공간 및 대역폭 오버헤드는 크다.
- 게시물 가용성은 강건하게 유지되나(사용자 활동 상위 50개 릴레이를 제거한 후 약 90% 수준), 게시물 기준으로 상위 30개 릴레이를 제거하면 가용성이 하락하여 게시물 중심의 중앙화에 민감한 것으로 나타났다.
- 저자들은 복제 오버헤드와 검색 낭비를 줄이기 위한 두 가지 혁신을 제안했고, 이들이 불필요한 복제와 검색을 크게 줄이면서도 전반적인 가용성을 저하시키지 않는다는 것을 보였다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.