ant routing for the lightning network with c grunspan
play

Ant routing for the Lightning Network (with C. Grunspan) Ricardo P - PowerPoint PPT Presentation

Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Ant routing for the Lightning Network (with C. Grunspan) Ricardo P erez-Marco @rperezmarco webusers.imj-prg.fr/ ricardo.perez-marco CNRS,


  1. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Payment channels • Payment channels: Allow off-chain transactions. • One Initial Commitment Transaction and one Settlement Transaction are the only on-chain transactions. • Unidirectional or bidirectional payment channels. Constraints and properties • Maximal volume. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  2. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Payment channels • Payment channels: Allow off-chain transactions. • One Initial Commitment Transaction and one Settlement Transaction are the only on-chain transactions. • Unidirectional or bidirectional payment channels. Constraints and properties • Maximal volume. • Instantaneous and anonymous (unrecorded) transactions. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  3. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Payment channels • Payment channels: Allow off-chain transactions. • One Initial Commitment Transaction and one Settlement Transaction are the only on-chain transactions. • Unidirectional or bidirectional payment channels. Constraints and properties • Maximal volume. • Instantaneous and anonymous (unrecorded) transactions. • Payment channels are composable (transitive property). R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  4. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Payment channels • Payment channels: Allow off-chain transactions. • One Initial Commitment Transaction and one Settlement Transaction are the only on-chain transactions. • Unidirectional or bidirectional payment channels. Constraints and properties • Maximal volume. • Instantaneous and anonymous (unrecorded) transactions. • Payment channels are composable (transitive property). If Alice and Bob have a payment channel, and Bob and Charles have another, then Alice can pay Charles through Bob. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  5. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Payment channels • Payment channels: Allow off-chain transactions. • One Initial Commitment Transaction and one Settlement Transaction are the only on-chain transactions. • Unidirectional or bidirectional payment channels. Constraints and properties • Maximal volume. • Instantaneous and anonymous (unrecorded) transactions. • Payment channels are composable (transitive property). If Alice and Bob have a payment channel, and Bob and Charles have another, then Alice can pay Charles through Bob. • Fee incentive for intermediaries. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  6. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Payment channels • Payment channels: Allow off-chain transactions. • One Initial Commitment Transaction and one Settlement Transaction are the only on-chain transactions. • Unidirectional or bidirectional payment channels. Constraints and properties • Maximal volume. • Instantaneous and anonymous (unrecorded) transactions. • Payment channels are composable (transitive property). If Alice and Bob have a payment channel, and Bob and Charles have another, then Alice can pay Charles through Bob. • Fee incentive for intermediaries. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  7. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN LN set up R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  8. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN LN set up (Nakamoto, Hearn, Spilman, Decker, Wattenhofer, Dryja, Poon, Prihodko, Ostrovskyi, Sahno, Zhigulin, Russell, Osuntokun,...) R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  9. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN LN set up (Nakamoto, Hearn, Spilman, Decker, Wattenhofer, Dryja, Poon, Prihodko, Ostrovskyi, Sahno, Zhigulin, Russell, Osuntokun,...) • LN network of payment channels (weighted oriented graph). R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  10. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN LN set up (Nakamoto, Hearn, Spilman, Decker, Wattenhofer, Dryja, Poon, Prihodko, Ostrovskyi, Sahno, Zhigulin, Russell, Osuntokun,...) • LN network of payment channels (weighted oriented graph). • Decentralized network: Rich and randomly connected, etc R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  11. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN LN set up (Nakamoto, Hearn, Spilman, Decker, Wattenhofer, Dryja, Poon, Prihodko, Ostrovskyi, Sahno, Zhigulin, Russell, Osuntokun,...) • LN network of payment channels (weighted oriented graph). • Decentralized network: Rich and randomly connected, etc • On top of the LN network we have a richer and fast communication network. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  12. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN LN set up (Nakamoto, Hearn, Spilman, Decker, Wattenhofer, Dryja, Poon, Prihodko, Ostrovskyi, Sahno, Zhigulin, Russell, Osuntokun,...) • LN network of payment channels (weighted oriented graph). • Decentralized network: Rich and randomly connected, etc • On top of the LN network we have a richer and fast communication network. • Nodes reserve a mempool space for routing purposes. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  13. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN LN set up (Nakamoto, Hearn, Spilman, Decker, Wattenhofer, Dryja, Poon, Prihodko, Ostrovskyi, Sahno, Zhigulin, Russell, Osuntokun,...) • LN network of payment channels (weighted oriented graph). • Decentralized network: Rich and randomly connected, etc • On top of the LN network we have a richer and fast communication network. • Nodes reserve a mempool space for routing purposes. Main problem: Decentralized payment path finding algorithm. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  14. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN LN set up (Nakamoto, Hearn, Spilman, Decker, Wattenhofer, Dryja, Poon, Prihodko, Ostrovskyi, Sahno, Zhigulin, Russell, Osuntokun,...) • LN network of payment channels (weighted oriented graph). • Decentralized network: Rich and randomly connected, etc • On top of the LN network we have a richer and fast communication network. • Nodes reserve a mempool space for routing purposes. Main problem: Decentralized payment path finding algorithm. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  15. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Problems and difficulties R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  16. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Problems and difficulties • Global knowledge of the geometry of the network is a vector of attack. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  17. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Problems and difficulties • Global knowledge of the geometry of the network is a vector of attack. • Solutions based on “beacon nodes” with rich routing tables. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  18. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Problems and difficulties • Global knowledge of the geometry of the network is a vector of attack. • Solutions based on “beacon nodes” with rich routing tables. • Beacon nodes or supernodes violate decentralization. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  19. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Problems and difficulties • Global knowledge of the geometry of the network is a vector of attack. • Solutions based on “beacon nodes” with rich routing tables. • Beacon nodes or supernodes violate decentralization. Some hints: R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  20. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Problems and difficulties • Global knowledge of the geometry of the network is a vector of attack. • Solutions based on “beacon nodes” with rich routing tables. • Beacon nodes or supernodes violate decentralization. Some hints: • Bitcoin network does not use routing tables. Information (transactions) are propagated to the whole network. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  21. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Problems and difficulties • Global knowledge of the geometry of the network is a vector of attack. • Solutions based on “beacon nodes” with rich routing tables. • Beacon nodes or supernodes violate decentralization. Some hints: • Bitcoin network does not use routing tables. Information (transactions) are propagated to the whole network. • Ant path finding algorithms are efficient and highly decentralized. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  22. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Problems and difficulties • Global knowledge of the geometry of the network is a vector of attack. • Solutions based on “beacon nodes” with rich routing tables. • Beacon nodes or supernodes violate decentralization. Some hints: • Bitcoin network does not use routing tables. Information (transactions) are propagated to the whole network. • Ant path finding algorithms are efficient and highly decentralized. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  23. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Ant paths R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  24. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Ant paths R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  25. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Goss et al. (1989) R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  26. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Goss et al. (1989) R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  27. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Goss et al. (1989) R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  28. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Goss et al. (1989) R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  29. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Goss et al. (1989) • Marking paths with pheromones. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  30. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Goss et al. (1989) • Marking paths with pheromones. • Reinforcing paths with pheromones. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  31. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Goss et al. (1989) • Marking paths with pheromones. • Reinforcing paths with pheromones. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  32. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Ariadne’s thread R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  33. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Ariadne’s thread R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  34. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Pheromone seeds R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  35. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Pheromone seeds • Alice wants to pay Bob. They agree on a common random number R . R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  36. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Pheromone seeds • Alice wants to pay Bob. They agree on a common random number R . • Alice’s pheromone seed S ( A ) = 0 ⌢ R . R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  37. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Pheromone seeds • Alice wants to pay Bob. They agree on a common random number R . • Alice’s pheromone seed S ( A ) = 0 ⌢ R . • Bob’s pheromone seed S ( B ) = 1 ⌢ R . R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  38. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Pheromone seeds • Alice wants to pay Bob. They agree on a common random number R . • Alice’s pheromone seed S ( A ) = 0 ⌢ R . • Bob’s pheromone seed S ( B ) = 1 ⌢ R . • Derived seed: If S = X ⌢ R , the derived seed is S ′ = R . R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  39. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Pheromone seeds • Alice wants to pay Bob. They agree on a common random number R . • Alice’s pheromone seed S ( A ) = 0 ⌢ R . • Bob’s pheromone seed S ( B ) = 1 ⌢ R . • Derived seed: If S = X ⌢ R , the derived seed is S ′ = R . • Conjugate seed: If S = 0 ⌢ R (resp. S = 1 ⌢ R ), the conjugate seed is ¯ S = 1 ⌢ R (resp. ¯ S = 0 ⌢ R ). R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  40. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Pheromone seeds • Alice wants to pay Bob. They agree on a common random number R . • Alice’s pheromone seed S ( A ) = 0 ⌢ R . • Bob’s pheromone seed S ( B ) = 1 ⌢ R . • Derived seed: If S = X ⌢ R , the derived seed is S ′ = R . • Conjugate seed: If S = 0 ⌢ R (resp. S = 1 ⌢ R ), the conjugate seed is ¯ S = 1 ⌢ R (resp. ¯ S = 0 ⌢ R ). • Alice, resp. Bob, propagates S ( A ) , resp. S ( B ) , to neighbors. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  41. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Pheromone seeds • Alice wants to pay Bob. They agree on a common random number R . • Alice’s pheromone seed S ( A ) = 0 ⌢ R . • Bob’s pheromone seed S ( B ) = 1 ⌢ R . • Derived seed: If S = X ⌢ R , the derived seed is S ′ = R . • Conjugate seed: If S = 0 ⌢ R (resp. S = 1 ⌢ R ), the conjugate seed is ¯ S = 1 ⌢ R (resp. ¯ S = 0 ⌢ R ). • Alice, resp. Bob, propagates S ( A ) , resp. S ( B ) , to neighbors. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  42. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Propagation and matching R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  43. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Propagation and matching • A node that receives a pheromone seed S notes from which neighbor it arrived and checks if S or ¯ S was received before. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  44. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Propagation and matching • A node that receives a pheromone seed S notes from which neighbor it arrived and checks if S or ¯ S was received before. • If none was received, it stores S in the mempool and propagates to other neighbors. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  45. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Propagation and matching • A node that receives a pheromone seed S notes from which neighbor it arrived and checks if S or ¯ S was received before. • If none was received, it stores S in the mempool and propagates to other neighbors. • If S was already in the mempool but not ¯ S , nothing else needs to be done. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  46. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Propagation and matching • A node that receives a pheromone seed S notes from which neighbor it arrived and checks if S or ¯ S was received before. • If none was received, it stores S in the mempool and propagates to other neighbors. • If S was already in the mempool but not ¯ S , nothing else needs to be done. • If S is not in the mempool but ¯ S is, then a matching occurs. The node constructs the matched seed S m = 0 ⌢ S ( A ) and propagates it to the neighbors that send the pheromone seeds S ( A ) and S ( B ) . R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  47. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Propagation and matching • A node that receives a pheromone seed S notes from which neighbor it arrived and checks if S or ¯ S was received before. • If none was received, it stores S in the mempool and propagates to other neighbors. • If S was already in the mempool but not ¯ S , nothing else needs to be done. • If S is not in the mempool but ¯ S is, then a matching occurs. The node constructs the matched seed S m = 0 ⌢ S ( A ) and propagates it to the neighbors that send the pheromone seeds S ( A ) and S ( B ) . • If both S and ¯ S were already in the mempool then the matching occurred earlier and nothing needs to be done. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  48. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Propagation and matching • A node that receives a pheromone seed S notes from which neighbor it arrived and checks if S or ¯ S was received before. • If none was received, it stores S in the mempool and propagates to other neighbors. • If S was already in the mempool but not ¯ S , nothing else needs to be done. • If S is not in the mempool but ¯ S is, then a matching occurs. The node constructs the matched seed S m = 0 ⌢ S ( A ) and propagates it to the neighbors that send the pheromone seeds S ( A ) and S ( B ) . • If both S and ¯ S were already in the mempool then the matching occurred earlier and nothing needs to be done. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  49. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Confirmation and payment R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  50. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Confirmation and payment • Alice waits for several matched seed to arrive, and chooses one and constructs the confirmed seed S c = 0 ⌢ S m . R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  51. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Confirmation and payment • Alice waits for several matched seed to arrive, and chooses one and constructs the confirmed seed S c = 0 ⌢ S m . • Alice propagates the confirmed seed to the neighbor that send her the matched seed and waits for Bob the confirmation of the path. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  52. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Confirmation and payment • Alice waits for several matched seed to arrive, and chooses one and constructs the confirmed seed S c = 0 ⌢ S m . • Alice propagates the confirmed seed to the neighbor that send her the matched seed and waits for Bob the confirmation of the path. • Nodes that receive a confirmed seed propagate it back. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  53. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Confirmation and payment • Alice waits for several matched seed to arrive, and chooses one and constructs the confirmed seed S c = 0 ⌢ S m . • Alice propagates the confirmed seed to the neighbor that send her the matched seed and waits for Bob the confirmation of the path. • Nodes that receive a confirmed seed propagate it back. • Once Bob receives the confirmed seed, he signals it to Alice and the payment is initiated through that path. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  54. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Confirmation and payment • Alice waits for several matched seed to arrive, and chooses one and constructs the confirmed seed S c = 0 ⌢ S m . • Alice propagates the confirmed seed to the neighbor that send her the matched seed and waits for Bob the confirmation of the path. • Nodes that receive a confirmed seed propagate it back. • Once Bob receives the confirmed seed, he signals it to Alice and the payment is initiated through that path. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  55. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Amount and fees R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  56. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Amount and fees • Alice and Bob enrich the pheromone seed by adding: An amount field. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  57. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Amount and fees • Alice and Bob enrich the pheromone seed by adding: An amount field. A maximal fee field. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  58. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Amount and fees • Alice and Bob enrich the pheromone seed by adding: An amount field. A maximal fee field. A current fee field initialized to 0. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  59. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Amount and fees • Alice and Bob enrich the pheromone seed by adding: An amount field. A maximal fee field. A current fee field initialized to 0. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  60. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Amount and fees • Alice and Bob enrich the pheromone seed by adding: An amount field. A maximal fee field. A current fee field initialized to 0. • Nodes only propagate pheromone seeds with an amount compatible with the volume of the payment channels. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  61. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Amount and fees • Alice and Bob enrich the pheromone seed by adding: An amount field. A maximal fee field. A current fee field initialized to 0. • Nodes only propagate pheromone seeds with an amount compatible with the volume of the payment channels. • Nodes increase the current fee field with their fee. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  62. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Amount and fees • Alice and Bob enrich the pheromone seed by adding: An amount field. A maximal fee field. A current fee field initialized to 0. • Nodes only propagate pheromone seeds with an amount compatible with the volume of the payment channels. • Nodes increase the current fee field with their fee. • The node matching conjugate pheromone seeds updated the amount of the fee field adding his fee to both fee amounts, and checks that is lower than the maximal fee. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  63. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Amount and fees • Alice and Bob enrich the pheromone seed by adding: An amount field. A maximal fee field. A current fee field initialized to 0. • Nodes only propagate pheromone seeds with an amount compatible with the volume of the payment channels. • Nodes increase the current fee field with their fee. • The node matching conjugate pheromone seeds updated the amount of the fee field adding his fee to both fee amounts, and checks that is lower than the maximal fee. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  64. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Mempool management R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  65. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Mempool management • Nodes only store non-confirmed information for a few seconds. Each node choses his treshold time τ 0 . R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  66. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Mempool management • Nodes only store non-confirmed information for a few seconds. Each node choses his treshold time τ 0 . • After a period τ 0 nodes erase the data. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  67. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Mempool management • Nodes only store non-confirmed information for a few seconds. Each node choses his treshold time τ 0 . • After a period τ 0 nodes erase the data. • Alice chooses her own waiting time τ 1 and selection algorithm for selecting matched seeds (minimum fee after the period τ 1 is the obvious). R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  68. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Mempool management • Nodes only store non-confirmed information for a few seconds. Each node choses his treshold time τ 0 . • After a period τ 0 nodes erase the data. • Alice chooses her own waiting time τ 1 and selection algorithm for selecting matched seeds (minimum fee after the period τ 1 is the obvious). • Seeds of about 30 Bytes are probably acceptable. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  69. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Mempool management • Nodes only store non-confirmed information for a few seconds. Each node choses his treshold time τ 0 . • After a period τ 0 nodes erase the data. • Alice chooses her own waiting time τ 1 and selection algorithm for selecting matched seeds (minimum fee after the period τ 1 is the obvious). • Seeds of about 30 Bytes are probably acceptable. • τ 0 of about 2 sec seem realistic depending on the speed of communications. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  70. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Mempool management • Nodes only store non-confirmed information for a few seconds. Each node choses his treshold time τ 0 . • After a period τ 0 nodes erase the data. • Alice chooses her own waiting time τ 1 and selection algorithm for selecting matched seeds (minimum fee after the period τ 1 is the obvious). • Seeds of about 30 Bytes are probably acceptable. • τ 0 of about 2 sec seem realistic depending on the speed of communications. • A mempool space of a few Mb should be enough to process thousands of Tx per second. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  71. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Mempool management • Nodes only store non-confirmed information for a few seconds. Each node choses his treshold time τ 0 . • After a period τ 0 nodes erase the data. • Alice chooses her own waiting time τ 1 and selection algorithm for selecting matched seeds (minimum fee after the period τ 1 is the obvious). • Seeds of about 30 Bytes are probably acceptable. • τ 0 of about 2 sec seem realistic depending on the speed of communications. • A mempool space of a few Mb should be enough to process thousands of Tx per second. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  72. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Self-improvement features R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  73. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Self-improvement features • The topology of the network is dynamical. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  74. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Self-improvement features • The topology of the network is dynamical. • Nodes can store historical performance of neighbors and compute some weighting. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  75. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Self-improvement features • The topology of the network is dynamical. • Nodes can store historical performance of neighbors and compute some weighting. • Comparison of historical weighting with short term one allows to adjust to topology changes in the network. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  76. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Self-improvement features • The topology of the network is dynamical. • Nodes can store historical performance of neighbors and compute some weighting. • Comparison of historical weighting with short term one allows to adjust to topology changes in the network. • Best analysis will increase traffic and profitability. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  77. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Self-improvement features • The topology of the network is dynamical. • Nodes can store historical performance of neighbors and compute some weighting. • Comparison of historical weighting with short term one allows to adjust to topology changes in the network. • Best analysis will increase traffic and profitability. R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

  78. Decentralized Networks Lightning Network. Biological ant routing Basic ant routing for LN Numerical simulations R. P´ erez-Marco CNRS Ant routing for the Lightning Network (with C. Grunspan)

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend