Skip to content
LearnBitcoin

ResearchBitcoin Dev Archive lightning-dev list

Testing a Flare-like routing implementation on 2500 AWS nodes

2 messages, Sep 23 to 27, 2016. Started by Viacheslav Zhygulin.

Viacheslav Zhygulin, Pierre

Permalink First message in the Wayback Machine

Viacheslav Zhygulin permalink original

Hey Pierre,

I have a question regarding your tests.

You said: "The main difference between our implementation and the original paper is in the way nodes communicate with each other. In the paper, an assumption is made that "there exists a way for any two nodes in LN to communicate with each other, perhaps with some prior setup (such as a distributed hashtable overlay maintained among LN nodes that would store mapping of node identifiers to their current IP addresses)". In our implementation there is no DHT: inter-nodes communication only occurs on existing open channels, and all routing-related messages are onion-encrypted and routed themselves, just like htlc messages. So a node can't talk directly to a node it doesn't already have a route to"

On the other hand, you said: "The route selection has also been simplified. Whereas Flare proposed a 3 steps process: (a) sender uses its own routing table (b) sender requests receiver's table and uses a combination of the two tables (c) sender iterates over nodes it knows that are close to the receiver, and request their tables in our test we only did (b), which is a strong tradeoff. It means that the time allowed to find a route is short and predictable, but it is very suboptimal in terms of probability of finding a route."

So, my question is: how sender requests receiver's routing table, if sender cannot communicate to receiver?

Thank you for the answer in advance!

Best,

Pierre in reply to Viacheslav Zhygulin permalink original

Hi Viacheslav,

Quoted text (1 line)
> So, my question is: how sender requests receiver's routing table, if sender cannot communicate to receiver?

It is generally accepted that the transmission of a payment request (amount + H) from a payee to a payer will happen off-band, maybe through some kind of QR code on a webpage or something similar. We assumed that we could attach a piece of data (the payee's routing table) to this request. So you are right: this can be seen as a direct one-way communication, between the receiver and the sender.

Cheers,

Pierre