{"id":18827,"date":"2019-12-27T21:03:33","date_gmt":"2019-12-27T21:03:33","guid":{"rendered":"http:\/\/ci027cfe66901626c3"},"modified":"2019-12-27T21:03:33","modified_gmt":"2019-12-27T21:03:33","slug":"lightning-network-traffic-analysis-raises-questions-fees-privacy","status":"publish","type":"post","link":"https:\/\/bitcoinmagazine.com\/technical\/lightning-network-traffic-analysis-raises-questions-fees-privacy","title":{"rendered":"Lightning Network Traffic Analysis Raises Questions Over Fees and Privacy"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><figure><img decoding=\"async\" src=\"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/11\/research-questions-lightning-network-fees-privacy.png\" title=\"\"><\/figure>\n<p>A new research <a href=\"https:\/\/arxiv.org\/pdf\/1911.09432.pdf\" target=\"_blank\" rel=\"noopener\">paper<\/a> provides what is perhaps the most informative series of snapshots simulating Lightning Network traffic over the past year.<\/p>\n<p>The paper, titled \u201cA Cryptoeconomic Traffic Analysis of Bitcoin\u2019s Lightning Network,\u201d was written by a trio of Hungarian researchers: Ferenc B\u00e9res of the Institute for Computer Science and Control, Istv\u00e1n A. Seres of E\u00f6tv\u00f6s Lor\u00e1nd University and Andr\u00e1s A. Bencz\u00far of Sz\u00e9chenyi Istv\u00e1n University.&nbsp;<\/p>\n<p>Using a Lightning Network <a href=\"https:\/\/github.com\/ferencberes\/LNTrafficSimulator\" target=\"_blank\" rel=\"noopener\">traffic simulator<\/a> created for this research to imitate the network\u2019s flow of transactions, the paper concludes that the current rate of network transaction fees is not economically viable for the long term. In addition to an immature fee market, the paper addresses the tendency of bitcoin senders using the Lightning Network to utilize more direct, less private payment routes. The paper proposes solutions to both perceived issues and, in doing so, raises questions about what the Lightning Network should ultimately be for Bitcoin.&nbsp;<\/p>\n<h2>Lightning Network Problem #1: Economic Viability of the Fee Market<\/h2>\n<p>The Bitcoin blockchain processes far fewer transactions per second (seven to nine) when compared with institutional giants such as Visa (which processes about 40,000 transactions per second). Even though Bitcoin is certainly not trying to be Visa, this illustrates the <a href=\"https:\/\/bitcoinmagazine.com\/articles\/history-lightning-brainstorm-beta\">purpose<\/a> of the Lightning Network: to scale Bitcoin. Thus the core idea of Lightning is to allow people to issue bitcoin payments off of the blockchain so that they can be conducted more seamlessly. This reduces processing backlog by creating faster and cheaper payments and also presents an interesting opportunity for better privacy.&nbsp;<\/p>\n<p>The Lightning Network is operated by nodes that run based off of Lightning Technology (BOLT), the foundation of the Lightning Network protocol. Similar to running an on-chain Bitcoin node, Lightning nodes route payments between senders and receivers, in turn reaping a transaction fee for their work.<\/p>\n<p>However, because the Lightning Network is both newer and more private than the Bitcoin blockchain itself, the research paper authors stated in a <a href=\"https:\/\/docs.google.com\/presentation\/d\/1iSaPrCuWj_3h1mc5u43XkY3be0UB50bastDYQHRps48\/edit#slide=id.g760306dbd2_1_12\" target=\"_blank\" rel=\"noopener\">presentation<\/a> that \u201cto the best of our knowledge there was no paper on quantifying the financial incentives of LN router nodes.\u201d Their analysis draws from traffic data extracted from 40 consecutive snapshots of the Lightning Network between February and March 2019, and a subsequent estimation simulating that data.<\/p>\n<p>The paper found that, \u201ccurrently, LN provides little to no financial incentive for payment routing. Low routing fees do not sufficiently compensate the routing nodes that essentially hold the network together.\u201d In their presentation, the authors estimated that daily routing income for major router entities at different levels of traffic volume and payment value is approximately 100,000 sats (about $7) per day.&nbsp;<\/p>\n<p>For clarity, Lightning Network developers set default transaction fees for node operators, they can agree to do this in consensus or act independently for their own Lightning software implementations. However, the node operators can manually adjust their transaction fee rate to whatever they want. The paper called this network-wide inclination for low transaction fees \u201ceconomically irrational,\u201d but in conversation with <em>Bitcoin Magazine<\/em>, <a href=\"https:\/\/twitter.com\/Istvan_A_Seres\" target=\"_blank\" rel=\"noopener\">Seres<\/a>, a mathematics PhD in Budapest, was quick to admit that the behavior is probably more akin to a kind of altruism seen during the early days of Bitcoin\u2019s on-chain fee market.<\/p>\n<p>Assuming nodes operators want a legitimate return on investment from transaction fees, the paper asserts that the financial incentives in the Lightning Network are not enough. To make payment routing economically viable for node operators, the paper proposes either 1) increasing traffic or 2) increasing transaction fees.<\/p>\n<p>\u201cIn this sense, many of the larger nodes can raise their transaction fees because they are in a monopolistic position,\u201d the authors wrote.&nbsp;<\/p>\n<p>This means that, because many of the larger nodes are indispensable due to the proportion of transactions they currently route for the network, \u201cthere aren\u2019t many options for neighboring nodes to route payments,\u201d said Seres.&nbsp;<\/p>\n<h2>Lightning Network Problem #2: Routing Privacy<\/h2>\n<p>The paper also finds that despite randomized onion routing, \u201cstrong statistical evidence can be gathered about the sender and receiver of payments, since a substantial portion of payments involve only a single routing intermediary.\u201d&nbsp;<\/p>\n<p>As a potential solution to this privacy drawback, the authors suggest using \u201cdeliberately suboptimal, longer routing paths [that] can restore privacy while only marginally increasing the cost of an average transaction.\u201d Additionally, creating a direct payment channel between senders and receivers creates the optimal level of privacy.&nbsp;<\/p>\n<p>Based on the paper\u2019s recommendations, if default transaction fees increase, taking longer, less direct payment paths for privacy will cost more. Similar to the concern with setting a default transaction fee for node operators, and in the spirit of Bitcoin\u2019s earliest developments, this paper\u2019s findings currently put the responsibility of privacy on users selecting their payment routes.<\/p>\n<h2>Rationally Low Transaction Fees<\/h2>\n<p>Many developers and node operators within the Lightning Network community are not likely to agree with the conclusions of the paper, that low transaction fees are economically irrational or even problematic.<\/p>\n<p>For instance, many Lightning Network node operators are Bitcoin businesses, such as Bitrefill, which allow customers to purchase a wide range of products and services using bitcoin through Lightning Network payments. Businesses like Bitrefill appear to be taking advantage of the Lightning Network\u2019s low transaction fees for the sake of their customers.<\/p>\n<p>\u201cIt is entirely short-sighted to assume that Lightning routing is economically irrational if routing fees themselves have a summable cost to participants,\u201d CCO of <a href=\"https:\/\/www.bitrefill.com\/?hl=en\" target=\"_blank\" rel=\"noopener\">Bitrefill<\/a>, <a href=\"https:\/\/twitter.com\/BitcoinErrorLog\" target=\"_blank\" rel=\"noopener\">John Carvalho<\/a>, told <em>Bitcoin Magazine<\/em>. \u201cThere are at least two major factors that must be considered. One, that Lightning offers features that onchain Bitcoin transactions do not, like high frequency and instantaneousness. Those are features people are willing to incur cost to access. Two &#8230; economic actors have incentives to scale their node activity externally as a business, just like Bitrefill. Demand for commercial-friendly BTC transacting is real.\u201d&nbsp;<\/p>\n<p>Another Bitcoin business taking advantage of the Lightning Network\u2019s low transaction fees is <a href=\"https:\/\/medium.com\/sparkswap\/sparkswap-is-shutting-down-86cfab3216d2\" target=\"_blank\" rel=\"noopener\">Sparkswap<\/a>, an app that lets users buy bitcoin with USD directly into a<a href=\"https:\/\/twitter.com\/search?q=%2523LightningNetwork&amp;src=hashtag_click\" target=\"_blank\" rel=\"noopener\"><\/a>Lightning Network wallet.&nbsp;<\/p>\n<p>\u201cIn looking at our routing fees you might assume that we are operating in an uneconomic way, but considering our business as a whole tells a different story,\u201d said <a href=\"https:\/\/twitter.com\/tgriff3\" target=\"_blank\" rel=\"noopener\">Trey Griffith<\/a>, founder of Sparkswap.&nbsp;<\/p>\n<p>Griffith stated that because Bitcoin businesses are such a dominant part of the Lightning Network\u2019s routing, it\u2019s difficult to draw meaningful conclusions from the paper\u2019s data, like why certain openings create triangular routes.&nbsp;<\/p>\n<p>Griffith agreed that transaction fees will grow over time while Carvalho admitted \u201cthey will likely approach on-chain levels overtime \u2026 and a rank for rates can be predicted: Bitcoin on-chain &gt; Lightning &gt; Shitcoins.\u201d<\/p>\n<h2>Should Lightning Network Transaction Fees Be Raised?<\/h2>\n<p>According to Seres, the ultimate harm of low transaction fees on the Lightning Network \u201cwould be that maybe nodes would quit the network, and it would lose capacity for payment channels.\u201d&nbsp;<\/p>\n<p>And in October 2019, Rusty Russell, a developer for Blockstream, pointed out another pair of problems with setting low default transaction fees.&nbsp;<\/p>\n<p>In a message to the Lightning Dev mailing list, Russell <a href=\"https:\/\/www.mail-archive.com\/lightning-dev@lists.linuxfoundation.org\/msg01484.html\" target=\"_blank\" rel=\"noopener\">observed<\/a> that two-thirds of node operators were \u201csitting on the default (1,000 [millisatoshi] + 1 [parts per million of the payment (ppm)])\u201d transaction fee. This would imply that the majority of node operators on the Lightning Network do not choose to deviate from default fee rate set by developers.<\/p>\n<p>Russell pointed out that acceptance of the default fees indicated low reliability and that routing gets slowed in trying to find a responsive node. He also noted that \u201cthere\u2019s no meaningful market signal in fees,\u201d meaning that the Lightning Network fee market doesn\u2019t look like a real market.<\/p>\n<p>Elaborating more recently on Russell\u2019s point and responding to the paper\u2019s findings, Russell\u2019s colleague, Blockstream researcher and general Bitcoin and Lightning Network enthusiast Christian Decker, told <em>Bitcoin Magazine<\/em> that \u201cthe issue at hand is that the current default fees do not leave much room for differentiation. By increasing the default fees, we&#8217;d automatically skew the route selection away from nodes that were just set up and left there unattended.\u201d<\/p>\n<p>Decker also pointed out that the paper seemed to have overlooked that <a href=\"https:\/\/github.com\/ElementsProject\/lightning\" target=\"_blank\" rel=\"noopener\">c-lightning<\/a> implementation already randomizes route selection for senders. Decker said that \u201cdue to the randomization in route selection, an increase in the default fee rate would not result in those nodes being excluded from forwarding payments, but we could still skew the routes towards more actively managed nodes.\u201d<\/p>\n<h2>Looking Into 2020<\/h2>\n<p>While most sources interviewed for this article did not agree with the paper\u2019s conclusions, their concerns did shed light on the Lightning Network of 2019 and what are likely to be major priorities for 2020.<\/p>\n<p>\u201cSince our public testing began a little over a year ago, the Lightning community has built a lot of infrastructure to bootstrap the network and to experiment [with] what works and what doesn&#8217;t,\u201d Decker said. \u201cThis builds the foundation on which we can build in the coming years, and we expect that many of the upcoming developments will indeed be more user facing. This includes simpler UX and further improved reliability, which can then drive user adoption. We agree with the authors that privacy is likely a major topic in LN for 2020.\u201d<\/p>\n<p>Carvalho also doesn\u2019t see a problem with the Lightning Network&#8217;s low transaction fees and projects significant improvements in the coming year.<\/p>\n<p>\u201cIn the end, the nature of the network being P2P and voluntary means that arguments against its rationality must refute the reality that the network persists, is growing and being leveraged by businesses today,\u201d he said. \u201cIn my view, we&#8217;re only scratching the surface and Lightning will demonstrate more uses cases and incentives for participation in 2020.\u201d&nbsp;<\/p>\n<p>Furthermore, Carvalho made the point that the Lightning Network has never made a promise to solve privacy off-chain \u2014 that is more a side effect of its privacy-minded culture of engineers and users. And, in the context of on-chain data, \u201chaving the ability to watch some money move on Lightning does not imply you have useful external taint to apply to it.\u201dTo learn more about what could be coming for the Lightning Network in 2020, you can follow the discussion by subscribing to this <a href=\"https:\/\/lists.linuxfoundation.org\/mailman\/listinfo\/lightning-dev\" target=\"_blank\" rel=\"noopener\">Lightning Network developer mailing list<\/a>. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Researchers analyzing Lightning Network traffic suggest that network fees are too low and that transaction privacy needs to be improved.<\/p>\n","protected":false},"author":3410,"featured_media":18828,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[505,130,460,73,474,705],"class_list":{"0":"post-18827","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-technical","8":"tag-fees","9":"tag-lightning","10":"tag-lightning-network","11":"tag-privacy","12":"tag-research","13":"tag-scaling"},"author_data":{"id":3410,"name":"David Hollerith","nicename":"david-hollerith","avatar_url":"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/12\/david-hollerith-promo-image-96x96.jpg"},"featured_image_url":"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/11\/research-questions-lightning-network-fees-privacy.png","_links":{"self":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/18827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/users\/3410"}],"replies":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/comments?post=18827"}],"version-history":[{"count":0,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/18827\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media\/18828"}],"wp:attachment":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media?parent=18827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/categories?post=18827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/tags?post=18827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}