Abstract
Offchain payment networks (PCNs) offer a solution to the scalability limits of blockchain protocols, yet efficient routing remains a significant challenge. This paper introduces Flash, a dynamic routing protocol that optimizes network performance by distinguishing between large "elephant" payments and small "mice" payments. Based on empirical analysis of Ripple and Bitcoin transaction traces, Flash employs a hybrid strategy: a modified max-flow algorithm for high-capacity path discovery for large transfers and a lightweight routing table for frequent small payments. Experimental results demonstrate that Flash increases transaction success volume by up to 2.3x while reducing probing overhead by over 37% compared to existing state-of-the-art solutions.
Introduction
Blockchain networks like Bitcoin face inherent scalability constraints, often limited to a few transactions per second. Offchain networks, or Payment Channel Networks (PCNs), address this by allowing users to conduct private transactions through a web of interconnected channels, only interacting with the main blockchain for channel opening and closing.
However, routing payments through these networks is complex. Unlike traditional networks with static link capacities, PCN channel balances shift with every transaction. Existing routing methods often struggle to balance accuracy and overhead. Static routing is fast but frequently fails due to outdated balance information, while dynamic routing protocols can trigger "probing storms" that overwhelm the network and increase latency. Flash addresses these issues by leveraging the specific characteristics of payment traffic.
Empirical Observations
The design of Flash is informed by two key empirical observations derived from real-world Ripple and Bitcoin transaction traces:
- Heavy-Tailed Distribution: A small fraction of transactions (less than 10%) account for the vast majority (over 94%) of the total transaction volume. These "Elephant" payments dominate network capacity usage.
- High Recurrence: Over 80% of transactions occur between pairs of participants who have transacted previously within a short timeframe, such as 24 hours.
The Flash Protocol
Flash introduces a differentiated routing architecture that treats payments based on their size and frequency:
- Elephant Routing: For large payments, Flash prioritizes path optimality. It utilizes a modified Edmonds-Karp max-flow algorithm adapted for decentralized settings where capacities must be discovered via probing. Once multiple paths are identified, Flash solves a convex optimization problem to split the payment across these paths, minimizing total transaction fees while ensuring financial atomicity through Atomic Multi-Path Payments (AMP).
- Mice Routing: For small, frequent payments, Flash prioritizes low overhead. It maintains a local routing table of precomputed shortest paths. Instead of proactive probing, it uses a trial-and-error approach, only probing if a pre-selected path fails. This amortizes the cost of path discovery over many recurring transactions.
Evaluation and Results
The authors evaluated Flash using datasets from Ripple (2.6M transactions) and Bitcoin (103M transactions), testing on topologies modeled after the Ripple network and the production Lightning Network. Key findings include:
- Increased Throughput: Flash improves the total successful transaction volume by up to 2.3x compared to the Spider protocol and up to 5x compared to standard shortest-path routing.
- Reduced Overhead: By avoiding complex discovery for small payments, Flash reduces probing message overhead by 37% to 43%.
- Improved User Experience: Average processing delay for small payments was reduced by approximately 26%, and fee optimization led to a 40% reduction in transaction costs.
Conclusion and Future Work
Flash demonstrates that differentiated treatment of payment traffic can significantly enhance the efficiency of offchain networks. By spending the overhead budget on high-value "elephant" payments and using lightweight routing for "mice," the protocol achieves a superior balance of throughput and latency. Future work will address privacy concerns related to channel probing and explore the impact of highly volatile network topologies on routing table maintenance.
Summary updated