[Paper Review] Flash: Efficient Dynamic Routing for Offchain Networks
Flash proposes a hybrid routing protocol for offchain blockchain networks that differentiates between large (elephant) and small (mice) payments to balance path optimality and probing overhead. It uses a modified max-flow algorithm for elephant payments to ensure capacity and a precomputed routing table for mice payments, achieving up to 2.3x higher payment success volume than state-of-the-art methods with lower overhead.
Offchain networks emerge as a promising solution to address the scalability challenge of blockchain. Participants directly make payments through a network of payment channels without the overhead of committing onchain transactions. Routing is critical to the performance of offchain networks. Existing solutions use either static routing with poor performance or dynamic routing with high overhead to obtain the dynamic channel balance information. In this paper, we propose Flash, a new dynamic routing solution that leverages the unique characteristics of transactions in offchain networks to strike a better tradeoff between path optimality and probing overhead. By studying the traces of real offchain networks, we find that the payment sizes are heavy-tailed, and most payments are highly recurrent. Flash thus differentiates the treatment of elephant payments from mice payments. It uses a modified max-flow algorithm for elephant payments to find paths with sufficient capacity, and strategically routes the payment across paths to minimize the transaction fees. Mice payments are directly sent by looking up a routing table with a few precomputed paths to reduce probing overhead. Testbed experiments and data-driven simulations show that Flash improves the success volume of payments by up to 2.3x compared to the state-of-the-art routing algorithm.
Motivation & Objective
- To address the scalability limitations of blockchain by improving routing efficiency in offchain payment networks.
- To reduce probing overhead in dynamic offchain routing while maintaining high path optimality.
- To exploit the heavy-tailed distribution and recurrence of payment sizes in real offchain networks for smarter routing.
- To design a decentralized, low-overhead routing solution that outperforms static and centralized dynamic routing approaches.
Proposed method
- Analyzes real offchain network traces to identify that payment sizes are heavy-tailed and most payments are recurrent.
- Classifies payments into elephant (large, infrequent) and mice (small, frequent) for differentiated routing treatment.
- Applies a modified max-flow algorithm to find multiple high-capacity paths for elephant payments, minimizing failure due to insufficient balance.
- Employs a precomputed routing table with a few shortest paths for mice payments to drastically reduce probing overhead.
- Uses a hybrid routing strategy where elephant payments are dynamically optimized and mice payments are statically routed based on precomputed paths.
- Evaluates the approach via testbed experiments and data-driven simulations on 50-node and 100-node topologies.
Experimental results
Research questions
- RQ1How can routing in offchain networks effectively balance path optimality and probing overhead?
- RQ2To what extent do payment size distribution and recurrence patterns affect routing performance?
- RQ3Can differentiating routing strategies for large and small payments improve overall success volume and reduce overhead?
- RQ4How does a hybrid routing approach compare to static and centralized dynamic routing in real-world offchain network workloads?
Key findings
- Flash improves payment success volume by up to 2.3x compared to the state-of-the-art routing algorithm in simulations.
- On average, Flash reduces processing delay by 19.4% and 19.2% for 50-node and 100-node topologies, respectively, compared to Spider.
- Flash is 26.4% and 26% faster in processing mice payments than Spider on 50-node and 100-node topologies, respectively, due to reduced probing overhead.
- Flash achieves higher success volume than SP (a static routing baseline) by 36.3% and 14.8% on average for 50-node and 100-node topologies, respectively.
- The success ratio of Flash is slightly lower than Spider (by 5.6% and 8.8% on average) due to lack of load balancing, but this is offset by superior throughput and lower overhead.
- The routing table for mice payments reduces probing overhead significantly, enabling faster settlement for high-frequency small payments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.