ABSTRACT
Offchain networks emerge as a promising solution to address the scalability challenge of blockchain. Participants make payments through offchain networks instead of committing transactions on-chain. 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 transactions characteristics 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 that of 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 sent directly by looking up a routing table with a few precomputed paths to reduce probing overhead. Testbed experiments and trace-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.
- 2018. Atomic Multi-path Payment. https://lists.linuxfoundation.org/pipermail/lightning-dev/2018-February/000993.html.Google Scholar
- 2018. Ripple transaction trace. https://crysp.uwaterloo.ca/software/speedymurmurs/.Google Scholar
- 2019. Bitcoin. https://bitcoin.org/en/.Google Scholar
- 2019. c-lightning Daemon. https://github.com/ElementsProject/lightning/tree/master/lightningd.Google Scholar
- 2019. Lightning Network Daemon. https://github.com/lightningnetwork/lnd.Google Scholar
- 2019. NetworkX. https://networkx.github.io/.Google Scholar
- 2019. Raiden Network Daemon. https://github.com/raiden-network/raiden.Google Scholar
- 2019. Real-Time Lightning Network Statistics. https://1ml.com/statistics.Google Scholar
- 2019. Ripple. https://ripple.com/.Google Scholar
- 2019. The Lightning Network. https://lightning.network/.Google Scholar
- 2019. The Raiden Network. https://raiden.network/.Google Scholar
- 2019. Transaction Rate of Bitcoin. https://www.blockchain.com/en/charts/transactions-per-second.Google Scholar
- Mohammad Al-Fares, Sivasankar Radhakrishnan, Barath Raghavan, Nelson Huang, and Amin Vahdat. 2010. Hedera: Dynamic Flow Scheduling for Data Center Networks. In Proc. USENIX NSDI.Google ScholarDigital Library
- Mohammad Alizadeh, Tom Edsall, Sarang Dharmapurikar, Ramanan Vaidyanathan, Kevin Chu, Andy Fingerhut, Vinh The Lam, Francis Matus, Rong Pan, Navindra Yadav, and George Varghese. 2014. CONGA: Distributed Congestion-Aware Load Balancing for Datacenters. In Proc. ACM SIGCOMM.Google ScholarDigital Library
- Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein. 2009. Introduction to Algorithms. MIT Press.Google Scholar
- Andrew R. Curtis, Jeffrey C. Mogul, Jean Tourrilhes, Praveen Yalagandula, Puneet Sharma, and Sujata Banerjee. 2011. DevoFlow: Scaling Flow Management for High-performance Networks. In Proc. ACM SIGCOMM.Google ScholarDigital Library
- Lester Randolph Ford and Delbert R Fulkerson. 1956. Maximal flow through a network. Canadian Journal of Mathematics 8 (1956), 399--404.Google ScholarCross Ref
- Yossi Gilad, Rotem Hemo, Silvio Micali, Georgios Vlachos, and Nickolai Zeldovich. 2017. Algorand: Scaling byzantine agreements for cryptocurrencies. In Proc. ACM SOSP.Google ScholarDigital Library
- Keqiang He, Eric Rozner, Kanak Agarwal, Wes Felter, John Carter, and Aditya Akella. 2015. Presto: Edge-based Load Balancing for Fast Datacenter Networks. In Proc. ACM SIGCOMM.Google ScholarDigital Library
- Chi-Yao Hong, Srikanth Kandula, Ratul Mahajan, Ming Zhang, Vijay Gill, Mohan Nanduri, and Roger Wattenhofer. 2013. Achieving High Utilization with Software-Driven WAN. In Proc. ACM SIGCOMM.Google ScholarDigital Library
- Sushant Jain, Alok Kumar, Subhasree Mandal, Joon Ong, Leon Poutievski, Arjun Singh, Subbaiah Venkata, Jim Wanderer, Junlan Zhou, Min Zhu, Jon Zolla, Urs Hölzle, Stephen Stuart, and Amin Vahdat. 2013. B4: Experience with a Globally-Deployed Software Defined WAN. In Proc. ACM SIGCOMM.Google ScholarDigital Library
- Rami Khalil and Arthur Gervais. 2017. Revive: Rebalancing off-blockchain payment networks. In Proc. ACM CCS.Google ScholarDigital Library
- Loi Luu, Viswesh Narayanan, Chaodong Zheng, Kunal Baweja, Seth Gilbert, and Prateek Saxena. 2016. A secure sharding protocol for open blockchains. In Proc. ACM CCS.Google ScholarDigital Library
- Pedro Moreno-Sanchez, Aniket Kate, and Matteo Maffei. 2017. SilentWhispers: Enforcing Security and Privacy in Decentralized Credit Networks. In Proc. NDSS.Google Scholar
- Satoshi Nakamoto. 2008. Bitcoin: A peer-to-peer electronic cash system. Technical Report (2008). https://bitcoin.org/bitcoin.pdfGoogle Scholar
- J. Perry, H. Balakrishnan, and D. Shah. 2017. Flowtune: Flowlet Control for Datacenter Networks. In Proc. USENIX NSDI.Google Scholar
- Joseph Poon and Thaddeus Dryja. 2016. The bitcoin lightning network: Scalable off-chain instant payments. Technical Report (2016). https://lightning.network/lightning-network-paper.pdfGoogle Scholar
- Pavel Prihodko, Slava Zhigulin, Mykola Sahno, Aleksei Ostrovskiy, and Olaoluwa Osuntokun. 2016. Flare:An approach to routing in lightning network. White Paper (2016). https://bitfury.com/content/downloads/whitepaper_flare_an_approach_to_routing_in_lightning_network_7_7_2016.pdfGoogle Scholar
- Stefanie Roos, Pedro Moreno-Sanchez, Aniket Kate, and Ian Goldberg. 2018. Settling Payments Fast and Private: Efficient Decentralized Routing for Path-Based Transactions. In Proc. NDSS.Google ScholarCross Ref
- Vibhaalakshmi Sivaraman, Shaileshh Bojja Venkatakrishnan, Mohammad Alizadeh, Giulia Fanti, and Pramod Viswanath. 2018. Routing Cryptocurrency with the Spider Network. In Proc. ACM HotNets.Google ScholarDigital Library
- Erico Vanini, Rong Pan, Mohammad Alizadeh, Parvin Taheri, and Tom Edsall. 2017. Let It Flow: Resilient Asymmetric Load Balancing with Flowlet Switching. In Proc. USENIX NSDI.Google Scholar
- Jiaping Wang and Hao Wang. 2019. Monoxide: Scale Out Blockchain with Asynchronized Consensus Zones. In Proc. USENIX NSDI.Google Scholar
- Peng Wang, Hong Xu, Zhixiong Niu, Dongsu Han, and Yongqiang Xiong. 2016. Expeditus: Congestion-aware Load Balancing in Clos Data Center Networks. In Proc. ACM SoCC.Google ScholarDigital Library
- Duncan J Watts and Steven H Strogatz. 1998. Collective dynamics of 'small-world' networks. Nature 393, 6684 (1998), 440.Google Scholar
- Gavin Wood. 2014. Ethereum: a secure decentralized transaction ledger. http://gavwood.com/paper.pdf.Google Scholar
- Jin Y Yen. 1971. Finding the k shortest loopless paths in a network. Management Science 17, 11 (1971), 712--716.Google ScholarDigital Library
- Mahdi Zamani, Mahnush Movahedi, and Mariana Raykova. 2018. RapidChain: scaling blockchain via full sharding. In Proc. ACM CCS.Google ScholarDigital Library
Index Terms
- Flash: efficient dynamic routing for offchain networks
Recommendations
Revive: Rebalancing Off-Blockchain Payment Networks
CCS '17: Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications SecurityScaling the transaction throughput of decentralized blockchain ledgers such as Bitcoin and Ethereum has been an ongoing challenge. Two-party duplex payment channels have been designed and used as building blocks to construct linked payment networks, ...
Gnocchi: Multiplexed Payment Channels for Cryptocurrencies
Network and System SecurityAbstractAs the underlying technology of mainstream cryptocurrencies such as Bitcoin and Ethereum, blockchain builds a decentralized payment system. However, the security and consistency of such system derive from the wide replication of transaction data ...
LApps: Technological, Legal and Market Potentials of Blockchain Lightning Network Applications
ICISDM '19: Proceedings of the 2019 3rd International Conference on Information System and Data MiningFollowing in the footsteps of pioneer Bitcoin, many altcoins as well as coloured coins have been being developed and merchandised adopting blockchain as the core enabling technology. However, since interoperability and scalability, due to high and ...
Comments