IntersectMBO / ouroboros-network

Specifications of network protocols and implementations of components running these protocols which support a family of Ouroboros Consesus protocols; the diffusion layer of the Cardano Node.
https://ouroboros-network.cardano.intersectmbo.org
Apache License 2.0
275 stars 86 forks source link

tx-submission decision logic for the inbound side #3311

Open coot opened 3 years ago

coot commented 3 years ago

To smooth traffic and save bandwidth, we can add a decision logic to inbound tx-submission protocol which would decide from whom to download an available transaction and trace which transactions are being downloaded (so we don't start to download something that's already being downloaded).

todo list

dcoutts commented 3 years ago

This would be a design change with the following benefits:

  1. substantially reduced bandwidth for tx broadcast
  2. smoothing out refilling of the mempool to reduce bursty CPU and network use

This will be a useful optimisation as we get towards higher and higher chain throughput / TPS. For the moment (at current low TPS rates) it is not a significant issue. The effects are only visible in benchmarks with very high TPS.