near / nearcore

Reference client for NEAR Protocol
https://near.org
GNU General Public License v3.0
2.31k stars 618 forks source link

Reconsider how we exchange routing table information #3838

Open bowenwang1996 opened 3 years ago

bowenwang1996 commented 3 years ago

Currently we always exchange the entire routing table with peers when new connections are established and broadcast newly received routing table information. This is not efficient and leads to an increase of network traffic. We should consider optimizing this process with better strategies to synchronize routing table between nodes in the network.

bowenwang1996 commented 3 years ago

@pmnoxx should we close this one in favor of #3934 ?

pmnoxx commented 3 years ago

@bowenwang1996 I decided to split issues into two to make it more cleaner. #3934 focuses on theoretical work This one on the actual implementation.

pmnoxx commented 3 years ago

I wrote a prototype: https://github.com/near/nearcore/pull/4112 I'm going to test it and see if it works.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity in the last 2 months. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

pmnoxx commented 2 years ago

There are still a few optimizations we can do to exchange routing tables:

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity in the last 2 months. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.