Back to search

University of Alberta

DoS-Resilient Onion Message Routing in the Lightning Network

Abstract

dc:description.abstract

Onion messages (OMs) are private messages sent between nodes in the Lightning Network (LN) using onion routing. While they are intended to enable interesting applications such as reusable invoices, refunds, and asynchronous payments, OMs may also be used for unintended applications such as streaming data or spam. LN nodes can impose a rate limit on forwarding OMs to mitigate this. However, if not carried out carefully, the rate limit can expose the network to a denial of service (DoS) attack, where an adversary may disrupt or degrade the OM service by flooding the network. This DoS threat is particularly concerning because, under current specifications, a single OM can traverse hundreds of nodes, affecting all the nodes on its way. In addition, the adversary can hide their true identity thanks to the privacy-preserving nature of onion routing. We propose a simple solution to address this threat with two main components. The first component limits the distance over which OMs can travel. For this purpose, we introduce two methods: a hard leash and a soft leash. The hard leash strictly limits how far OMs can travel, while the soft leash makes it exponentially harder for OMs to traverse long distances. While the first method requires changes in the message format, the second method can be easily adopted without altering OMs. The second component of our solution consists of a set of simple yet effective forwarding and routing rules. We demonstrate that when these rules and the proposed leashes are applied, an adversary cannot significantly degrade the onion messaging service, assuming that the adversary does not control a significant fraction of funds in the network.

Degree

thesis:*
Name thesis:degree_name
Master of Science
Level thesis:degree_level
Master's
Discipline thesis:degree_discipline
Computer Engineering
Grantor
University of Alberta
Year dc:date.issued
2024

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Bashiri, Amin
Advisor dc:contributor.advisor
  • Khabbazian, Majid (Electrical and Computer Engineering)

Subjects

dc:subject × 3

Rights

dc:rights
Statement dc:rights
  • This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law.
Language dc:language.iso
en

Identifiers

dc:identifier.*
DOI dc:identifier.doi
https://doi.org/10.7939/r3-bcen-2n54

Chain of custody

source
Harvested from
University of Alberta
Base URL
era.library.ualberta.ca/oai
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Bashiri, Amin. DoS-Resilient Onion Message Routing in the Lightning Network. Master's thesis, University of Alberta, 2024. https://doi.org/10.7939/r3-bcen-2n54