paritytech / polkadot-sdk

The Parity Polkadot Blockchain SDK
https://polkadot.network/
1.81k stars 660 forks source link

Optimize Backing Networking #929

Open rphmeier opened 2 years ago

rphmeier commented 2 years ago

This assumes paritytech/polkadot#3779 .

I did some back-of-the-envelope calculations about network bandwidth used with some ideal parameters (16MB PoV, 1000 validators, 100 parachain cores) and we can see that bandwidth is dominated by backing.

pepyakin commented 2 years ago

Leave it here for persistence:

  1. Off-chain XCMP, in the current line of thought, will also be a consumer of bandwidth. Mostly, we can think it to be using pretty much the same resources as the PoV, so we can just say that it will eat up some of the 16 MiB of the PoV. However, on top of that there is additional bandwidth for the collators of the receiving chains to recover the messages. We were thinking that there should be a cooperative case, i.e. that the collators of the sending network should serve the messages, however, that doesn't help us here since we still need to reserve bandwidth for that anyway.
  2. Off-chain code. AFAIU, this will require hand offs between the validators of the current and the next set. This doesn't seem too bad taking into account a large session window.