Algorand has been quietly running peer‑to‑peer (P2P) networking for months. P2P lets Algorand nodes find and connect to Repeaters on a global mesh. This adds more independent routes for data, strengthens decentralization, and makes the network more resilient to failures and censorship. P2P is now also available in NodeKit and FUNC.
What is P2P?
Algorand's network has traditionally relied on a backbone of Repeaters (previously called "Relays") to efficiently distribute data across the network. New validator nodes needed to know the IP address of Repeaters in order to connect to them, either by relying on the bootstrap list provided by the Algorand Foundation, or by manually specifying the IP address of a chosen Repeater. With the introduction of P2P, Validators can now auto-discover Repeaters through a P2P mesh without having to rely on default bootstrap list. Information can now travel across many paths using a modern gossip protocol. The design keeps the network running smoothly even when parts of the internet are slow or unavailable.
Why P2P matters
P2P creates a decentralized network structure that enhances the resilience and security of the blockchain:
-
-
-
Decentralization: More community‑run Repeaters that can be auto-discovered, mean more independent paths for blocks and transactions, and a healthier network overall.
- Security and resilience: Multiple routes make it more difficult to implement censorship and targeted slowdowns. If one route is impaired, messages can take another route. Under a heavy load, the mesh spreads traffic instead of funneling it through a small set of machines.
-
-
How P2P works at a glance
The Algorand network operates in a 2-tier architecture: data moves through a backbone of Repeaters. Validators, who handle consensus, connect to Repeaters for propagation of blocks and participation messages. Up until now, Validators had to know how to connect to the Repeater network, either by relying on a bootstrap list of known Repeaters or by manually specifying the IP address(es) of Repeaters in the network. This created a hierarchy: clients depended on specific servers, and if those servers failed or became congested, the connected nodes lost their pathway to the network. It was like having a few major post offices that all mail must pass through first - efficient when working well, but vulnerable to bottlenecks and single points of failure.
P2P networking resolves this issue by allowing Validators to auto-discover Repeaters in the network using a modern gossip protocol. On Algorand, nodes can now maintain connections to both Repeaters on the bootstrap list and to Repeaters that they discover dynamically. When a node receives a new transaction or block, it propagates through all available channels, creating redundant paths for the flow of data.
If parts of either system slow down or become unavailable, messages still flow through alternative routes, making the overall network more robust.
Connecting with P2P
P2P is available today and ships in NodeKit and FUNC, for easy setup. While P2P offers significant advantages in resilience and robustness, it will generate more data traffic for participating nodes. Node operators that are running nodes in bandwidth-constrained environments may prefer not to enable P2P networking. Therefore, nodes can connect in three simple modes:
-
-
- Off: Connects only to a list of known Repeaters (bootstrap list) This minimizes bandwidth requirements.
- Hybrid: Connects to both known and auto-discovered Repeaters (recommended for most operators).
- On: Connects only through auto-discovered Repeaters.
-
Node types
Below are the P2P node types:
-
-
-
A Repeater is a high-bandwidth node that propagates blocks and transactions.
- A Validator runs consensus and validates blocks.
- An Archiver stores the full ledger history and, on P2P, can advertise block and catchpoint serving so peers can fast‑sync.
- An API provider exposes the live ledger to applications through the algod API so they can read state, simulate, and submit transactions.
-
-
Learn more about P2P
For more information about P2P, read "Algorand goes peer‑to‑peer: A new era for the network."
If you run nodes, see the Developer Portal, NodeKit, and FUNC release notes.
Disclaimer: The content provided in this blog is for informational purposes only. The information is provided by the Algorand Foundation and while we strive to keep the information up-to-date and correct, we make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability, or availability with respect to the blog or the information, products, services, or related graphics contained in the blog for any purpose. The content of this blog is not intended to be legal, financial, or investment advice nor is it an endorsement, guarantee, or investment recommendation. You should not take any action before conducting your own research or consulting with a qualified professional. Any reliance you place on such information is therefore strictly at your own risk. All companies are independent entities solely responsible for their operations, marketing, and compliance with applicable laws and regulations. In no event will Algorand Foundation be liable for any loss or damage including without limitation, indirect, or consequential loss or damage, or any loss or damage whatsoever arising from loss of data or profits arising out of, or in connection with, the use of this blog. Through this blog, you may be able to link to other websites which are not under the control of the Algorand Foundation. We have no control over the nature, content, and availability of those sites. The inclusion of any links does not imply a recommendation nor endorse the views expressed therein.